@openc3/vue-common 6.0.2 → 6.2.0-fix0
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-BIQi_bWC.cjs +3 -0
- package/dist/ArrayWidget-BIQi_bWC.cjs.map +1 -0
- package/dist/ArrayWidget-BxEO5hEG.js +106 -0
- package/dist/ArrayWidget-BxEO5hEG.js.map +1 -0
- package/dist/ArrayplotWidget-B_VPoV4v.js +199 -0
- package/dist/ArrayplotWidget-B_VPoV4v.js.map +1 -0
- package/dist/ArrayplotWidget-Donxhd8_.cjs +2 -0
- package/dist/ArrayplotWidget-Donxhd8_.cjs.map +1 -0
- package/dist/AstroStatus-CILMWL6F.cjs +2 -0
- package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
- package/dist/AstroStatus-CY9VkeTN.js +40 -0
- package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
- package/dist/BarColumn-C9dkpg2O.js +108 -0
- package/dist/BarColumn-C9dkpg2O.js.map +1 -0
- package/dist/BarColumn-CyRSZHMh.cjs +2 -0
- package/dist/BarColumn-CyRSZHMh.cjs.map +1 -0
- package/dist/BlockWidget-CuefOin6.js +112 -0
- package/dist/BlockWidget-CuefOin6.js.map +1 -0
- package/dist/BlockWidget-DPLN1jgj.cjs +3 -0
- package/dist/BlockWidget-DPLN1jgj.cjs.map +1 -0
- package/dist/ButtonWidget-B6HM0Doo.js +166 -0
- package/dist/ButtonWidget-B6HM0Doo.js.map +1 -0
- package/dist/ButtonWidget-DccYzIY3.cjs +3 -0
- package/dist/ButtonWidget-DccYzIY3.cjs.map +1 -0
- package/dist/CanvasWidget-BzTU9rc9.cjs +2 -0
- package/dist/CanvasWidget-BzTU9rc9.cjs.map +1 -0
- package/dist/CanvasWidget-DZQGG-yQ.js +39 -0
- package/dist/CanvasWidget-DZQGG-yQ.js.map +1 -0
- package/dist/CanvasdotWidget-6wuCSnw_.js +19 -0
- package/dist/CanvasdotWidget-6wuCSnw_.js.map +1 -0
- package/dist/CanvasdotWidget-B7VTS1QI.cjs +2 -0
- package/dist/CanvasdotWidget-B7VTS1QI.cjs.map +1 -0
- package/dist/CanvasimageWidget-BwYpfmDE.cjs +2 -0
- package/dist/CanvasimageWidget-BwYpfmDE.cjs.map +1 -0
- package/dist/CanvasimageWidget-mhcPpAuN.js +58 -0
- package/dist/CanvasimageWidget-mhcPpAuN.js.map +1 -0
- package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js +107 -0
- package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js.map +1 -0
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +2 -0
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs.map +1 -0
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs +2 -0
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs.map +1 -0
- package/dist/CanvaslabelWidget-CQZCeohU.js +23 -0
- package/dist/CanvaslabelWidget-CQZCeohU.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-CwmYDCjr.js +42 -0
- package/dist/CanvaslabelvalueWidget-CwmYDCjr.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +2 -0
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs.map +1 -0
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs +2 -0
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs.map +1 -0
- package/dist/CanvaslineWidget-nTP3fJB4.js +28 -0
- package/dist/CanvaslineWidget-nTP3fJB4.js.map +1 -0
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +2 -0
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs.map +1 -0
- package/dist/CanvaslinevalueWidget-C3sJnjLQ.js +44 -0
- package/dist/CanvaslinevalueWidget-C3sJnjLQ.js.map +1 -0
- package/dist/CheckbuttonWidget-5-8YDsQL.js +37 -0
- package/dist/CheckbuttonWidget-5-8YDsQL.js.map +1 -0
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs +2 -0
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs.map +1 -0
- package/dist/ComboboxWidget-DoHMlSAr.cjs +2 -0
- package/dist/ComboboxWidget-DoHMlSAr.cjs.map +1 -0
- package/dist/ComboboxWidget-DzBL8h9f.js +37 -0
- package/dist/ComboboxWidget-DzBL8h9f.js.map +1 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
- package/dist/CriticalCmdDialog-DLEasFsx.js +270 -0
- package/dist/CriticalCmdDialog-DLEasFsx.js.map +1 -0
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs +2 -0
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +1 -0
- package/dist/DateWidget-CW7Od7lB.js +40 -0
- package/dist/DateWidget-CW7Od7lB.js.map +1 -0
- package/dist/DateWidget-DKZz1J9J.cjs +2 -0
- package/dist/DateWidget-DKZz1J9J.cjs.map +1 -0
- package/dist/DetailsDialog-BvbziA7Y.js +767 -0
- package/dist/DetailsDialog-BvbziA7Y.js.map +1 -0
- package/dist/DetailsDialog-CiuQYvJK.cjs +2 -0
- package/dist/DetailsDialog-CiuQYvJK.cjs.map +1 -0
- package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
- package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
- package/dist/DynamicWidget-gFSYxzvT.js +35 -0
- package/dist/DynamicWidget-gFSYxzvT.js.map +1 -0
- package/dist/FormatvalueWidget-CGpnTqVH.js +44 -0
- package/dist/FormatvalueWidget-CGpnTqVH.js.map +1 -0
- package/dist/FormatvalueWidget-DFrbeKb9.cjs +2 -0
- package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +1 -0
- package/dist/Graph-3rkhFP3G.js +1983 -0
- package/dist/Graph-3rkhFP3G.js.map +1 -0
- package/dist/Graph-C3vGMcos.cjs +2 -0
- package/dist/Graph-C3vGMcos.cjs.map +1 -0
- package/dist/GraphWidget-22NxFa9k.cjs +2 -0
- package/dist/GraphWidget-22NxFa9k.cjs.map +1 -0
- package/dist/GraphWidget-Dycey-mj.js +130 -0
- package/dist/GraphWidget-Dycey-mj.js.map +1 -0
- package/dist/HorizontalWidget-BBeB0eBI.cjs +2 -0
- package/dist/HorizontalWidget-BBeB0eBI.cjs.map +1 -0
- package/dist/HorizontalWidget-D31NRWy5.js +41 -0
- package/dist/HorizontalWidget-D31NRWy5.js.map +1 -0
- package/dist/HorizontalboxWidget-Br8dSVHD.js +38 -0
- package/dist/HorizontalboxWidget-Br8dSVHD.js.map +1 -0
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs +2 -0
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +1 -0
- package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
- package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
- package/dist/HorizontallineWidget-CbxREBYI.js +11 -0
- package/dist/HorizontallineWidget-CbxREBYI.js.map +1 -0
- package/dist/IframeWidget-CZwsTgvX.cjs +2 -0
- package/dist/IframeWidget-CZwsTgvX.cjs.map +1 -0
- package/dist/IframeWidget-Ctj8OIcG.js +90 -0
- package/dist/IframeWidget-Ctj8OIcG.js.map +1 -0
- package/dist/ImageLoader-BrNrCBvi.js +36 -0
- package/dist/ImageLoader-BrNrCBvi.js.map +1 -0
- package/dist/ImageLoader-D_Gq-KxR.cjs +2 -0
- package/dist/ImageLoader-D_Gq-KxR.cjs.map +1 -0
- package/dist/ImageviewerWidget-DwRPFSLR.cjs +2 -0
- package/dist/ImageviewerWidget-DwRPFSLR.cjs.map +1 -0
- package/dist/ImageviewerWidget-XrsqxmLo.js +37 -0
- package/dist/ImageviewerWidget-XrsqxmLo.js.map +1 -0
- package/dist/InterfacesTab-CLaicsHA.cjs +2 -0
- package/dist/InterfacesTab-CLaicsHA.cjs.map +1 -0
- package/dist/InterfacesTab-DAeNlGlB.js +93 -0
- package/dist/InterfacesTab-DAeNlGlB.js.map +1 -0
- package/dist/LabelWidget-C-s8OVmA.cjs +2 -0
- package/dist/LabelWidget-C-s8OVmA.cjs.map +1 -0
- package/dist/LabelWidget-t7I87dp7.js +48 -0
- package/dist/LabelWidget-t7I87dp7.js.map +1 -0
- package/dist/LabelledWidget-C7TDf92M.js +42 -0
- package/dist/LabelledWidget-C7TDf92M.js.map +1 -0
- package/dist/LabelledWidget-DUpHxc9z.cjs +2 -0
- package/dist/LabelledWidget-DUpHxc9z.cjs.map +1 -0
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs +2 -0
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs.map +1 -0
- package/dist/LabelprogressbarWidget-wwLURt1u.js +43 -0
- package/dist/LabelprogressbarWidget-wwLURt1u.js.map +1 -0
- package/dist/LabelsparklineWidget-B3awLUyP.js +44 -0
- package/dist/LabelsparklineWidget-B3awLUyP.js.map +1 -0
- package/dist/LabelsparklineWidget-CJRnLETe.cjs +2 -0
- package/dist/LabelsparklineWidget-CJRnLETe.cjs.map +1 -0
- package/dist/LabelvalueWidget-Zx_yHCtl.js +58 -0
- package/dist/LabelvalueWidget-Zx_yHCtl.js.map +1 -0
- package/dist/LabelvalueWidget-owiMSCYl.cjs +2 -0
- package/dist/LabelvalueWidget-owiMSCYl.cjs.map +1 -0
- package/dist/LabelvaluedescWidget-BBSBh4vI.js +59 -0
- package/dist/LabelvaluedescWidget-BBSBh4vI.js.map +1 -0
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +2 -0
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +2 -0
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js +57 -0
- package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js +47 -0
- package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +2 -0
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map +1 -0
- package/dist/LabelvaluerangebarWidget-BhYTBgDq.js +79 -0
- package/dist/LabelvaluerangebarWidget-BhYTBgDq.js.map +1 -0
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +2 -0
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs.map +1 -0
- package/dist/Layout-Bh7VzCZd.js +14 -0
- package/dist/Layout-Bh7VzCZd.js.map +1 -0
- package/dist/Layout-DRL0EeSA.cjs +2 -0
- package/dist/Layout-DRL0EeSA.cjs.map +1 -0
- package/dist/LedWidget-B8rjFe1b.cjs +2 -0
- package/dist/LedWidget-B8rjFe1b.cjs.map +1 -0
- package/dist/LedWidget-CxJjJBBS.js +71 -0
- package/dist/LedWidget-CxJjJBBS.js.map +1 -0
- package/dist/LimitsbarWidget-CYIH8fdp.cjs +2 -0
- package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +1 -0
- package/dist/LimitsbarWidget-Djui0IpK.js +69 -0
- package/dist/LimitsbarWidget-Djui0IpK.js.map +1 -0
- package/dist/LimitscolorWidget-CS0wpX9A.cjs +2 -0
- package/dist/LimitscolorWidget-CS0wpX9A.cjs.map +1 -0
- package/dist/LimitscolorWidget-DdmvKzmx.js +63 -0
- package/dist/LimitscolorWidget-DdmvKzmx.js.map +1 -0
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs +2 -0
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs.map +1 -0
- package/dist/LimitscolumnWidget-Cc19IEjq.js +66 -0
- package/dist/LimitscolumnWidget-Cc19IEjq.js.map +1 -0
- package/dist/LinegraphWidget-8td_PqgU.cjs +2 -0
- package/dist/LinegraphWidget-8td_PqgU.cjs.map +1 -0
- package/dist/LinegraphWidget-BtieJxeL.js +39 -0
- package/dist/LinegraphWidget-BtieJxeL.js.map +1 -0
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +2 -0
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs.map +1 -0
- package/dist/MatrixbycolumnsWidget-DnExVRF8.js +56 -0
- package/dist/MatrixbycolumnsWidget-DnExVRF8.js.map +1 -0
- package/dist/MicroservicesTab-IbTmbPxO.js +268 -0
- package/dist/MicroservicesTab-IbTmbPxO.js.map +1 -0
- package/dist/MicroservicesTab-uMC8NebS.cjs +2 -0
- package/dist/MicroservicesTab-uMC8NebS.cjs.map +1 -0
- package/dist/OutputDialog-B4Q0QMJ1.cjs +2 -0
- package/dist/OutputDialog-B4Q0QMJ1.cjs.map +1 -0
- package/dist/OutputDialog-Ci5OT_fH.js +245 -0
- package/dist/OutputDialog-Ci5OT_fH.js.map +1 -0
- package/dist/PackagesTab-BX8YP3H1.js +332 -0
- package/dist/PackagesTab-BX8YP3H1.js.map +1 -0
- package/dist/PackagesTab-eYbk2vw7.cjs +2 -0
- package/dist/PackagesTab-eYbk2vw7.cjs.map +1 -0
- package/dist/PluginsTab-Ck3DvEGm.cjs +6 -0
- package/dist/PluginsTab-Ck3DvEGm.cjs.map +1 -0
- package/dist/PluginsTab-Ds3jk64b.js +599 -0
- package/dist/PluginsTab-Ds3jk64b.js.map +1 -0
- package/dist/ProgressbarWidget-CUIAYySg.cjs +2 -0
- package/dist/ProgressbarWidget-CUIAYySg.cjs.map +1 -0
- package/dist/ProgressbarWidget-DIfqhHRE.js +46 -0
- package/dist/ProgressbarWidget-DIfqhHRE.js.map +1 -0
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +2 -0
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs.map +1 -0
- package/dist/RadiobuttonWidget-QzIkNP7m.js +34 -0
- package/dist/RadiobuttonWidget-QzIkNP7m.js.map +1 -0
- package/dist/RadiogroupWidget-B4lkYWaC.cjs +2 -0
- package/dist/RadiogroupWidget-B4lkYWaC.cjs.map +1 -0
- package/dist/RadiogroupWidget-Ci9sCX39.js +48 -0
- package/dist/RadiogroupWidget-Ci9sCX39.js.map +1 -0
- package/dist/RangebarWidget-CN0YuHqy.js +67 -0
- package/dist/RangebarWidget-CN0YuHqy.js.map +1 -0
- package/dist/RangebarWidget-nl0rzj93.cjs +2 -0
- package/dist/RangebarWidget-nl0rzj93.cjs.map +1 -0
- package/dist/RedisTab-CVimDkIE.js +135 -0
- package/dist/RedisTab-CVimDkIE.js.map +1 -0
- package/dist/RedisTab-DhS4GHDj.cjs +2 -0
- package/dist/RedisTab-DhS4GHDj.cjs.map +1 -0
- package/dist/RollupWidget-Bgudi_bt.cjs +2 -0
- package/dist/RollupWidget-Bgudi_bt.cjs.map +1 -0
- package/dist/RollupWidget-y4jBtJB2.js +83 -0
- package/dist/RollupWidget-y4jBtJB2.js.map +1 -0
- package/dist/RoutersTab-CzO10cVP.cjs +2 -0
- package/dist/RoutersTab-CzO10cVP.cjs.map +1 -0
- package/dist/RoutersTab-Dki_66av.js +95 -0
- package/dist/RoutersTab-Dki_66av.js.map +1 -0
- package/dist/ScriptChooser-BNm_zXxX.cjs +2 -0
- package/dist/ScriptChooser-BNm_zXxX.cjs.map +1 -0
- package/dist/ScriptChooser-l5i8c8KP.js +199 -0
- package/dist/ScriptChooser-l5i8c8KP.js.map +1 -0
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs +2 -0
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs.map +1 -0
- package/dist/ScrollwindowWidget-CBzYk4Y3.js +45 -0
- package/dist/ScrollwindowWidget-CBzYk4Y3.js.map +1 -0
- package/dist/SecretsTab-BSzFZ81X.cjs +2 -0
- package/dist/SecretsTab-BSzFZ81X.cjs.map +1 -0
- package/dist/SecretsTab-BjviaTxh.js +202 -0
- package/dist/SecretsTab-BjviaTxh.js.map +1 -0
- package/dist/SettingsTab-Bo_dYXgb.js +1382 -0
- package/dist/SettingsTab-Bo_dYXgb.js.map +1 -0
- package/dist/SettingsTab-DH8LAAoG.cjs +3 -0
- package/dist/SettingsTab-DH8LAAoG.cjs.map +1 -0
- package/dist/SignalWidget-CvZkvejy.cjs +2 -0
- package/dist/SignalWidget-CvZkvejy.cjs.map +1 -0
- package/dist/SignalWidget-DQ5Uc2uV.js +66 -0
- package/dist/SignalWidget-DQ5Uc2uV.js.map +1 -0
- package/dist/SimpleTextDialog-CheuP_ls.js +108 -0
- package/dist/SimpleTextDialog-CheuP_ls.js.map +1 -0
- package/dist/SimpleTextDialog-DmeNMMCR.cjs +2 -0
- package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +1 -0
- package/dist/SpacerWidget-6rsc_dSM.js +19 -0
- package/dist/SpacerWidget-6rsc_dSM.js.map +1 -0
- package/dist/SpacerWidget-BBJR6HBQ.cjs +2 -0
- package/dist/SpacerWidget-BBJR6HBQ.cjs.map +1 -0
- package/dist/SparklineWidget-BxBLnjAO.cjs +2 -0
- package/dist/SparklineWidget-BxBLnjAO.cjs.map +1 -0
- package/dist/SparklineWidget-CZtvu2ss.js +48 -0
- package/dist/SparklineWidget-CZtvu2ss.js.map +1 -0
- package/dist/TabbookWidget-DNALU0jl.js +66 -0
- package/dist/TabbookWidget-DNALU0jl.js.map +1 -0
- package/dist/TabbookWidget-DyFQnA10.cjs +2 -0
- package/dist/TabbookWidget-DyFQnA10.cjs.map +1 -0
- package/dist/TargetsTab-Cd8U1aN_.js +129 -0
- package/dist/TargetsTab-Cd8U1aN_.js.map +1 -0
- package/dist/TargetsTab-DMiOliqg.cjs +2 -0
- package/dist/TargetsTab-DMiOliqg.cjs.map +1 -0
- package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
- package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
- package/dist/TextBoxDialog-fHkDTtzI.js +110 -0
- package/dist/TextBoxDialog-fHkDTtzI.js.map +1 -0
- package/dist/TextboxWidget-5hqPj74D.js +93 -0
- package/dist/TextboxWidget-5hqPj74D.js.map +1 -0
- package/dist/TextboxWidget-D6lW_dsU.cjs +2 -0
- package/dist/TextboxWidget-D6lW_dsU.cjs.map +1 -0
- package/dist/TextfieldWidget-Df0ANSiU.js +37 -0
- package/dist/TextfieldWidget-Df0ANSiU.js.map +1 -0
- package/dist/TextfieldWidget-iHN7-fyF.cjs +2 -0
- package/dist/TextfieldWidget-iHN7-fyF.cjs.map +1 -0
- package/dist/TimeWidget-C3NZqTEG.cjs +2 -0
- package/dist/TimeWidget-C3NZqTEG.cjs.map +1 -0
- package/dist/TimeWidget-C6XQMUG2.js +40 -0
- package/dist/TimeWidget-C6XQMUG2.js.map +1 -0
- package/dist/TitleWidget-B9SPUlbW.js +26 -0
- package/dist/TitleWidget-B9SPUlbW.js.map +1 -0
- package/dist/TitleWidget-CWZs33c4.cjs +2 -0
- package/dist/TitleWidget-CWZs33c4.cjs.map +1 -0
- package/dist/ToolsTab-CUpUmkZL.cjs +7 -0
- package/dist/ToolsTab-CUpUmkZL.cjs.map +1 -0
- package/dist/ToolsTab-Cgpb2nAW.js +1521 -0
- package/dist/ToolsTab-Cgpb2nAW.js.map +1 -0
- package/dist/TopBar-DuXL27iD.cjs +2 -0
- package/dist/TopBar-DuXL27iD.cjs.map +1 -0
- package/dist/TopBar-F1jHuFan.js +248 -0
- package/dist/TopBar-F1jHuFan.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js +95 -0
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +2 -0
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +1417 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +26941 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +1 -0
- package/dist/VWidget-C2x_zSC2.cjs +2 -0
- package/dist/VWidget-C2x_zSC2.cjs.map +1 -0
- package/dist/VWidget-C4spAawK.js +323 -0
- package/dist/VWidget-C4spAawK.js.map +1 -0
- package/dist/ValueWidget-D4RrYVEK.js +116 -0
- package/dist/ValueWidget-D4RrYVEK.js.map +1 -0
- package/dist/ValueWidget-Do3Yn47P.cjs +2 -0
- package/dist/ValueWidget-Do3Yn47P.cjs.map +1 -0
- package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js +41 -0
- package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js.map +1 -0
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +2 -0
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +2 -0
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-DHKIL7sf.js +40 -0
- package/dist/ValuelimitscolumnWidget-DHKIL7sf.js.map +1 -0
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs +2 -0
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs.map +1 -0
- package/dist/ValuerangebarWidget-CecQRIok.js +65 -0
- package/dist/ValuerangebarWidget-CecQRIok.js.map +1 -0
- package/dist/VerticalWidget--8UErB4q.cjs +2 -0
- package/dist/VerticalWidget--8UErB4q.cjs.map +1 -0
- package/dist/VerticalWidget-D8jUFxjS.js +40 -0
- package/dist/VerticalWidget-D8jUFxjS.js.map +1 -0
- package/dist/VerticalboxWidget-B4eGUSYH.js +37 -0
- package/dist/VerticalboxWidget-B4eGUSYH.js.map +1 -0
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs +2 -0
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +1 -0
- package/dist/Widget-DNf52jRQ.cjs +2 -0
- package/dist/Widget-DNf52jRQ.cjs.map +1 -0
- package/dist/Widget-fRCERxGf.js +197 -0
- package/dist/Widget-fRCERxGf.js.map +1 -0
- package/dist/addMonths-BtG7uZLJ.js +19 -0
- package/dist/addMonths-BtG7uZLJ.js.map +1 -0
- package/dist/addMonths-n1tnl3ab.cjs +2 -0
- package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
- package/dist/components.cjs +7 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.js +2971 -0
- package/dist/components.js.map +1 -0
- package/dist/fileIcon-BduOQcTc.cjs +2 -0
- package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
- package/dist/fileIcon-DqRHb1_Z.js +22 -0
- package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
- package/dist/format-B22VpiOS.cjs +2 -0
- package/dist/format-B22VpiOS.cjs.map +1 -0
- package/dist/format-CVeawcIv.js +1295 -0
- package/dist/format-CVeawcIv.js.map +1 -0
- package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
- package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
- package/dist/icons/status-dark.png +0 -0
- package/dist/icons/status-dark.xcf +0 -0
- package/dist/icons/status-light.png +0 -0
- package/dist/icons.cjs +2 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.js +157 -0
- package/dist/icons.js.map +1 -0
- package/dist/index-Bz_jHTkl.cjs +7 -0
- package/dist/index-Bz_jHTkl.cjs.map +1 -0
- package/dist/index-CFQnWdPA.js +1705 -0
- package/dist/index-CFQnWdPA.js.map +1 -0
- package/dist/parse-DnkEsW-3.js +1603 -0
- package/dist/parse-DnkEsW-3.js.map +1 -0
- package/dist/parse-DwfgQboe.cjs +2 -0
- package/dist/parse-DwfgQboe.cjs.map +1 -0
- package/dist/plugins.cjs +9 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.js +772 -0
- package/dist/plugins.js.map +1 -0
- package/dist/timeFilters-8SaYvcH0.cjs +2 -0
- package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
- package/dist/timeFilters-CRYpYDdf.js +622 -0
- package/dist/timeFilters-CRYpYDdf.js.map +1 -0
- package/dist/tools/admin.cjs +13 -0
- package/dist/tools/admin.cjs.map +1 -0
- package/dist/tools/admin.js +1944 -0
- package/dist/tools/admin.js.map +1 -0
- package/dist/tools/base.cjs +2 -0
- package/dist/tools/base.cjs.map +1 -0
- package/dist/tools/base.js +1683 -0
- package/dist/tools/base.js.map +1 -0
- package/dist/tools/calendar.cjs +2 -0
- package/dist/tools/calendar.cjs.map +1 -0
- package/dist/tools/calendar.js +1586 -0
- package/dist/tools/calendar.js.map +1 -0
- package/dist/util.cjs +2 -0
- package/dist/util.cjs.map +1 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/dist/vue-common.css +1 -0
- package/dist/widgets.cjs +2 -0
- package/dist/widgets.cjs.map +1 -0
- package/dist/widgets.js +132 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +10 -11
package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs
ADDED
|
@@ -0,0 +1,1417 @@
|
|
|
1
|
+
"use strict";const we=require("vue"),fx=require("./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs"),px=require("./format-B22VpiOS.cjs");var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var cc={exports:{}},zd;function gx(){return zd||(zd=1,function(c,u){(function(){var t="ace",s=function(){return this}();!s&&typeof window<"u"&&(s=window);var A=function(o,a,i){if(typeof o!="string"){A.original?A.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(i=a),A.modules[o]||(A.payloads[o]=i,A.modules[o]=null)};A.modules={},A.payloads={};var w=function(o,a,i){if(typeof a=="string"){var r=f(o,a);if(r!=null)return i&&i(),r}else if(Object.prototype.toString.call(a)==="[object Array]"){for(var n=[],l=0,d=a.length;l<d;++l){var g=f(o,a[l]);if(g==null&&y.original)return;n.push(g)}return i&&i.apply(null,n)||!0}},y=function(o,a){var i=w("",o,a);return i==null&&y.original?y.original.apply(this,arguments):i},S=function(o,a){if(a.indexOf("!")!==-1){var i=a.split("!");return S(o,i[0])+"!"+S(o,i[1])}if(a.charAt(0)=="."){var r=o.split("/").slice(0,-1).join("/");for(a=r+"/"+a;a.indexOf(".")!==-1&&n!=a;){var n=a;a=a.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},f=function(o,a){a=S(o,a);var i=A.modules[a];if(!i){if(i=A.payloads[a],typeof i=="function"){var r={},n={id:a,uri:"",exports:r,packaged:!0},l=function(g,b){return w(a,g,b)},d=i(l,r,n);r=d||n.exports,A.modules[a]=r,delete A.payloads[a]}i=A.modules[a]=r||i}return i};function p(o){var a=s;s[o]||(s[o]={}),a=s[o],(!a.define||!a.define.packaged)&&(A.original=a.define,a.define=A,a.define.packaged=!0),(!a.require||!a.require.packaged)&&(y.original=a.require,a.require=y,a.require.packaged=!0)}p(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,s,A){function w(y,S,f){Object.defineProperty(y,S,{value:f,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||w(String.prototype,"startsWith",function(y,S){return S=S||0,this.lastIndexOf(y,S)===S}),String.prototype.endsWith||w(String.prototype,"endsWith",function(y,S){var f=this;(S===void 0||S>f.length)&&(S=f.length),S-=y.length;var p=f.indexOf(y,S);return p!==-1&&p===S}),String.prototype.repeat||w(String.prototype,"repeat",function(y){for(var S="",f=this;y>0;)y&1&&(S+=f),(y>>=1)&&(f+=f);return S}),String.prototype.includes||w(String.prototype,"includes",function(y,S){return this.indexOf(y,S)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var S=Object(y),f=1;f<arguments.length;f++){var p=arguments[f];p!=null&&Object.keys(p).forEach(function(o){S[o]=p[o]})}return S}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(S){return y[S]})}),Array.prototype.find||w(Array.prototype,"find",function(y){for(var S=this.length,f=arguments[1],p=0;p<S;p++){var o=this[p];if(y.call(f,o,p,this))return o}}),Array.prototype.findIndex||w(Array.prototype,"findIndex",function(y){for(var S=this.length,f=arguments[1],p=0;p<S;p++){var o=this[p];if(y.call(f,o,p,this))return p}}),Array.prototype.includes||w(Array.prototype,"includes",function(y,S){return this.indexOf(y,S)!=-1}),Array.prototype.fill||w(Array.prototype,"fill",function(y){for(var S=this,f=S.length>>>0,p=arguments[1],o=p>>0,a=o<0?Math.max(f+o,0):Math.min(o,f),i=arguments[2],r=i===void 0?f:i>>0,n=r<0?Math.max(f+r,0):Math.min(r,f);a<n;)S[a]=y,a++;return S}),Array.of||w(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,s,A){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,s,A){s.deepCopy=function w(y){if(typeof y!="object"||!y)return y;var S;if(Array.isArray(y)){S=[];for(var f=0;f<y.length;f++)S[f]=w(y[f]);return S}if(Object.prototype.toString.call(y)!=="[object Object]")return y;S={};for(var f in y)S[f]=w(y[f]);return S}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,s,A){s.last=function(S){return S[S.length-1]},s.stringReverse=function(S){return S.split("").reverse().join("")},s.stringRepeat=function(S,f){for(var p="";f>0;)f&1&&(p+=S),(f>>=1)&&(S+=S);return p};var w=/^\s\s*/,y=/\s\s*$/;s.stringTrimLeft=function(S){return S.replace(w,"")},s.stringTrimRight=function(S){return S.replace(y,"")},s.copyObject=function(S){var f={};for(var p in S)f[p]=S[p];return f},s.copyArray=function(S){for(var f=[],p=0,o=S.length;p<o;p++)S[p]&&typeof S[p]=="object"?f[p]=this.copyObject(S[p]):f[p]=S[p];return f},s.deepCopy=t("./deep_copy").deepCopy,s.arrayToMap=function(S){for(var f={},p=0;p<S.length;p++)f[S[p]]=1;return f},s.createMap=function(S){var f=Object.create(null);for(var p in S)f[p]=S[p];return f},s.arrayRemove=function(S,f){for(var p=0;p<=S.length;p++)f===S[p]&&S.splice(p,1)},s.escapeRegExp=function(S){return S.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},s.escapeHTML=function(S){return(""+S).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},s.getMatchOffsets=function(S,f){var p=[];return S.replace(f,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},s.deferredCall=function(S){var f=null,p=function(){f=null,S()},o=function(a){return o.cancel(),f=setTimeout(p,a||0),o};return o.schedule=o,o.call=function(){return this.cancel(),S(),o},o.cancel=function(){return clearTimeout(f),f=null,o},o.isPending=function(){return f},o},s.delayedCall=function(S,f){var p=null,o=function(){p=null,S()},a=function(i){p==null&&(p=setTimeout(o,i||f))};return a.delay=function(i){p&&clearTimeout(p),p=setTimeout(o,i||f)},a.schedule=a,a.call=function(){this.cancel(),S()},a.cancel=function(){p&&clearTimeout(p),p=null},a.isPending=function(){return p},a},s.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},s.skipEmptyMatch=function(S,f,p){return p&&S.codePointAt(f)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,s,A){s.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},s.getOS=function(){return s.isMac?s.OS.MAC:s.isLinux?s.OS.LINUX:s.OS.WINDOWS};var w=typeof navigator=="object"?navigator:{},y=(/mac|win|linux/i.exec(w.platform)||["other"])[0].toLowerCase(),S=w.userAgent||"",f=w.appName||"";s.isWin=y=="win",s.isMac=y=="mac",s.isLinux=y=="linux",s.isIE=f=="Microsoft Internet Explorer"||f.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]),s.isOldIE=s.isIE&&s.isIE<9,s.isGecko=s.isMozilla=S.match(/ Gecko\/\d+/),s.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",s.isWebKit=parseFloat(S.split("WebKit/")[1])||void 0,s.isChrome=parseFloat(S.split(" Chrome/")[1])||void 0,s.isSafari=parseFloat(S.split(" Safari/")[1])&&!s.isChrome||void 0,s.isEdge=parseFloat(S.split(" Edge/")[1])||void 0,s.isAIR=S.indexOf("AdobeAIR")>=0,s.isAndroid=S.indexOf("Android")>=0,s.isChromeOS=S.indexOf(" CrOS ")>=0,s.isIOS=/iPad|iPhone|iPod/.test(S)&&!window.MSStream,s.isIOS&&(s.isMac=!0),s.isMobile=s.isIOS||s.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,s,A){var w=t("./useragent"),y="http://www.w3.org/1999/xhtml";s.buildDom=function i(r,n,l){if(typeof r=="string"&&r){var d=document.createTextNode(r);return n&&n.appendChild(d),d}if(!Array.isArray(r))return r&&r.appendChild&&n&&n.appendChild(r),r;if(typeof r[0]!="string"||!r[0]){for(var g=[],b=0;b<r.length;b++){var R=i(r[b],n,l);R&&g.push(R)}return g}var $=document.createElement(r[0]),_=r[1],v=1;_&&typeof _=="object"&&!Array.isArray(_)&&(v=2);for(var b=v;b<r.length;b++)i(r[b],$,l);return v==2&&Object.keys(_).forEach(function(T){var E=_[T];T==="class"?$.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||T=="value"||T[0]=="$"?$[T]=E:T==="ref"?l&&(l[E]=$):T==="style"?typeof E=="string"&&($.style.cssText=E):E!=null&&$.setAttribute(T,E)}),n&&n.appendChild($),$},s.getDocumentHead=function(i){return i||(i=document),i.head||i.getElementsByTagName("head")[0]||i.documentElement},s.createElement=function(i,r){return document.createElementNS?document.createElementNS(r||y,i):document.createElement(i)},s.removeChildren=function(i){i.innerHTML=""},s.createTextNode=function(i,r){var n=r?r.ownerDocument:document;return n.createTextNode(i)},s.createFragment=function(i){var r=i?i.ownerDocument:document;return r.createDocumentFragment()},s.hasCssClass=function(i,r){var n=(i.className+"").split(/\s+/g);return n.indexOf(r)!==-1},s.addCssClass=function(i,r){s.hasCssClass(i,r)||(i.className+=" "+r)},s.removeCssClass=function(i,r){for(var n=i.className.split(/\s+/g);;){var l=n.indexOf(r);if(l==-1)break;n.splice(l,1)}i.className=n.join(" ")},s.toggleCssClass=function(i,r){for(var n=i.className.split(/\s+/g),l=!0;;){var d=n.indexOf(r);if(d==-1)break;l=!1,n.splice(d,1)}return l&&n.push(r),i.className=n.join(" "),l},s.setCssClass=function(i,r,n){n?s.addCssClass(i,r):s.removeCssClass(i,r)},s.hasCssString=function(i,r){var n=0,l;if(r=r||document,l=r.querySelectorAll("style")){for(;n<l.length;)if(l[n++].id===i)return!0}},s.removeElementById=function(i,r){r=r||document,r.getElementById(i)&&r.getElementById(i).remove()};var S,f=[];s.useStrictCSP=function(i){S=i,i==!1?p():f||(f=[])};function p(){var i=f;f=null,i&&i.forEach(function(r){o(r[0],r[1])})}function o(i,r,n){if(!(typeof document>"u")){if(f){if(n)p();else if(n===!1)return f.push([i,r])}if(!S){var l=n;!n||!n.getRootNode?l=document:(l=n.getRootNode(),(!l||l==n)&&(l=document));var d=l.ownerDocument||l;if(r&&s.hasCssString(r,l))return null;r&&(i+=`
|
|
2
|
+
/*# sourceURL=ace/css/`+r+" */");var g=s.createElement("style");g.appendChild(d.createTextNode(i)),r&&(g.id=r),l==d&&(l=s.getDocumentHead(d)),l.insertBefore(g,l.firstChild)}}}if(s.importCssString=o,s.importCssStylsheet=function(i,r){s.buildDom(["link",{rel:"stylesheet",href:i}],s.getDocumentHead(r))},s.scrollbarWidth=function(i){var r=s.createElement("ace_inner");r.style.width="100%",r.style.minWidth="0px",r.style.height="200px",r.style.display="block";var n=s.createElement("ace_outer"),l=n.style;l.position="absolute",l.left="-10000px",l.overflow="hidden",l.width="200px",l.minWidth="0px",l.height="150px",l.display="block",n.appendChild(r);var d=i&&i.documentElement||document&&document.documentElement;if(!d)return 0;d.appendChild(n);var g=r.offsetWidth;l.overflow="scroll";var b=r.offsetWidth;return g===b&&(b=n.clientWidth),d.removeChild(n),g-b},s.computedStyle=function(i,r){return window.getComputedStyle(i,"")||{}},s.setStyle=function(i,r,n){i[r]!==n&&(i[r]=n)},s.HAS_CSS_ANIMATION=!1,s.HAS_CSS_TRANSFORMS=!1,s.HI_DPI=w.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,w.isChromeOS&&(s.HI_DPI=!1),typeof document<"u"){var a=document.createElement("div");s.HI_DPI&&a.style.transform!==void 0&&(s.HAS_CSS_TRANSFORMS=!0),!w.isEdge&&typeof a.style.animationName<"u"&&(s.HAS_CSS_ANIMATION=!0),a=null}s.HAS_CSS_TRANSFORMS?s.translate=function(i,r,n){i.style.transform="translate("+Math.round(r)+"px, "+Math.round(n)+"px)"}:s.translate=function(i,r,n){i.style.top=Math.round(n)+"px",i.style.left=Math.round(r)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,s,A){/*
|
|
3
|
+
* based on code from:
|
|
4
|
+
*
|
|
5
|
+
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
|
6
|
+
* Available via the MIT or new BSD license.
|
|
7
|
+
* see: http://github.com/jrburke/requirejs for details
|
|
8
|
+
*/var w=t("./dom");s.get=function(y,S){var f=new XMLHttpRequest;f.open("GET",y,!0),f.onreadystatechange=function(){f.readyState===4&&S(f.responseText)},f.send(null)},s.loadScript=function(y,S){var f=w.getDocumentHead(),p=document.createElement("script");p.src=y,f.appendChild(p),p.onload=p.onreadystatechange=function(o,a){(a||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,a||S())}},s.qualifyURL=function(y){var S=document.createElement("a");return S.href=y,S.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,s,A){s.inherits=function(w,y){w.super_=y,w.prototype=Object.create(y.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}})},s.mixin=function(w,y){for(var S in y)w[S]=y[S];return w},s.implement=function(w,y){s.mixin(w,y)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,s,A){var w={},y=function(){this.propagationStopped=!0},S=function(){this.defaultPrevented=!0};w._emit=w._dispatchEvent=function(f,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[f]||[],a=this._defaultHandlers[f];if(!(!o.length&&!a)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=f),p.stopPropagation||(p.stopPropagation=y),p.preventDefault||(p.preventDefault=S),o=o.slice();for(var i=0;i<o.length&&(o[i](p,this),!p.propagationStopped);i++);if(a&&!p.defaultPrevented)return a(p,this)}},w._signal=function(f,p){var o=(this._eventRegistry||{})[f];if(o){o=o.slice();for(var a=0;a<o.length;a++)o[a](p,this)}},w.once=function(f,p){var o=this;if(this.on(f,function a(){o.off(f,a),p.apply(null,arguments)}),!p)return new Promise(function(a){p=a})},w.setDefaultHandler=function(f,p){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[f]){var a=o[f],i=o._disabled_[f];i||(o._disabled_[f]=i=[]),i.push(a);var r=i.indexOf(p);r!=-1&&i.splice(r,1)}o[f]=p},w.removeDefaultHandler=function(f,p){var o=this._defaultHandlers;if(o){var a=o._disabled_[f];if(o[f]==p)a&&this.setDefaultHandler(f,a.pop());else if(a){var i=a.indexOf(p);i!=-1&&a.splice(i,1)}}},w.on=w.addEventListener=function(f,p,o){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[f];return a||(a=this._eventRegistry[f]=[]),a.indexOf(p)==-1&&a[o?"unshift":"push"](p),p},w.off=w.removeListener=w.removeEventListener=function(f,p){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[f];if(o){var a=o.indexOf(p);a!==-1&&o.splice(a,1)}},w.removeAllListeners=function(f){f||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[f]=void 0),this._defaultHandlers&&(this._defaultHandlers[f]=void 0)},s.EventEmitter=w}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,s,A){s.reportError=function(y,S){var f=new Error(y);f.data=S,typeof console=="object"&&console.error&&console.error(f),setTimeout(function(){throw f})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(t,s,A){var w={"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"};s.defaultEnglishMessages=w}),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(t,s,A){"no use strict";var w=t("./oop"),y=t("./event_emitter").EventEmitter,S=t("./report_error").reportError,f=t("./default_english_messages").defaultEnglishMessages,p={setOptions:function(n){Object.keys(n).forEach(function(l){this.setOption(l,n[l])},this)},getOptions:function(n){var l={};if(n)Array.isArray(n)||(l=n,n=Object.keys(l));else{var d=this.$options;n=Object.keys(d).filter(function(g){return!d[g].hidden})}return n.forEach(function(g){l[g]=this.getOption(g)},this),l},setOption:function(n,l){if(this["$"+n]!==l){var d=this.$options[n];if(!d)return o('misspelled option "'+n+'"');if(d.forwardTo)return this[d.forwardTo]&&this[d.forwardTo].setOption(n,l);d.handlesSet||(this["$"+n]=l),d&&d.set&&d.set.call(this,l)}},getOption:function(n){var l=this.$options[n];return l?l.forwardTo?this[l.forwardTo]&&this[l.forwardTo].getOption(n):l&&l.get?l.get.call(this):this["$"+n]:o('misspelled option "'+n+'"')}};function o(n){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var a,i,r=function(){function n(){this.$defaultOptions={},a=f,i="dollarSigns"}return n.prototype.defineOptions=function(l,d,g){return l.$options||(this.$defaultOptions[d]=l.$options={}),Object.keys(g).forEach(function(b){var R=g[b];typeof R=="string"&&(R={forwardTo:R}),R.name||(R.name=b),l.$options[R.name]=R,"initialValue"in R&&(l["$"+R.name]=R.initialValue)}),w.implement(l,p),this},n.prototype.resetOptions=function(l){Object.keys(l.$options).forEach(function(d){var g=l.$options[d];"value"in g&&l.setOption(d,g.value)})},n.prototype.setDefaultValue=function(l,d,g){if(!l){for(l in this.$defaultOptions)if(this.$defaultOptions[l][d])break;if(!this.$defaultOptions[l][d])return!1}var b=this.$defaultOptions[l]||(this.$defaultOptions[l]={});b[d]&&(b.forwardTo?this.setDefaultValue(b.forwardTo,d,g):b[d].value=g)},n.prototype.setDefaultValues=function(l,d){Object.keys(d).forEach(function(g){this.setDefaultValue(l,g,d[g])},this)},n.prototype.setMessages=function(l,d){a=l,d&&d.placeholders&&(i=d.placeholders)},n.prototype.nls=function(l,d,g){a[l]||(o("No message found for the key '"+l+"' in messages with id "+a.$id+", trying to find a translation for the default string '"+d+"'."),a[d]||o("No message found for the default string '"+d+"' in the provided messages. Falling back to the default English message."));var b=a[l]||a[d]||d;return g&&(i==="dollarSigns"&&(b=b.replace(/\$(\$|[\d]+)/g,function(R,$){return $=="$"?"$":g[$]})),i==="curlyBrackets"&&(b=b.replace(/\{([^\}]+)\}/g,function(R,$){return g[$]}))),b},n}();r.prototype.warn=o,r.prototype.reportError=S,w.implement(r.prototype,y),s.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(t,s,A){A.exports=`.ace-tm .ace_gutter {
|
|
9
|
+
background: #f0f0f0;
|
|
10
|
+
color: #333;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ace-tm .ace_print-margin {
|
|
14
|
+
width: 1px;
|
|
15
|
+
background: #e8e8e8;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ace-tm .ace_fold {
|
|
19
|
+
background-color: #6B72E6;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ace-tm {
|
|
23
|
+
background-color: #FFFFFF;
|
|
24
|
+
color: black;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ace-tm .ace_cursor {
|
|
28
|
+
color: black;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ace-tm .ace_invisible {
|
|
32
|
+
color: rgb(191, 191, 191);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ace-tm .ace_storage,
|
|
36
|
+
.ace-tm .ace_keyword {
|
|
37
|
+
color: blue;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ace-tm .ace_constant {
|
|
41
|
+
color: rgb(197, 6, 11);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ace-tm .ace_constant.ace_buildin {
|
|
45
|
+
color: rgb(88, 72, 246);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ace-tm .ace_constant.ace_language {
|
|
49
|
+
color: rgb(88, 92, 246);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ace-tm .ace_constant.ace_library {
|
|
53
|
+
color: rgb(6, 150, 14);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ace-tm .ace_invalid {
|
|
57
|
+
background-color: rgba(255, 0, 0, 0.1);
|
|
58
|
+
color: red;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ace-tm .ace_support.ace_function {
|
|
62
|
+
color: rgb(60, 76, 114);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ace-tm .ace_support.ace_constant {
|
|
66
|
+
color: rgb(6, 150, 14);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ace-tm .ace_support.ace_type,
|
|
70
|
+
.ace-tm .ace_support.ace_class {
|
|
71
|
+
color: rgb(109, 121, 222);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ace-tm .ace_keyword.ace_operator {
|
|
75
|
+
color: rgb(104, 118, 135);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ace-tm .ace_string {
|
|
79
|
+
color: rgb(3, 106, 7);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ace-tm .ace_comment {
|
|
83
|
+
color: rgb(76, 136, 107);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ace-tm .ace_comment.ace_doc {
|
|
87
|
+
color: rgb(0, 102, 255);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
91
|
+
color: rgb(128, 159, 191);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ace-tm .ace_constant.ace_numeric {
|
|
95
|
+
color: rgb(0, 0, 205);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ace-tm .ace_variable {
|
|
99
|
+
color: rgb(49, 132, 149);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ace-tm .ace_xml-pe {
|
|
103
|
+
color: rgb(104, 104, 91);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
|
107
|
+
color: #0000A2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
.ace-tm .ace_heading {
|
|
112
|
+
color: rgb(12, 7, 255);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ace-tm .ace_list {
|
|
116
|
+
color:rgb(185, 6, 144);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ace-tm .ace_meta.ace_tag {
|
|
120
|
+
color:rgb(0, 22, 142);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ace-tm .ace_string.ace_regex {
|
|
124
|
+
color: rgb(255, 0, 0)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
|
128
|
+
background: rgb(181, 213, 255);
|
|
129
|
+
}
|
|
130
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
131
|
+
box-shadow: 0 0 3px 0px white;
|
|
132
|
+
}
|
|
133
|
+
.ace-tm .ace_marker-layer .ace_step {
|
|
134
|
+
background: rgb(252, 255, 0);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
|
138
|
+
background: rgb(164, 229, 101);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
|
142
|
+
margin: -1px 0 0 -1px;
|
|
143
|
+
border: 1px solid rgb(192, 192, 192);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
|
147
|
+
background: rgba(0, 0, 0, 0.07);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ace-tm .ace_gutter-active-line {
|
|
151
|
+
background-color : #dcdcdc;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
155
|
+
background: rgb(250, 250, 255);
|
|
156
|
+
border: 1px solid rgb(200, 200, 250);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ace-tm .ace_indent-guide {
|
|
160
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ace-tm .ace_indent-guide-active {
|
|
164
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
165
|
+
}
|
|
166
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,s,A){s.isDark=!1,s.cssClass="ace-tm",s.cssText=t("./textmate-css"),s.$id="ace/theme/textmate";var w=t("../lib/dom");w.importCssString(s.cssText,s.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(t,s,A){"no use strict";var w=t("./lib/lang"),y=t("./lib/net"),S=t("./lib/dom"),f=t("./lib/app_config").AppConfig;A.exports=s=new f;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};s.get=function(r){if(!p.hasOwnProperty(r))throw new Error("Unknown config key: "+r);return p[r]},s.set=function(r,n){if(p.hasOwnProperty(r))p[r]=n;else if(this.setDefaultValue("",r,n)==!1)throw new Error("Unknown config key: "+r);r=="useStrictCSP"&&S.useStrictCSP(n)},s.all=function(){return w.copyObject(p)},s.$modes={},s.moduleUrl=function(r,n){if(p.$moduleUrls[r])return p.$moduleUrls[r];var l=r.split("/");n=n||l[l.length-2]||"";var d=n=="snippets"?"/":"-",g=l[l.length-1];if(n=="worker"&&d=="-"){var b=new RegExp("^"+n+"[\\-_]|[\\-_]"+n+"$","g");g=g.replace(b,"")}(!g||g==n)&&l.length>1&&(g=l[l.length-2]);var R=p[n+"Path"];return R==null?R=p.basePath:d=="/"&&(n=d=""),R&&R.slice(-1)!="/"&&(R+="/"),R+n+d+g+this.get("suffix")},s.setModuleUrl=function(r,n){return p.$moduleUrls[r]=n};var o=function(r,n){if(r==="ace/theme/textmate"||r==="./theme/textmate")return n(null,t("./theme/textmate"));if(a)return a(r,n);console.error("loader is not configured")},a;s.setLoader=function(r){a=r},s.dynamicModules=Object.create(null),s.$loading={},s.$loaded={},s.loadModule=function(r,n){var l;if(Array.isArray(r))var d=r[0],g=r[1];else if(typeof r=="string")var g=r;var b=function(R){if(R&&!s.$loading[g])return n&&n(R);if(s.$loading[g]||(s.$loading[g]=[]),s.$loading[g].push(n),!(s.$loading[g].length>1)){var $=function(){o(g,function(_,v){v&&(s.$loaded[g]=v),s._emit("load.module",{name:g,module:v});var T=s.$loading[g];s.$loading[g]=null,T.forEach(function(E){E&&E(v)})})};if(!s.get("packaged"))return $();y.loadScript(s.moduleUrl(g,d),$),i()}};if(s.dynamicModules[g])s.dynamicModules[g]().then(function(R){R.default?b(R.default):b(R)});else{try{l=this.$require(g)}catch{}b(l||s.$loaded[g])}},s.$require=function(r){if(typeof A.require=="function"){var n="require";return A[n](r)}},s.setModuleLoader=function(r,n){s.dynamicModules[r]=n};var i=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$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(){})};s.version="1.38.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,s,A){t("./lib/fixoldbrowsers");var w=t("./config");w.setLoader(function(p,o){t([p],function(a){o(null,a)})});var y=function(){return this||typeof window<"u"&&window}();A.exports=function(p){w.init=S,w.$require=t,p.require=t},S(!0);function S(p){if(!(!y||!y.document)){w.set("packaged",p||t.packaged||A.packaged||y.define&&(void 0).packaged);var o={},a="",i=document.currentScript||document._currentScript,r=i&&i.ownerDocument||document;i&&i.src&&(a=i.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var n=r.getElementsByTagName("script"),l=0;l<n.length;l++){var d=n[l],g=d.src||d.getAttribute("src");if(g){for(var b=d.attributes,R=0,$=b.length;R<$;R++){var _=b[R];_.name.indexOf("data-ace-")===0&&(o[f(_.name.replace(/^data-ace-/,""))]=_.value)}var v=g.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);v&&(a=v[1])}}a&&(o.base=o.base||a,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base;for(var T in o)typeof o[T]<"u"&&w.set(T,o[T])}}function f(p){return p.replace(/-(.)/g,function(o,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,s,A){var w=function(){function y(S,f,p,o){this.start={row:S,column:f},this.end={row:p,column:o}}return y.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},y.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(S,f){return this.compare(S,f)==0},y.prototype.compareRange=function(S){var f,p=S.end,o=S.start;return f=this.compare(p.row,p.column),f==1?(f=this.compare(o.row,o.column),f==1?2:f==0?1:0):f==-1?-2:(f=this.compare(o.row,o.column),f==-1?-1:f==1?42:0)},y.prototype.comparePoint=function(S){return this.compare(S.row,S.column)},y.prototype.containsRange=function(S){return this.comparePoint(S.start)==0&&this.comparePoint(S.end)==0},y.prototype.intersects=function(S){var f=this.compareRange(S);return f==-1||f==0||f==1},y.prototype.isEnd=function(S,f){return this.end.row==S&&this.end.column==f},y.prototype.isStart=function(S,f){return this.start.row==S&&this.start.column==f},y.prototype.setStart=function(S,f){typeof S=="object"?(this.start.column=S.column,this.start.row=S.row):(this.start.row=S,this.start.column=f)},y.prototype.setEnd=function(S,f){typeof S=="object"?(this.end.column=S.column,this.end.row=S.row):(this.end.row=S,this.end.column=f)},y.prototype.inside=function(S,f){return this.compare(S,f)==0?!(this.isEnd(S,f)||this.isStart(S,f)):!1},y.prototype.insideStart=function(S,f){return this.compare(S,f)==0?!this.isEnd(S,f):!1},y.prototype.insideEnd=function(S,f){return this.compare(S,f)==0?!this.isStart(S,f):!1},y.prototype.compare=function(S,f){return!this.isMultiLine()&&S===this.start.row?f<this.start.column?-1:f>this.end.column?1:0:S<this.start.row?-1:S>this.end.row?1:this.start.row===S?f>=this.start.column?0:-1:this.end.row===S?f<=this.end.column?0:1:0},y.prototype.compareStart=function(S,f){return this.start.row==S&&this.start.column==f?-1:this.compare(S,f)},y.prototype.compareEnd=function(S,f){return this.end.row==S&&this.end.column==f?1:this.compare(S,f)},y.prototype.compareInside=function(S,f){return this.end.row==S&&this.end.column==f?1:this.start.row==S&&this.start.column==f?-1:this.compare(S,f)},y.prototype.clipRows=function(S,f){if(this.end.row>f)var p={row:f+1,column:0};else if(this.end.row<S)var p={row:S,column:0};if(this.start.row>f)var o={row:f+1,column:0};else if(this.start.row<S)var o={row:S,column:0};return y.fromPoints(o||this.start,p||this.end)},y.prototype.extend=function(S,f){var p=this.compare(S,f);if(p==0)return this;if(p==-1)var o={row:S,column:f};else var a={row:S,column:f};return y.fromPoints(o||this.start,a||this.end)},y.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},y.prototype.isMultiLine=function(){return this.start.row!==this.end.row},y.prototype.clone=function(){return y.fromPoints(this.start,this.end)},y.prototype.collapseRows=function(){return this.end.column==0?new y(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new y(this.start.row,0,this.end.row,0)},y.prototype.toScreenRange=function(S){var f=S.documentToScreenPosition(this.start),p=S.documentToScreenPosition(this.end);return new y(f.row,f.column,p.row,p.column)},y.prototype.moveBy=function(S,f){this.start.row+=S,this.start.column+=f,this.end.row+=S,this.end.column+=f},y}();w.fromPoints=function(y,S){return new w(y.row,y.column,S.row,S.column)},w.comparePoints=function(y,S){return y.row-S.row||y.column-S.column},s.Range=w}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,s,A){for(var w=t("./oop"),y={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},f=0;f<10;f++)S["Digit"+f]=48+f,S["Numpad"+f]=96+f,y.PRINTABLE_KEYS[48+f]=""+f,y.FUNCTION_KEYS[96+f]="Numpad"+f;for(var f=65;f<91;f++){var p=String.fromCharCode(f+32);S["Key"+p.toUpperCase()]=f,y.PRINTABLE_KEYS[f]=p}for(var f=1;f<13;f++)S["F"+f]=111+f,y.FUNCTION_KEYS[111+f]="F"+f;var o={Shift:16,Control:17,Alt:18,Meta:224};for(var a in o)S[a]=S[a+"Left"]=S[a+"Right"]=o[a];s.$codeToKeyCode=S,y.PRINTABLE_KEYS[173]="-";for(var i in y.FUNCTION_KEYS){var r=y.FUNCTION_KEYS[i].toLowerCase();y[r]=parseInt(i,10)}for(var i in y.PRINTABLE_KEYS){var r=y.PRINTABLE_KEYS[i].toLowerCase();y[r]=parseInt(i,10)}w.mixin(y,y.MODIFIER_KEYS),w.mixin(y,y.PRINTABLE_KEYS),w.mixin(y,y.FUNCTION_KEYS),y.enter=y.return,y.escape=y.esc,y.del=y.delete,function(){for(var n=["cmd","ctrl","alt","shift"],l=Math.pow(2,n.length);l--;)y.KEY_MODS[l]=n.filter(function(d){return l&y.KEY_MODS[d]}).join("-")+"-"}(),y.KEY_MODS[0]="",y.KEY_MODS[-1]="input-",w.mixin(s,y),s.default=s,s.keyCodeToString=function(n){var l=y[n];return typeof l!="string"&&(l=String.fromCharCode(n)),l.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,s,A){var w=t("./keys"),y=t("./useragent"),S=null,f=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function a(){return p==null&&o(),p}function i(R,$,_){this.elem=R,this.type=$,this.callback=_}i.prototype.destroy=function(){n(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var r=s.addListener=function(R,$,_,v){R.addEventListener($,_,a()),v&&v.$toDestroy.push(new i(R,$,_))},n=s.removeListener=function(R,$,_){R.removeEventListener($,_,a())};s.stopEvent=function(R){return s.stopPropagation(R),s.preventDefault(R),!1},s.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},s.preventDefault=function(R){R.preventDefault&&R.preventDefault()},s.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||y.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},s.capture=function(R,$,_){var v=R&&R.ownerDocument||document;function T(E){$&&$(E),_&&_(E),n(v,"mousemove",$),n(v,"mouseup",T),n(v,"dragstart",T)}return r(v,"mousemove",$),r(v,"mouseup",T),r(v,"dragstart",T),T},s.addMouseWheelListener=function(R,$,_){r(R,"wheel",function(v){var T=.15,E=v.deltaX||0,I=v.deltaY||0;switch(v.deltaMode){case v.DOM_DELTA_PIXEL:v.wheelX=E*T,v.wheelY=I*T;break;case v.DOM_DELTA_LINE:var M=15;v.wheelX=E*M,v.wheelY=I*M;break;case v.DOM_DELTA_PAGE:var N=150;v.wheelX=E*N,v.wheelY=I*N;break}$(v)},_)},s.addMultiMouseDownListener=function(R,$,_,v,T){var E=0,I,M,N,k={2:"dblclick",3:"tripleclick",4:"quadclick"};function m(x){if(s.getButton(x)!==0?E=0:x.detail>1?(E++,E>4&&(E=1)):E=1,y.isIE){var L=Math.abs(x.clientX-I)>5||Math.abs(x.clientY-M)>5;(!N||L)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},$[E-1]||600),E==1&&(I=x.clientX,M=x.clientY)}if(x._clicks=E,_[v]("mousedown",x),E>4)E=0;else if(E>1)return _[v](k[E],x)}Array.isArray(R)||(R=[R]),R.forEach(function(x){r(x,"mousedown",m,T)})};function l(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}s.getModifierString=function(R){return w.KEY_MODS[l(R)]};function d(R,$,_){var v=l($);if(!_&&$.code&&(_=w.$codeToKeyCode[$.code]||_),!y.isMac&&S){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(v|=8),S.altGr)if((3&v)!=3)S.altGr=0;else return;if(_===18||_===17){var T=$.location;if(_===17&&T===1)S[_]==1&&(f=$.timeStamp);else if(_===18&&v===3&&T===2){var E=$.timeStamp-f;E<50&&(S.altGr=!0)}}}if(_ in w.MODIFIER_KEYS&&(_=-1),!(!v&&_===13&&$.location===3&&(R($,v,-_),$.defaultPrevented))){if(y.isChromeOS&&v&8){if(R($,v,_),$.defaultPrevented)return;v&=-9}return!v&&!(_ in w.FUNCTION_KEYS)&&!(_ in w.PRINTABLE_KEYS)?!1:R($,v,_)}}s.addCommandKeyListener=function(R,$,_){var v=null;r(R,"keydown",function(T){S[T.keyCode]=(S[T.keyCode]||0)+1;var E=d($,T,T.keyCode);return v=T.defaultPrevented,E},_),r(R,"keypress",function(T){v&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(s.stopEvent(T),v=null)},_),r(R,"keyup",function(T){S[T.keyCode]=null},_),S||(g(),r(window,"focus",g))};function g(){S=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!y.isOldIE){var b=1;s.nextTick=function(R,$){$=$||window;var _="zero-timeout-message-"+b++,v=function(T){T.data==_&&(s.stopPropagation(T),n($,"message",v),R())};r($,"message",v),$.postMessage(_,"*")}}s.$idleBlocked=!1,s.onIdle=function(R,$){return setTimeout(function _(){s.$idleBlocked?setTimeout(_,100):R()},$)},s.$idleBlockId=null,s.blockIdle=function(R){s.$idleBlockId&&clearTimeout(s.$idleBlockId),s.$idleBlocked=!0,s.$idleBlockId=setTimeout(function(){s.$idleBlocked=!1},R||100)},s.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),s.nextFrame?s.nextFrame=s.nextFrame.bind(window):s.nextFrame=function(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,s,A){var w;A.exports={lineMode:!1,pasteCancelled:function(){return w&&w>Date.now()-50?!0:w=!1},cancel:function(){w=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(t,s,A){var w=t("../lib/event"),y=t("../config").nls,S=t("../lib/useragent"),f=t("../lib/dom"),p=t("../lib/lang"),o=t("../clipboard"),a=S.isChrome<18,i=S.isIE,r=S.isChrome>63,n=400,l=t("../lib/keys"),d=l.KEY_MODS,g=S.isIOS,b=g?/\s/:/\n/,R=S.isMobile,$;$=function(_,v){var T=f.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",_.insertBefore(T,_.firstChild);var E=!1,I=!1,M=!1,N=!1,k="";R||(T.style.fontSize="1px");var m=!1,x=!1,L="",O=0,F=0,W=0,U=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,G=0;try{var J=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(U=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){G=0;return}G=ce},this.setAriaLabel=function(){var ce="";if(v.$textInputAriaLabel&&(ce+="".concat(v.$textInputAriaLabel,", ")),v.session){var Ae=v.session.selection.cursor.row;ce+=y("text-input.aria-label","Cursor at row $0",[Ae+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",y("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),w.addListener(T,"blur",function(ce){x||(v.onBlur(ce),J=!1)},v),w.addListener(T,"focus",function(ce){if(!x){if(J=!0,S.isEdge)try{if(!document.hasFocus())return}catch{}v.onFocus(ce),S.isEdge?setTimeout(Q):Q()}},v),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:v.renderer.enableKeyboardAccessibility}),k||r||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Ae=T.getBoundingClientRect().top!=0}catch{return}var Te=[];if(Ae)for(var Be=T.parentElement;Be&&Be.nodeType==1;)Te.push(Be),Be.setAttribute("ace_nocontext","true"),!Be.parentElement&&Be.getRootNode?Be=Be.getRootNode().host:Be=Be.parentElement;T.focus({preventScroll:!0}),Ae&&Te.forEach(function(He){He.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return J},v.on("beforeEndOperation",function(){var ce=v.curOp,Ae=ce&&ce.command&&ce.command.name;if(Ae!="insertstring"){var Te=Ae&&(ce.docChanged||ce.selectionChanged);M&&Te&&(L=T.value="",It()),Q()}}),v.on("changeSelection",this.setAriaLabel);var K=function(ce,Ae){for(var Te=Ae,Be=1;Be<=ce-U&&Be<2*G+1;Be++)Te+=v.session.getLine(ce-Be).length+1;return Te},Q=g?function(ce){if(!(!J||E&&!ce||N)){ce||(ce="");var Ae=`
|
|
167
|
+
ab`+ce+`cde fg
|
|
168
|
+
`;Ae!=T.value&&(T.value=L=Ae);var Te=4,Be=4+(ce.length||(v.selection.isEmpty()?0:1));(O!=Te||F!=Be)&&T.setSelectionRange(Te,Be),O=Te,F=Be}}:function(){if(!(M||N)&&!(!J&&!ge)){M=!0;var ce=0,Ae=0,Te="";if(v.session){var Be=v.selection,He=Be.getRange(),rt=Be.cursor.row;rt===V+1?(U=V+1,V=U+2*G):rt===U-1?(V=U-1,U=V-2*G):(rt<U-1||rt>V+1)&&(U=rt>G?rt-G:0,V=rt>G?rt+G:2*G);for(var ot=[],et=U;et<=V;et++)ot.push(v.session.getLine(et));if(Te=ot.join(`
|
|
169
|
+
`),ce=K(He.start.row,He.start.column),Ae=K(He.end.row,He.end.column),He.start.row<U){var tt=v.session.getLine(U-1);ce=He.start.row<U-1?0:ce,Ae+=tt.length+1,Te=tt+`
|
|
170
|
+
`+Te}else if(He.end.row>V){var qe=v.session.getLine(V+1);Ae=He.end.row>V+1?qe.length:He.end.column,Ae+=Te.length+1,Te=Te+`
|
|
171
|
+
`+qe}else R&&rt>0&&(Te=`
|
|
172
|
+
`+Te,Ae+=1,ce+=1);Te.length>n&&(ce<n&&Ae<n?Te=Te.slice(0,n):(Te=`
|
|
173
|
+
`,ce==Ae?ce=Ae=0:(ce=0,Ae=1)));var Mt=Te+`
|
|
174
|
+
|
|
175
|
+
`;Mt!=L&&(T.value=L=Mt,O=F=Mt.length)}if(ge&&(O=T.selectionStart,F=T.selectionEnd),F!=Ae||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Ae),O=ce,F=Ae}catch{}M=!1}};this.resetSelection=Q,J&&v.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},X=function(ce){M||(E?E=!1:ie(T)?(v.selectAll(),Q()):R&&T.selectionStart!=O&&Q())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var ge=!1,me=function(ce,Ae){if(ge&&(ge=!1),I)return Q(),ce&&v.onPaste(ce),I=!1,"";for(var Te=T.selectionStart,Be=T.selectionEnd,He=O,rt=L.length-F,ot=ce,et=ce.length-Te,tt=ce.length-Be,qe=0;He>0&&L[qe]==ce[qe];)qe++,He--;for(ot=ot.slice(qe),qe=1;rt>0&&L.length-qe>O-1&&L[L.length-qe]==ce[ce.length-qe];)qe++,rt--;et-=qe-1,tt-=qe-1;var Mt=ot.length-qe+1;if(Mt<0&&(He=-Mt,Mt=0),ot=ot.slice(0,Mt),!Ae&&!ot&&!et&&!He&&!rt&&!tt)return"";N=!0;var un=!1;return S.isAndroid&&ot==". "&&(ot=" ",un=!0),ot&&!He&&!rt&&!et&&!tt||m?v.onTextInput(ot):v.onTextInput(ot,{extendLeft:He,extendRight:rt,restoreStart:et,restoreEnd:tt}),N=!1,L=ce,O=Te,F=Be,W=tt,un?`
|
|
176
|
+
`:ot},fe=function(ce){if(M)return xt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return v.execCommand("undo");if(ce.inputType=="historyRedo")return v.execCommand("redo")}var Ae=T.value,Te=me(Ae,!0);(Ae.length>n+100||b.test(Te)||R&&O<1&&O==F)&&Q()},_e=function(ce,Ae,Te){var Be=ce.clipboardData||window.clipboardData;if(!(!Be||a)){var He=i||Te?"Text":"text/plain";try{return Ae?Be.setData(He,Ae)!==!1:Be.getData(He)}catch(rt){if(!Te)return _e(rt,Ae,!0)}}},Xe=function(ce,Ae){var Te=v.getCopyText();if(!Te)return w.preventDefault(ce);_e(ce,Te)?(g&&(Q(Te),E=Te,setTimeout(function(){E=!1},10)),Ae?v.onCut():v.onCopy(),w.preventDefault(ce)):(E=!0,T.value=Te,T.select(),setTimeout(function(){E=!1,Q(),Ae?v.onCut():v.onCopy()}))},At=function(ce){Xe(ce,!0)},it=function(ce){Xe(ce,!1)},st=function(ce){var Ae=_e(ce);o.pasteCancelled()||(typeof Ae=="string"?(Ae&&v.onPaste(Ae,ce),S.isIE&&setTimeout(Q),w.preventDefault(ce)):(T.value="",I=!0))};w.addCommandKeyListener(T,function(ce,Ae,Te){if(!M)return v.onCommandKey(ce,Ae,Te)},v),w.addListener(T,"select",X,v),w.addListener(T,"input",fe,v),w.addListener(T,"cut",At,v),w.addListener(T,"copy",it,v),w.addListener(T,"paste",st,v),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&w.addListener(_,"keydown",function(ce){if(!(S.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:it(ce);break;case 86:st(ce);break;case 88:At(ce);break}},v);var zt=function(ce){if(!(M||!v.onCompositionStart||v.$readOnly)&&(M={},!m)){ce.data&&(M.useTextareaForIME=!1),setTimeout(xt,0),v._signal("compositionStart"),v.on("mousedown",hi);var Ae=v.getSelectionRange();Ae.end.row=Ae.start.row,Ae.end.column=Ae.start.column,M.markerRange=Ae,M.selectionStart=O,v.onCompositionStart(M),M.useTextareaForIME?(L=T.value="",O=0,F=0):(T.msGetInputContext&&(M.context=T.msGetInputContext()),T.getInputContext&&(M.context=T.getInputContext()))}},xt=function(){if(!(!M||!v.onCompositionUpdate||v.$readOnly)){if(m)return hi();if(M.useTextareaForIME)v.onCompositionUpdate(T.value);else{var ce=T.value;me(ce),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+F-M.selectionStart+W)}}},It=function(ce){!v.onCompositionEnd||v.$readOnly||(M=!1,v.onCompositionEnd(),v.off("mousedown",hi),ce&&fe())};function hi(){x=!0,T.blur(),T.focus(),x=!1}var Zt=p.delayedCall(xt,50).schedule.bind(null,null);function Ft(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(M||(L=T.value),O=F=-1,Q()),Zt()}w.addListener(T,"compositionstart",zt,v),w.addListener(T,"compositionupdate",xt,v),w.addListener(T,"keyup",Ft,v),w.addListener(T,"keydown",Zt,v),w.addListener(T,"compositionend",It,v),this.getElement=function(){return T},this.setCommandMode=function(ce){m=ce,T.readOnly=!1},this.setReadOnly=function(ce){m||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){ge=!0,Q(),v._emit("nativecontextmenu",{target:v,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Ae){k||(k=T.style.cssText),T.style.cssText=(Ae?"z-index:100000;":"")+(S.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*v.renderer.characterWidth*.5+"px;";var Te=v.container.getBoundingClientRect(),Be=f.computedStyle(v.container),He=Te.top+(parseInt(Be.borderTopWidth)||0),rt=Te.left+(parseInt(Be.borderLeftWidth)||0),ot=Te.bottom-He-T.clientHeight-2,et=function(tt){f.translate(T,tt.clientX-rt-2,Math.min(tt.clientY-He-2,ot))};et(ce),ce.type=="mousedown"&&(v.renderer.$isMousePressed=!0,clearTimeout(Re),S.isWin&&w.capture(v.container,et,De))},this.onContextMenuClose=De;var Re;function De(){clearTimeout(Re),Re=setTimeout(function(){k&&(T.style.cssText=k,k=""),v.renderer.$isMousePressed=!1,v.renderer.$keepTextAreaAtCursor&&v.renderer.$moveTextAreaToCursor()},0)}var Pt=function(ce){v.textInput.onContextMenu(ce),De()};w.addListener(T,"mouseup",Pt,v),w.addListener(T,"mousedown",function(ce){ce.preventDefault(),De()},v),w.addListener(v.renderer.scroller,"contextmenu",Pt,v),w.addListener(T,"contextmenu",Pt,v),g&&Ne(_,v,T);function Ne(ce,Ae,Te){var Be=null,He=!1;Te.addEventListener("keydown",function(ot){Be&&clearTimeout(Be),He=!0},!0),Te.addEventListener("keyup",function(ot){Be=setTimeout(function(){He=!1},100)},!0);var rt=function(ot){if(document.activeElement===Te&&!(He||M||Ae.$mouseHandler.isMousePressed)&&!E){var et=Te.selectionStart,tt=Te.selectionEnd,qe=null,Mt=0;if(et==0?qe=l.up:et==1?qe=l.home:tt>F&&L[tt]==`
|
|
177
|
+
`?qe=l.end:et<O&&L[et-1]==" "?(qe=l.left,Mt=d.option):et<O||et==O&&F!=O&&et==tt?qe=l.left:tt>F&&L.slice(0,tt).split(`
|
|
178
|
+
`).length>2?qe=l.down:tt>F&&L[tt-1]==" "?(qe=l.right,Mt=d.option):(tt>F||tt==F&&F!=O&&et==tt)&&(qe=l.right),et!==tt&&(Mt|=d.shift),qe){var un=Ae.onCommandKey({},Mt,qe);if(!un&&Ae.commands){qe=l.keyCodeToString(qe);var Ci=Ae.commands.findKeyCommand(Mt,qe);Ci&&Ae.execCommand(Ci)}O=et,F=tt,Q("")}}};document.addEventListener("selectionchange",rt),Ae.on("destroy",function(){document.removeEventListener("selectionchange",rt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},s.TextInput=$,s.$setUserAgentForTests=function(_,v){R=_,g=v}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,s,A){var w=t("../lib/useragent"),y=0,S=550,f=function(){function a(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 n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach(function(l){i[l]=this[l]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}return a.prototype.onMouseDown=function(i){var r=i.inSelection(),n=i.getDocumentPosition();this.mousedownEvent=i;var l=this.editor,d=i.getButton();if(d!==0){var g=l.getSelectionRange(),b=g.isEmpty();(b||d==1)&&l.selection.moveToPosition(n),d==2&&(l.textInput.onContextMenu(i.domEvent),w.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),r&&!l.isFocused()&&(l.focus(),this.$focusTimeout&&!this.$clickSelection&&!l.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(n,i.domEvent._clicks>1),i.preventDefault()},a.prototype.startSelect=function(i,r){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(i):r||n.selection.moveToPosition(i),r||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},a.prototype.select=function(){var i,r=this.editor,n=r.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(n);if(l==-1)i=this.$clickSelection.end;else if(l==1)i=this.$clickSelection.start;else{var d=o(this.$clickSelection,n);n=d.cursor,i=d.anchor}r.selection.setSelectionAnchor(i.row,i.column)}r.selection.selectToPosition(n),r.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(i){var r,n=this.editor,l=n.renderer.screenToTextCoordinates(this.x,this.y),d=n.selection[i](l.row,l.column);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(d.start),b=this.$clickSelection.comparePoint(d.end);if(g==-1&&b<=0)r=this.$clickSelection.end,(d.end.row!=l.row||d.end.column!=l.column)&&(l=d.start);else if(b==1&&g>=0)r=this.$clickSelection.start,(d.start.row!=l.row||d.start.column!=l.column)&&(l=d.end);else if(g==-1&&b==1)l=d.end,r=d.start;else{var R=o(this.$clickSelection,l);l=R.cursor,r=R.anchor}n.selection.setSelectionAnchor(r.row,r.column)}n.selection.selectToPosition(l),n.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var i=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),r=Date.now();(i>y||r-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(i){var r=i.getDocumentPosition(),n=this.editor,l=n.session,d=l.getBracketRange(r);d?(d.isEmpty()&&(d.start.column--,d.end.column++),this.setState("select")):(d=n.selection.getWordRange(r.row,r.column),this.setState("selectByWords")),this.$clickSelection=d,this.select()},a.prototype.onTripleClick=function(i){var r=i.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var l=n.getSelectionRange();l.isMultiLine()&&l.contains(r.row,r.column)?(this.$clickSelection=n.selection.getLineRange(l.start.row),this.$clickSelection.end=n.selection.getLineRange(l.end.row).end):this.$clickSelection=n.selection.getLineRange(r.row),this.select()},a.prototype.onQuadClick=function(i){var r=this.editor;r.selectAll(),this.$clickSelection=r.getSelectionRange(),this.setState("selectAll")},a.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 n=this.$lastScroll,l=i.domEvent.timeStamp,d=l-n.t,g=d?i.wheelX/d:n.vx,b=d?i.wheelY/d:n.vy;d<S&&(g=(g+n.vx)/2,b=(b+n.vy)/2);var R=Math.abs(g/b),$=!1;if(R>=1&&r.renderer.isScrollableBy(i.wheelX*i.speed,0)&&($=!0),R<=1&&r.renderer.isScrollableBy(0,i.wheelY*i.speed)&&($=!0),$)n.allowed=l;else if(l-n.allowed<S){var _=Math.abs(g)<=1.5*Math.abs(n.vx)&&Math.abs(b)<=1.5*Math.abs(n.vy);_?($=!0,n.allowed=l):n.allowed=0}if(n.t=l,n.vx=g,n.vy=b,$)return r.renderer.scrollBy(i.wheelX*i.speed,i.wheelY*i.speed),i.stop()}},a}();f.prototype.selectEnd=f.prototype.selectByLinesEnd,f.prototype.selectAllEnd=f.prototype.selectByLinesEnd,f.prototype.selectByWordsEnd=f.prototype.selectByLinesEnd,s.DefaultHandlers=f;function p(a,i,r,n){return Math.sqrt(Math.pow(r-a,2)+Math.pow(n-i,2))}function o(a,i){if(a.start.row==a.end.row)var r=2*i.column-a.start.column-a.end.column;else if(a.start.row==a.end.row-1&&!a.start.column&&!a.end.column)var r=i.column-4;else var r=2*i.row-a.start.row-a.end.row;return r<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,s,A){s.preventParentScroll=function(y){y.stopPropagation();var S=y.currentTarget,f=S.scrollHeight>S.clientHeight;f||y.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,s,A){var w=this&&this.__extends||function(){var l=function(d,g){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,R){b.__proto__=R}||function(b,R){for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&(b[$]=R[$])},l(d,g)};return function(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");l(d,g);function b(){this.constructor=d}d.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}}(),y=this&&this.__values||function(l){var d=typeof Symbol=="function"&&Symbol.iterator,g=d&&l[d],b=0;if(g)return g.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&b>=l.length&&(l=void 0),{value:l&&l[b++],done:!l}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},S=t("./lib/dom");t("./lib/event");var f=t("./range").Range,p=t("./lib/scroll").preventParentScroll,o="ace_tooltip",a=function(){function l(d){this.isOpen=!1,this.$element=null,this.$parentNode=d}return l.prototype.$init=function(){return this.$element=S.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},l.prototype.getElement=function(){return this.$element||this.$init()},l.prototype.setText=function(d){this.getElement().textContent=d},l.prototype.setHtml=function(d){this.getElement().innerHTML=d},l.prototype.setPosition=function(d,g){this.getElement().style.left=d+"px",this.getElement().style.top=g+"px"},l.prototype.setClassName=function(d){S.addCssClass(this.getElement(),d)},l.prototype.setTheme=function(d){this.$element.className=o+" "+(d.isDark?"ace_dark ":"")+(d.cssClass||"")},l.prototype.show=function(d,g,b){d!=null&&this.setText(d),g!=null&&b!=null&&this.setPosition(g,b),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},l.prototype.hide=function(d){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},l.prototype.getHeight=function(){return this.getElement().offsetHeight},l.prototype.getWidth=function(){return this.getElement().offsetWidth},l.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},l}(),i=function(){function l(){this.popups=[]}return l.prototype.addPopup=function(d){this.popups.push(d),this.updatePopups()},l.prototype.removePopup=function(d){var g=this.popups.indexOf(d);g!==-1&&(this.popups.splice(g,1),this.updatePopups())},l.prototype.updatePopups=function(){var d,g,b,R;this.popups.sort(function(k,m){return m.priority-k.priority});var $=[];try{for(var _=y(this.popups),v=_.next();!v.done;v=_.next()){var T=v.value,E=!0;try{for(var I=(b=void 0,y($)),M=I.next();!M.done;M=I.next()){var N=M.value;if(this.doPopupsOverlap(N,T)){E=!1;break}}}catch(k){b={error:k}}finally{try{M&&!M.done&&(R=I.return)&&R.call(I)}finally{if(b)throw b.error}}E?$.push(T):T.hide()}}catch(k){d={error:k}}finally{try{v&&!v.done&&(g=_.return)&&g.call(_)}finally{if(d)throw d.error}}},l.prototype.doPopupsOverlap=function(d,g){var b=d.getElement().getBoundingClientRect(),R=g.getElement().getBoundingClientRect();return b.left<R.right&&b.right>R.left&&b.top<R.bottom&&b.bottom>R.top},l}(),r=new i;s.popupManager=r,s.Tooltip=a;var n=function(l){w(d,l);function d(g){g===void 0&&(g=document.body);var b=l.call(this,g)||this;b.timeout=void 0,b.lastT=0,b.idleTime=350,b.lastEvent=void 0,b.onMouseOut=b.onMouseOut.bind(b),b.onMouseMove=b.onMouseMove.bind(b),b.waitForHover=b.waitForHover.bind(b),b.hide=b.hide.bind(b);var R=b.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",b.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(b)),R.addEventListener("wheel",p),b}return d.prototype.addToEditor=function(g){g.on("mousemove",this.onMouseMove),g.on("mousedown",this.hide),g.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},d.prototype.removeFromEditor=function(g){g.off("mousemove",this.onMouseMove),g.off("mousedown",this.hide),g.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},d.prototype.onMouseMove=function(g,b){this.lastEvent=g,this.lastT=Date.now();var R=b.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=g,this.timeout=setTimeout(this.waitForHover,this.idleTime))},d.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var g=Date.now()-this.lastT;if(this.idleTime-g>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-g);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},d.prototype.isOutsideOfText=function(g){var b=g.editor,R=g.getDocumentPosition(),$=b.session.getLine(R.row);if(R.column==$.length){var _=b.renderer.pixelToScreenCoordinates(g.clientX,g.clientY),v=b.session.documentToScreenPosition(R.row,R.column);if(v.column!=_.column||v.row!=_.row)return!0}return!1},d.prototype.setDataProvider=function(g){this.$gatherData=g},d.prototype.showForRange=function(g,b,R,$){var _=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var v=g.renderer;this.isOpen||(r.addPopup(this),this.$registerCloseEvents(),this.setTheme(v.theme)),this.isOpen=!0,this.addMarker(b,g.session),this.range=f.fromPoints(b.start,b.end);var T=v.textToScreenCoordinates(b.start.row,b.start.column),E=v.scroller.getBoundingClientRect();T.pageX<E.left&&(T.pageX=E.left);var I=this.getElement();I.innerHTML="",I.appendChild(R),I.style.maxHeight="",I.style.display="block";var M=I.clientHeight,N=I.clientWidth,k=window.innerHeight-T.pageY-v.lineHeight,m=!0;T.pageY-M<0&&T.pageY<k&&(m=!1),I.style.maxHeight=(m?T.pageY:k)-_+"px",I.style.top=m?"":T.pageY+v.lineHeight+"px",I.style.bottom=m?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-N-_)+"px"}},d.prototype.addMarker=function(g,b){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=b,this.marker=b&&b.addMarker(g,"ace_highlight-marker","text")},d.prototype.hide=function(g){!g&&document.activeElement==this.getElement()||g&&g.target&&(g.type!="keydown"||g.ctrlKey||g.metaKey)&&this.$element.contains(g.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,r.removePopup(this)))},d.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},d.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},d.prototype.onMouseOut=function(g){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!g.relatedTarget||this.getElement().contains(g.relatedTarget)||g&&g.currentTarget.contains(g.relatedTarget)||g.relatedTarget.classList.contains("ace_content")||this.hide())},d}(a);s.HoverTooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(t,s,A){var w=this&&this.__extends||function(){var r=function(n,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(d[b]=g[b])},r(n,l)};return function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");r(n,l);function d(){this.constructor=n}n.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),y=this&&this.__values||function(r){var n=typeof Symbol=="function"&&Symbol.iterator,l=n&&r[n],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},S=t("../lib/dom"),f=t("../lib/event"),p=t("../tooltip").Tooltip,o=t("../config").nls;t("../lib/lang");function a(r){var n=r.editor,l=n.renderer.$gutterLayer,d=new i(n);r.editor.setDefaultHandler("guttermousedown",function(v){if(!(!n.isFocused()||v.getButton()!=0)){var T=l.getRegion(v);if(T!="foldWidgets"){var E=v.getDocumentPosition().row,I=n.session.selection;if(v.getShiftKey())I.selectTo(E,0);else{if(v.domEvent.detail==2)return n.selectAll(),v.preventDefault();r.$clickSelection=n.selection.getLineRange(E)}return r.setState("selectByLines"),r.captureMouse(v),v.preventDefault()}}});var g,b;function R(){var v=b.getDocumentPosition().row,T=n.session.getLength();if(v==T){var E=n.renderer.pixelToScreenCoordinates(0,b.y).row,I=b.$pos;if(E>n.session.documentToScreenRow(I.row,I.column))return $()}if(d.showTooltip(v),!!d.isOpen)if(n.on("mousewheel",$),r.$tooltipFollowsMouse)_(b);else{var M=b.getGutterRow(),N=l.$lines.get(M);if(N){var k=N.element.querySelector(".ace_gutter_annotation"),m=k.getBoundingClientRect(),x=d.getElement().style;x.left=m.right+"px",x.top=m.bottom+"px"}else _(b)}}function $(){g&&(g=clearTimeout(g)),d.isOpen&&(d.hideTooltip(),n.off("mousewheel",$))}function _(v){d.setPosition(v.x,v.y)}r.editor.setDefaultHandler("guttermousemove",function(v){var T=v.domEvent.target||v.domEvent.srcElement;if(S.hasCssClass(T,"ace_fold-widget"))return $();d.isOpen&&r.$tooltipFollowsMouse&&_(v),b=v,!g&&(g=setTimeout(function(){g=null,b&&!r.isMousePressed?R():$()},50))}),f.addListener(n.renderer.$gutter,"mouseout",function(v){b=null,!(!d.isOpen||g)&&(g=setTimeout(function(){g=null,$()},50))},n),n.on("changeSession",$),n.on("input",$)}s.GutterHandler=a;var i=function(r){w(n,r);function n(l){var d=r.call(this,l.container)||this;return d.editor=l,d.visibleTooltipRow,d}return n.prototype.setPosition=function(l,d){var g=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),$=this.getHeight();l+=15,d+=15,l+R>g&&(l-=l+R-g),d+$>b&&(d-=20+$),p.prototype.setPosition.call(this,l,d)},Object.defineProperty(n,"annotationLabels",{get:function(){return{error:{singular:o("gutter-tooltip.aria-label.error.singular","error"),plural:o("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:o("gutter-tooltip.aria-label.security.singular","security finding"),plural:o("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:o("gutter-tooltip.aria-label.warning.singular","warning"),plural:o("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:o("gutter-tooltip.aria-label.info.singular","information message"),plural:o("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:o("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:o("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),n.prototype.showTooltip=function(l){var d,g=this.editor.renderer.$gutterLayer,b=g.$annotations[l],R;b?R={displayText:Array.from(b.displayText),type:Array.from(b.type)}:R={displayText:[],type:[]};var $=g.session.getFoldLine(l);if($&&g.$showFoldedAnnotations){for(var _={error:[],security:[],warning:[],info:[],hint:[]},v={error:1,security:2,warning:3,info:4,hint:5},T,E=l+1;E<=$.end.row;E++)if(g.$annotations[E])for(var I=0;I<g.$annotations[E].text.length;I++){var M=g.$annotations[E].type[I];_[M].push(g.$annotations[E].text[I]),(!T||v[M]<v[T])&&(T=M)}if(["error","security","warning"].includes(T)){var N="".concat(n.annotationsToSummaryString(_)," in folded code.");R.displayText.push(N),R.type.push(T+"_fold")}}if(R.displayText.length===0)return this.hideTooltip();for(var k={error:[],security:[],warning:[],info:[],hint:[]},m=g.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var x=S.createElement("span"),L=S.createElement("span");(d=L.classList).add.apply(d,["ace_".concat(R.type[E]),m]),L.setAttribute("aria-label","".concat(n.annotationLabels[R.type[E].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(S.createTextNode(" ")),x.appendChild(L),x.appendChild(S.createTextNode(R.displayText[E])),x.appendChild(S.createElement("br")),k[R.type[E].replace("_fold","")].push(x)}var O=this.getElement();S.removeChildren(O),k.error.forEach(function(F){return O.appendChild(F)}),k.security.forEach(function(F){return O.appendChild(F)}),k.warning.forEach(function(F){return O.appendChild(F)}),k.info.forEach(function(F){return O.appendChild(F)}),k.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=l,this.editor._signal("showGutterTooltip",this)},n.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},n.annotationsToSummaryString=function(l){var d,g,b=[],R=["error","security","warning","info","hint"];try{for(var $=y(R),_=$.next();!_.done;_=$.next()){var v=_.value;if(l[v].length){var T=l[v].length===1?n.annotationLabels[v].singular:n.annotationLabels[v].plural;b.push("".concat(l[v].length," ").concat(T))}}}catch(E){d={error:E}}finally{try{_&&!_.done&&(g=$.return)&&g.call($)}finally{if(d)throw d.error}}return b.join(", ")},n}(p);s.GutterTooltip=i}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,s,A){var w=t("../lib/event"),y=t("../lib/useragent"),S=function(){function f(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return f.prototype.stopPropagation=function(){w.stopPropagation(this.domEvent),this.propagationStopped=!0},f.prototype.preventDefault=function(){w.preventDefault(this.domEvent),this.defaultPrevented=!0},f.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},f.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},f.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),a=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-a},f.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=o.contains(a.row,a.column)}return this.$inSelection},f.prototype.getButton=function(){return w.getButton(this.domEvent)},f.prototype.getShiftKey=function(){return this.domEvent.shiftKey},f.prototype.getAccelKey=function(){return y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},f}();s.MouseEvent=S}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,s,A){var w=t("../lib/dom"),y=t("../lib/event"),S=t("../lib/useragent"),f=200,p=200,o=5;function a(r){var n=r.editor,l=w.createElement("div");l.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",l.textContent=" ";var d=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];d.forEach(function(K){r[K]=this[K]},this),n.on("mousedown",this.onMouseDown.bind(r));var g=n.container,b,R,$,_,v,T,E=0,I,M,N,k,m;this.onDragStart=function(K){if(this.cancelDrag||!g.draggable){var Q=this;return setTimeout(function(){Q.startSelect(),Q.captureMouse(K)},0),K.preventDefault()}v=n.getSelectionRange();var ie=K.dataTransfer;ie.effectAllowed=n.getReadOnly()?"copy":"copyMove",n.container.appendChild(l),ie.setDragImage&&ie.setDragImage(l,0,0),setTimeout(function(){n.container.removeChild(l)}),ie.clearData(),ie.setData("Text",n.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(K){if(g.draggable=!1,M=!1,this.setState(null),!n.getReadOnly()){var Q=K.dataTransfer.dropEffect;!I&&Q=="move"&&n.session.remove(n.getSelectionRange()),n.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(K){if(!(n.getReadOnly()||!G(K.dataTransfer)))return R=K.clientX,$=K.clientY,b||F(),E++,K.dataTransfer.dropEffect=I=J(K),y.preventDefault(K)},this.onDragOver=function(K){if(!(n.getReadOnly()||!G(K.dataTransfer)))return R=K.clientX,$=K.clientY,b||(F(),E++),U!==null&&(U=null),K.dataTransfer.dropEffect=I=J(K),y.preventDefault(K)},this.onDragLeave=function(K){if(E--,E<=0&&b)return W(),I=null,y.preventDefault(K)},this.onDrop=function(K){if(T){var Q=K.dataTransfer;if(M)switch(I){case"move":v.contains(T.row,T.column)?v={start:T,end:T}:v=n.moveText(v,T);break;case"copy":v=n.moveText(v,T,!0);break}else{var ie=Q.getData("Text");v={start:T,end:n.session.insert(T,ie)},n.focus(),I=null}return W(),y.preventDefault(K)}},y.addListener(g,"dragstart",this.onDragStart.bind(r),n),y.addListener(g,"dragend",this.onDragEnd.bind(r),n),y.addListener(g,"dragenter",this.onDragEnter.bind(r),n),y.addListener(g,"dragover",this.onDragOver.bind(r),n),y.addListener(g,"dragleave",this.onDragLeave.bind(r),n),y.addListener(g,"drop",this.onDrop.bind(r),n);function x(K,Q){var ie=Date.now(),X=!Q||K.row!=Q.row,ae=!Q||K.column!=Q.column;if(!k||X||ae)n.moveCursorToPosition(K),k=ie,m={x:R,y:$};else{var ge=i(m.x,m.y,R,$);ge>o?k=null:ie-k>=p&&(n.renderer.scrollCursorIntoView(),k=null)}}function L(K,Q){var ie=Date.now(),X=n.renderer.layerConfig.lineHeight,ae=n.renderer.layerConfig.characterWidth,ge=n.renderer.scroller.getBoundingClientRect(),me={x:{left:R-ge.left,right:ge.right-R},y:{top:$-ge.top,bottom:ge.bottom-$}},fe=Math.min(me.x.left,me.x.right),_e=Math.min(me.y.top,me.y.bottom),Xe={row:K.row,column:K.column};fe/ae<=2&&(Xe.column+=me.x.left<me.x.right?-3:2),_e/X<=1&&(Xe.row+=me.y.top<me.y.bottom?-1:1);var At=K.row!=Xe.row,it=K.column!=Xe.column,st=!Q||K.row!=Q.row;At||it&&!st?N?ie-N>=f&&n.renderer.scrollCursorIntoView(Xe):N=ie:N=null}function O(){var K=T;T=n.renderer.screenToTextCoordinates(R,$),x(T,K),L(T,K)}function F(){v=n.selection.toOrientedRange(),b=n.session.addMarker(v,"ace_selection",n.getSelectionStyle()),n.clearSelection(),n.isFocused()&&n.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),O(),_=setInterval(O,20),E=0,y.addListener(document,"mousemove",V)}function W(){clearInterval(_),n.session.removeMarker(b),b=null,n.selection.fromOrientedRange(v),n.isFocused()&&!M&&n.$resetCursorStyle(),v=null,T=null,E=0,N=null,k=null,y.removeListener(document,"mousemove",V)}var U=null;function V(){U==null&&(U=setTimeout(function(){U!=null&&b&&W()},20))}function G(K){var Q=K.types;return!Q||Array.prototype.some.call(Q,function(ie){return ie=="text/plain"||ie=="Text"})}function J(K){var Q=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],X=S.isMac?K.altKey:K.ctrlKey,ae="uninitialized";try{ae=K.dataTransfer.effectAllowed.toLowerCase()}catch{}var ge="none";return X&&Q.indexOf(ae)>=0?ge="copy":ie.indexOf(ae)>=0?ge="move":Q.indexOf(ae)>=0&&(ge="copy"),ge}}(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,n=r.container;n.draggable=!0,r.renderer.$cursorLayer.setBlinking(!1),r.setStyle("ace_dragging");var l=S.isWin?"default":"move";r.renderer.setCursorStyle(l),this.setState("dragReady")},this.onMouseDrag=function(r){var n=this.editor.container;if(S.isIE&&this.state=="dragReady"){var l=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);l>3&&n.dragDrop()}if(this.state==="dragWait"){var l=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);l>0&&(n.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(r){if(this.$dragEnabled){this.mousedownEvent=r;var n=this.editor,l=r.inSelection(),d=r.getButton(),g=r.domEvent.detail||1;if(g===1&&d===0&&l){if(r.editor.inMultiSelectMode&&(r.getAccelKey()||r.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=r.domEvent.target||r.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),n.getDragDelay()){if(S.isWebKit){this.cancelDrag=!0;var R=n.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(r,this.onMouseDrag.bind(this)),r.defaultPrevented=!0}}}}).call(a.prototype);function i(r,n,l,d){return Math.sqrt(Math.pow(l-r,2)+Math.pow(d-n,2))}s.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,s,A){var w=t("./mouse_event").MouseEvent,y=t("../lib/event"),S=t("../lib/dom");s.addTouchListeners=function(f,p){var o="scroll",a,i,r,n,l,d,g=0,b,R=0,$=0,_=0,v,T;function E(){var x=window.navigator&&window.navigator.clipboard,L=!1,O=function(){var U=p.getCopyText(),V=p.session.getUndoManager().hasUndo();T.replaceChild(S.buildDom(L?["span",!U&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],U&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],U&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],x&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(U){return p.commands.canExecute(U,p)},W=function(U){var V=U.target.getAttribute("action");if(V=="more"||!L)return L=!L,O();V=="paste"?x.readText().then(function(G){p.execCommand(V,G)}):V&&((V=="cut"||V=="copy")&&(x?x.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(V)),T.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&p.focus()};T=S.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(U){o="menu",U.stopPropagation(),U.preventDefault(),p.textInput.focus()},ontouchend:function(U){U.stopPropagation(),U.preventDefault(),W(U)},onclick:W},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function I(){if(!p.getOption("enableMobileMenu")){T&&M();return}T||E();var x=p.selection.cursor,L=p.renderer.textToScreenCoordinates(x.row,x.column),O=p.renderer.textToScreenCoordinates(0,0).pageX,F=p.renderer.scrollLeft,W=p.container.getBoundingClientRect();T.style.top=L.pageY-W.top-3+"px",L.pageX-W.left<W.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-W.left+"px"),T.style.display="",T.firstChild.style.display="none",p.on("input",M)}function M(x){T&&(T.style.display="none"),p.off("input",M)}function N(){l=null,clearTimeout(l);var x=p.selection.getRange(),L=x.contains(b.row,b.column);(x.isEmpty()||!L)&&(p.selection.moveToPosition(b),p.selection.selectWord()),o="wait",I()}function k(){l=null,clearTimeout(l),p.selection.moveToPosition(b);var x=R>=2?p.selection.getLineRange(b.row):p.session.getBracketRange(b);x&&!x.isEmpty()?p.selection.setRange(x):p.selection.selectWord(),o="wait"}y.addListener(f,"contextmenu",function(x){if(v){var L=p.textInput.getElement();L.focus()}},p),y.addListener(f,"touchstart",function(x){var L=x.touches;if(l||L.length>1){clearTimeout(l),l=null,r=-1,o="zoom";return}v=p.$mouseHandler.isMousePressed=!0;var O=p.renderer.layerConfig.lineHeight,F=p.renderer.layerConfig.lineHeight,W=x.timeStamp;n=W;var U=L[0],V=U.clientX,G=U.clientY;Math.abs(a-V)+Math.abs(i-G)>O&&(r=-1),a=x.clientX=V,i=x.clientY=G,$=_=0;var J=new w(x,p);if(b=J.getDocumentPosition(),W-r<500&&L.length==1&&!g)R++,x.preventDefault(),x.button=0,k();else{R=0;var K=p.selection.cursor,Q=p.selection.isEmpty()?K:p.selection.anchor,ie=p.renderer.$cursorLayer.getPixelPosition(K,!0),X=p.renderer.$cursorLayer.getPixelPosition(Q,!0),ae=p.renderer.scroller.getBoundingClientRect(),ge=p.renderer.layerConfig.offset,me=p.renderer.scrollLeft,fe=function(At,it){return At=At/F,it=it/O-.75,At*At+it*it};if(x.clientX<ae.left){o="zoom";return}var _e=fe(x.clientX-ae.left-ie.left+me,x.clientY-ae.top-ie.top+ge),Xe=fe(x.clientX-ae.left-X.left+me,x.clientY-ae.top-X.top+ge);_e<3.5&&Xe<3.5&&(o=_e>Xe?"cursor":"anchor"),Xe<3.5?o="anchor":_e<3.5?o="cursor":o="scroll",l=setTimeout(N,450)}r=W},p),y.addListener(f,"touchend",function(x){v=p.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),o=="zoom"?(o="",g=0):l?(p.selection.moveToPosition(b),g=0,I()):o=="scroll"?(m(),M()):I(),clearTimeout(l),l=null},p),y.addListener(f,"touchmove",function(x){l&&(clearTimeout(l),l=null);var L=x.touches;if(!(L.length>1||o=="zoom")){var O=L[0],F=a-O.clientX,W=i-O.clientY;if(o=="wait")if(F*F+W*W>4)o="cursor";else return x.preventDefault();a=O.clientX,i=O.clientY,x.clientX=O.clientX,x.clientY=O.clientY;var U=x.timeStamp,V=U-n;if(n=U,o=="scroll"){var G=new w(x,p);G.speed=1,G.wheelX=F,G.wheelY=W,10*Math.abs(F)<Math.abs(W)&&(F=0),10*Math.abs(W)<Math.abs(F)&&(W=0),V!=0&&($=F/V,_=W/V),p._emit("mousewheel",G),G.propagationStopped||($=_=0)}else{var J=new w(x,p),K=J.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(K):o=="anchor"&&p.selection.setSelectionAnchor(K.row,K.column),p.renderer.scrollCursorIntoView(K),x.preventDefault()}}},p);function m(){g+=60,d=setInterval(function(){g--<=0&&(clearInterval(d),d=null),Math.abs($)<.01&&($=0),Math.abs(_)<.01&&(_=0),g<20&&($=.9*$),g<20&&(_=.9*_);var x=p.session.getScrollTop();p.renderer.scrollBy(10*$,10*_),x==p.session.getScrollTop()&&(g=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(t,s,A){var w=t("../lib/event"),y=t("../lib/useragent"),S=t("./default_handlers").DefaultHandlers,f=t("./default_gutter_handler").GutterHandler,p=t("./mouse_event").MouseEvent,o=t("./dragdrop_handler").DragdropHandler,a=t("./touch_handler").addTouchListeners,i=t("../config"),r=function(){function n(l){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var d=this;this.editor=l,new S(this),new f(this),new o(this);var g=function($){var _=!document.hasFocus||!document.hasFocus()||!l.isFocused()&&document.activeElement==(l.textInput&&l.textInput.getElement());_&&window.focus(),l.focus(),setTimeout(function(){l.isFocused()||l.focus()})},b=l.renderer.getMouseEventTarget();w.addListener(b,"click",this.onMouseEvent.bind(this,"click"),l),w.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),l),w.addMultiMouseDownListener([b,l.renderer.scrollBarV&&l.renderer.scrollBarV.inner,l.renderer.scrollBarH&&l.renderer.scrollBarH.inner,l.textInput&&l.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",l),w.addMouseWheelListener(l.container,this.onMouseWheel.bind(this,"mousewheel"),l),a(l.container,l);var R=l.renderer.$gutter;w.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),l),w.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),l),w.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),l),w.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),l),w.addListener(b,"mousedown",g,l),w.addListener(R,"mousedown",g,l),y.isIE&&l.renderer.scrollBarV&&(w.addListener(l.renderer.scrollBarV.element,"mousedown",g,l),w.addListener(l.renderer.scrollBarH.element,"mousedown",g,l)),l.on("mousemove",function($){if(!(d.state||d.$dragDelay||!d.$dragEnabled)){var _=l.renderer.screenToTextCoordinates($.x,$.y),v=l.session.selection.getRange(),T=l.renderer;!v.isEmpty()&&v.insideStart(_.row,_.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},l)}return n.prototype.onMouseEvent=function(l,d){this.editor.session&&this.editor._emit(l,new p(d,this.editor))},n.prototype.onMouseMove=function(l,d){var g=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!g||!g.length||this.editor._emit(l,new p(d,this.editor))},n.prototype.onMouseWheel=function(l,d){var g=new p(d,this.editor);g.speed=this.$scrollSpeed*2,g.wheelX=d.wheelX,g.wheelY=d.wheelY,this.editor._emit(l,g)},n.prototype.setState=function(l){this.state=l},n.prototype.captureMouse=function(l,d){this.x=l.x,this.y=l.y,this.isMousePressed=!0;var g=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var R=this,$=function(I){if(I){if(y.isWebKit&&!I.which&&R.releaseMouse)return R.releaseMouse();R.x=I.clientX,R.y=I.clientY,d&&d(I),R.mouseEvent=new p(I,R.editor),R.$mouseMoved=!0}},_=function(I){g.off("beforeEndOperation",T),clearInterval(E),g.session&&v(),R[R.state+"End"]&&R[R.state+"End"](I),R.state="",R.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,I&&R.onMouseEvent("mouseup",I),g.endOperation()},v=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(y.isOldIE&&l.domEvent.type=="dblclick")return setTimeout(function(){_(l)});var T=function(I){R.releaseMouse&&g.curOp.command.name&&g.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};g.on("beforeEndOperation",T),g.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=$,R.releaseMouse=w.capture(this.editor.container,$,_);var E=setInterval(v,20)},n.prototype.cancelContextMenu=function(){var l=(function(d){d&&d.domEvent&&d.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",l),d&&d.domEvent&&w.stopEvent(d.domEvent))}).bind(this);setTimeout(l,10),this.editor.on("nativecontextmenu",l)},n.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},n}();r.prototype.releaseMouse=null,i.defineOptions(r.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),s.MouseHandler=r}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,s,A){var w=t("../lib/dom"),y=function(){function S(f){f.on("click",function(p){var o=p.getDocumentPosition(),a=f.session,i=a.getFoldAt(o.row,o.column,1);i&&(p.getAccelKey()?a.removeFold(i):a.expandFold(i),p.stop());var r=p.domEvent&&p.domEvent.target;r&&w.hasCssClass(r,"ace_inline_button")&&w.hasCssClass(r,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),f.renderer.scrollCursorIntoView())}),f.on("gutterclick",function(p){var o=f.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var a=p.getDocumentPosition().row,i=f.session;i.foldWidgets&&i.foldWidgets[a]&&f.session.onFoldWidgetClick(a,p),f.isFocused()||f.focus(),p.stop()}}),f.on("gutterdblclick",function(p){var o=f.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var a=p.getDocumentPosition().row,i=f.session,r=i.getParentFoldRangeData(a,!0),n=r.range||r.firstRange;if(n){a=n.start.row;var l=i.getFoldAt(a,i.getLine(a).length,1);l?i.removeFold(l):(i.addFold("...",n),f.renderer.scrollCursorIntoView({row:n.start.row,column:0}))}p.stop()}})}return S}();s.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,s,A){var w=t("../lib/keys"),y=t("../lib/event"),S=function(){function f(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return f.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},f.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},f.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var a=this.$handlers.indexOf(p);a!=-1&&this.$handlers.splice(a,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),a==-1&&p.attach&&p.attach(this.$editor)}},f.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},f.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},f.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(o,p)||""}).filter(Boolean).join(" ")},f.prototype.$callKeyboardHandlers=function(p,o,a,i){for(var r,n=!1,l=this.$editor.commands,d=this.$handlers.length;d--&&(r=this.$handlers[d].handleKeyboard(this.$data,p,o,a,i),!(!(!r||!r.command)&&(r.command=="null"?n=!0:n=l.exec(r.command,this.$editor,r.args,i),n&&i&&p!=-1&&r.passEvent!=!0&&r.command.passEvent!=!0&&y.stopEvent(i),n))););return!n&&p==-1&&(r={command:"insertstring"},n=l.exec("insertstring",this.$editor,o)),n&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),n},f.prototype.onCommandKey=function(p,o,a){var i=w.keyCodeToString(a);return this.$callKeyboardHandlers(o,i,a,p)},f.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},f}();s.KeyBinding=S}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,s,A){var w=0,y=0,S=!1,f=!1,p=!1,o=[[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]],a=[[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,n=0,l=1,d=2,g=3,b=4,R=5,$=6,_=7,v=8,T=9,E=10,I=11,M=12,N=13,k=14,m=15,x=16,L=17,O=18,F=[O,O,O,O,O,O,O,O,O,$,R,$,v,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,R,R,R,$,v,b,b,I,I,I,b,b,b,b,b,E,T,E,T,T,d,d,d,d,d,d,d,d,d,d,T,b,b,b,b,b,b,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,b,b,b,b,b,b,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,b,b,b,b,O,O,O,O,O,O,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,b,I,I,I,I,b,b,b,b,n,b,b,O,b,b,I,I,d,d,b,n,b,b,b,d,n,b,b,b,b,b],W=[v,v,v,v,v,v,v,v,v,v,v,O,O,O,n,l,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,v,R,N,k,m,x,L,T,I,I,I,I,I,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,T,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,v];function U(K,Q,ie,X){var ae=w?a:o,ge=null,me=null,fe=null,_e=0,Xe=null,At=null,it=-1,st=null,zt=null,xt=[];if(!X)for(st=0,X=[];st<ie;st++)X[st]=J(K[st]);for(y=w,S=!1,f=!1,p=!1,zt=0;zt<ie;zt++){if(ge=_e,xt[zt]=me=G(K,X,xt,zt),_e=ae[ge][me],Xe=_e&240,_e&=15,Q[zt]=fe=ae[_e][5],Xe>0)if(Xe==16){for(st=it;st<zt;st++)Q[st]=1;it=-1}else it=-1;if(At=ae[_e][6],At)it==-1&&(it=zt);else if(it>-1){for(st=it;st<zt;st++)Q[st]=fe;it=-1}X[zt]==R&&(Q[zt]=0),y|=fe}if(p){for(st=0;st<ie;st++)if(X[st]==$){Q[st]=w;for(var It=st-1;It>=0&&X[It]==v;It--)Q[It]=w}}}function V(K,Q,ie){if(!(y<K)){if(K==1&&w==r&&!f){ie.reverse();return}for(var X=ie.length,ae=0,ge,me,fe,_e;ae<X;){if(Q[ae]>=K){for(ge=ae+1;ge<X&&Q[ge]>=K;)ge++;for(me=ae,fe=ge-1;me<fe;me++,fe--)_e=ie[me],ie[me]=ie[fe],ie[fe]=_e;ae=ge}ae++}}}function G(K,Q,ie,X){var ae=Q[X],ge,me,fe,_e;switch(ae){case n:case l:S=!1;case b:case g:return ae;case d:return S?g:d;case _:return S=!0,l;case v:return b;case T:return X<1||X+1>=Q.length||(ge=ie[X-1])!=d&&ge!=g||(me=Q[X+1])!=d&&me!=g?b:(S&&(me=g),me==ge?me:b);case E:return ge=X>0?ie[X-1]:R,ge==d&&X+1<Q.length&&Q[X+1]==d?d:b;case I:if(X>0&&ie[X-1]==d)return d;if(S)return b;for(_e=X+1,fe=Q.length;_e<fe&&Q[_e]==I;)_e++;return _e<fe&&Q[_e]==d?d:b;case M:for(fe=Q.length,_e=X+1;_e<fe&&Q[_e]==M;)_e++;if(_e<fe){var Xe=K[X],At=Xe>=1425&&Xe<=2303||Xe==64286;if(ge=Q[_e],At&&(ge==l||ge==_))return l}return X<1||(ge=Q[X-1])==R?b:ie[X-1];case R:return S=!1,f=!0,w;case $:return p=!0,b;case N:case k:case x:case L:case m:S=!1;case O:return b}}function J(K){var Q=K.charCodeAt(0),ie=Q>>8;return ie==0?Q>191?n:F[Q]:ie==5?/[\u0591-\u05f4]/.test(K)?l:n:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(K)?M:/[\u0660-\u0669\u066b-\u066c]/.test(K)?g:Q==1642?I:/[\u06f0-\u06f9]/.test(K)?d:_:ie==32&&Q<=8287?W[Q&255]:ie==254&&Q>=65136?_:b}s.L=n,s.R=l,s.EN=d,s.ON_R=3,s.AN=4,s.R_H=5,s.B=6,s.RLE=7,s.DOT="·",s.doBidiReorder=function(K,Q,ie){if(K.length<2)return{};var X=K.split(""),ae=new Array(X.length),ge=new Array(X.length),me=[];w=ie?r:i,U(X,me,X.length,Q);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,me,ae),V(1,me,ae);for(var fe=0;fe<ae.length-1;fe++)Q[fe]===g?me[fe]=s.AN:me[fe]===l&&(Q[fe]>_&&Q[fe]<N||Q[fe]===b||Q[fe]===O)?me[fe]=s.ON_R:fe>0&&X[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(X[fe])&&(me[fe-1]=me[fe]=s.R_H,fe++);X[X.length-1]===s.DOT&&(me[X.length-1]=s.B),X[0]===""&&(me[0]=s.RLE);for(var fe=0;fe<ae.length;fe++)ge[fe]=me[ae[fe]];return{logicalFromVisual:ae,bidiLevels:ge}},s.hasBidiCharacters=function(K,Q){for(var ie=!1,X=0;X<K.length;X++)Q[X]=J(K.charAt(X)),!ie&&(Q[X]==l||Q[X]==_||Q[X]==g)&&(ie=!0);return ie},s.getVisualFromLogicalIdx=function(K,Q){for(var ie=0;ie<Q.logicalFromVisual.length;ie++)if(Q.logicalFromVisual[ie]==K)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,s,A){var w=t("./lib/bidiutil"),y=t("./lib/lang"),S=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,f=function(){function p(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=w,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(o.getValue())}return p.prototype.isBidiRow=function(o,a,i){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(a,i),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&S.test(o.lines.join(`
|
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,a=this.session.$screenRowCache;if(a.length){var i=this.session.$getRowCacheIndex(a,this.currentRow);i>=0&&(o=this.session.$docRowCache[i])}return o},p.prototype.getSplitIndex=function(){var o=0,a=this.session.$screenRowCache;if(a.length)for(var i,r=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-o>0&&(i=this.session.$getRowCacheIndex(a,this.currentRow-o-1),i===r);)r=i,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,a){o===void 0&&(o=this.getDocumentRow());var i=o===this.session.getLength()-1,r=i?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var n=this.session.$wrapData[o];n&&(a===void 0&&(a=this.getSplitIndex()),a>0&&n.length?(this.wrapIndent=n.indent,this.wrapOffset=this.wrapIndent*this.charWidths[w.L],this.line=a<n.length?this.line.substring(n[a-1],n[a]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[a]),a==n.length&&(this.line+=this.showInvisibles?r:w.DOT))}else this.line+=this.showInvisibles?r:w.DOT;var l=this.session,d=0,g;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,R){return b===" "||l.isFullWidth(b.charCodeAt(0))?(g=b===" "?l.getScreenTabSize(R+d):2,d+=g-1,y.stringRepeat(w.DOT,g)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==w.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var o=[];w.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=w.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var a=this.characterWidth=o.$characterSize.width,i=o.$measureCharWidth("ה");this.charWidths[w.L]=this.charWidths[w.EN]=this.charWidths[w.ON_R]=a,this.charWidths[w.R]=this.charWidths[w.AN]=i,this.charWidths[w.R_H]=i*.45,this.charWidths[w.B]=this.charWidths[w.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},p.prototype.setEolChar=function(o){this.EOL=o},p.prototype.setContentWidth=function(o){this.contentWidth=o},p.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(o,a){for(var i=o.getCursorPosition(),r=o.selection.getSelectionAnchor().row;r<=i.row;r++)!a&&o.session.getLine(r).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(r,0,1):a&&o.session.getLine(r).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:r},o.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(o){o-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,i=o>a?this.session.getOverwrite()?o:o-1:a,r=w.getVisualFromLogicalIdx(i,this.bidiMap),n=this.bidiMap.bidiLevels,l=0;!this.session.getOverwrite()&&o<=a&&n[r]%2!==0&&r++;for(var d=0;d<r;d++)l+=this.charWidths[n[d]];return!this.session.getOverwrite()&&o>a&&n[r]%2===0&&(l+=this.charWidths[n[r]]),this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(l+=this.rtlLineOffset),l},p.prototype.getSelections=function(o,a){var i=this.bidiMap,r=i.bidiLevels,n,l=[],d=0,g=Math.min(o,a)-this.wrapIndent,b=Math.max(o,a)-this.wrapIndent,R=!1,$=!1,_=0;this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var v,T=0;T<r.length;T++)v=i.logicalFromVisual[T],n=r[T],R=v>=g&&v<b,R&&!$?_=d:!R&&$&&l.push({left:_,width:d-_}),d+=this.charWidths[n],$=R;if(R&&T===r.length&&l.push({left:_,width:d-_}),this.isRtlDir)for(var E=0;E<l.length;E++)l[E].left+=this.rtlLineOffset;return l},p.prototype.offsetToCol=function(i){this.isRtlDir&&(i-=this.rtlLineOffset);var a=0,i=Math.max(i,0),r=0,n=0,l=this.bidiMap.bidiLevels,d=this.charWidths[l[n]];for(this.wrapIndent&&(i-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);i>r+d/2;){if(r+=d,n===l.length-1){d=0;break}d=this.charWidths[l[++n]]}return n>0&&l[n-1]%2!==0&&l[n]%2===0?(i<r&&n--,a=this.bidiMap.logicalFromVisual[n]):n>0&&l[n-1]%2===0&&l[n]%2!==0?a=1+(i>r?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===l.length-1&&d===0&&l[n-1]%2===0||!this.isRtlDir&&n===0&&l[n]%2!==0?a=1+this.bidiMap.logicalFromVisual[n]:(n>0&&l[n-1]%2!==0&&d!==0&&n--,a=this.bidiMap.logicalFromVisual[n]),a===0&&this.isRtlDir&&a++,a+this.wrapIndent},p}();s.BidiHandler=f}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,s,A){var w=t("./lib/oop"),y=t("./lib/lang"),S=t("./lib/event_emitter").EventEmitter,f=t("./range").Range,p=function(){function o(a){this.session=a,this.doc=a.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 o.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},o.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},o.prototype.getCursor=function(){return this.lead.getPosition()},o.prototype.setAnchor=function(a,i){this.$isEmpty=!1,this.anchor.setPosition(a,i)},o.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},o.prototype.getSelectionLead=function(){return this.lead.getPosition()},o.prototype.isBackwards=function(){var a=this.anchor,i=this.lead;return a.row>i.row||a.row==i.row&&a.column>i.column},o.prototype.getRange=function(){var a=this.anchor,i=this.lead;return this.$isEmpty?f.fromPoints(i,i):this.isBackwards()?f.fromPoints(i,a):f.fromPoints(a,i)},o.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},o.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},o.prototype.setRange=function(a,i){var r=i?a.end:a.start,n=i?a.start:a.end;this.$setSelection(r.row,r.column,n.row,n.column)},o.prototype.$setSelection=function(a,i,r,n){if(!this.$silent){var l=this.$isEmpty,d=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,i),this.cursor.setPosition(r,n),this.$isEmpty=!f.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||d)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(a){var i=this.lead;this.$isEmpty&&this.setSelectionAnchor(i.row,i.column),a.call(this)},o.prototype.selectTo=function(a,i){this.$moveSelection(function(){this.moveCursorTo(a,i)})},o.prototype.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},o.prototype.moveTo=function(a,i){this.clearSelection(),this.moveCursorTo(a,i)},o.prototype.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},o.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},o.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},o.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},o.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},o.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},o.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},o.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},o.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},o.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},o.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},o.prototype.getWordRange=function(a,i){if(typeof i>"u"){var r=a||this.lead;a=r.row,i=r.column}return this.session.getWordRange(a,i)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var a=this.getCursor(),i=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(i)},o.prototype.getLineRange=function(a,i){var r=typeof a=="number"?a:this.lead.row,n,l=this.session.getFoldLine(r);return l?(r=l.start.row,n=l.end.row):n=r,i===!0?new f(r,0,n,this.session.getLine(n).length):new f(r,0,n+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(a,i,r){var n=a.column,l=a.column+i;return r<0&&(n=a.column-i,l=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(n,l).split(" ").length-1==i},o.prototype.moveCursorLeft=function(){var a=this.lead.getPosition(),i;if(i=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(i.start.row,i.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var a=this.lead.getPosition(),i;if(i=this.session.getFoldAt(a.row,a.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(),a=this.lead;this.wouldMoveIntoSoftTab(a,r,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,r):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var a=this.lead.row,i=this.lead.column,r=this.session.documentToScreenRow(a,i),n=this.session.screenToDocumentPosition(r,0),l=this.session.getDisplayLine(a,null,n.row,n.column),d=l.match(/^\s*/);d[0].length!=i&&!this.session.$useEmacsStyleLineStart&&(n.column+=d[0].length),this.moveCursorToPosition(n)},o.prototype.moveCursorLineEnd=function(){var a=this.lead,i=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==i.column){var r=this.session.getLine(i.row);if(i.column==r.length){var n=r.search(/\s+$/);n>0&&(i.column=n)}}this.moveCursorTo(i.row,i.column)},o.prototype.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,i=this.doc.getLine(a).length;this.moveCursorTo(a,i)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var a=this.lead.row,i=this.lead.column,r=this.doc.getLine(a),n=r.substring(i);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var l=this.session.getFoldAt(a,i,1);if(l){this.moveCursorTo(l.end.row,l.end.column);return}if(this.session.nonTokenRe.exec(n)&&(i+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=r.substring(i)),i>=r.length){this.moveCursorTo(a,r.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(n)&&(i+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,i)},o.prototype.moveCursorLongWordLeft=function(){var a=this.lead.row,i=this.lead.column,r;if(r=this.session.getFoldAt(a,i,-1)){this.moveCursorTo(r.start.row,r.start.column);return}var n=this.session.getFoldStringAt(a,i,-1);n==null&&(n=this.doc.getLine(a).substring(0,i));var l=y.stringReverse(n);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(l)&&(i-=this.session.nonTokenRe.lastIndex,l=l.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(l)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,i)},o.prototype.$shortWordEndIndex=function(a){var i=0,r,n=/\s/,l=this.session.tokenRe;if(l.lastIndex=0,this.session.tokenRe.exec(a))i=this.session.tokenRe.lastIndex;else{for(;(r=a[i])&&n.test(r);)i++;if(i<1){for(l.lastIndex=0;(r=a[i])&&!l.test(r);)if(l.lastIndex=0,i++,n.test(r))if(i>2){i--;break}else{for(;(r=a[i])&&n.test(r);)i++;if(i>2)break}}}return l.lastIndex=0,i},o.prototype.moveCursorShortWordRight=function(){var a=this.lead.row,i=this.lead.column,r=this.doc.getLine(a),n=r.substring(i),l=this.session.getFoldAt(a,i,1);if(l)return this.moveCursorTo(l.end.row,l.end.column);if(i==r.length){var d=this.doc.getLength();do a++,n=this.doc.getLine(a);while(a<d&&/^\s*$/.test(n));/^\s+/.test(n)||(n=""),i=0}var g=this.$shortWordEndIndex(n);this.moveCursorTo(a,i+g)},o.prototype.moveCursorShortWordLeft=function(){var a=this.lead.row,i=this.lead.column,r;if(r=this.session.getFoldAt(a,i,-1))return this.moveCursorTo(r.start.row,r.start.column);var n=this.session.getLine(a).substring(0,i);if(i===0){do a--,n=this.doc.getLine(a);while(a>0&&/^\s*$/.test(n));i=n.length,/\s+$/.test(n)||(n="")}var l=y.stringReverse(n),d=this.$shortWordEndIndex(l);return this.moveCursorTo(a,i-d)},o.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},o.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},o.prototype.moveCursorBy=function(a,i){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),n;if(i===0&&(a!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var l=this.session.lineWidgets[this.lead.row];a<0?a-=l.rowsAbove||0:a>0&&(a+=l.rowCount-(l.rowsAbove||0))}var d=this.session.screenToDocumentPosition(r.row+a,r.column,n);a!==0&&i===0&&d.row===this.lead.row&&(d.column,this.lead.column),this.moveCursorTo(d.row,d.column+i,i===0)},o.prototype.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},o.prototype.moveCursorTo=function(a,i,r){var n=this.session.getFoldAt(a,i,1);n&&(a=n.start.row,i=n.start.column),this.$keepDesiredColumnOnChange=!0;var l=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(l.charAt(i))&&l.charAt(i-1)&&(this.lead.row==a&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(a,i),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(a,i,r){var n=this.session.screenToDocumentPosition(a,i);this.moveCursorTo(n.row,n.column,r)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(a){var i=this.getRange();return a?(a.start.column=i.start.column,a.start.row=i.start.row,a.end.column=i.end.column,a.end.row=i.end.row):a=i,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},o.prototype.getRangeOfMovements=function(a){var i=this.getCursor();try{a(this);var r=this.getCursor();return f.fromPoints(i,r)}catch{return f.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},o.prototype.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(i){var r=i.clone();return r.isBackwards=i.cursor==i.start,r});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},o.prototype.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var i=a.length;i--;){var r=f.fromPoints(a[i].start,a[i].end);a[i].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},o.prototype.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(a[i]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,w.implement(p.prototype,S),s.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,s,A){var w=t("./lib/report_error").reportError,y=2e3,S=function(){function f(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var a=this.states[o],i=[],r=0,n=this.matchMappings[o]={defaultToken:"text"},l="g",d=[],g=0;g<a.length;g++){var b=a[g];if(b.defaultToken&&(n.defaultToken=b.defaultToken),b.caseInsensitive&&l.indexOf("i")===-1&&(l+="i"),b.unicode&&l.indexOf("u")===-1&&(l+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var R=b.regex,$=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||$==1?b.token=b.token[0]:$-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:$-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&($>1?b.onMatch=this.$applyToken:b.onMatch=b.token),$>1&&(/\\\d/.test(b.regex)?R=b.regex.replace(/\\([0-9]+)/g,function(_,v){return"\\"+(parseInt(v,10)+r+1)}):($=1,R=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&d.push(b)),n[r]=g,r+=$,i.push(R),b.onMatch||(b.onMatch=null)}}i.length||(n[0]=0,i.push("$")),d.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,l)},this),this.regExps[o]=new RegExp("("+i.join(")|(")+")|($)",l)}}return f.prototype.$setMaxTokenCount=function(p){y=p|0},f.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),a=this.token.apply(this,o);if(typeof a=="string")return[{type:a,value:p}];for(var i=[],r=0,n=a.length;r<n;r++)o[r]&&(i[i.length]={type:a[r],value:o[r]});return i},f.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var a=[],i=this.tokenArray,r=0,n=i.length;r<n;r++)o[r+1]&&(a[a.length]={type:i[r],value:o[r+1]});return a},f.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,i){return i?"(?:":a});return o},f.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var a=0,i=!1,r={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(n,l,d,g,b,R){return i?i=b!="]":b?i=!0:g?(a==r.stack&&(r.end=R+1,r.stack=-1),a--):d&&(a++,d.length!=1&&(r.stack=a,r.start=R)),n}),r.end!=null&&/^\)*$/.test(p.substr(r.end))&&(p=p.substring(0,r.start)+p.substr(r.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(o||"").replace("g",""))},f.prototype.getLineTokens=function(p,o){if(o&&typeof o!="string"){var a=o.slice(0);o=a[0],o==="#tmp"&&(a.shift(),o=a.shift())}else var a=[];var i=o||"start",r=this.states[i];r||(i="start",r=this.states[i]);var n=this.matchMappings[i],l=this.regExps[i];l.lastIndex=0;for(var d,g=[],b=0,R=0,$={type:null,value:""};d=l.exec(p);){var _=n.defaultToken,v=null,T=d[0],E=l.lastIndex;if(E-T.length>b){var I=p.substring(b,E-T.length);$.type==_?$.value+=I:($.type&&g.push($),$={type:_,value:I})}for(var M=0;M<d.length-2;M++)if(d[M+1]!==void 0){v=r[n[M]],v.onMatch?_=v.onMatch(T,i,a,p):_=v.token,v.next&&(typeof v.next=="string"?i=v.next:i=v.next(i,a),r=this.states[i],r||(this.reportError("state doesn't exist",i),i="start",r=this.states[i]),n=this.matchMappings[i],b=E,l=this.regExps[i],l.lastIndex=E),v.consumeLineEnd&&(b=E);break}if(T){if(typeof _=="string")(!v||v.merge!==!1)&&$.type===_?$.value+=T:($.type&&g.push($),$={type:_,value:T});else if(_){$.type&&g.push($),$={type:null,value:""};for(var M=0;M<_.length;M++)g.push(_[M])}}if(b==p.length)break;if(b=E,R++>y){for(R>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});b<p.length;)$.type&&g.push($),$={value:p.substring(b,b+=500),type:"overflow"};i="start",a=[];break}}return $.type&&g.push($),a.length>1&&a[0]!==i&&a.unshift("#tmp",i),{tokens:g,state:a.length?a:i}},f}();S.prototype.reportError=w,s.Tokenizer=S}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,s,A){var w=t("../lib/deep_copy").deepCopy,y;y=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var a in p)this.$rules[a]=p[a];return}for(var a in p){for(var i=p[a],r=0;r<i.length;r++){var n=i[r];(n.next||n.onMatch)&&(typeof n.next=="string"&&n.next.indexOf(o)!==0&&(n.next=o+n.next),n.nextState&&n.nextState.indexOf(o)!==0&&(n.nextState=o+n.nextState))}this.$rules[o+a]=i}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,a,i,r){var n=typeof p=="function"?new p().getRules():p;if(i)for(var l=0;l<i.length;l++)i[l]=o+i[l];else{i=[];for(var d in n)i.push(o+d)}if(this.addRules(n,o),a)for(var g=Array.prototype[r?"push":"unshift"],l=0;l<i.length;l++)g.apply(this.$rules[i[l]],w(a));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var S=function(p,o){return(p!="start"||o.length)&&o.unshift(this.nextState,p),this.nextState},f=function(p,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var p=0,o=this.$rules;function a(i){var r=o[i];r.processed=!0;for(var n=0;n<r.length;n++){var l=r[n],d=null;Array.isArray(l)&&(d=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var g=l.next||l.push;if(g&&Array.isArray(g)){var b=l.stateName;b||(b=l.token,typeof b!="string"&&(b=b[0]||""),o[b]&&(b+=p++)),o[b]=g,l.next=b,a(b)}else g=="pop"&&(l.next=f);if(l.push&&(l.nextState=l.next||l.push,l.next=S,delete l.push),l.rules)for(var R in l.rules)o[R]?o[R].push&&o[R].push.apply(o[R],l.rules[R]):o[R]=l.rules[R];var $=typeof l=="string"?l:l.include;if($&&($==="$self"&&($="start"),Array.isArray($)?d=$.map(function(v){return o[v]}):d=o[$]),d){var _=[n,1].concat(d);l.noEscape&&(_=_.filter(function(v){return!v.next})),r.splice.apply(r,_),n--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(o).forEach(a,this)},this.createKeywordMapper=function(p,o,a,i){var r=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(n){for(var l=p[n],d=l.split(i||"|"),g=d.length;g--;){var b=d[g];this.$keywordList.push(b),a&&(b=b.toLowerCase()),r[b]=n}},this),p=null,a?function(n){return r[n.toLowerCase()]||o}:function(n){return r[n]||o}},this.getKeywords=function(){return this.$keywords}}).call(y.prototype),s.TextHighlightRules=y}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,s,A){var w;w=function(){this.$behaviours={}},(function(){this.add=function(y,S,f){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[y]:this.$behaviours[y]={}}this.$behaviours[y][S]=f},this.addBehaviours=function(y){for(var S in y)for(var f in y[S])this.add(S,f,y[S][f])},this.remove=function(y){this.$behaviours&&this.$behaviours[y]&&delete this.$behaviours[y]},this.inherit=function(y,S){if(typeof y=="function")var f=new y().getBehaviours(S);else var f=y.getBehaviours(S);this.addBehaviours(f)},this.getBehaviours=function(y){if(y){for(var S={},f=0;f<y.length;f++)this.$behaviours[y[f]]&&(S[y[f]]=this.$behaviours[y[f]]);return S}else return this.$behaviours}}).call(w.prototype),s.Behaviour=w}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,s,A){var w=t("./range").Range,y=function(){function S(f,p,o){this.$session=f,this.$row=p,this.$rowTokens=f.getTokens(p);var a=f.getTokenAt(p,o);this.$tokenIndex=a?a.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 f;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,f||(f=this.$session.getLength()),this.$row>=f)return this.$row=f-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 f=this.$rowTokens,p=this.$tokenIndex,o=f[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=f[p].value.length;return o},S.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},S.prototype.getCurrentTokenRange=function(){var f=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new w(this.$row,p,this.$row,p+f.value.length)},S}();s.TokenIterator=y}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,s,A){var w=t("../../lib/oop"),y=t("../behaviour").Behaviour,S=t("../../token_iterator").TokenIterator,f=t("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],a,i={},r={'"':'"',"'":"'"},n=function(g){var b=-1;if(g.multiSelect&&(b=g.selection.index,i.rangeCount!=g.multiSelect.rangeCount&&(i={rangeCount:g.multiSelect.rangeCount})),i[b])return a=i[b];a=i[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},l=function(g,b,R,$){var _=g.end.row-g.start.row;return{text:R+b+$,selection:[0,g.start.column+1,_,g.end.column+(_?0:1)]}},d;d=function(g){g=g||{},this.add("braces","insertion",function(b,R,$,_,v){var T=$.getCursorPosition(),E=_.doc.getLine(T.row);if(v=="{"){n($);var I=$.getSelectionRange(),M=_.doc.getTextRange(I),N=_.getTokenAt(T.row,T.column);if(M!==""&&M!=="{"&&$.getWrapBehavioursEnabled())return l(I,M,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var k=[/tag\-(?:open|name)/,/attribute\-name/];return k.some(function(U){return U.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(d.recordAutoInsert($,_,"}"),{text:"{}",selection:[1,1]})}else if(d.isSaneInsertion($,_))return/[\]\}\)]/.test(E[T.column])||$.inMultiSelectMode||g.braces?(d.recordAutoInsert($,_,"}"),{text:"{}",selection:[1,1]}):(d.recordMaybeInsert($,_,"{"),{text:"{",selection:[1,1]})}else if(v=="}"){n($);var m=E.substring(T.column,T.column+1);if(m=="}"){var x=_.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(x!==null&&d.isAutoInsertedClosing(T,E,v))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(v==`
|
|
180
|
+
`||v==`\r
|
|
181
|
+
`){n($);var L="";d.isMaybeInsertedClosing(T,E)&&(L=f.stringRepeat("}",a.maybeInsertedBrackets),d.clearMaybeInsertedClosing());var m=E.substring(T.column,T.column+1);if(m==="}"){var O=_.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(_.getLine(O.row))}else if(L)var F=this.$getIndent(E);else{d.clearMaybeInsertedClosing();return}var W=F+_.getTabString();return{text:`
|
|
182
|
+
`+W+`
|
|
183
|
+
`+F+L,selection:[1,W.length,1,W.length]}}else d.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,R,$,_,v){var T=_.doc.getTextRange(v);if(!v.isMultiLine()&&T=="{"){n($);var E=_.doc.getLine(v.start.row),I=E.substring(v.end.column,v.end.column+1);if(I=="}")return v.end.column++,v;a.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,R,$,_,v){if(v=="("){n($);var T=$.getSelectionRange(),E=_.doc.getTextRange(T);if(E!==""&&$.getWrapBehavioursEnabled())return l(T,E,"(",")");if(d.isSaneInsertion($,_))return d.recordAutoInsert($,_,")"),{text:"()",selection:[1,1]}}else if(v==")"){n($);var I=$.getCursorPosition(),M=_.doc.getLine(I.row),N=M.substring(I.column,I.column+1);if(N==")"){var k=_.$findOpeningBracket(")",{column:I.column+1,row:I.row});if(k!==null&&d.isAutoInsertedClosing(I,M,v))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,R,$,_,v){var T=_.doc.getTextRange(v);if(!v.isMultiLine()&&T=="("){n($);var E=_.doc.getLine(v.start.row),I=E.substring(v.start.column+1,v.start.column+2);if(I==")")return v.end.column++,v}}),this.add("brackets","insertion",function(b,R,$,_,v){if(v=="["){n($);var T=$.getSelectionRange(),E=_.doc.getTextRange(T);if(E!==""&&$.getWrapBehavioursEnabled())return l(T,E,"[","]");if(d.isSaneInsertion($,_))return d.recordAutoInsert($,_,"]"),{text:"[]",selection:[1,1]}}else if(v=="]"){n($);var I=$.getCursorPosition(),M=_.doc.getLine(I.row),N=M.substring(I.column,I.column+1);if(N=="]"){var k=_.$findOpeningBracket("]",{column:I.column+1,row:I.row});if(k!==null&&d.isAutoInsertedClosing(I,M,v))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,R,$,_,v){var T=_.doc.getTextRange(v);if(!v.isMultiLine()&&T=="["){n($);var E=_.doc.getLine(v.start.row),I=E.substring(v.start.column+1,v.start.column+2);if(I=="]")return v.end.column++,v}}),this.add("string_dquotes","insertion",function(b,R,$,_,v){var T=_.$mode.$quotes||r;if(v.length==1&&T[v]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(v)!=-1)return;n($);var E=v,I=$.getSelectionRange(),M=_.doc.getTextRange(I);if(M!==""&&(M.length!=1||!T[M])&&$.getWrapBehavioursEnabled())return l(I,M,E,E);if(!M){var N=$.getCursorPosition(),k=_.doc.getLine(N.row),m=k.substring(N.column-1,N.column),x=k.substring(N.column,N.column+1),L=_.getTokenAt(N.row,N.column),O=_.getTokenAt(N.row,N.column+1);if(m=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),W=!O||/string|escape/.test(O.type),U;if(x==E)U=F!==W,U&&/string\.end/.test(O.type)&&(U=!1);else{if(F&&!W||F&&W)return null;var V=_.$mode.tokenRe;V.lastIndex=0;var G=V.test(m);V.lastIndex=0;var J=V.test(x),K=_.$mode.$pairQuotesAfter,Q=K&&K[E]&&K[E].test(m);if(!Q&&G||J||x&&!/[\s;,.})\]\\]/.test(x))return null;var ie=k[N.column-2];if(m==E&&(ie==E||V.test(ie)))return null;U=!0}return{text:U?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,R,$,_,v){var T=_.$mode.$quotes||r,E=_.doc.getTextRange(v);if(!v.isMultiLine()&&T.hasOwnProperty(E)){n($);var I=_.doc.getLine(v.start.row),M=I.substring(v.start.column+1,v.start.column+2);if(M==E)return v.end.column++,v}}),g.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,R,$,_,v){if(b==="doc-start"&&(v===`
|
|
184
|
+
`||v===`\r
|
|
185
|
+
`)&&$.selection.isEmpty()){var T=$.getCursorPosition();if(T.column===0)return;for(var E=_.doc.getLine(T.row),I=_.doc.getLine(T.row+1),M=_.getTokens(T.row),N=0,k=0;k<M.length;k++){N+=M[k].value.length;var m=M[k];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(m.type))return;if(/\*\//.test(m.value)){var x=M[k+1];if(!x||!/\.doc/.test(x.type))return}}var L=T.column-(N-m.value.length),O=m.value.indexOf("*/"),F=m.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&L>F&&L<F+3||O!==-1&&F!==-1&&L>=O&&L<=F||!/\.doc/.test(m.type))return;break}}var W=this.$getIndent(E);if(/\s*\*/.test(I))return/^\s*\*/.test(E)?{text:v+W+"* ",selection:[1,2+W.length,1,2+W.length]}:{text:v+W+" * ",selection:[1,3+W.length,1,3+W.length]};if(/\/\*\*/.test(E.substring(0,T.column)))return{text:v+W+" * "+v+" "+W+"*/",selection:[1,4+W.length,1,4+W.length]}}})},d.isSaneInsertion=function(g,b){var R=g.getCursorPosition(),$=new S(b,R.row,R.column);if(!this.$matchTokenType($.getCurrentToken()||"text",p)){if(/[)}\]]/.test(g.session.getLine(R.row)[R.column]))return!0;var _=new S(b,R.row,R.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",p))return!1}return $.stepForward(),$.getCurrentTokenRow()!==R.row||this.$matchTokenType($.getCurrentToken()||"text",o)},d.$matchTokenType=function(g,b){return b.indexOf(g.type||g)>-1},d.recordAutoInsert=function(g,b,R){var $=g.getCursorPosition(),_=b.doc.getLine($.row);this.isAutoInsertedClosing($,_,a.autoInsertedLineEnd[0])||(a.autoInsertedBrackets=0),a.autoInsertedRow=$.row,a.autoInsertedLineEnd=R+_.substr($.column),a.autoInsertedBrackets++},d.recordMaybeInsert=function(g,b,R){var $=g.getCursorPosition(),_=b.doc.getLine($.row);this.isMaybeInsertedClosing($,_)||(a.maybeInsertedBrackets=0),a.maybeInsertedRow=$.row,a.maybeInsertedLineStart=_.substr(0,$.column)+R,a.maybeInsertedLineEnd=_.substr($.column),a.maybeInsertedBrackets++},d.isAutoInsertedClosing=function(g,b,R){return a.autoInsertedBrackets>0&&g.row===a.autoInsertedRow&&R===a.autoInsertedLineEnd[0]&&b.substr(g.column)===a.autoInsertedLineEnd},d.isMaybeInsertedClosing=function(g,b){return a.maybeInsertedBrackets>0&&g.row===a.maybeInsertedRow&&b.substr(g.column)===a.maybeInsertedLineEnd&&b.substr(0,g.column)==a.maybeInsertedLineStart},d.popAutoInsertedClosing=function(){a.autoInsertedLineEnd=a.autoInsertedLineEnd.substr(1),a.autoInsertedBrackets--},d.clearMaybeInsertedClosing=function(){a&&(a.maybeInsertedBrackets=0,a.maybeInsertedRow=-1)},w.inherits(d,y),s.CstyleBehaviour=d}),ace.define("ace/unicode",["require","exports","module"],function(t,s,A){for(var w=[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],y=0,S=[],f=0;f<w.length;f+=2)S.push(y+=w[f]),w[f+1]&&S.push(45,y+=w[f+1]);s.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(t,s,A){var w=t("../config"),y=t("../tokenizer").Tokenizer,S=t("./text_highlight_rules").TextHighlightRules,f=t("./behaviour/cstyle").CstyleBehaviour,p=t("../unicode"),o=t("../lib/lang"),a=t("../token_iterator").TokenIterator,i=t("../range").Range,r;r=function(){this.HighlightRules=S},(function(){this.$defaultBehaviour=new f,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new y(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(n,l,d,g){var b=l.doc,R=!0,$=!0,_=1/0,v=l.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(o.escapeRegExp).join("|"),E=this.lineCommentStart[0];else var M=o.escapeRegExp(this.lineCommentStart),E=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),T=l.getUseSoftTabs();var m=function(J,K){var Q=J.match(M);if(Q){var ie=Q[1].length,X=Q[0].length;!O(J,ie,X)&&Q[0][X-1]==" "&&X--,b.removeInLine(K,ie,X)}},L=E+" ",k=function(J,K){(!R||/\S/.test(J))&&(O(J,_,_)?b.insertInLine({row:K,column:_},L):b.insertInLine({row:K,column:_},E))},x=function(J,K){return M.test(J)},O=function(J,K,Q){for(var ie=0;K--&&J.charAt(K)==" ";)ie++;if(ie%v!=0)return!1;for(var ie=0;J.charAt(Q++)==" ";)ie++;return v>2?ie%v!=v-1:ie%v==0}}else{if(!this.blockComment)return!1;var E=this.blockComment.start,I=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(E)+")"),N=new RegExp("(?:"+o.escapeRegExp(I)+")\\s*$"),k=function(U,V){x(U,V)||(!R||/\S/.test(U))&&(b.insertInLine({row:V,column:U.length},I),b.insertInLine({row:V,column:_},E))},m=function(U,V){var G;(G=U.match(N))&&b.removeInLine(V,U.length-G[0].length,U.length),(G=U.match(M))&&b.removeInLine(V,G[1].length,G[0].length)},x=function(U,V){if(M.test(U))return!0;for(var G=l.getTokens(V),J=0;J<G.length;J++)if(G[J].type==="comment")return!0}}function F(U){for(var V=d;V<=g;V++)U(b.getLine(V),V)}var W=1/0;F(function(U,V){var G=U.search(/\S/);G!==-1?(G<_&&(_=G),$&&!x(U,V)&&($=!1)):W>U.length&&(W=U.length)}),_==1/0&&(_=W,R=!1,$=!1),T&&_%v!=0&&(_=Math.floor(_/v)*v),F($?m:k)},this.toggleBlockComment=function(n,l,d,g){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var R=new a(l,g.row,g.column),$=R.getCurrentToken();l.selection;var _=l.selection.toOrientedRange(),v,T;if($&&/comment/.test($.type)){for(var E,I;$&&/comment/.test($.type);){var M=$.value.indexOf(b.start);if(M!=-1){var N=R.getCurrentTokenRow(),k=R.getCurrentTokenColumn()+M;E=new i(N,k,N,k+b.start.length);break}$=R.stepBackward()}for(var R=new a(l,g.row,g.column),$=R.getCurrentToken();$&&/comment/.test($.type);){var M=$.value.indexOf(b.end);if(M!=-1){var N=R.getCurrentTokenRow(),k=R.getCurrentTokenColumn()+M;I=new i(N,k,N,k+b.end.length);break}$=R.stepForward()}I&&l.remove(I),E&&(l.remove(E),v=E.start.row,T=-b.start.length)}else T=b.start.length,v=d.start.row,l.insert(d.end,b.end),l.insert(d.start,b.start);_.start.row==v&&(_.start.column+=T),_.end.row==v&&(_.end.column+=T),l.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(n,l,d){return this.$getIndent(l)},this.checkOutdent=function(n,l,d){return!1},this.autoOutdent=function(n,l,d){},this.$getIndent=function(n){return n.match(/^\s*/)[0]},this.createWorker=function(n){return null},this.createModeDelegates=function(n){this.$embeds=[],this.$modes={};for(var l in n)if(n[l]){var d=n[l],g=d.prototype.$id,b=w.$modes[g];b||(w.$modes[g]=b=new d),w.$modes[l]||(w.$modes[l]=b),this.$embeds.push(l),this.$modes[l]=b}for(var R=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(v){(function(T){var E=R[v],I=T[E];T[R[v]]=function(){return this.$delegator(E,arguments,I)}})(_)},_=this,l=0;l<R.length;l++)$(l)},this.$delegator=function(n,l,d){var g=l[0]||"start";if(typeof g!="string"){if(Array.isArray(g[2])){var b=g[2][g[2].length-1],R=this.$modes[b];if(R)return R[n].apply(R,[g[1]].concat([].slice.call(l,1)))}g=g[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var _=g.split(this.$embeds[$]);if(!_[0]&&_[1]){l[0]=_[1];var R=this.$modes[this.$embeds[$]];return R[n].apply(R,l)}}var v=d.apply(this,l);return d?v:void 0},this.transformAction=function(n,l,d,g,b){if(this.$behaviour){var R=this.$behaviour.getBehaviours();for(var $ in R)if(R[$][l]){var _=R[$][l].apply(this,arguments);if(_)return _}}},this.getKeywords=function(n){if(!this.completionKeywords){var l=this.$tokenizer.rules,d=[];for(var g in l)for(var b=l[g],R=0,$=b.length;R<$;R++)if(typeof b[R].token=="string")/keyword|support|storage/.test(b[R].token)&&d.push(b[R].regex);else if(typeof b[R].token=="object"){for(var _=0,v=b[R].token.length;_<v;_++)if(/keyword|support|storage/.test(b[R].token[_])){var g=b[R].regex.match(/\(.+?\)/g)[_];d.push(g.substr(1,g.length-2))}}this.completionKeywords=d}return n?d.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(n,l,d,g){var b=this.$keywordList||this.$createKeywordList();return b.map(function(R){return{name:R,value:R,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(r.prototype),s.Mode=r}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,s,A){var w=t("./lib/dom"),y=function(){function S(f){this.session=f,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(f){var p;return this.lineWidgets?p=this.lineWidgets[f]&&this.lineWidgets[f].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[f]?1+p:this.$wrapData[f].length+1+p},S.prototype.$getWidgetScreenLength=function(){var f=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(f+=p.rowCount)}),f},S.prototype.$onChangeEditor=function(f){this.attach(f.editor)},S.prototype.attach=function(f){f&&f.widgetManager&&f.widgetManager!=this&&f.widgetManager.detach(),this.editor!=f&&(this.detach(),this.editor=f,f&&(f.widgetManager=this,f.renderer.on("beforeRender",this.measureWidgets),f.renderer.on("afterRender",this.renderWidgets)))},S.prototype.detach=function(f){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(a){a&&a.el&&a.el.parentNode&&(a._inDocument=!1,a.el.parentNode.removeChild(a.el))})}},S.prototype.updateOnFold=function(f,p){var o=p.lineWidgets;if(!(!o||!f.action)){for(var a=f.data,i=a.start.row,r=a.end.row,n=f.action=="add",l=i+1;l<r;l++)o[l]&&(o[l].hidden=n);o[r]&&(n?o[i]?o[r].hidden=n:o[i]=o[r]:(o[i]==o[r]&&(o[i]=void 0),o[r].hidden=n))}},S.prototype.updateOnChange=function(f){var p=this.session.lineWidgets;if(p){var o=f.start.row,a=f.end.row-o;if(a!==0)if(f.action=="remove"){var i=p.splice(o+1,a);!p[o]&&i[i.length-1]&&(p[o]=i.pop()),i.forEach(function(n){n&&this.removeLineWidget(n)},this),this.$updateRows()}else{var r=new Array(a);p[o]&&p[o].column!=null&&f.start.column>p[o].column&&o++,r.unshift(o,0),p.splice.apply(p,r),this.$updateRows()}}},S.prototype.$updateRows=function(){var f=this.session.lineWidgets;if(f){var p=!0;f.forEach(function(o,a){if(o)for(p=!1,o.row=a;o.$oldWidget;)o.$oldWidget.row=a,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},S.prototype.$registerLineWidget=function(f){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[f.row];return p&&(f.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[f.row]=f,f},S.prototype.addLineWidget=function(f){if(this.$registerLineWidget(f),f.session=this.session,!this.editor)return f;var p=this.editor.renderer;f.html&&!f.el&&(f.el=w.createElement("div"),f.el.innerHTML=f.html),f.text&&!f.el&&(f.el=w.createElement("div"),f.el.textContent=f.text),f.el&&(w.addCssClass(f.el,"ace_lineWidgetContainer"),f.className&&w.addCssClass(f.el,f.className),f.el.style.position="absolute",f.el.style.zIndex="5",p.container.appendChild(f.el),f._inDocument=!0,f.coverGutter||(f.el.style.zIndex="3"),f.pixelHeight==null&&(f.pixelHeight=f.el.offsetHeight)),f.rowCount==null&&(f.rowCount=f.pixelHeight/p.layerConfig.lineHeight);var o=this.session.getFoldAt(f.row,0);if(f.$fold=o,o){var a=this.session.lineWidgets;f.row==o.end.row&&!a[o.start.row]?a[o.start.row]=f:f.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:f.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(f),f},S.prototype.removeLineWidget=function(f){if(f._inDocument=!1,f.session=null,f.el&&f.el.parentNode&&f.el.parentNode.removeChild(f.el),f.editor&&f.editor.destroy)try{f.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[f.row];if(p==f)this.session.lineWidgets[f.row]=f.$oldWidget,f.$oldWidget&&this.onWidgetChanged(f.$oldWidget);else for(;p;){if(p.$oldWidget==f){p.$oldWidget=f.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:f.row}}}),this.$updateRows()},S.prototype.getWidgetsAtRow=function(f){for(var p=this.session.lineWidgets,o=p&&p[f],a=[];o;)a.push(o),o=o.$oldWidget;return a},S.prototype.onWidgetChanged=function(f){this.session._changedWidgets.push(f),this.editor&&this.editor.renderer.updateFull()},S.prototype.measureWidgets=function(f,p){var o=this.session._changedWidgets,a=p.layerConfig;if(!(!o||!o.length)){for(var i=1/0,r=0;r<o.length;r++){var n=o[r];if(!(!n||!n.el)&&n.session==this.session){if(!n._inDocument){if(this.session.lineWidgets[n.row]!=n)continue;n._inDocument=!0,p.container.appendChild(n.el)}n.h=n.el.offsetHeight,n.fixedWidth||(n.w=n.el.offsetWidth,n.screenWidth=Math.ceil(n.w/a.characterWidth));var l=n.h/a.lineHeight;n.coverLine&&(l-=this.session.getRowLineCount(n.row),l<0&&(l=0)),n.rowCount!=l&&(n.rowCount=l,n.row<i&&(i=n.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},S.prototype.renderWidgets=function(f,p){var o=p.layerConfig,a=this.session.lineWidgets;if(a){for(var i=Math.min(this.firstRow,o.firstRow),r=Math.max(this.lastRow,o.lastRow,a.length);i>0&&!a[i];)i--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var n=i;n<=r;n++){var l=a[n];if(!(!l||!l.el)){if(l.hidden){l.el.style.top=-100-(l.pixelHeight||0)+"px";continue}l._inDocument||(l._inDocument=!0,p.container.appendChild(l.el));var d=p.$cursorLayer.getPixelPosition({row:n,column:0},!0).top;l.coverLine||(d+=o.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=d-o.offset+"px";var g=l.coverGutter?0:p.gutterWidth;l.fixedWidth||(g-=p.scrollLeft),l.el.style.left=g+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=o.width+2*o.padding+"px"),l.fixedWidth?l.el.style.right=p.scrollBar.getWidth()+"px":l.el.style.right=""}}}},S}();s.LineWidgets=y}),ace.define("ace/apply_delta",["require","exports","module"],function(t,s,A){s.applyDelta=function(w,y,S){var f=y.start.row,p=y.start.column,o=w[f]||"";switch(y.action){case"insert":var a=y.lines;if(a.length===1)w[f]=o.substring(0,p)+y.lines[0]+o.substring(p);else{var i=[f,1].concat(y.lines);w.splice.apply(w,i),w[f]=o.substring(0,p)+w[f],w[f+y.lines.length-1]+=o.substring(p)}break;case"remove":var r=y.end.column,n=y.end.row;f===n?w[f]=o.substring(0,p)+o.substring(r):w.splice(f,n-f+1,o.substring(0,p)+w[n].substring(r));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,s,A){var w=t("./lib/oop"),y=t("./lib/event_emitter").EventEmitter,S=function(){function o(a,i,r){this.$onChange=this.onChange.bind(this),this.attach(a),typeof i!="number"?this.setPosition(i.row,i.column):this.setPosition(i,r)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var i=p(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},o.prototype.setPosition=function(a,i,r){var n;if(r?n={row:a,column:i}:n=this.$clipPositionToDocument(a,i),!(this.row==n.row&&this.column==n.column)){var l={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:l,value:n})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(a,i){var r={};return a>=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):a<0?(r.row=0,r.column=0):(r.row=a,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,i))),i<0&&(r.column=0),r},o}();S.prototype.$insertRight=!1,w.implement(S.prototype,y);function f(o,a,i){var r=i?o.column<=a.column:o.column<a.column;return o.row<a.row||o.row==a.row&&r}function p(o,a,i){var r=o.action=="insert",n=(r?1:-1)*(o.end.row-o.start.row),l=(r?1:-1)*(o.end.column-o.start.column),d=o.start,g=r?d:o.end;return f(a,d,i)?{row:a.row,column:a.column}:f(g,a,!i)?{row:a.row+n,column:a.column+(a.row==g.row?l:0)}:{row:d.row,column:d.column}}s.Anchor=S}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(t,s,A){var w=t("./lib/oop"),y=t("./apply_delta").applyDelta,S=t("./lib/event_emitter").EventEmitter,f=t("./range").Range,p=t("./anchor").Anchor,o=function(){function a(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 a.prototype.setValue=function(i){var r=this.getLength()-1;this.remove(new f(0,0,r,this.getLine(r).length)),this.insert({row:0,column:0},i||"")},a.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},a.prototype.createAnchor=function(i,r){return new p(this,i,r)},a.prototype.$detectNewLine=function(i){var r=i.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=r?r[1]:`
|
|
186
|
+
`,this._signal("changeNewLineMode")},a.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
187
|
+
`;case"unix":return`
|
|
188
|
+
`;default:return this.$autoNewLine||`
|
|
189
|
+
`}},a.prototype.setNewLineMode=function(i){this.$newLineMode!==i&&(this.$newLineMode=i,this._signal("changeNewLineMode"))},a.prototype.getNewLineMode=function(){return this.$newLineMode},a.prototype.isNewLine=function(i){return i==`\r
|
|
190
|
+
`||i=="\r"||i==`
|
|
191
|
+
`},a.prototype.getLine=function(i){return this.$lines[i]||""},a.prototype.getLines=function(i,r){return this.$lines.slice(i,r+1)},a.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},a.prototype.getLength=function(){return this.$lines.length},a.prototype.getTextRange=function(i){return this.getLinesForRange(i).join(this.getNewLineCharacter())},a.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 n=r.length-1;i.end.row-i.start.row==n&&(r[n]=r[n].substring(0,i.end.column))}return r},a.prototype.insertLines=function(i,r){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(i,r)},a.prototype.removeLines=function(i,r){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(i,r)},a.prototype.insertNewLine=function(i){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(i,["",""])},a.prototype.insert=function(i,r){return this.getLength()<=1&&this.$detectNewLine(r),this.insertMergedLines(i,this.$split(r))},a.prototype.insertInLine=function(i,r){var n=this.clippedPos(i.row,i.column),l=this.pos(i.row,i.column+r.length);return this.applyDelta({start:n,end:l,action:"insert",lines:[r]},!0),this.clonePos(l)},a.prototype.clippedPos=function(i,r){var n=this.getLength();i===void 0?i=n:i<0?i=0:i>=n&&(i=n-1,r=void 0);var l=this.getLine(i);return r==null&&(r=l.length),r=Math.min(Math.max(r,0),l.length),{row:i,column:r}},a.prototype.clonePos=function(i){return{row:i.row,column:i.column}},a.prototype.pos=function(i,r){return{row:i,column:r}},a.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},a.prototype.insertFullLines=function(i,r){i=Math.min(Math.max(i,0),this.getLength());var n=0;i<this.getLength()?(r=r.concat([""]),n=0):(r=[""].concat(r),i--,n=this.$lines[i].length),this.insertMergedLines({row:i,column:n},r)},a.prototype.insertMergedLines=function(i,r){var n=this.clippedPos(i.row,i.column),l={row:n.row+r.length-1,column:(r.length==1?n.column:0)+r[r.length-1].length};return this.applyDelta({start:n,end:l,action:"insert",lines:r}),this.clonePos(l)},a.prototype.remove=function(i){var r=this.clippedPos(i.start.row,i.start.column),n=this.clippedPos(i.end.row,i.end.column);return this.applyDelta({start:r,end:n,action:"remove",lines:this.getLinesForRange({start:r,end:n})}),this.clonePos(r)},a.prototype.removeInLine=function(i,r,n){var l=this.clippedPos(i,r),d=this.clippedPos(i,n);return this.applyDelta({start:l,end:d,action:"remove",lines:this.getLinesForRange({start:l,end:d})},!0),this.clonePos(l)},a.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 n=r==this.getLength()-1&&i>0,l=r<this.getLength()-1,d=n?i-1:i,g=n?this.getLine(d).length:0,b=l?r+1:r,R=l?0:this.getLine(b).length,$=new f(d,g,b,R),_=this.$lines.slice(i,r+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),_},a.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:["",""]})},a.prototype.replace=function(i,r){if(i instanceof f||(i=f.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 n;return r?n=this.insert(i.start,r):n=i.start,n},a.prototype.applyDeltas=function(i){for(var r=0;r<i.length;r++)this.applyDelta(i[r])},a.prototype.revertDeltas=function(i){for(var r=i.length-1;r>=0;r--)this.revertDelta(i[r])},a.prototype.applyDelta=function(i,r){var n=i.action=="insert";(n?i.lines.length<=1&&!i.lines[0]:!f.comparePoints(i.start,i.end))||(n&&i.lines.length>2e4?this.$splitAndapplyLargeDelta(i,2e4):(y(this.$lines,i,r),this._signal("change",i)))},a.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)},a.prototype.$splitAndapplyLargeDelta=function(i,r){for(var n=i.lines,l=n.length-r+1,d=i.start.row,g=i.start.column,b=0,R=0;b<l;b=R){R+=r-1;var $=n.slice(b,R);$.push(""),this.applyDelta({start:this.pos(d+b,g),end:this.pos(d+R,g=0),action:i.action,lines:$},!0)}i.lines=n.slice(b),i.start.row=d+b,i.start.column=g,this.applyDelta(i,!0)},a.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()})},a.prototype.indexToPosition=function(i,r){for(var n=this.$lines||this.getAllLines(),l=this.getNewLineCharacter().length,d=r||0,g=n.length;d<g;d++)if(i-=n[d].length+l,i<0)return{row:d,column:i+n[d].length+l};return{row:g-1,column:i+n[g-1].length+l}},a.prototype.positionToIndex=function(i,r){for(var n=this.$lines||this.getAllLines(),l=this.getNewLineCharacter().length,d=0,g=Math.min(i.row,n.length),b=r||0;b<g;++b)d+=n[b].length+l;return d+i.column},a.prototype.$split=function(i){return i.split(/\r\n|\r|\n/)},a}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",w.implement(o.prototype,S),s.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,s,A){var w=t("./lib/oop"),y=t("./lib/event_emitter").EventEmitter,S=function(){function f(p,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var a=this;this.$worker=function(){if(a.running){for(var i=new Date,r=a.currentLine,n=-1,l=a.doc,d=r;a.lines[r];)r++;var g=l.getLength(),b=0;for(a.running=!1;r<g;){a.$tokenizeRow(r),n=r;do r++;while(a.lines[r]);if(b++,b%5===0&&new Date-i>20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=r,n==-1&&(n=r),d<=n&&a.fireUpdateEvent(d,n)}}}return f.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},f.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},f.prototype.fireUpdateEvent=function(p,o){var a={first:p,last:o};this._signal("update",{data:a})},f.prototype.start=function(p){this.currentLine=Math.min(p||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)},f.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},f.prototype.$updateOnChange=function(p){var o=p.start.row,a=p.end.row-o;if(a===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,a+1,null),this.states.splice(o,a+1,null);else{var i=Array(a+1);i.unshift(o,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},f.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},f.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},f.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},f.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),a=this.states[p-1],i=this.tokenizer.getLineTokens(o,a,p);return this.states[p]+""!=i.state+""?(this.states[p]=i.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=i.tokens},f.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},f}();w.implement(S.prototype,y),s.BackgroundTokenizer=S}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,s,A){var w=t("./lib/lang"),y=t("./range").Range,S=function(){function f(p,o,a){a===void 0&&(a="text"),this.setRegexp(p),this.clazz=o,this.type=a}return f.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},f.prototype.update=function(p,o,a,i){if(this.regExp)for(var r=i.firstRow,n=i.lastRow,l={},d=r;d<=n;d++){var g=this.cache[d];g==null&&(g=w.getMatchOffsets(a.getLine(d),this.regExp),g.length>this.MAX_RANGES&&(g=g.slice(0,this.MAX_RANGES)),g=g.map(function(_){return new y(d,_.offset,d,_.offset+_.length)}),this.cache[d]=g.length?g:"");for(var b=g.length;b--;){var R=g[b].toScreenRange(a),$=R.toString();l[$]||(l[$]=!0,o.drawSingleLineMarker(p,R,this.clazz,i))}}},f}();S.prototype.MAX_RANGES=500,s.SearchHighlight=S}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,s,A){var w=function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(v){this.$session=v},_.prototype.add=function(v,T,E){if(!this.$fromUndo&&v!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),v.id=this.$rev=++this.$maxRev}(v.action=="remove"||v.action=="insert")&&(this.$lastDelta=v),this.lastDeltas.push(v)}},_.prototype.addSelection=function(v,T){this.selections.push({value:v,rev:T||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(v,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,I=E.length;I--;){var M=E[I][0];if(M.id<=v)break;M.id<T&&(M.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(v,T){for(var E=this.selections,I=E.length;I--;){var M=E[I];if(M.rev<v)return T&&(M=E[I+1]),M}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(v,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,I=null,M=0,N=E.length;N--;){var k=E[N][0];if(k.id<T&&!I&&(I=N+1),k.id<=v){M=N+1;break}}return E.slice(M,I)},_.prototype.getChangedRanges=function(v,T){T==null&&(T=this.$rev+1)},_.prototype.getChangedLines=function(v,T){T==null&&(T=this.$rev+1)},_.prototype.undo=function(v,T){this.lastDeltas=null;var E=this.$undoStack;if(y(E,E.length)){v||(v=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=E.pop(),M=null;return I&&(M=v.undoChanges(I,T),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,M}},_.prototype.redo=function(v,T){if(this.lastDeltas=null,v||(v=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);$(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),M=null;return I&&(M=v.redoChanges(I,T),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,M},_.prototype.$syncRev=function(){var v=this.$undoStack,T=v[v.length-1],E=T&&T[0].id||0;this.$redoStackBaseRev=E,this.$rev=E},_.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=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(v){v==null&&(v=this.$rev),this.mark=v},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(v){this.reset(),this.$undoStack=v.$undoStack,this.$redoStack=v.$redoStack},_.prototype.$prettyPrint=function(v){return v?a(v):a(this.$undoStack)+`
|
|
192
|
+
---
|
|
193
|
+
`+a(this.$redoStack)},_}();w.prototype.hasUndo=w.prototype.canUndo,w.prototype.hasRedo=w.prototype.canRedo,w.prototype.isClean=w.prototype.isAtBookmark,w.prototype.markClean=w.prototype.bookmark;function y(_,v){for(var T=v;T--;){var E=_[T];if(E&&!E[0].ignore){for(;T<v-1;){var I=n(_[T],_[T+1]);_[T]=I[0],_[T+1]=I[1],T++}return!0}}}var S=t("./range").Range,f=S.comparePoints;S.comparePoints;function p(_){return{row:_.row,column:_.column}}function o(_){return{start:p(_.start),end:p(_.end),action:_.action,lines:_.lines.slice()}}function a(_){if(_=_||this,Array.isArray(_))return _.map(a).join(`
|
|
194
|
+
`);var v="";return _.action?(v=_.action=="insert"?"+":"-",v+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?v=_.value.map(i).join(`
|
|
195
|
+
`):v=i(_.value)),_.start&&(v+=i(_)),(_.id||_.rev)&&(v+=" ("+(_.id||_.rev)+")"),v}function i(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function r(_,v){var T=_.action=="insert",E=v.action=="insert";if(T&&E)if(f(v.start,_.end)>=0)d(v,_,-1);else if(f(v.start,_.start)<=0)d(_,v,1);else return null;else if(T&&!E)if(f(v.start,_.end)>=0)d(v,_,-1);else if(f(v.end,_.start)<=0)d(_,v,-1);else return null;else if(!T&&E)if(f(v.start,_.start)>=0)d(v,_,1);else if(f(v.start,_.start)<=0)d(_,v,1);else return null;else if(!T&&!E)if(f(v.start,_.start)>=0)d(v,_,1);else if(f(v.end,_.start)<=0)d(_,v,-1);else return null;return[v,_]}function n(_,v){for(var T=_.length;T--;)for(var E=0;E<v.length;E++)if(!r(_[T],v[E])){for(;T<_.length;){for(;E--;)r(v[E],_[T]);E=v.length,T++}return[_,v]}return _.selectionBefore=v.selectionBefore=_.selectionAfter=v.selectionAfter=null,[v,_]}function l(_,v){var T=_.action=="insert",E=v.action=="insert";if(T&&E)f(_.start,v.start)<0?d(v,_,1):d(_,v,1);else if(T&&!E)f(_.start,v.end)>=0?d(_,v,-1):(f(_.start,v.start)<=0||d(_,S.fromPoints(v.start,_.start),-1),d(v,_,1));else if(!T&&E)f(v.start,_.end)>=0?d(v,_,-1):(f(v.start,_.start)<=0||d(v,S.fromPoints(_.start,v.start),-1),d(_,v,1));else if(!T&&!E)if(f(v.start,_.end)>=0)d(v,_,-1);else if(f(v.end,_.start)<=0)d(_,v,-1);else{var I,M;return f(_.start,v.start)<0&&(I=_,_=b(_,v.start)),f(_.end,v.end)>0&&(M=b(_,v.end)),g(v.end,_.start,_.end,-1),M&&!I&&(_.lines=M.lines,_.start=M.start,_.end=M.end,M=_),[v,I,M].filter(Boolean)}return[v,_]}function d(_,v,T){g(_.start,v.start,v.end,T),g(_.end,v.start,v.end,T)}function g(_,v,T,E){_.row==(E==1?v:T).row&&(_.column+=E*(T.column-v.column)),_.row+=E*(T.row-v.row)}function b(_,v){var T=_.lines,E=_.end;_.end=p(v);var I=_.end.row-_.start.row,M=T.splice(I,T.length),N=I?v.column:v.column-_.start.column;T.push(M[0].substring(0,N)),M[0]=M[0].substr(N);var k={start:p(v),end:E,lines:M,action:_.action};return k}function R(_,v){v=o(v);for(var T=_.length;T--;){for(var E=_[T],I=0;I<E.length;I++){var M=E[I],N=l(M,v);v=N[0],N.length!=2&&(N[2]?(E.splice(I+1,1,N[1],N[2]),I++):N[1]||(E.splice(I,1),I--))}E.length||_.splice(T,1)}return _}function $(_,v){for(var T=0;T<v.length;T++)for(var E=v[T],I=0;I<E.length;I++)R(_,E[I])}s.UndoManager=w}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,s,A){var w=t("../range").Range,y=function(){function S(f,p){this.foldData=f,Array.isArray(p)?this.folds=p:p=this.folds=[p];var o=p[p.length-1];this.range=new w(p[0].start.row,p[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(a){a.setFoldLine(this)},this)}return S.prototype.shiftRow=function(f){this.start.row+=f,this.end.row+=f,this.folds.forEach(function(p){p.start.row+=f,p.end.row+=f})},S.prototype.addFold=function(f){if(f.sameRow){if(f.start.row<this.startRow||f.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(f),this.folds.sort(function(p,o){return-p.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(f.start.row,f.start.column)>0?(this.end.row=f.end.row,this.end.column=f.end.column):this.range.compareStart(f.end.row,f.end.column)<0&&(this.start.row=f.start.row,this.start.column=f.start.column)}else if(f.start.row==this.end.row)this.folds.push(f),this.end.row=f.end.row,this.end.column=f.end.column;else if(f.end.row==this.start.row)this.folds.unshift(f),this.start.row=f.start.row,this.start.column=f.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");f.foldLine=this},S.prototype.containsRow=function(f){return f>=this.start.row&&f<=this.end.row},S.prototype.walk=function(f,p,o){var a=0,i=this.folds,r,n,l,d=!0;p==null&&(p=this.end.row,o=this.end.column);for(var g=0;g<i.length;g++){if(r=i[g],n=r.range.compareStart(p,o),n==-1){f(null,p,o,a,d);return}if(l=f(null,r.start.row,r.start.column,a,d),l=!l&&f(r.placeholder,r.start.row,r.start.column,a),l||n===0)return;d=!r.sameRow,a=r.end.column}f(null,p,o,a,d)},S.prototype.getNextFoldTo=function(f,p){for(var o,a,i=0;i<this.folds.length;i++){if(o=this.folds[i],a=o.range.compareEnd(f,p),a==-1)return{fold:o,kind:"after"};if(a===0)return{fold:o,kind:"inside"}}return null},S.prototype.addRemoveChars=function(f,p,o){var a=this.getNextFoldTo(f,p),i,r;if(a){if(i=a.fold,a.kind=="inside"&&i.start.column!=p&&i.start.row!=f)window.console&&window.console.log(f,p,i);else if(i.start.row==f){r=this.folds;var n=r.indexOf(i);for(n===0&&(this.start.column+=o),n;n<r.length;n++){if(i=r[n],i.start.column+=o,!i.sameRow)return;i.end.column+=o}this.end.column+=o}}},S.prototype.split=function(f,p){var o=this.getNextFoldTo(f,p);if(!o||o.kind=="inside")return null;var a=o.fold,i=this.folds,r=this.foldData,n=i.indexOf(a),l=i[n-1];this.end.row=l.end.row,this.end.column=l.end.column,i=i.splice(n,i.length-n);var d=new S(r,i);return r.splice(r.indexOf(this)+1,0,d),d},S.prototype.merge=function(f){for(var p=f.folds,o=0;o<p.length;o++)this.addFold(p[o]);var a=this.foldData;a.splice(a.indexOf(f),1)},S.prototype.toString=function(){var f=[this.range.toString()+": ["];return this.folds.forEach(function(p){f.push(" "+p.toString())}),f.push("]"),f.join(`
|
|
196
|
+
`)},S.prototype.idxToPosition=function(f){for(var p=0,o=0;o<this.folds.length;o++){var a=this.folds[o];if(f-=a.start.column-p,f<0)return{row:a.start.row,column:a.start.column+f};if(f-=a.placeholder.length,f<0)return a.start;p=a.end.column}return{row:this.end.row,column:this.end.column+f}},S}();s.FoldLine=y}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,s,A){var w=t("./range").Range,y=w.comparePoints,S=function(){function f(){this.ranges=[],this.$bias=1}return f.prototype.pointIndex=function(p,o,a){for(var i=this.ranges,r=a||0;r<i.length;r++){var n=i[r],l=y(p,n.end);if(!(l>0)){var d=y(p,n.start);return l===0?o&&d!==0?-r-2:r:d>0||d===0&&!o?r:-r-1}}return-r-1},f.prototype.add=function(p){var o=!p.isEmpty(),a=this.pointIndex(p.start,o);a<0&&(a=-a-1);var i=this.pointIndex(p.end,o,a);return i<0?i=-i-1:i++,this.ranges.splice(a,i-a,p)},f.prototype.addList=function(p){for(var o=[],a=p.length;a--;)o.push.apply(o,this.add(p[a]));return o},f.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},f.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(l,d){return y(l.start,d.start)});for(var a=o[0],i,r=1;r<o.length;r++){i=a,a=o[r];var n=y(i.end,a.start);n<0||n==0&&!i.isEmpty()&&!a.isEmpty()||(y(i.end,a.end)<0&&(i.end.row=a.end.row,i.end.column=a.end.column),o.splice(r,1),p.push(a),a=i,r--)}return this.ranges=o,p},f.prototype.contains=function(p,o){return this.pointIndex({row:p,column:o})>=0},f.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},f.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},f.prototype.clipRows=function(p,o){var a=this.ranges;if(a[0].start.row>o||a[a.length-1].start.row<p)return[];var i=this.pointIndex({row:p,column:0});i<0&&(i=-i-1);var r=this.pointIndex({row:o,column:0},i);r<0&&(r=-r-1);for(var n=[],l=i;l<r;l++)n.push(a[l]);return n},f.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},f.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},f.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},f.prototype.$onChange=function(p){for(var o=p.start,a=p.end,i=o.row,r=a.row,n=this.ranges,l=0,d=n.length;l<d;l++){var g=n[l];if(g.end.row>=i)break}if(p.action=="insert")for(var b=r-i,R=-o.column+a.column;l<d;l++){var g=n[l];if(g.start.row>i)break;if(g.start.row==i&&g.start.column>=o.column&&(g.start.column==o.column&&this.$bias<=0||(g.start.column+=R,g.start.row+=b)),g.end.row==i&&g.end.column>=o.column){if(g.end.column==o.column&&this.$bias<0)continue;g.end.column==o.column&&R>0&&l<d-1&&g.end.column>g.start.column&&g.end.column==n[l+1].start.column&&(g.end.column-=R),g.end.column+=R,g.end.row+=b}}else for(var b=i-r,R=o.column-a.column;l<d;l++){var g=n[l];if(g.start.row>r)break;g.end.row<r&&(i<g.end.row||i==g.end.row&&o.column<g.end.column)?(g.end.row=i,g.end.column=o.column):g.end.row==r?g.end.column<=a.column?(b||g.end.column>o.column)&&(g.end.column=o.column,g.end.row=o.row):(g.end.column+=R,g.end.row+=b):g.end.row>r&&(g.end.row+=b),g.start.row<r&&(i<g.start.row||i==g.start.row&&o.column<g.start.column)?(g.start.row=i,g.start.column=o.column):g.start.row==r?g.start.column<=a.column?(b||g.start.column>o.column)&&(g.start.column=o.column,g.start.row=o.row):(g.start.column+=R,g.start.row+=b):g.start.row>r&&(g.start.row+=b)}if(b!=0&&l<d)for(;l<d;l++){var g=n[l];g.start.row+=b,g.end.row+=b}},f}();S.prototype.comparePoints=y,s.RangeList=S}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,s,A){var w=this&&this.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(l[g]=d[g])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function l(){this.constructor=r}r.prototype=n===null?Object.create(n):(l.prototype=n.prototype,new l)}}(),y=t("../range_list").RangeList,S=function(i){w(r,i);function r(n,l){var d=i.call(this)||this;return d.foldLine=null,d.placeholder=l,d.range=n,d.start=n.start,d.end=n.end,d.sameRow=n.start.row==n.end.row,d.subFolds=d.ranges=[],d}return r.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},r.prototype.setFoldLine=function(n){this.foldLine=n,this.subFolds.forEach(function(l){l.setFoldLine(n)})},r.prototype.clone=function(){var n=this.range.clone(),l=new r(n,this.placeholder);return this.subFolds.forEach(function(d){l.subFolds.push(d.clone())}),l.collapseChildren=this.collapseChildren,l},r.prototype.addSubFold=function(n){if(!this.range.isEqual(n)){p(n,this.start);for(var R=n.start.row,$=n.start.column,l=0,d=-1;l<this.subFolds.length&&(d=this.subFolds[l].range.compare(R,$),d==1);l++);var g=this.subFolds[l],b=0;if(d==0){if(g.range.containsRange(n))return g.addSubFold(n);b=1}for(var R=n.range.end.row,$=n.range.end.column,_=l,d=-1;_<this.subFolds.length&&(d=this.subFolds[_].range.compare(R,$),d==1);_++);d==0&&_++;for(var v=this.subFolds.splice(l,_-l,n),T=d==0?v.length-1:v.length,E=b;E<T;E++)n.addSubFold(v[E]);return n.setFoldLine(this.foldLine),n}},r.prototype.restoreRange=function(n){return a(n,this.start)},r}(y);function f(i,r){i.row-=r.row,i.row==0&&(i.column-=r.column)}function p(i,r){f(i.start,r),f(i.end,r)}function o(i,r){i.row==0&&(i.column+=r.column),i.row+=r.row}function a(i,r){o(i.start,r),o(i.end,r)}s.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(t,s,A){var w=t("../range").Range,y=t("./fold_line").FoldLine,S=t("./fold").Fold,f=t("../token_iterator").TokenIterator,p=t("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(a,i,r){var n=this.getFoldLine(a);if(!n)return null;for(var l=n.folds,d=0;d<l.length;d++){var g=l[d].range;if(g.contains(a,i)){if(r==1&&g.isEnd(a,i)&&!g.isEmpty())continue;if(r==-1&&g.isStart(a,i)&&!g.isEmpty())continue;return l[d]}}},this.getFoldsInRange=function(a){var i=a.start,r=a.end,n=this.$foldData,l=[];i.column+=1,r.column-=1;for(var d=0;d<n.length;d++){var g=n[d].range.compareRange(a);if(g!=2){if(g==-2)break;for(var b=n[d].folds,R=0;R<b.length;R++){var $=b[R];if(g=$.range.compareRange(a),g==-2)break;if(g==2)continue;if(g==42)break;l.push($)}}}return i.column-=1,r.column+=1,l},this.getFoldsInRangeList=function(a){if(Array.isArray(a)){var i=[];a.forEach(function(r){i=i.concat(this.getFoldsInRange(r))},this)}else var i=this.getFoldsInRange(a);return i},this.getAllFolds=function(){for(var a=[],i=this.$foldData,r=0;r<i.length;r++)for(var n=0;n<i[r].folds.length;n++)a.push(i[r].folds[n]);return a},this.getFoldStringAt=function(a,i,r,n){if(n=n||this.getFoldLine(a),!n)return null;for(var l={end:{column:0}},d,g,b=0;b<n.folds.length;b++){g=n.folds[b];var R=g.range.compareEnd(a,i);if(R==-1){d=this.getLine(g.start.row).substring(l.end.column,g.start.column);break}else if(R===0)return null;l=g}return d||(d=this.getLine(g.start.row).substring(l.end.column)),r==-1?d.substring(0,i-l.end.column):r==1?d.substring(i-l.end.column):d},this.getFoldLine=function(a,i){var r=this.$foldData,n=0;for(i&&(n=r.indexOf(i)),n==-1&&(n=0),n;n<r.length;n++){var l=r[n];if(l.start.row<=a&&l.end.row>=a)return l;if(l.end.row>a)return null}return null},this.getNextFoldLine=function(a,i){var r=this.$foldData,n=0;for(i&&(n=r.indexOf(i)),n==-1&&(n=0),n;n<r.length;n++){var l=r[n];if(l.end.row>=a)return l}return null},this.getFoldedRowCount=function(a,i){for(var r=this.$foldData,n=i-a+1,l=0;l<r.length;l++){var d=r[l],g=d.end.row,b=d.start.row;if(g>=i){b<i&&(b>=a?n-=i-b:n=0);break}else g>=a&&(b>=a?n-=g-b:n-=g-a+1)}return n},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(i,r){return i.start.row-r.start.row}),a},this.addFold=function(a,i){var r=this.$foldData,n=!1,l;a instanceof S?l=a:(l=new S(i,a),l.collapseChildren=i.collapseChildren),this.$clipRangeToDocument(l.range);var d=l.start.row,g=l.start.column,b=l.end.row,R=l.end.column,$=this.getFoldAt(d,g,1),_=this.getFoldAt(b,R,-1);if($&&_==$)return $.addSubFold(l);$&&!$.range.isStart(d,g)&&this.removeFold($),_&&!_.range.isEnd(b,R)&&this.removeFold(_);var v=this.getFoldsInRange(l.range);v.length>0&&(this.removeFolds(v),l.collapseChildren||v.forEach(function(M){l.addSubFold(M)}));for(var T=0;T<r.length;T++){var E=r[T];if(b==E.start.row){E.addFold(l),n=!0;break}else if(d==E.end.row){if(E.addFold(l),n=!0,!l.sameRow){var I=r[T+1];if(I&&I.start.row==b){E.merge(I);break}}break}else if(b<=E.start.row)break}return n||(E=this.$addFoldLine(new y(this.$foldData,l))),this.$useWrapMode?this.$updateWrapData(E.start.row,E.start.row):this.$updateRowLengthCache(E.start.row,E.start.row),this.$modified=!0,this._signal("changeFold",{data:l,action:"add"}),l},this.addFolds=function(a){a.forEach(function(i){this.addFold(i)},this)},this.removeFold=function(a){var i=a.foldLine,r=i.start.row,n=i.end.row,l=this.$foldData,d=i.folds;if(d.length==1)l.splice(l.indexOf(i),1);else if(i.range.isEnd(a.end.row,a.end.column))d.pop(),i.end.row=d[d.length-1].end.row,i.end.column=d[d.length-1].end.column;else if(i.range.isStart(a.start.row,a.start.column))d.shift(),i.start.row=d[0].start.row,i.start.column=d[0].start.column;else if(a.sameRow)d.splice(d.indexOf(a),1);else{var g=i.split(a.start.row,a.start.column);d=g.folds,d.shift(),g.start.row=d[0].start.row,g.start.column=d[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(r,n):this.$updateRowLengthCache(r,n)),this.$modified=!0,this._signal("changeFold",{data:a,action:"remove"})},this.removeFolds=function(a){for(var i=[],r=0;r<a.length;r++)i.push(a[r]);i.forEach(function(n){this.removeFold(n)},this),this.$modified=!0},this.expandFold=function(a){this.removeFold(a),a.subFolds.forEach(function(i){a.restoreRange(i),this.addFold(i)},this),a.collapseChildren>0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(i){this.expandFold(i)},this)},this.unfold=function(a,i){var r,n;if(a==null)r=new w(0,0,this.getLength(),0),i==null&&(i=!0);else if(typeof a=="number")r=new w(a,0,a,this.getLine(a).length);else if("row"in a)r=w.fromPoints(a,a);else{if(Array.isArray(a))return n=[],a.forEach(function(d){n=n.concat(this.unfold(d))},this),n;r=a}n=this.getFoldsInRangeList(r);for(var l=n;n.length==1&&w.comparePoints(n[0].start,r.start)<0&&w.comparePoints(n[0].end,r.end)>0;)this.expandFolds(n),n=this.getFoldsInRangeList(r);if(i!=!1?this.removeFolds(n):this.expandFolds(n),l.length)return l},this.isRowFolded=function(a,i){return!!this.getFoldLine(a,i)},this.getRowFoldEnd=function(a,i){var r=this.getFoldLine(a,i);return r?r.end.row:a},this.getRowFoldStart=function(a,i){var r=this.getFoldLine(a,i);return r?r.start.row:a},this.getFoldDisplayLine=function(a,i,r,n,l){n==null&&(n=a.start.row),l==null&&(l=0),i==null&&(i=a.end.row),r==null&&(r=this.getLine(i).length);var d=this.doc,g="";return a.walk(function(b,R,$,_){if(!(R<n)){if(R==n){if($<l)return;_=Math.max(l,_)}b!=null?g+=b:g+=d.getLine(R).substring(_,$)}},i,r),g},this.getDisplayLine=function(a,i,r,n){var l=this.getFoldLine(a);if(l)return this.getFoldDisplayLine(l,a,i,r,n);var d;return d=this.doc.getLine(a),d.substring(n||0,i||d.length)},this.$cloneFoldData=function(){var a=[];return a=this.$foldData.map(function(i){var r=i.folds.map(function(n){return n.clone()});return new y(a,r)}),a},this.toggleFold=function(a){var i=this.selection,r=i.getRange(),n,l;if(r.isEmpty()){var d=r.start;if(n=this.getFoldAt(d.row,d.column),n){this.expandFold(n);return}else(l=this.findMatchingBracket(d))?r.comparePoint(l)==1?r.end=l:(r.start=l,r.start.column++,r.end.column--):(l=this.findMatchingBracket({row:d.row,column:d.column+1}))?(r.comparePoint(l)==1?r.end=l:r.start=l,r.start.column++):r=this.getCommentFoldRange(d.row,d.column)||r}else{var g=this.getFoldsInRange(r);if(a&&g.length){this.expandFolds(g);return}else g.length==1&&(n=g[0])}if(n||(n=this.getFoldAt(r.start.row,r.start.column)),n&&n.range.toString()==r.toString()){this.expandFold(n);return}var b="...";if(!r.isMultiLine()){if(b=this.getTextRange(r),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,r)},this.getCommentFoldRange=function(a,i,r){var n=new f(this,a,i),l=n.getCurrentToken(),d=l&&l.type;if(l&&/^comment|string/.test(d)){d=d.match(/comment|string/)[0],d=="comment"&&(d+="|doc-start|\\.doc");var g=new RegExp(d),b=new w;if(r!=1){do l=n.stepBackward();while(l&&g.test(l.type));l=n.stepForward()}b.start.row=n.getCurrentTokenRow(),b.start.column=n.getCurrentTokenColumn()+l.value.length,n=new f(this,a,i);var R=this.getState(n.$row);if(r!=-1){var $=-1;do if(l=n.stepForward(),$==-1){var _=this.getState(n.$row);R.toString()!==_.toString()&&($=n.$row)}else if(n.$row>$)break;while(l&&g.test(l.type));l=n.stepBackward()}else l=n.getCurrentToken();return b.end.row=n.getCurrentTokenRow(),b.end.column=n.getCurrentTokenColumn(),b}},this.foldAll=function(a,i,r,n){r==null&&(r=1e5);var l=this.foldWidgets;if(l){i=i||this.getLength(),a=a||0;for(var d=a;d<i;d++)if(l[d]==null&&(l[d]=this.getFoldWidget(d)),l[d]=="start"&&!(n&&!n(d))){var g=this.getFoldWidgetRange(d);g&&g.isMultiLine()&&g.end.row<=i&&g.start.row>=a&&(d=g.end.row,g.collapseChildren=r,this.addFold("...",g))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(i){for(var r=a.getTokens(i),n=0;n<r.length;n++){var l=r[n];if(!(l.type=="text"&&/^\s+$/.test(l.value)))return!!/comment/.test(l.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(a){if(!this.$foldStyles[a])throw new Error("invalid fold style: "+a+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=a){this.$foldStyle=a,a=="manual"&&this.unfold();var i=this.$foldMode;this.$setFolding(null),this.$setFolding(i)}},this.$setFolding=function(a){if(this.$foldMode!=a){if(this.$foldMode=a,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!a||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=a.getFoldWidget.bind(a,this,this.$foldStyle),this.getFoldWidgetRange=a.getFoldWidgetRange.bind(a,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(a,i){var r=this.foldWidgets;if(!r||i&&r[a])return{};for(var n=a-1,l;n>=0;){var d=r[n];if(d==null&&(d=r[n]=this.getFoldWidget(n)),d=="start"){var g=this.getFoldWidgetRange(n);if(l||(l=g),g&&g.end.row>=a)break}n--}return{range:n!==-1&&g,firstRange:l}},this.onFoldWidgetClick=function(a,i){i instanceof p&&(i=i.domEvent);var r={children:i.shiftKey,all:i.ctrlKey||i.metaKey,siblings:i.altKey},n=this.$toggleFoldWidget(a,r);if(!n){var l=i.target||i.srcElement;l&&/ace_fold-widget/.test(l.className)&&(l.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,i){if(this.getFoldWidget){var r=this.getFoldWidget(a),n=this.getLine(a),l=r==="end"?-1:1,d=this.getFoldAt(a,l===-1?0:n.length,l);if(d)return i.children||i.all?this.removeFold(d):this.expandFold(d),d;var g=this.getFoldWidgetRange(a,!0);if(g&&!g.isMultiLine()&&(d=this.getFoldAt(g.start.row,g.start.column,1),d&&g.isEqual(d.range)))return this.removeFold(d),d;if(i.siblings){var b=this.getParentFoldRangeData(a);if(b.range)var R=b.range.start.row+1,$=b.range.end.row;this.foldAll(R,$,i.all?1e4:0)}else i.children?($=g?g.end.row:this.getLength(),this.foldAll(a+1,$,i.all?1e4:0)):g&&(i.all&&(g.collapseChildren=1e4),this.addFold("...",g));return g}},this.toggleFoldWidget=function(a){var i=this.selection.getCursor().row;i=this.getRowFoldStart(i);var r=this.$toggleFoldWidget(i,{});if(!r){var n=this.getParentFoldRangeData(i,!0);if(r=n.range||n.firstRange,r){i=r.start.row;var l=this.getFoldAt(i,this.getLine(i).length,1);l?this.removeFold(l):this.addFold("...",r)}}},this.updateFoldWidgets=function(a){var i=a.start.row,r=a.end.row-i;if(r===0)this.foldWidgets[i]=null;else if(a.action=="remove")this.foldWidgets.splice(i,r+1,null);else{var n=Array(r+1);n.unshift(i,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(a){var i=a.data;i.first!=i.last&&this.foldWidgets.length>i.first&&this.foldWidgets.splice(i.first,this.foldWidgets.length)}}s.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,s,A){var w=t("../token_iterator").TokenIterator,y=t("../range").Range;function S(){this.findMatchingBracket=function(f,p){if(f.column==0)return null;var o=p||this.getLine(f.row).charAt(f.column-1);if(o=="")return null;var a=o.match(/([\(\[\{])|([\)\]\}])/);return a?a[1]?this.$findClosingBracket(a[1],f):this.$findOpeningBracket(a[2],f):null},this.getBracketRange=function(f){var p=this.getLine(f.row),o=!0,a,i=p.charAt(f.column-1),r=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(r||(i=p.charAt(f.column),f={row:f.row,column:f.column+1},r=i&&i.match(/([\(\[\{])|([\)\]\}])/),o=!1),!r)return null;if(r[1]){var n=this.$findClosingBracket(r[1],f);if(!n)return null;a=y.fromPoints(f,n),o||(a.end.column++,a.start.column--),a.cursor=a.end}else{var n=this.$findOpeningBracket(r[2],f);if(!n)return null;a=y.fromPoints(n,f),o||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(f,p){var o=this.getLine(f.row),a=/([\(\[\{])|([\)\]\}])/,i=!p&&o.charAt(f.column-1),r=i&&i.match(a);if(r||(i=(p===void 0||p)&&o.charAt(f.column),f={row:f.row,column:f.column+1},r=i&&i.match(a)),!r)return null;var n=new y(f.row,f.column-1,f.row,f.column),l=r[1]?this.$findClosingBracket(r[1],f):this.$findOpeningBracket(r[2],f);if(!l)return[n];var d=new y(l.row,l.column,l.row,l.column+1);return[n,d]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(f,p,o){var a=this.$brackets[f],i=1,r=new w(this,p.row,p.column),n=r.getCurrentToken();if(n||(n=r.stepForward()),!!n){o||(o=new RegExp("(\\.?"+n.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var l=p.column-r.getCurrentTokenColumn()-2,d=n.value;;){for(;l>=0;){var g=d.charAt(l);if(g==a){if(i-=1,i==0)return{row:r.getCurrentTokenRow(),column:l+r.getCurrentTokenColumn()}}else g==f&&(i+=1);l-=1}do n=r.stepBackward();while(n&&!o.test(n.type));if(n==null)break;d=n.value,l=d.length-1}return null}},this.$findClosingBracket=function(f,p,o){var a=this.$brackets[f],i=1,r=new w(this,p.row,p.column),n=r.getCurrentToken();if(n||(n=r.stepForward()),!!n){o||(o=new RegExp("(\\.?"+n.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var l=p.column-r.getCurrentTokenColumn();;){for(var d=n.value,g=d.length;l<g;){var b=d.charAt(l);if(b==a){if(i-=1,i==0)return{row:r.getCurrentTokenRow(),column:l+r.getCurrentTokenColumn()}}else b==f&&(i+=1);l+=1}do n=r.stepForward();while(n&&!o.test(n.type));if(n==null)break;l=0}return null}},this.getMatchingTags=function(f){var p=new w(this,f.row,f.column),o=this.$findTagName(p);if(o){var a=p.stepBackward();return a.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(f){var p=f.getCurrentToken(),o=!1,a=!1;if(p&&p.type.indexOf("tag-name")===-1)do a?p=f.stepBackward():p=f.stepForward(),p&&(p.value==="/>"?a=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(f,p){var o,a=p.value,i=p.value,r=0,n=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1);p=f.stepForward();var l=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+p.value.length),d=!1;do{if(o=p,o.type.indexOf("tag-close")!==-1&&!d){var g=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1);d=!0}if(p=f.stepForward(),p){if(p.value===">"&&!d){var g=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1);d=!0}if(p.type.indexOf("tag-name")!==-1){if(a=p.value,i===a){if(o.value==="<")r++;else if(o.value==="</"&&(r--,r<0)){f.stepBackward();var b=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+2);p=f.stepForward();var R=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=f.stepForward()),p&&p.value===">")var $=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1);else return}}}else if(i===a&&p.value==="/>"&&(r--,r<0))var b=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+2),R=b,$=R,g=new y(l.end.row,l.end.column,l.end.row,l.end.column+1)}}while(p&&r>=0);if(n&&g&&b&&$&&l&&R)return{openTag:new y(n.start.row,n.start.column,g.end.row,g.end.column),closeTag:new y(b.start.row,b.start.column,$.end.row,$.end.column),openTagName:l,closeTagName:R}},this.$findOpeningTag=function(f,p){var o=f.getCurrentToken(),a=p.value,i=0,r=f.getCurrentTokenRow(),n=f.getCurrentTokenColumn(),l=n+2,d=new y(r,n,r,l);f.stepForward();var g=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=f.stepForward()),!(!p||p.value!==">")){var b=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1);f.stepBackward(),f.stepBackward();do if(p=o,r=f.getCurrentTokenRow(),n=f.getCurrentTokenColumn(),l=n+p.value.length,o=f.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(a===p.value)if(o.value==="<"){if(i++,i>0){var R=new y(r,n,r,l),$=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1);do p=f.stepForward();while(p&&p.value!==">");var _=new y(f.getCurrentTokenRow(),f.getCurrentTokenColumn(),f.getCurrentTokenRow(),f.getCurrentTokenColumn()+1)}}else o.value==="</"&&i--}else if(p.value==="/>"){for(var v=0,T=o;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===a){i--;break}else if(T.value==="<")break;T=f.stepBackward(),v++}for(var E=0;E<v;E++)f.stepForward()}}while(o&&i<=0);if($&&_&&d&&b&&R&&g)return{openTag:new y($.start.row,$.start.column,_.end.row,_.end.column),closeTag:new y(d.start.row,d.start.column,b.end.row,b.end.column),openTagName:R,closeTagName:g}}}}s.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(t,s,A){var w=t("./lib/oop"),y=t("./lib/lang"),S=t("./bidihandler").BidiHandler,f=t("./config"),p=t("./lib/event_emitter").EventEmitter,o=t("./selection").Selection,a=t("./mode/text").Mode,i=t("./range").Range,r=t("./line_widgets").LineWidgets,n=t("./document").Document,l=t("./background_tokenizer").BackgroundTokenizer,d=t("./search_highlight").SearchHighlight,g=t("./undomanager").UndoManager,b=function(){function k(m,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"+ ++k.$uid,this.$foldData.toString=function(){return this.join(`
|
|
197
|
+
`)},this.bgTokenizer=new l(new a().getTokenizer(),this);var L=this;this.bgTokenizer.on("update",function(O){L._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof m!="object"||!m.getLine)&&(m=new n(m)),this.setDocument(m),this.selection=new o(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new S(this),f.resetOptions(this),this.setMode(x),f._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return k.prototype.$initOperationListeners=function(){var m=this;this.curOp=null,this.on("change",function(){m.curOp||(m.startOperation(),m.curOp.selectionBefore=m.$lastSel),m.curOp.docChanged=!0},!0),this.on("changeSelection",function(){m.curOp||(m.startOperation(),m.curOp.selectionBefore=m.$lastSel),m.curOp.selectionChanged=!0},!0),this.$operationResetTimer=y.delayedCall(this.endOperation.bind(this,!0))},k.prototype.startOperation=function(m){if(this.curOp){if(!m||this.curOp.command)return;this.prevOp=this.curOp}m||(m={}),this.$operationResetTimer.schedule(),this.curOp={command:m.command||{},args:m.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",m)},k.prototype.endOperation=function(m){if(this.curOp){if(m&&m.returnValue===!1){this.curOp=null,this._signal("endOperation",m);return}if(m==!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",m)}},k.prototype.setDocument=function(m){this.doc&&this.doc.off("change",this.$onChange),this.doc=m,m.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},k.prototype.getDocument=function(){return this.doc},Object.defineProperty(k.prototype,"widgetManager",{get:function(){var m=new r(this);return this.widgetManager=m,this.$editor&&m.attach(this.$editor),m},set:function(m){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:m})},enumerable:!1,configurable:!0}),k.prototype.$resetRowCache=function(m){if(!m){this.$docRowCache=[],this.$screenRowCache=[];return}var x=this.$docRowCache.length,L=this.$getRowCacheIndex(this.$docRowCache,m)+1;x>L&&(this.$docRowCache.splice(L,x),this.$screenRowCache.splice(L,x))},k.prototype.$getRowCacheIndex=function(m,x){for(var L=0,O=m.length-1;L<=O;){var F=L+O>>1,W=m[F];if(x>W)L=F+1;else if(x<W)O=F-1;else return F}return L-1},k.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},k.prototype.onChangeFold=function(m){var x=m.data;this.$resetRowCache(x.start.row)},k.prototype.onChange=function(m){this.$modified=!0,this.$bidiHandler.onChange(m),this.$resetRowCache(m.start.row);var x=this.$updateInternalDataOnChange(m);!this.$fromUndo&&this.$undoManager&&(x&&x.length&&(this.$undoManager.add({action:"removeFolds",folds:x},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(m,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(m),this._signal("change",m)},k.prototype.onSelectionChange=function(){this._signal("changeSelection")},k.prototype.setValue=function(m){this.doc.setValue(m),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},k.fromJSON=function(m){typeof m=="string"&&(m=JSON.parse(m));var x=new g;x.$undoStack=m.history.undo,x.$redoStack=m.history.redo,x.mark=m.history.mark,x.$rev=m.history.rev;var L=new k(m.value);return m.folds.forEach(function(O){L.addFold("...",i.fromPoints(O.start,O.end))}),L.setAnnotations(m.annotations),L.setBreakpoints(m.breakpoints),L.setMode(m.mode),L.setScrollLeft(m.scrollLeft),L.setScrollTop(m.scrollTop),L.setUndoManager(x),L.selection.fromJSON(m.selection),L},k.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(m){return m.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},k.prototype.toString=function(){return this.doc.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.getState=function(m){return this.bgTokenizer.getState(m)},k.prototype.getTokens=function(m){return this.bgTokenizer.getTokens(m)},k.prototype.getTokenAt=function(m,x){var L=this.bgTokenizer.getTokens(m),O,F=0;if(x==null){var W=L.length-1;F=this.getLine(m).length}else for(var W=0;W<L.length&&(F+=L[W].value.length,!(F>=x));W++);return O=L[W],O?(O.index=W,O.start=F-O.value.length,O):null},k.prototype.setUndoManager=function(m){if(this.$undoManager=m,this.$informUndoManager&&this.$informUndoManager.cancel(),m){var x=this;m.addSession(this),this.$syncInformUndoManager=function(){x.$informUndoManager.cancel(),x.mergeUndoDeltas=!1},this.$informUndoManager=y.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},k.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},k.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},k.prototype.getTabString=function(){return this.getUseSoftTabs()?y.stringRepeat(" ",this.getTabSize()):" "},k.prototype.setUseSoftTabs=function(m){this.setOption("useSoftTabs",m)},k.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},k.prototype.setTabSize=function(m){this.setOption("tabSize",m)},k.prototype.getTabSize=function(){return this.$tabSize},k.prototype.isTabStop=function(m){return this.$useSoftTabs&&m.column%this.$tabSize===0},k.prototype.setNavigateWithinSoftTabs=function(m){this.setOption("navigateWithinSoftTabs",m)},k.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},k.prototype.setOverwrite=function(m){this.setOption("overwrite",m)},k.prototype.getOverwrite=function(){return this.$overwrite},k.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},k.prototype.addGutterDecoration=function(m,x){this.$decorations[m]||(this.$decorations[m]=""),this.$decorations[m]+=" "+x,this._signal("changeBreakpoint",{})},k.prototype.removeGutterDecoration=function(m,x){this.$decorations[m]=(this.$decorations[m]||"").replace(" "+x,""),this._signal("changeBreakpoint",{})},k.prototype.getBreakpoints=function(){return this.$breakpoints},k.prototype.setBreakpoints=function(m){this.$breakpoints=[];for(var x=0;x<m.length;x++)this.$breakpoints[m[x]]="ace_breakpoint";this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},k.prototype.setBreakpoint=function(m,x){x===void 0&&(x="ace_breakpoint"),x?this.$breakpoints[m]=x:delete this.$breakpoints[m],this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoint=function(m){delete this.$breakpoints[m],this._signal("changeBreakpoint",{})},k.prototype.addMarker=function(m,x,L,O){var F=this.$markerId++,W={range:m,type:L||"line",renderer:typeof L=="function"?L:null,clazz:x,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=W,this._signal("changeFrontMarker")):(this.$backMarkers[F]=W,this._signal("changeBackMarker")),F},k.prototype.addDynamicMarker=function(m,x){if(m.update){var L=this.$markerId++;return m.id=L,m.inFront=!!x,x?(this.$frontMarkers[L]=m,this._signal("changeFrontMarker")):(this.$backMarkers[L]=m,this._signal("changeBackMarker")),m}},k.prototype.removeMarker=function(m){var x=this.$frontMarkers[m]||this.$backMarkers[m];if(x){var L=x.inFront?this.$frontMarkers:this.$backMarkers;delete L[m],this._signal(x.inFront?"changeFrontMarker":"changeBackMarker")}},k.prototype.getMarkers=function(m){return m?this.$frontMarkers:this.$backMarkers},k.prototype.highlight=function(m){if(!this.$searchHighlight){var x=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(x)}this.$searchHighlight.setRegexp(m)},k.prototype.highlightLines=function(m,x,L,O){typeof x!="number"&&(L=x,x=m),L||(L="ace_step");var F=new i(m,0,x,1/0);return F.id=this.addMarker(F,L,"fullLine",O),F},k.prototype.setAnnotations=function(m){this.$annotations=m,this._signal("changeAnnotation",{})},k.prototype.getAnnotations=function(){return this.$annotations||[]},k.prototype.clearAnnotations=function(){this.setAnnotations([])},k.prototype.$detectNewLine=function(m){var x=m.match(/^.*?(\r?\n)/m);x?this.$autoNewLine=x[1]:this.$autoNewLine=`
|
|
198
|
+
`},k.prototype.getWordRange=function(m,x){var L=this.getLine(m),O=!1;if(x>0&&(O=!!L.charAt(x-1).match(this.tokenRe)),O||(O=!!L.charAt(x).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(L.slice(x-1,x+1)))var F=/\s/;else var F=this.nonTokenRe;var W=x;if(W>0){do W--;while(W>=0&&L.charAt(W).match(F));W++}for(var U=x;U<L.length&&L.charAt(U).match(F);)U++;return new i(m,W,m,U)},k.prototype.getAWordRange=function(m,x){for(var L=this.getWordRange(m,x),O=this.getLine(L.end.row);O.charAt(L.end.column).match(/[ \t]/);)L.end.column+=1;return L},k.prototype.setNewLineMode=function(m){this.doc.setNewLineMode(m)},k.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},k.prototype.setUseWorker=function(m){this.setOption("useWorker",m)},k.prototype.getUseWorker=function(){return this.$useWorker},k.prototype.onReloadTokenizer=function(m){var x=m.data;this.bgTokenizer.start(x.first),this._signal("tokenizerUpdate",m)},k.prototype.setMode=function(m,x){if(m&&typeof m=="object"){if(m.getTokenizer)return this.$onChangeMode(m);var L=m,O=L.path}else O=m||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new a),this.$modes[O]&&!L){this.$onChangeMode(this.$modes[O]),x&&x();return}this.$modeId=O,f.loadModule(["mode",O],(function(F){if(!this.destroyed){if(this.$modeId!==O)return x&&x();this.$modes[O]&&!L?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(L),L||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),x&&x()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},k.prototype.$onChangeMode=function(m,x){if(x||(this.$modeId=m.$id),this.$mode!==m){var L=this.$mode;this.$mode=m,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=m.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=m.tokenRe,this.nonTokenRe=m.nonTokenRe,x||(m.attachToSession&&m.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(m.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:L,mode:m}))}},k.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},k.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(m){f.warn("Could not load worker",m),this.$worker=null}},k.prototype.getMode=function(){return this.$mode},k.prototype.setScrollTop=function(m){this.$scrollTop===m||isNaN(m)||(this.$scrollTop=m,this._signal("changeScrollTop",m))},k.prototype.getScrollTop=function(){return this.$scrollTop},k.prototype.setScrollLeft=function(m){this.$scrollLeft===m||isNaN(m)||(this.$scrollLeft=m,this._signal("changeScrollLeft",m))},k.prototype.getScrollLeft=function(){return this.$scrollLeft},k.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},k.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var m=0;return this.lineWidgets.forEach(function(x){x&&x.screenWidth>m&&(m=x.screenWidth)}),this.lineWidgetWidth=m},k.prototype.$computeWidth=function(m){if(this.$modified||m){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var x=this.doc.getAllLines(),L=this.$rowLengthCache,O=0,F=0,W=this.$foldData[F],U=W?W.start.row:1/0,V=x.length,G=0;G<V;G++){if(G>U){if(G=W.end.row+1,G>=V)break;W=this.$foldData[F++],U=W?W.start.row:1/0}L[G]==null&&(L[G]=this.$getStringScreenWidth(x[G])[0]),L[G]>O&&(O=L[G])}this.screenWidth=O}},k.prototype.getLine=function(m){return this.doc.getLine(m)},k.prototype.getLines=function(m,x){return this.doc.getLines(m,x)},k.prototype.getLength=function(){return this.doc.getLength()},k.prototype.getTextRange=function(m){return this.doc.getTextRange(m||this.selection.getRange())},k.prototype.insert=function(m,x){return this.doc.insert(m,x)},k.prototype.remove=function(m){return this.doc.remove(m)},k.prototype.removeFullLines=function(m,x){return this.doc.removeFullLines(m,x)},k.prototype.undoChanges=function(m,x){if(m.length){this.$fromUndo=!0;for(var L=m.length-1;L!=-1;L--){var O=m[L];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!x&&this.$undoSelect&&(m.selectionBefore?this.selection.fromJSON(m.selectionBefore):this.selection.setRange(this.$getUndoSelection(m,!0))),this.$fromUndo=!1}},k.prototype.redoChanges=function(m,x){if(m.length){this.$fromUndo=!0;for(var L=0;L<m.length;L++){var O=m[L];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!x&&this.$undoSelect&&(m.selectionAfter?this.selection.fromJSON(m.selectionAfter):this.selection.setRange(this.$getUndoSelection(m,!1))),this.$fromUndo=!1}},k.prototype.setUndoSelect=function(m){this.$undoSelect=m},k.prototype.$getUndoSelection=function(m,x){function L(V){return x?V.action!=="insert":V.action==="insert"}for(var O,F,W=0;W<m.length;W++){var U=m[W];if(U.start){if(!O){L(U)?O=i.fromPoints(U.start,U.end):O=i.fromPoints(U.start,U.start);continue}L(U)?(F=U.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=U.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=U.start,O.compare(F.row,F.column)==-1&&(O=i.fromPoints(U.start,U.start)))}}return O},k.prototype.replace=function(m,x){return this.doc.replace(m,x)},k.prototype.moveText=function(m,x,L){var O=this.getTextRange(m),F=this.getFoldsInRange(m),W=i.fromPoints(x,x);if(!L){this.remove(m);var U=m.start.row-m.end.row,V=U?-m.end.column:m.start.column-m.end.column;V&&(W.start.row==m.end.row&&W.start.column>m.end.column&&(W.start.column+=V),W.end.row==m.end.row&&W.end.column>m.end.column&&(W.end.column+=V)),U&&W.start.row>=m.end.row&&(W.start.row+=U,W.end.row+=U)}if(W.end=this.insert(W.start,O),F.length){var G=m.start,J=W.start,U=J.row-G.row,V=J.column-G.column;this.addFolds(F.map(function(ie){return ie=ie.clone(),ie.start.row==G.row&&(ie.start.column+=V),ie.end.row==G.row&&(ie.end.column+=V),ie.start.row+=U,ie.end.row+=U,ie}))}return W},k.prototype.indentRows=function(m,x,L){L=L.replace(/\t/g,this.getTabString());for(var O=m;O<=x;O++)this.doc.insertInLine({row:O,column:0},L)},k.prototype.outdentRows=function(m){for(var x=m.collapseRows(),L=new i(0,0,0,0),O=this.getTabSize(),F=x.start.row;F<=x.end.row;++F){var W=this.getLine(F);L.start.row=F,L.end.row=F;for(var U=0;U<O&&W.charAt(U)==" ";++U);U<O&&W.charAt(U)==" "?(L.start.column=U,L.end.column=U+1):(L.start.column=0,L.end.column=U),this.remove(L)}},k.prototype.$moveLines=function(m,x,L){if(m=this.getRowFoldStart(m),x=this.getRowFoldEnd(x),L<0){var O=this.getRowFoldStart(m+L);if(O<0)return 0;var F=O-m}else if(L>0){var O=this.getRowFoldEnd(x+L);if(O>this.doc.getLength()-1)return 0;var F=O-x}else{m=this.$clipRowToDocument(m),x=this.$clipRowToDocument(x);var F=x-m+1}var W=new i(m,0,x,Number.MAX_VALUE),U=this.getFoldsInRange(W).map(function(G){return G=G.clone(),G.start.row+=F,G.end.row+=F,G}),V=L==0?this.doc.getLines(m,x):this.doc.removeFullLines(m,x);return this.doc.insertFullLines(m+F,V),U.length&&this.addFolds(U),F},k.prototype.moveLinesUp=function(m,x){return this.$moveLines(m,x,-1)},k.prototype.moveLinesDown=function(m,x){return this.$moveLines(m,x,1)},k.prototype.duplicateLines=function(m,x){return this.$moveLines(m,x,0)},k.prototype.$clipRowToDocument=function(m){return Math.max(0,Math.min(m,this.doc.getLength()-1))},k.prototype.$clipColumnToRow=function(m,x){return x<0?0:Math.min(this.doc.getLine(m).length,x)},k.prototype.$clipPositionToDocument=function(m,x){if(x=Math.max(0,x),m<0)m=0,x=0;else{var L=this.doc.getLength();m>=L?(m=L-1,x=this.doc.getLine(L-1).length):x=Math.min(this.doc.getLine(m).length,x)}return{row:m,column:x}},k.prototype.$clipRangeToDocument=function(m){m.start.row<0?(m.start.row=0,m.start.column=0):m.start.column=this.$clipColumnToRow(m.start.row,m.start.column);var x=this.doc.getLength()-1;return m.end.row>x?(m.end.row=x,m.end.column=this.doc.getLine(x).length):m.end.column=this.$clipColumnToRow(m.end.row,m.end.column),m},k.prototype.setUseWrapMode=function(m){if(m!=this.$useWrapMode){if(this.$useWrapMode=m,this.$modified=!0,this.$resetRowCache(0),m){var x=this.getLength();this.$wrapData=Array(x),this.$updateWrapData(0,x-1)}this._signal("changeWrapMode")}},k.prototype.getUseWrapMode=function(){return this.$useWrapMode},k.prototype.setWrapLimitRange=function(m,x){(this.$wrapLimitRange.min!==m||this.$wrapLimitRange.max!==x)&&(this.$wrapLimitRange={min:m,max:x},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},k.prototype.adjustWrapLimit=function(m,x){var L=this.$wrapLimitRange;L.max<0&&(L={min:x,max:x});var O=this.$constrainWrapLimit(m,L.min,L.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},k.prototype.$constrainWrapLimit=function(m,x,L){return x&&(m=Math.max(x,m)),L&&(m=Math.min(L,m)),m},k.prototype.getWrapLimit=function(){return this.$wrapLimit},k.prototype.setWrapLimit=function(m){this.setWrapLimitRange(m,m)},k.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},k.prototype.$updateInternalDataOnChange=function(m){var x=this.$useWrapMode,L=m.action,O=m.start,F=m.end,W=O.row,U=F.row,V=U-W,G=null;if(this.$updating=!0,V!=0)if(L==="remove"){this[x?"$wrapData":"$rowLengthCache"].splice(W,V);var J=this.$foldData;G=this.getFoldsInRange(m),this.removeFolds(G);var K=this.getFoldLine(F.row),Q=0;if(K){K.addRemoveChars(F.row,F.column,O.column-F.column),K.shiftRow(-V);var ie=this.getFoldLine(W);ie&&ie!==K&&(ie.merge(K),K=ie),Q=J.indexOf(K)+1}for(Q;Q<J.length;Q++){var K=J[Q];K.start.row>=F.row&&K.shiftRow(-V)}U=W}else{var X=Array(V);X.unshift(W,0);var ae=x?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,X);var J=this.$foldData,K=this.getFoldLine(W),Q=0;if(K){var ge=K.range.compareInside(O.row,O.column);ge==0?(K=K.split(O.row,O.column),K&&(K.shiftRow(V),K.addRemoveChars(U,0,F.column-O.column))):ge==-1&&(K.addRemoveChars(W,0,F.column-O.column),K.shiftRow(V)),Q=J.indexOf(K)+1}for(Q;Q<J.length;Q++){var K=J[Q];K.start.row>=W&&K.shiftRow(V)}}else{V=Math.abs(m.start.column-m.end.column),L==="remove"&&(G=this.getFoldsInRange(m),this.removeFolds(G),V=-V);var K=this.getFoldLine(W);K&&K.addRemoveChars(W,O.column,V)}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(W,U):this.$updateRowLengthCache(W,U),G},k.prototype.$updateRowLengthCache=function(m,x){this.$rowLengthCache[m]=null,this.$rowLengthCache[x]=null},k.prototype.$updateWrapData=function(m,x){var L=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,W=this.$wrapLimit,U,V,G=m;for(x=Math.min(x,L.length-1);G<=x;)V=this.getFoldLine(G,V),V?(U=[],V.walk((function(J,K,Q,ie){var X;if(J!=null){X=this.$getDisplayTokens(J,U.length),X[0]=_;for(var ae=1;ae<X.length;ae++)X[ae]=v}else X=this.$getDisplayTokens(L[K].substring(ie,Q),U.length);U=U.concat(X)}).bind(this),V.end.row,L[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(U,W,O),G=V.end.row+1):(U=this.$getDisplayTokens(L[G]),F[G]=this.$computeWrapSplits(U,W,O),G++)},k.prototype.$computeWrapSplits=function(m,x,L){if(m.length==0)return[];var O=[],F=m.length,W=0,U=0,V=this.$wrapAsCode,G=this.$indentedSoftWrap,J=x<=Math.max(2*L,8)||G===!1?0:Math.floor(x/2);function K(){var ge=0;if(J===0)return ge;if(G)for(var me=0;me<m.length;me++){var fe=m[me];if(fe==E)ge+=1;else if(fe==I)ge+=L;else{if(fe==M)continue;break}}return V&&G!==!1&&(ge+=L),Math.min(ge,J)}function Q(ge){for(var me=ge-W,fe=W;fe<ge;fe++){var _e=m[fe];(_e===12||_e===2)&&(me-=1)}O.length||(ie=K(),O.indent=ie),U+=me,O.push(U),W=ge}for(var ie=0;F-W>x-ie;){var X=W+x-ie;if(m[X-1]>=E&&m[X]>=E){Q(X);continue}if(m[X]==_||m[X]==v){for(X;X!=W-1&&m[X]!=_;X--);if(X>W){Q(X);continue}for(X=W+x,X;X<m.length&&m[X]==v;X++);if(X==m.length)break;Q(X);continue}for(var ae=Math.max(X-(x-(x>>2)),W-1);X>ae&&m[X]<_;)X--;if(V){for(;X>ae&&m[X]<_;)X--;for(;X>ae&&m[X]==T;)X--}else for(;X>ae&&m[X]<E;)X--;if(X>ae){Q(++X);continue}X=W+x,m[X]==$&&X--,Q(X-ie)}return O},k.prototype.$getDisplayTokens=function(m,x){var L=[],O;x=x||0;for(var F=0;F<m.length;F++){var W=m.charCodeAt(F);if(W==9){O=this.getScreenTabSize(L.length+x),L.push(I);for(var U=1;U<O;U++)L.push(M)}else W==32?L.push(E):W>39&&W<48||W>57&&W<64?L.push(T):W>=4352&&N(W)?L.push(R,$):L.push(R)}return L},k.prototype.$getStringScreenWidth=function(m,x,L){if(x==0)return[0,0];x==null&&(x=1/0),L=L||0;var O,F;for(F=0;F<m.length&&(O=m.charCodeAt(F),O==9?L+=this.getScreenTabSize(L):O>=4352&&N(O)?L+=2:L+=1,!(L>x));F++);return[L,F]},k.prototype.getRowLength=function(m){var x=1;return this.lineWidgets&&(x+=this.lineWidgets[m]&&this.lineWidgets[m].rowCount||0),!this.$useWrapMode||!this.$wrapData[m]?x:this.$wrapData[m].length+x},k.prototype.getRowLineCount=function(m){return!this.$useWrapMode||!this.$wrapData[m]?1:this.$wrapData[m].length+1},k.prototype.getRowWrapIndent=function(m){if(this.$useWrapMode){var x=this.screenToDocumentPosition(m,Number.MAX_VALUE),L=this.$wrapData[x.row];return L.length&&L[0]<x.column?L.indent:0}else return 0},k.prototype.getScreenLastRowColumn=function(m){var x=this.screenToDocumentPosition(m,Number.MAX_VALUE);return this.documentToScreenColumn(x.row,x.column)},k.prototype.getDocumentLastRowColumn=function(m,x){var L=this.documentToScreenRow(m,x);return this.getScreenLastRowColumn(L)},k.prototype.getDocumentLastRowColumnPosition=function(m,x){var L=this.documentToScreenRow(m,x);return this.screenToDocumentPosition(L,Number.MAX_VALUE/10)},k.prototype.getRowSplitData=function(m){if(this.$useWrapMode)return this.$wrapData[m]},k.prototype.getScreenTabSize=function(m){return this.$tabSize-(m%this.$tabSize|0)},k.prototype.screenToDocumentRow=function(m,x){return this.screenToDocumentPosition(m,x).row},k.prototype.screenToDocumentColumn=function(m,x){return this.screenToDocumentPosition(m,x).column},k.prototype.screenToDocumentPosition=function(m,x,L){if(m<0)return{row:0,column:0};var O,F=0,W=0,U,V=0,G=0,J=this.$screenRowCache,K=this.$getRowCacheIndex(J,m),Q=J.length;if(Q&&K>=0)var V=J[K],F=this.$docRowCache[K],ie=m>J[Q-1];else var ie=!Q;for(var X=this.getLength()-1,ae=this.getNextFoldLine(F),ge=ae?ae.start.row:1/0;V<=m&&(G=this.getRowLength(F),!(V+G>m||F>=X));)V+=G,F++,F>ge&&(F=ae.end.row+1,ae=this.getNextFoldLine(F,ae),ge=ae?ae.start.row:1/0),ie&&(this.$docRowCache.push(F),this.$screenRowCache.push(V));if(ae&&ae.start.row<=F)O=this.getFoldDisplayLine(ae),F=ae.start.row;else{if(V+G<=m||F>X)return{row:X,column:this.getLine(X).length};O=this.getLine(F),ae=null}var me=0,fe=Math.floor(m-V);if(this.$useWrapMode){var _e=this.$wrapData[F];_e&&(U=_e[fe],fe>0&&_e.length&&(me=_e.indent,W=_e[fe-1]||_e[_e.length-1],O=O.substring(W)))}return L!==void 0&&this.$bidiHandler.isBidiRow(V+fe,F,fe)&&(x=this.$bidiHandler.offsetToCol(L)),W+=this.$getStringScreenWidth(O,x-me)[1],this.$useWrapMode&&W>=U&&(W=U-1),ae?ae.idxToPosition(W):{row:F,column:W}},k.prototype.documentToScreenPosition=function(m,x){if(typeof x>"u")var L=this.$clipPositionToDocument(m.row,m.column);else L=this.$clipPositionToDocument(m,x);m=L.row,x=L.column;var O=0,F=null,W=null;W=this.getFoldAt(m,x,1),W&&(m=W.start.row,x=W.start.column);var U,V=0,G=this.$docRowCache,J=this.$getRowCacheIndex(G,m),K=G.length;if(K&&J>=0)var V=G[J],O=this.$screenRowCache[J],Q=m>G[K-1];else var Q=!K;for(var ie=this.getNextFoldLine(V),X=ie?ie.start.row:1/0;V<m;){if(V>=X){if(U=ie.end.row+1,U>m)break;ie=this.getNextFoldLine(U,ie),X=ie?ie.start.row:1/0}else U=V+1;O+=this.getRowLength(V),V=U,Q&&(this.$docRowCache.push(V),this.$screenRowCache.push(O))}var ae="";ie&&V>=X?(ae=this.getFoldDisplayLine(ie,m,x),F=ie.start.row):(ae=this.getLine(m).substring(0,x),F=m);var ge=0;if(this.$useWrapMode){var me=this.$wrapData[F];if(me){for(var fe=0;ae.length>=me[fe];)O++,fe++;ae=ae.substring(me[fe-1]||0,ae.length),ge=fe>0?me.indent:0}}return this.lineWidgets&&this.lineWidgets[V]&&this.lineWidgets[V].rowsAbove&&(O+=this.lineWidgets[V].rowsAbove),{row:O,column:ge+this.$getStringScreenWidth(ae)[0]}},k.prototype.documentToScreenColumn=function(m,x){return this.documentToScreenPosition(m,x).column},k.prototype.documentToScreenRow=function(m,x){return this.documentToScreenPosition(m,x).row},k.prototype.getScreenLength=function(){var m=0,x=null;if(this.$useWrapMode)for(var F=this.$wrapData.length,W=0,O=0,x=this.$foldData[O++],U=x?x.start.row:1/0;W<F;){var V=this.$wrapData[W];m+=V?V.length+1:1,W++,W>U&&(W=x.end.row+1,x=this.$foldData[O++],U=x?x.start.row:1/0)}else{m=this.getLength();for(var L=this.$foldData,O=0;O<L.length;O++)x=L[O],m-=x.end.row-x.start.row}return this.lineWidgets&&(m+=this.$getWidgetScreenLength()),m},k.prototype.$setFontMetrics=function(m){this.$enableVarChar&&(this.$getStringScreenWidth=function(x,L,O){if(L===0)return[0,0];L||(L=1/0),O=O||0;var F,W;for(W=0;W<x.length&&(F=x.charAt(W),F===" "?O+=this.getScreenTabSize(O):O+=m.getCharacterWidth(F),!(O>L));W++);return[O,W]})},k.prototype.getPrecedingCharacter=function(){var m=this.selection.getCursor();if(m.column===0)return m.row===0?"":this.doc.getNewLineCharacter();var x=this.getLine(m.row);return x[m.column-1]},k.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()},k}();b.$uid=0,b.prototype.$modes=f.$modes,b.prototype.getValue=b.prototype.toString,b.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},b.prototype.$overwrite=!1,b.prototype.$mode=null,b.prototype.$modeId=null,b.prototype.$scrollTop=0,b.prototype.$scrollLeft=0,b.prototype.$wrapLimit=80,b.prototype.$useWrapMode=!1,b.prototype.$wrapLimitRange={min:null,max:null},b.prototype.lineWidgets=null,b.prototype.isFullWidth=N,w.implement(b.prototype,p);var R=1,$=2,_=3,v=4,T=9,E=10,I=11,M=12;function N(k){return k<4352?!1:k>=4352&&k<=4447||k>=4515&&k<=4519||k>=4602&&k<=4607||k>=9001&&k<=9002||k>=11904&&k<=11929||k>=11931&&k<=12019||k>=12032&&k<=12245||k>=12272&&k<=12283||k>=12288&&k<=12350||k>=12353&&k<=12438||k>=12441&&k<=12543||k>=12549&&k<=12589||k>=12593&&k<=12686||k>=12688&&k<=12730||k>=12736&&k<=12771||k>=12784&&k<=12830||k>=12832&&k<=12871||k>=12880&&k<=13054||k>=13056&&k<=19903||k>=19968&&k<=42124||k>=42128&&k<=42182||k>=43360&&k<=43388||k>=44032&&k<=55203||k>=55216&&k<=55238||k>=55243&&k<=55291||k>=63744&&k<=64255||k>=65040&&k<=65049||k>=65072&&k<=65106||k>=65108&&k<=65126||k>=65128&&k<=65131||k>=65281&&k<=65376||k>=65504&&k<=65510}t("./edit_session/folding").Folding.call(b.prototype),t("./edit_session/bracket_match").BracketMatch.call(b.prototype),f.defineOptions(b.prototype,"session",{wrap:{set:function(k){if(!k||k=="off"?k=!1:k=="free"?k=!0:k=="printMargin"?k=-1:typeof k=="string"&&(k=parseInt(k,10)||!1),this.$wrap!=k)if(this.$wrap=k,!k)this.setUseWrapMode(!1);else{var m=typeof k=="number"?k:null;this.setWrapLimitRange(m,m),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(k){k=k=="auto"?this.$mode.type!="text":k!="text",k!=this.$wrapAsCode&&(this.$wrapAsCode=k,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(k){this.$useWorker=k,this.$stopWorker(),k&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(k){k=parseInt(k),k>0&&this.$tabSize!==k&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=k,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(k){this.setFoldStyle(k)},handlesSet:!0},overwrite:{set:function(k){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(k){this.doc.setNewLineMode(k)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(k){this.setMode(k)},get:function(){return this.$modeId},handlesSet:!0}}),s.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,s,A){var w=t("./lib/lang"),y=t("./lib/oop"),S=t("./range").Range,f=function(){function o(){this.$options={}}return o.prototype.set=function(a){return y.mixin(this.$options,a),this},o.prototype.getOptions=function(){return w.copyObject(this.$options)},o.prototype.setOptions=function(a){this.$options=a},o.prototype.find=function(a){var i=this.$options,r=this.$matchIterator(a,i);if(!r)return!1;var n=null;return r.forEach(function(l,d,g,b){return n=new S(l,d,g,b),d==b&&i.start&&i.start.start&&i.skipCurrent!=!1&&n.isEqual(i.start)?(n=null,!1):!0}),n},o.prototype.findAll=function(a){var i=this.$options;if(!i.needle)return[];this.$assembleRegExp(i);var r=i.range,n=r?a.getLines(r.start.row,r.end.row):a.doc.getAllLines(),l=[],d=i.re;if(i.$isMultiLine){var g=d.length,b=n.length-g,R;e:for(var $=d.offset||0;$<=b;$++){for(var _=0;_<g;_++)if(n[$+_].search(d[_])==-1)continue e;var v=n[$],T=n[$+g-1],E=v.length-v.match(d[0])[0].length,I=T.match(d[g-1])[0].length;R&&R.end.row===$&&R.end.column>E||(l.push(R=new S($,E,$+g-1,I)),g>2&&($=$+g-2))}}else for(var M=0;M<n.length;M++)for(var N=w.getMatchOffsets(n[M],d),_=0;_<N.length;_++){var k=N[_];l.push(new S(M,k.offset,M,k.offset+k.length))}if(r){for(var m=r.start.column,x=r.end.column,M=0,_=l.length-1;M<_&&l[M].start.column<m&&l[M].start.row==0;)M++;for(var L=r.end.row-r.start.row;M<_&&l[_].end.column>x&&l[_].end.row==L;)_--;for(l=l.slice(M,_+1),M=0,_=l.length;M<_;M++)l[M].start.row+=r.start.row,l[M].end.row+=r.start.row}return l},o.prototype.replace=function(a,i){var r=this.$options,n=this.$assembleRegExp(r);if(r.$isMultiLine)return i;if(n){var l=n.exec(a);if(!l||l[0].length!=a.length)return null;if(r.regExp||(i=i.replace(/\$/g,"$$$$")),i=a.replace(n,i),r.preserveCase){i=i.split("");for(var d=Math.min(a.length,a.length);d--;){var g=a[d];g&&g.toLowerCase()!=g?i[d]=i[d].toUpperCase():i[d]=i[d].toLowerCase()}i=i.join("")}return i}},o.prototype.$assembleRegExp=function(a,i){if(a.needle instanceof RegExp)return a.re=a.needle;var r=a.needle;if(!a.needle)return a.re=!1;a.regExp||(r=w.escapeRegExp(r));var n=a.caseSensitive?"gm":"gmi";try{new RegExp(r,"u"),a.$supportsUnicodeFlag=!0,n+="u"}catch{a.$supportsUnicodeFlag=!1}if(a.wholeWord&&(r=p(r,a)),a.$isMultiLine=!i&&/[\n\r]/.test(r),a.$isMultiLine)return a.re=this.$assembleMultilineRegExp(r,n);try{var l=new RegExp(r,n)}catch{l=!1}return a.re=l},o.prototype.$assembleMultilineRegExp=function(a,i){for(var r=a.replace(/\r\n|\r|\n/g,`$
|
|
199
|
+
^`).split(`
|
|
200
|
+
`),n=[],l=0;l<r.length;l++)try{n.push(new RegExp(r[l],i))}catch{return!1}return n},o.prototype.$matchIterator=function(a,i){var r=this.$assembleRegExp(i);if(!r)return!1;var n=i.backwards==!0,l=i.skipCurrent!=!1,d=r.unicode,g=i.range,b=i.start;b||(b=g?g[n?"end":"start"]:a.selection.getRange()),b.start&&(b=b[l!=n?"end":"start"]);var R=g?g.start.row:0,$=g?g.end.row:a.getLength()-1;if(n)var _=function(E){var I=b.row;if(!T(I,b.column,E)){for(I--;I>=R;I--)if(T(I,Number.MAX_VALUE,E))return;if(i.wrap!=!1){for(I=$,R=b.row;I>=R;I--)if(T(I,Number.MAX_VALUE,E))return}}};else var _=function(I){var M=b.row;if(!T(M,b.column,I)){for(M=M+1;M<=$;M++)if(T(M,0,I))return;if(i.wrap!=!1){for(M=R,$=b.row;M<=$;M++)if(T(M,0,I))return}}};if(i.$isMultiLine)var v=r.length,T=function(E,I,M){var N=n?E-v+1:E;if(!(N<0||N+v>a.getLength())){var k=a.getLine(N),m=k.search(r[0]);if(!(!n&&m<I||m===-1)){for(var x=1;x<v;x++)if(k=a.getLine(N+x),k.search(r[x])==-1)return;var L=k.match(r[v-1])[0].length;if(!(n&&L>I)&&M(N,m,N+v-1,L))return!0}}};else if(n)var T=function(I,M,N){var k=a.getLine(I),m=[],x,L=0;for(r.lastIndex=0;x=r.exec(k);){var O=x[0].length;if(L=x.index,!O){if(L>=k.length)break;r.lastIndex=L+=w.skipEmptyMatch(k,L,d)}if(x.index+O>M)break;m.push(x.index,O)}for(var F=m.length-1;F>=0;F-=2){var W=m[F-1],O=m[F];if(N(I,W,I,W+O))return!0}};else var T=function(I,M,N){var k=a.getLine(I),m,x;for(r.lastIndex=M;x=r.exec(k);){var L=x[0].length;if(m=x.index,N(I,m,I,m+L))return!0;if(!L&&(r.lastIndex=m+=w.skipEmptyMatch(k,m,d),m>=k.length))return!1}};return{forEach:_}},o}();function p(o,a){var i=w.supportsLookbehind();function r(g,b){b===void 0&&(b=!0);var R=i&&a.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return R.test(g)||a.regExp?i&&a.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var n=Array.from(o),l=n[0],d=n[n.length-1];return r(l)+o+r(d,!1)}s.Search=f}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,s,A){var w=this&&this.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(l[g]=d[g])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function l(){this.constructor=r}r.prototype=n===null?Object.create(n):(l.prototype=n.prototype,new l)}}(),y=t("../lib/keys"),S=t("../lib/useragent"),f=y.KEY_MODS,p=function(){function i(r,n){this.$init(r,n,!1)}return i.prototype.$init=function(r,n,l){this.platform=n||(S.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=l},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,n){var l=r&&(typeof r=="string"?r:r.name);r=this.commands[l],n||delete this.commands[l];var d=this.commandKeyBinding;for(var g in d){var b=d[g];if(b==r)delete d[g];else if(Array.isArray(b)){var R=b.indexOf(r);R!=-1&&(b.splice(R,1),b.length==1&&(d[g]=b[0]))}}},i.prototype.bindKey=function(r,n,l){if(typeof r=="object"&&r&&(l==null&&(l=r.position),r=r[this.platform]),!!r){if(typeof n=="function")return this.addCommand({exec:n,bindKey:r,name:n.name||r});r.split("|").forEach(function(d){var g="";if(d.indexOf(" ")!=-1){var b=d.split(/\s+/);d=b.pop(),b.forEach(function(_){var v=this.parseKeys(_),T=f[v.hashId]+v.key;g+=(g?" ":"")+T,this._addCommandToBinding(g,"chainKeys")},this),g+=" "}var R=this.parseKeys(d),$=f[R.hashId]+R.key;this._addCommandToBinding(g+$,n,l)},this)}},i.prototype._addCommandToBinding=function(r,n,l){var d=this.commandKeyBinding,g;if(!n)delete d[r];else if(!d[r]||this.$singleCommand)d[r]=n;else{Array.isArray(d[r])?(g=d[r].indexOf(n))!=-1&&d[r].splice(g,1):d[r]=[d[r]],typeof l!="number"&&(l=o(n));var b=d[r];for(g=0;g<b.length;g++){var R=b[g],$=o(R);if($>l)break}b.splice(g,0,n)}},i.prototype.addCommands=function(r){r&&Object.keys(r).forEach(function(n){var l=r[n];if(l){if(typeof l=="string")return this.bindKey(l,n);typeof l=="function"&&(l={exec:l}),typeof l=="object"&&(l.name||(l.name=n),this.addCommand(l))}},this)},i.prototype.removeCommands=function(r){Object.keys(r).forEach(function(n){this.removeCommand(r[n])},this)},i.prototype.bindKeys=function(r){Object.keys(r).forEach(function(n){this.bindKey(n,r[n])},this)},i.prototype._buildKeyHash=function(r){this.bindKey(r.bindKey,r)},i.prototype.parseKeys=function(r){var n=r.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function($){return $}),l=n.pop(),d=y[l];if(y.FUNCTION_KEYS[d])l=y.FUNCTION_KEYS[d].toLowerCase();else if(n.length){if(n.length==1&&n[0]=="shift")return{key:l.toUpperCase(),hashId:-1}}else return{key:l,hashId:-1};for(var g=0,b=n.length;b--;){var R=y.KEY_MODS[n[b]];if(R==null)return typeof console<"u"&&console.error("invalid modifier "+n[b]+" in "+r),!1;g|=R}return{key:l,hashId:g}},i.prototype.findKeyCommand=function(r,n){var l=f[r]+n;return this.commandKeyBinding[l]},i.prototype.handleKeyboard=function(r,n,l,d){if(!(d<0)){var g=f[n]+l,b=this.commandKeyBinding[g];return r.$keyChain&&(r.$keyChain+=" "+g,b=this.commandKeyBinding[r.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(r.$keyChain=r.$keyChain||g,{command:"null"}):(r.$keyChain&&((!n||n==4)&&l.length==1?r.$keyChain=r.$keyChain.slice(0,-g.length-1):(n==-1||d>0)&&(r.$keyChain="")),{command:b})}},i.prototype.getStatusText=function(r,n){return n.$keyChain||""},i}();function o(i){return typeof i=="object"&&i.bindKey&&i.bindKey.position||(i.isDefault?-100:0)}var a=function(i){w(r,i);function r(n,l){var d=i.call(this,n,l)||this;return d.$singleCommand=!0,d}return r}(p);a.call=function(i,r,n){p.prototype.$init.call(i,r,n,!0)},p.call=function(i,r,n){p.prototype.$init.call(i,r,n,!1)},s.HashHandler=a,s.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,s,A){var w=this&&this.__extends||function(){var o=function(a,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(r[l]=n[l])},o(a,i)};return function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(a,i);function r(){this.constructor=a}a.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=t("../lib/oop"),S=t("../keyboard/hash_handler").MultiHashHandler,f=t("../lib/event_emitter").EventEmitter,p=function(o){w(a,o);function a(i,r){var n=o.call(this,r,i)||this;return n.byName=n.commands,n.setDefaultHandler("exec",function(l){return l.args?l.command.exec(l.editor,l.args,l.event,!1):l.command.exec(l.editor,{},l.event,!0)}),n}return a.prototype.exec=function(i,r,n){if(Array.isArray(i)){for(var l=i.length;l--;)if(this.exec(i[l],r,n))return!0;return!1}if(typeof i=="string"&&(i=this.commands[i]),!this.canExecute(i,r))return!1;var d={editor:r,command:i,args:n};return d.returnValue=this._emit("exec",d),this._signal("afterExec",d),d.returnValue!==!1},a.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))},a.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)},a.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}}},a.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})},a}(S);y.implement(p.prototype,f),s.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,s,A){var w=t("../lib/lang"),y=t("../config"),S=t("../range").Range;function f(o,a){return{win:o,mac:a}}s.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:f("Ctrl-,","Command-,"),exec:function(o){y.loadModule("ace/ext/settings_menu",function(a){a.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:f("Alt-E","F4"),exec:function(o){y.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:f("Alt-Shift-E","Shift-F4"),exec:function(o){y.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:f("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:f(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:f("Ctrl-L","Command-L"),exec:function(o,a){typeof a=="number"&&!isNaN(a)&&o.gotoLine(a),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:f("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:f("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:f("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:f("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:f(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:f(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:f("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:f("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:f("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:f("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:f("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:f("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:f("Ctrl-F","Command-F"),exec:function(o){y.loadModule("ace/ext/searchbox",function(a){a.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:f("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(o){o.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:f("Ctrl-Home","Command-Home|Command-Up"),exec:function(o){o.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:f("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(o){o.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:f("Up","Up|Ctrl-P"),exec:function(o,a){o.navigateUp(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:f("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(o){o.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:f("Ctrl-End","Command-End|Command-Down"),exec:function(o){o.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:f("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(o){o.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:f("Down","Down|Ctrl-N"),exec:function(o,a){o.navigateDown(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:f("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(o){o.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:f("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:f("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:f("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(o){o.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:f("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(o){o.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:f("Left","Left|Ctrl-B"),exec:function(o,a){o.navigateLeft(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:f("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(o){o.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:f("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:f("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:f("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(o){o.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:f("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:f("Right","Right|Ctrl-F"),exec:function(o,a){o.navigateRight(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(o){o.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:f(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:f("PageDown","PageDown|Ctrl-V"),exec:function(o){o.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(o){o.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:f(null,"Option-PageUp"),exec:function(o){o.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(o){o.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:f("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:f("Ctrl-Down",null),exec:function(o){o.renderer.scrollBy(0,2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:f("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:f("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:f("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:f("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(o){o.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:f("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(o){o.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:f(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(o){},readOnly:!0},{name:"cut",description:"Cut",exec:function(o){var a=o.$copyWithEmptySelection&&o.selection.isEmpty(),i=a?o.selection.getLineRange():o.selection.getRange();o._emit("cut",i),i.isEmpty()||o.session.remove(i),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,a){o.$handlePaste(a)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:f("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:f("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:f("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:f("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:f("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:f("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:f("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:f("Ctrl-H","Command-Option-F"),exec:function(o){y.loadModule("ace/ext/searchbox",function(a){a.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:f("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:f("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:f("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:f("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:f("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:f("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:f("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:f("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(o){o.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:f("Shift-Delete",null),exec:function(o){if(o.selection.isEmpty())o.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:f("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:f("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:f("Ctrl-Shift-Backspace",null),exec:function(o){var a=o.selection.getRange();a.start.column=0,o.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:f("Ctrl-Shift-Delete",null),exec:function(o){var a=o.selection.getRange();a.end.column=Number.MAX_VALUE,o.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:f("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:f("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:f("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:f("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:f("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:f("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,a){o.insert(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,a){o.insert(w.stringRepeat(a.text||"",a.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:f(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:f("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:f("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:f("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:f(null,null),exec:function(o){o.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:f("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var a=o.selection.getRange();a.start.column=a.end.column=0,a.end.row++,o.selection.setRange(a,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:f("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:f(null,null),exec:function(o){for(var a=o.selection.isBackwards(),i=a?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),r=a?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),n=o.session.doc.getLine(i.row).length,l=o.session.doc.getTextRange(o.selection.getRange()),d=l.replace(/\n\s*/," ").length,g=o.session.doc.getLine(i.row),b=i.row+1;b<=r.row+1;b++){var R=w.stringTrimLeft(w.stringTrimRight(o.session.doc.getLine(b)));R.length!==0&&(R=" "+R),g+=R}r.row+1<o.session.doc.getLength()-1&&(g+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new S(i.row,0,r.row+2,0),g),d>0?(o.selection.moveCursorTo(i.row,i.column),o.selection.selectTo(i.row,i.column+d)):(n=o.session.doc.getLine(i.row).length>n?n+1:n,o.selection.moveCursorTo(i.row,n))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:f(null,null),exec:function(o){var a=o.session.doc.getLength()-1,i=o.session.doc.getLine(a).length,r=o.selection.rangeList.ranges,n=[];r.length<1&&(r=[o.selection.getRange()]);for(var l=0;l<r.length;l++)l==r.length-1&&(r[l].end.row===a&&r[l].end.column===i||n.push(new S(r[l].end.row,r[l].end.column,a,i))),l===0?r[l].start.row===0&&r[l].start.column===0||n.push(new S(0,0,r[l].start.row,r[l].start.column)):n.push(new S(r[l-1].end.row,r[l-1].end.column,r[l].start.row,r[l].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var l=0;l<n.length;l++)o.selection.addRange(n[l],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(o){o.selection.clearSelection(),o.navigateLineEnd(),o.insert(`
|
|
201
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var a=o.getCursorPosition();o.selection.moveTo(a.row-1,Number.MAX_VALUE),o.insert(`
|
|
202
|
+
`),a.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(o){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),o.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:f("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:f(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)s.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(t,s,A){var w=t("../lib/keys"),y=t("../mouse/default_gutter_handler").GutterTooltip,S=function(){function p(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new y(this.editor)}return p.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))},p.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))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===w.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=w.enter)return;o.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),setTimeout((function(){var i=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),r=this.$findNearestFoldWidget(i),n=this.$findNearestAnnotation(i);if(!(r===null&&n===null)){if(r===null&&n!==null){this.activeRowIndex=n,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(r!==null&&n===null){this.activeRowIndex=r,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(n-i)<Math.abs(r-i)){this.activeRowIndex=n,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=r,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new f(o,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===w.tab){o.preventDefault();return}if(o.keyCode===w.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===w.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===w.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===w.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===w.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===w.enter||o.keyCode===w.space){switch(o.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var a=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var i=this.lines.cells[this.activeRowIndex].element.childNodes[2],r=i.getBoundingClientRect(),n=this.annotationTooltip.getElement().style;n.left=r.right+"px",n.top=r.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),i=this.$getFoldWidget(o).style.display!=="none";return a&&i},p.prototype.$isAnnotationVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),i=this.$getAnnotation(o).style.display!=="none";return a&&i},p.prototype.$getFoldWidget=function(o){var a=this.lines.get(o),i=a.element;return i.childNodes[1]},p.prototype.$getAnnotation=function(o){var a=this.lines.get(o),i=a.element;return i.childNodes[2]},p.prototype.$findNearestFoldWidget=function(o){if(this.$isFoldWidgetVisible(o))return o;for(var a=0;o-a>0||o+a<this.lines.getLength()-1;){if(a++,o-a>=0&&this.$isFoldWidgetVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+a))return o+a}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var a=0;o-a>0||o+a<this.lines.getLength()-1;){if(a++,o-a>=0&&this.$isAnnotationVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+a))return o+a}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var a=this.$getFoldWidget(o);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$focusAnnotation=function(o){if(o!=null){var a=this.$getAnnotation(o);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$blurFoldWidget=function(o){var a=this.$getFoldWidget(o);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$blurAnnotation=function(o){var a=this.$getAnnotation(o);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var i=this.$findNearestFoldWidget(this.activeRowIndex);if(i==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(o){var a=this.lines.get(o);return a?a.row:null},p.prototype.$rowToRowIndex=function(o){for(var a=0;a<this.lines.getLength();a++){var i=this.lines.get(a);if(i.row==o)return a}return null},p}();s.GutterKeyboardHandler=S;var f=function(){function p(o,a){this.gutterKeyboardHandler=a,this.domEvent=o}return p.prototype.getKey=function(){return w.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();s.GutterKeyboardEvent=f}),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"],function(t,s,A){var w=this&&this.__values||function(k){var m=typeof Symbol=="function"&&Symbol.iterator,x=m&&k[m],L=0;if(x)return x.call(k);if(k&&typeof k.length=="number")return{next:function(){return k&&L>=k.length&&(k=void 0),{value:k&&k[L++],done:!k}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},y=t("./lib/oop"),S=t("./lib/dom"),f=t("./lib/lang"),p=t("./lib/useragent"),o=t("./keyboard/textinput").TextInput,a=t("./mouse/mouse_handler").MouseHandler,i=t("./mouse/fold_handler").FoldHandler,r=t("./keyboard/keybinding").KeyBinding,n=t("./edit_session").EditSession,l=t("./search").Search,d=t("./range").Range,g=t("./lib/event_emitter").EventEmitter,b=t("./commands/command_manager").CommandManager,R=t("./commands/default_commands").commands,$=t("./config"),_=t("./token_iterator").TokenIterator,v=t("./keyboard/gutter_handler").GutterKeyboardHandler,T=t("./config").nls,E=t("./clipboard"),I=t("./lib/keys"),M=function(){function k(m,x,L){this.session,this.$toDestroy=[];var O=m.getContainerElement();this.container=O,this.renderer=m,this.id="editor"+ ++k.$uid,this.commands=new b(p.isMac?"mac":"win",R),typeof document=="object"&&(this.textInput=new o(m.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new i(this)),this.keyBinding=new r(this),this.$search=new l().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=f.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,W){W._$emitInputEvent.schedule(31)}),this.setSession(x||L&&L.session||new n("")),$.resetOptions(this),L&&this.setOptions(L),$._signal("editor",this)}return k.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},k.prototype.startOperation=function(m){this.session.startOperation(m)},k.prototype.endOperation=function(m){this.session.endOperation(m)},k.prototype.onStartOperation=function(m){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,m||(this.previousCommand=null)},k.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 x=this.curOp.command,L=x&&x.scrollIntoView;if(L){switch(L){case"center-animate":L="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}L=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},k.prototype.$historyTracker=function(m){if(this.$mergeUndoDeltas){var x=this.prevOp,L=this.$mergeableCommands,O=x.command&&m.command.name==x.command.name;if(m.command.name=="insertstring"){var F=m.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(x.args)),this.mergeNextCommand=!0}else O=O&&L.indexOf(m.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:L.indexOf(m.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},k.prototype.setKeyboardHandler=function(m,x){if(m&&typeof m=="string"&&m!="ace"){this.$keybindingId=m;var L=this;$.loadModule(["keybinding",m],function(O){L.$keybindingId==m&&L.keyBinding.setKeyboardHandler(O&&O.handler),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(m),x&&x()},k.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},k.prototype.setSession=function(m){if(this.session!=m){this.curOp&&this.endOperation(),this.curOp={};var x=this.session;if(x){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 L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.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:x}),this.curOp=null,x&&x._signal("changeEditor",{oldEditor:this}),x&&(x.$editor=null),m&&m._signal("changeEditor",{editor:this}),m&&(m.$editor=this),m&&!m.destroyed&&m.bgTokenizer.scheduleStart()}},k.prototype.getSession=function(){return this.session},k.prototype.setValue=function(m,x){return this.session.doc.setValue(m),x?x==1?this.navigateFileEnd():x==-1&&this.navigateFileStart():this.selectAll(),m},k.prototype.getValue=function(){return this.session.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.resize=function(m){this.renderer.onResize(m)},k.prototype.setTheme=function(m,x){this.renderer.setTheme(m,x)},k.prototype.getTheme=function(){return this.renderer.getTheme()},k.prototype.setStyle=function(m){this.renderer.setStyle(m)},k.prototype.unsetStyle=function(m){this.renderer.unsetStyle(m)},k.prototype.getFontSize=function(){return this.getOption("fontSize")||S.computedStyle(this.container).fontSize},k.prototype.setFontSize=function(m){this.setOption("fontSize",m)},k.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var m=this;this.$highlightPending=!0,setTimeout(function(){m.$highlightPending=!1;var x=m.session;if(!(!x||x.destroyed)){x.$bracketHighlight&&(x.$bracketHighlight.markerIds.forEach(function(K){x.removeMarker(K)}),x.$bracketHighlight=null);var L=m.getCursorPosition(),O=m.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(m),W=x.getMatchingBracketRanges(L,F);if(!W){var U=new _(x,L.row,L.column),V=U.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var G=x.getMatchingTags(L);G&&(W=[G.openTagName.isEmpty()?G.openTag:G.openTagName,G.closeTagName.isEmpty()?G.closeTag:G.closeTagName])}}if(!W&&x.$mode.getMatching&&(W=x.$mode.getMatching(m.session)),!W){m.getHighlightIndentGuides()&&m.renderer.$textLayer.$highlightIndentGuide();return}var J="ace_bracket";Array.isArray(W)?W.length==1&&(J="ace_error_bracket"):W=[W],W.length==2&&(d.comparePoints(W[0].end,W[1].start)==0?W=[d.fromPoints(W[0].start,W[1].end)]:d.comparePoints(W[0].start,W[1].end)==0&&(W=[d.fromPoints(W[1].start,W[0].end)])),x.$bracketHighlight={ranges:W,markerIds:W.map(function(K){return x.addMarker(K,J,"text")})},m.getHighlightIndentGuides()&&m.renderer.$textLayer.$highlightIndentGuide()}},50)}},k.prototype.focus=function(){this.textInput.focus()},k.prototype.isFocused=function(){return this.textInput.isFocused()},k.prototype.blur=function(){this.textInput.blur()},k.prototype.onFocus=function(m){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",m))},k.prototype.onBlur=function(m){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",m))},k.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},k.prototype.onDocumentChange=function(m){var x=this.session.$useWrapMode,L=m.start.row==m.end.row?m.end.row:1/0;this.renderer.updateLines(m.start.row,L,x),this._signal("change",m),this.$cursorChange()},k.prototype.onTokenizerUpdate=function(m){var x=m.data;this.renderer.updateLines(x.first,x.last)},k.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},k.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},k.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},k.prototype.$updateHighlightActiveLine=function(){var m=this.getSession(),x;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(x=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(x=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(x=!1)),m.$highlightLineMarker&&!x)m.removeMarker(m.$highlightLineMarker.id),m.$highlightLineMarker=null;else if(!m.$highlightLineMarker&&x){var L=new d(x.row,x.column,x.row,1/0);L.id=m.addMarker(L,"ace_active-line","screenLine"),m.$highlightLineMarker=L}else x&&(m.$highlightLineMarker.start.row=x.row,m.$highlightLineMarker.end.row=x.row,m.$highlightLineMarker.start.column=x.column,m._signal("changeBackMarker"))},k.prototype.onSelectionChange=function(m){var x=this.session;if(x.$selectionMarker&&x.removeMarker(x.$selectionMarker),x.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var L=this.selection.getRange(),O=this.getSelectionStyle();x.$selectionMarker=x.addMarker(L,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},k.prototype.$getSelectionHighLightRegexp=function(){var m=this.session,x=this.getSelectionRange();if(!(x.isEmpty()||x.isMultiLine())){var L=x.start.column,O=x.end.column,F=m.getLine(x.start.row),W=F.substring(L,O);if(!(W.length>5e3||!/[\w\d]/.test(W))){var U=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:W}),V=F.substring(L-1,O+1);if(U.test(V))return U}}},k.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},k.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},k.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},k.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},k.prototype.onChangeMode=function(m){this.renderer.updateText(),this._emit("changeMode",m)},k.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},k.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},k.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},k.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},k.prototype.getCopyText=function(){var m=this.getSelectedText(),x=this.session.doc.getNewLineCharacter(),L=!1;if(!m&&this.$copyWithEmptySelection){L=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var W=O[F];F&&O[F-1].start.row==W.start.row||(m+=this.session.getLine(W.start.row)+x)}}var U={text:m};return this._signal("copy",U),E.lineMode=L?U.text:!1,U.text},k.prototype.onCopy=function(){this.commands.exec("copy",this)},k.prototype.onCut=function(){this.commands.exec("cut",this)},k.prototype.onPaste=function(m,x){var L={text:m,event:x};this.commands.exec("paste",this,L)},k.prototype.$handlePaste=function(m){typeof m=="string"&&(m={text:m}),this._signal("paste",m);var x=m.text,L=x===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?O.insert({row:this.selection.lead.row,column:0},x):this.insert(x);else if(L)this.selection.rangeList.ranges.forEach(function(J){O.insert({row:J.start.row,column:0},x)});else{var F=x.split(/\r\n|\r|\n/),W=this.selection.rangeList.ranges,U=F.length==2&&(!F[0]||!F[1]);if(F.length!=W.length||U)return this.commands.exec("insertstring",this,x);for(var V=W.length;V--;){var G=W[V];G.isEmpty()||O.remove(G),O.insert(G.start,F[V])}}},k.prototype.execCommand=function(m,x){return this.commands.exec(m,this,x)},k.prototype.insert=function(m,x){var L=this.session,O=L.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!x){var W=O.transformAction(L.getState(F.row),"insertion",this,L,m);W&&(m!==W.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),m=W.text)}if(m==" "&&(m=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&m.indexOf(`
|
|
203
|
+
`)==-1){var U=d.fromPoints(F,F);U.end.column+=m.length,this.session.remove(U)}}else{var U=this.getSelectionRange();F=this.session.remove(U),this.clearSelection()}if(m==`
|
|
204
|
+
`||m==`\r
|
|
205
|
+
`){var K=L.getLine(F.row);if(F.column>K.search(/\S|$/)){var V=K.substr(F.column).search(/\S|$/);L.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var G=F.column,J=L.getState(F.row),K=L.getLine(F.row),Q=O.checkOutdent(J,K,m);if(L.insert(F,m),W&&W.selection&&(W.selection.length==2?this.selection.setSelectionRange(new d(F.row,G+W.selection[0],F.row,G+W.selection[1])):this.selection.setSelectionRange(new d(F.row+W.selection[0],W.selection[1],F.row+W.selection[2],W.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(m)){var ie=O.getNextLineIndent(J,K.slice(0,F.column),L.getTabString());L.insert({row:F.row+1,column:0},ie)}Q&&O.autoOutdent(J,L,F.row)}},k.prototype.autoIndent=function(){for(var m=this.session,x=m.getMode(),L=this.selection.isEmpty()?[new d(0,0,m.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",W="",U=m.getTabString(),V=0;V<L.length;V++)for(var G=L[V].start.row,J=L[V].end.row,K=G;K<=J;K++){K>0&&(O=m.getState(K-1),F=m.getLine(K-1),W=x.getNextLineIndent(O,F,U));var Q=m.getLine(K),ie=x.$getIndent(Q);if(W!==ie){if(ie.length>0){var X=new d(K,0,K,ie.length);m.remove(X)}W.length>0&&m.insert({row:K,column:0},W)}x.autoOutdent(O,m,K)}},k.prototype.onTextInput=function(m,x){if(!x)return this.keyBinding.onTextInput(m);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,m,x);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},k.prototype.applyComposition=function(m,x){if(x.extendLeft||x.extendRight){var L=this.selection.getRange();L.start.column-=x.extendLeft,L.end.column+=x.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!m&&!L.isEmpty()&&this.remove()}if((m||!this.selection.isEmpty())&&this.insert(m,!0),x.restoreStart||x.restoreEnd){var L=this.selection.getRange();L.start.column-=x.restoreStart,L.end.column-=x.restoreEnd,this.selection.setRange(L)}},k.prototype.onCommandKey=function(m,x,L){return this.keyBinding.onCommandKey(m,x,L)},k.prototype.setOverwrite=function(m){this.session.setOverwrite(m)},k.prototype.getOverwrite=function(){return this.session.getOverwrite()},k.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},k.prototype.setScrollSpeed=function(m){this.setOption("scrollSpeed",m)},k.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},k.prototype.setDragDelay=function(m){this.setOption("dragDelay",m)},k.prototype.getDragDelay=function(){return this.getOption("dragDelay")},k.prototype.setSelectionStyle=function(m){this.setOption("selectionStyle",m)},k.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},k.prototype.setHighlightActiveLine=function(m){this.setOption("highlightActiveLine",m)},k.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},k.prototype.setHighlightGutterLine=function(m){this.setOption("highlightGutterLine",m)},k.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},k.prototype.setHighlightSelectedWord=function(m){this.setOption("highlightSelectedWord",m)},k.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},k.prototype.setAnimatedScroll=function(m){this.renderer.setAnimatedScroll(m)},k.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},k.prototype.setShowInvisibles=function(m){this.renderer.setShowInvisibles(m)},k.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},k.prototype.setDisplayIndentGuides=function(m){this.renderer.setDisplayIndentGuides(m)},k.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},k.prototype.setHighlightIndentGuides=function(m){this.renderer.setHighlightIndentGuides(m)},k.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},k.prototype.setShowPrintMargin=function(m){this.renderer.setShowPrintMargin(m)},k.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},k.prototype.setPrintMarginColumn=function(m){this.renderer.setPrintMarginColumn(m)},k.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},k.prototype.setReadOnly=function(m){this.setOption("readOnly",m)},k.prototype.getReadOnly=function(){return this.getOption("readOnly")},k.prototype.setBehavioursEnabled=function(m){this.setOption("behavioursEnabled",m)},k.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},k.prototype.setWrapBehavioursEnabled=function(m){this.setOption("wrapBehavioursEnabled",m)},k.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},k.prototype.setShowFoldWidgets=function(m){this.setOption("showFoldWidgets",m)},k.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},k.prototype.setFadeFoldWidgets=function(m){this.setOption("fadeFoldWidgets",m)},k.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},k.prototype.remove=function(m){this.selection.isEmpty()&&(m=="left"?this.selection.selectLeft():this.selection.selectRight());var x=this.getSelectionRange();if(this.getBehavioursEnabled()){var L=this.session,O=L.getState(x.start.row),F=L.getMode().transformAction(O,"deletion",this,L,x);if(x.end.column===0){var W=L.getTextRange(x);if(W[W.length-1]==`
|
|
206
|
+
`){var U=L.getLine(x.end.row);/^\s+$/.test(U)&&(x.end.column=U.length)}}F&&(x=F)}this.session.remove(x),this.clearSelection()},k.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},k.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},k.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},k.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()},k.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var m=this.getCursorPosition();this.insert(`
|
|
207
|
+
`),this.moveCursorToPosition(m)},k.prototype.setGhostText=function(m,x){this.renderer.setGhostText(m,x)},k.prototype.removeGhostText=function(){this.renderer.removeGhostText()},k.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var m=this.getCursorPosition(),x=m.column;if(x!==0){var L=this.session.getLine(m.row),O,F;x<L.length?(O=L.charAt(x)+L.charAt(x-1),F=new d(m.row,x-1,m.row,x+1)):(O=L.charAt(x-1)+L.charAt(x-2),F=new d(m.row,x-2,m.row,x)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},k.prototype.toLowerCase=function(){var m=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),L=this.session.getTextRange(x);this.session.replace(x,L.toLowerCase()),this.selection.setSelectionRange(m)},k.prototype.toUpperCase=function(){var m=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),L=this.session.getTextRange(x);this.session.replace(x,L.toUpperCase()),this.selection.setSelectionRange(m)},k.prototype.indent=function(){var m=this.session,x=this.getSelectionRange();if(x.start.row<x.end.row){var L=this.$getSelectedRows();m.indentRows(L.first,L.last," ");return}else if(x.start.column<x.end.column){var O=m.getTextRange(x);if(!/^\s+$/.test(O)){var L=this.$getSelectedRows();m.indentRows(L.first,L.last," ");return}}var F=m.getLine(x.start.row),W=x.start,U=m.getTabSize(),V=m.documentToScreenColumn(W.row,W.column);if(this.session.getUseSoftTabs())var G=U-V%U,J=f.stringRepeat(" ",G);else{for(var G=V%U;F[x.start.column-1]==" "&&G;)x.start.column--,G--;this.selection.setSelectionRange(x),J=" "}return this.insert(J)},k.prototype.blockIndent=function(){var m=this.$getSelectedRows();this.session.indentRows(m.first,m.last," ")},k.prototype.blockOutdent=function(){var m=this.session.getSelection();this.session.outdentRows(m.getRange())},k.prototype.sortLines=function(){for(var m=this.$getSelectedRows(),x=this.session,L=[],O=m.first;O<=m.last;O++)L.push(x.getLine(O));L.sort(function(U,V){return U.toLowerCase()<V.toLowerCase()?-1:U.toLowerCase()>V.toLowerCase()?1:0});for(var F=new d(0,0,0,0),O=m.first;O<=m.last;O++){var W=x.getLine(O);F.start.row=O,F.end.row=O,F.end.column=W.length,x.replace(F,L[O-m.first])}},k.prototype.toggleCommentLines=function(){var m=this.session.getState(this.getCursorPosition().row),x=this.$getSelectedRows();this.session.getMode().toggleCommentLines(m,this.session,x.first,x.last)},k.prototype.toggleBlockComment=function(){var m=this.getCursorPosition(),x=this.session.getState(m.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,L,m)},k.prototype.getNumberAt=function(m,x){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var O=this.session.getLine(m);L.lastIndex<x;){var F=L.exec(O);if(F.index<=x&&F.index+F[0].length>=x){var W={value:F[0],start:F.index,end:F.index+F[0].length};return W}}return null},k.prototype.modifyNumber=function(m){var x=this.selection.getCursor().row,L=this.selection.getCursor().column,O=new d(x,L-1,x,L),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var W=this.getNumberAt(x,L);if(W){var U=W.value.indexOf(".")>=0?W.start+W.value.indexOf(".")+1:W.end,V=W.start+W.value.length-U,G=parseFloat(W.value);G*=Math.pow(10,V),U!==W.end&&L<U?m*=Math.pow(10,W.end-L-1):m*=Math.pow(10,W.end-L),G+=m,G/=Math.pow(10,V);var J=G.toFixed(V),K=new d(x,W.start,x,W.end);this.session.replace(K,J),this.moveCursorTo(x,Math.max(W.start+1,L+J.length-W.value.length))}}else this.toggleWord()},k.prototype.toggleWord=function(){var m=this.selection.getCursor().row,x=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),W=x-O-1;W<0&&(W=0);var U=0,V=0,G=this;L.match(/[A-Za-z0-9_]+/)&&F.forEach(function(fe,_e){V=U+fe.length,W>=U&&W<=V&&(L=fe,G.selection.clearSelection(),G.moveCursorTo(m,U+O),G.selection.selectTo(m,V+O)),U=V});for(var J=this.$toggleWordPairs,K,Q=0;Q<J.length;Q++)for(var ie=J[Q],X=0;X<=1;X++){var ae=+!X,ge=L.match(new RegExp("^\\s?_?("+f.escapeRegExp(ie[X])+")\\s?$","i"));if(ge){var me=L.match(new RegExp("([_]|^|\\s)("+f.escapeRegExp(ge[1])+")($|\\s)","g"));me&&(K=L.replace(new RegExp(f.escapeRegExp(ie[X]),"i"),function(fe){var _e=ie[ae];return fe.toUpperCase()==fe?_e=_e.toUpperCase():fe.charAt(0).toUpperCase()==fe.charAt(0)&&(_e=_e.substr(0,0)+ie[ae].charAt(0).toUpperCase()+_e.substr(1)),_e}),this.insert(K),K="")}}},k.prototype.findLinkAt=function(m,x){var L,O,F=this.session.getLine(m),W=F.split(/((?:https?|ftp):\/\/[\S]+)/),U=x;U<0&&(U=0);var V=0,G=0,J;try{for(var K=w(W),Q=K.next();!Q.done;Q=K.next()){var ie=Q.value;if(G=V+ie.length,U>=V&&U<=G&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){J=ie.replace(/[\s:.,'";}\]]+$/,"");break}V=G}}catch(X){L={error:X}}finally{try{Q&&!Q.done&&(O=K.return)&&O.call(K)}finally{if(L)throw L.error}}return J},k.prototype.openLink=function(){var m=this.selection.getCursor(),x=this.findLinkAt(m.row,m.column);return x&&window.open(x,"_blank"),x!=null},k.prototype.removeLines=function(){var m=this.$getSelectedRows();this.session.removeFullLines(m.first,m.last),this.clearSelection()},k.prototype.duplicateSelection=function(){var m=this.selection,x=this.session,L=m.getRange(),O=m.isBackwards();if(L.isEmpty()){var F=L.start.row;x.duplicateLines(F,F)}else{var W=O?L.start:L.end,U=x.insert(W,x.getTextRange(L));L.start=W,L.end=U,m.setSelectionRange(L,O)}},k.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},k.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},k.prototype.moveText=function(m,x,L){return this.session.moveText(m,x,L)},k.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},k.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},k.prototype.$moveLines=function(m,x){var L,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var W=F.toOrientedRange();L=this.$getSelectedRows(W),O=this.session.$moveLines(L.first,L.last,x?0:m),x&&m==-1&&(O=0),W.moveBy(O,0),F.fromOrientedRange(W)}else{var U=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,G=0,J=U.length,K=0;K<J;K++){var Q=K;U[K].moveBy(V,0),L=this.$getSelectedRows(U[K]);for(var ie=L.first,X=L.last;++K<J;){G&&U[K].moveBy(G,0);var ae=this.$getSelectedRows(U[K]);if(x&&ae.first!=X)break;if(!x&&ae.first>X+1)break;X=ae.last}for(K--,V=this.session.$moveLines(ie,X,x?0:m),x&&m==-1&&(Q=K+1);Q<=K;)U[Q].moveBy(V,0),Q++;x||(V=0),G+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},k.prototype.$getSelectedRows=function(m){return m=(m||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(m.start.row),last:this.session.getRowFoldEnd(m.end.row)}},k.prototype.onCompositionStart=function(m){this.renderer.showComposition(m)},k.prototype.onCompositionUpdate=function(m){this.renderer.setCompositionText(m)},k.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},k.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},k.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},k.prototype.isRowVisible=function(m){return m>=this.getFirstVisibleRow()&&m<=this.getLastVisibleRow()},k.prototype.isRowFullyVisible=function(m){return m>=this.renderer.getFirstFullyVisibleRow()&&m<=this.renderer.getLastFullyVisibleRow()},k.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},k.prototype.$moveByPage=function(m,x){var L=this.renderer,O=this.renderer.layerConfig,F=m*Math.floor(O.height/O.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):x===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var W=L.scrollTop;L.scrollBy(0,F*O.lineHeight),x!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(W)},k.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},k.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},k.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},k.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},k.prototype.scrollPageDown=function(){this.$moveByPage(1)},k.prototype.scrollPageUp=function(){this.$moveByPage(-1)},k.prototype.scrollToRow=function(m){this.renderer.scrollToRow(m)},k.prototype.scrollToLine=function(m,x,L,O){this.renderer.scrollToLine(m,x,L,O)},k.prototype.centerSelection=function(){var m=this.getSelectionRange(),x={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(x,.5)},k.prototype.getCursorPosition=function(){return this.selection.getCursor()},k.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},k.prototype.getSelectionRange=function(){return this.selection.getRange()},k.prototype.selectAll=function(){this.selection.selectAll()},k.prototype.clearSelection=function(){this.selection.clearSelection()},k.prototype.moveCursorTo=function(m,x){this.selection.moveCursorTo(m,x)},k.prototype.moveCursorToPosition=function(m){this.selection.moveCursorToPosition(m)},k.prototype.jumpToMatching=function(m,x){var L=this.getCursorPosition(),O=new _(this.session,L.row,L.column),F=O.getCurrentToken(),W=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var U=F||O.stepForward();if(U){var V,G=!1,J={},K=L.column-U.start,Q,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(U.value.match(/[{}()\[\]]/g)){for(;K<U.value.length&&!G;K++)if(ie[U.value[K]])switch(Q=ie[U.value[K]]+"."+U.type.replace("rparen","lparen"),isNaN(J[Q])&&(J[Q]=0),U.value[K]){case"(":case"[":case"{":J[Q]++;break;case")":case"]":case"}":J[Q]--,J[Q]===-1&&(V="bracket",G=!0);break}}else U.type.indexOf("tag-name")!==-1&&(isNaN(J[U.value])&&(J[U.value]=0),F.value==="<"&&W>1?J[U.value]++:F.value==="</"&&J[U.value]--,J[U.value]===-1&&(V="tag",G=!0));G||(F=U,W++,U=O.stepForward(),K=0)}while(U&&!G);if(V){var X,ae;if(V==="bracket")X=this.session.getBracketRange(L),X||(X=new d(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+K-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+K-1),ae=X.start,(x||ae.row===L.row&&Math.abs(ae.column-L.column)<2)&&(X=this.session.getBracketRange(ae)));else if(V==="tag"){if(!U||U.type.indexOf("tag-name")===-1)return;if(X=new d(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),X.compare(L.row,L.column)===0){var ge=this.session.getMatchingTags(L);ge&&(ge.openTag.contains(L.row,L.column)?(X=ge.closeTag,ae=X.start):(X=ge.openTag,ge.closeTag.start.row===L.row&&ge.closeTag.start.column===L.column?ae=X.end:ae=X.start))}ae=ae||X.start}ae=X&&X.cursor||ae,ae&&(m?X&&x?this.selection.setRange(X):X&&X.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},k.prototype.gotoLine=function(m,x,L){this.selection.clearSelection(),this.session.unfold({row:m-1,column:x||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(m-1,x||0),this.isRowFullyVisible(m-1)||this.scrollToLine(m-1,!0,L)},k.prototype.navigateTo=function(m,x){this.selection.moveTo(m,x)},k.prototype.navigateUp=function(m){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(-m||-1,0)},k.prototype.navigateDown=function(m){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(m||1,0)},k.prototype.navigateLeft=function(m){if(this.selection.isEmpty())for(m=m||1;m--;)this.selection.moveCursorLeft();else{var x=this.getSelectionRange().start;this.moveCursorToPosition(x)}this.clearSelection()},k.prototype.navigateRight=function(m){if(this.selection.isEmpty())for(m=m||1;m--;)this.selection.moveCursorRight();else{var x=this.getSelectionRange().end;this.moveCursorToPosition(x)}this.clearSelection()},k.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},k.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},k.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},k.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},k.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},k.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},k.prototype.replace=function(m,x){x&&this.$search.set(x);var L=this.$search.find(this.session),O=0;return L&&(this.$tryReplace(L,m)&&(O=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),O},k.prototype.replaceAll=function(m,x){x&&this.$search.set(x);var L=this.$search.findAll(this.session),O=0;if(!L.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var W=L.length-1;W>=0;--W)this.$tryReplace(L[W],m)&&O++;return this.selection.setSelectionRange(F),O},k.prototype.$tryReplace=function(m,x){var L=this.session.getTextRange(m);return x=this.$search.replace(L,x),x!==null?(m.end=this.session.replace(m,x),m):null},k.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},k.prototype.find=function(m,x,L){x||(x={}),typeof m=="string"||m instanceof RegExp?x.needle=m:typeof m=="object"&&y.mixin(x,m);var O=this.selection.getRange();x.needle==null&&(m=this.session.getTextRange(O)||this.$search.$options.needle,m||(O=this.session.getWordRange(O.start.row,O.start.column),m=this.session.getTextRange(O)),this.$search.set({needle:m})),this.$search.set(x),x.start||this.$search.set({start:O});var F=this.$search.find(this.session);if(x.preventScroll)return F;if(F)return this.revealRange(F,L),F;x.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},k.prototype.findNext=function(m,x){this.find({skipCurrent:!0,backwards:!1},m,x)},k.prototype.findPrevious=function(m,x){this.find(m,{skipCurrent:!0,backwards:!0},x)},k.prototype.revealRange=function(m,x){this.session.unfold(m),this.selection.setSelectionRange(m);var L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(m.start,m.end,.5),x!==!1&&this.renderer.animateScrolling(L)},k.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},k.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},k.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(m){m.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},k.prototype.setAutoScrollEditorIntoView=function(m){if(m){var x,L=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var W=this.on("changeSelection",function(){O=!0}),U=this.renderer.on("beforeRender",function(){O&&(x=L.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&x&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var G=L.renderer,J=G.$cursorLayer.$pixelPos,K=G.layerConfig,Q=J.top-K.offset;J.top>=0&&Q+x.top<0?O=!0:J.top<K.height&&J.top+x.top+K.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Q+"px",F.style.left=J.left+"px",F.style.height=K.lineHeight+"px",F.scrollIntoView(O)),O=x=null}});this.setAutoScrollEditorIntoView=function(G){G||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",W),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",U))}}},k.prototype.$resetCursorStyle=function(){var m=this.$cursorStyle||"ace",x=this.renderer.$cursorLayer;x&&(x.setSmoothBlinking(/smooth/.test(m)),x.isBlinking=!this.$readOnly&&m!="wide",S.setCssClass(x.element,"ace_slim-cursors",/slim/.test(m)))},k.prototype.prompt=function(m,x,L){var O=this;$.loadModule("ace/ext/prompt",function(F){F.prompt(O,m,x,L)})},k}();M.$uid=0,M.prototype.curOp=null,M.prototype.prevOp={},M.prototype.$mergeableCommands=["backspace","del","insertstring"],M.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"],["&&","||"],["==","!="]],y.implement(M.prototype,g),$.defineOptions(M.prototype,"editor",{selectionStyle:{set:function(k){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:k})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(k){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(k){this.textInput.setReadOnly(k),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(k){this.textInput.setCopyWithEmptySelection(k)},initialValue:!1},cursorStyle:{set:function(k){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(k){this.setAutoScrollEditorIntoView(k)}},keyboardHandler:{set:function(k){this.setKeyboardHandler(k)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(k){this.session.setValue(k)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(k){this.setSession(k)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(k){this.renderer.$gutterLayer.setShowLineNumbers(k),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),k&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(k){this.$showLineNumbers&&k?N.attach(this):N.detach(this)}},placeholder:{set:function(k){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 x=S.createElement("div");x.className="ace_placeholder",x.textContent=this.$placeholder||"",this.renderer.placeholderNode=x,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(k){var m={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},x=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},L;k?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",x.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",T("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",T("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),L||(L=new v(this)),L.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",x.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),L&&L.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(k){this.$textInputAriaLabel=k},initialValue:""},enableMobileMenu:{set:function(k){this.$enableMobileMenu=k},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",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(k,m){return(Math.abs(k.selection.lead.row-m)||m+1+(m<9?"·":""))+""},getWidth:function(k,m,x){return Math.max(m.toString().length,(x.lastRow+1).toString().length,2)*x.characterWidth},update:function(k,m){m.renderer.$loop.schedule(m.renderer.CHANGE_GUTTER)},attach:function(k){k.renderer.$gutterLayer.$renderer=this,k.on("changeSelection",this.update),this.update(null,k)},detach:function(k){k.renderer.$gutterLayer.$renderer==this&&(k.renderer.$gutterLayer.$renderer=null),k.off("changeSelection",this.update),this.update(null,k)}};s.Editor=M}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,s,A){var w=t("../lib/dom"),y=function(){function S(f,p){this.element=f,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return S.prototype.moveContainer=function(f){w.translate(this.element,0,-(f.firstRowScreen*f.lineHeight%this.canvasHeight)-f.offset*this.$offsetCoefficient)},S.prototype.pageChanged=function(f,p){return Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},S.prototype.computeLineTop=function(f,p,o){var a=p.firstRowScreen*p.lineHeight,i=Math.floor(a/this.canvasHeight),r=o.documentToScreenRow(f,0)*p.lineHeight;return r-i*this.canvasHeight},S.prototype.computeLineHeight=function(f,p,o){return p.lineHeight*o.getRowLineCount(f)},S.prototype.getLength=function(){return this.cells.length},S.prototype.get=function(f){return this.cells[f]},S.prototype.shift=function(){this.$cacheCell(this.cells.shift())},S.prototype.pop=function(){this.$cacheCell(this.cells.pop())},S.prototype.push=function(f){if(Array.isArray(f)){this.cells.push.apply(this.cells,f);for(var p=w.createFragment(this.element),o=0;o<f.length;o++)p.appendChild(f[o].element);this.element.appendChild(p)}else this.cells.push(f),this.element.appendChild(f.element)},S.prototype.unshift=function(f){if(Array.isArray(f)){this.cells.unshift.apply(this.cells,f);for(var p=w.createFragment(this.element),o=0;o<f.length;o++)p.appendChild(f[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(f),this.element.insertAdjacentElement("afterbegin",f.element)},S.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},S.prototype.$cacheCell=function(f){f&&(f.element.remove(),this.cellCache.push(f))},S.prototype.createCell=function(f,p,o,a){var i=this.cellCache.pop();if(!i){var r=w.createElement("div");a&&a(r),this.element.appendChild(r),i={element:r,text:"",row:f}}return i.row=f,i},S}();s.Lines=y}),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(t,s,A){var w=t("../lib/dom"),y=t("../lib/oop"),S=t("../lib/lang"),f=t("../lib/event_emitter").EventEmitter,p=t("./lines").Lines,o=t("../config").nls,a=function(){function r(n){this.element=w.createElement("div"),this.element.className="ace_layer ace_gutter-layer",n.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return r.prototype.setSession=function(n){this.session&&this.session.off("change",this.$updateAnnotations),this.session=n,n&&n.on("change",this.$updateAnnotations)},r.prototype.addGutterDecoration=function(n,l){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(n,l)},r.prototype.removeGutterDecoration=function(n,l){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(n,l)},r.prototype.setAnnotations=function(n){this.$annotations=[];for(var l=0;l<n.length;l++){var d=n[l],g=d.row,b=this.$annotations[g];b||(b=this.$annotations[g]={text:[],type:[],displayText:[]});var R=d.text,$=d.text,_=d.type;R=R?S.escapeHTML(R):d.html||"",$=$||d.html||"",b.text.indexOf(R)===-1&&(b.text.push(R),b.type.push(_),b.displayText.push($));var v=d.className;v?b.className=v:_==="error"?b.className=" ace_error":_==="security"&&!/\bace_error\b/.test(b.className)?b.className=" ace_security":_==="warning"&&!/\bace_(error|security)\b/.test(b.className)?b.className=" ace_warning":_==="info"&&!b.className?b.className=" ace_info":_==="hint"&&!b.className&&(b.className=" ace_hint")}},r.prototype.$updateAnnotations=function(n){if(this.$annotations.length){var l=n.start.row,d=n.end.row-l;if(d!==0)if(n.action=="remove")this.$annotations.splice(l,d+1,null);else{var g=new Array(d+1);g.unshift(l,1),this.$annotations.splice.apply(this.$annotations,g)}}},r.prototype.update=function(n){this.config=n;var l=this.session,d=n.firstRow,g=Math.min(n.lastRow+n.gutterOffset,l.getLength()-1);this.oldLastRow=g,this.config=n,this.$lines.moveContainer(n),this.$updateCursorRow();for(var b=l.getNextFoldLine(d),R=b?b.start.row:1/0,$=null,_=-1,v=d;;){if(v>R&&(v=b.end.row+1,b=l.getNextFoldLine(v,b),R=b?b.start.row:1/0),v>g){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}$=this.$lines.get(++_),$?$.row=v:($=this.$lines.createCell(v,n,this.session,i),this.$lines.push($)),this.$renderCell($,n,b,v),v++}this._signal("afterRender"),this.$updateGutterWidth(n)},r.prototype.$updateGutterWidth=function(n){var l=this.session,d=l.gutterRenderer||this.$renderer,g=l.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||l.$useWrapMode)&&(b=l.getLength()+g-1);var R=d?d.getWidth(l,b,n):b.toString().length*n.characterWidth,$=this.$padding||this.$computePadding();R+=$.left+$.right,R!==this.gutterWidth&&!isNaN(R)&&(this.gutterWidth=R,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",R))},r.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var n=this.session.selection.getCursor();this.$cursorRow!==n.row&&(this.$cursorRow=n.row)}},r.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var n=this.session.selection.cursor.row;if(this.$cursorRow=n,!(this.$cursorCell&&this.$cursorCell.row==n)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var l=this.$lines.cells;this.$cursorCell=null;for(var d=0;d<l.length;d++){var g=l[d];if(g.row>=this.$cursorRow){if(g.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(d>0&&b&&b.start.row==l[d-1].row)g=l[d-1];else break}g.element.className="ace_gutter-active-line "+g.element.className,this.$cursorCell=g;break}}}}},r.prototype.scrollLines=function(n){var l=this.config;if(this.config=n,this.$updateCursorRow(),this.$lines.pageChanged(l,n))return this.update(n);this.$lines.moveContainer(n);var d=Math.min(n.lastRow+n.gutterOffset,this.session.getLength()-1),g=this.oldLastRow;if(this.oldLastRow=d,!l||g<n.firstRow)return this.update(n);if(d<l.firstRow)return this.update(n);if(l.firstRow<n.firstRow)for(var b=this.session.getFoldedRowCount(l.firstRow,n.firstRow-1);b>0;b--)this.$lines.shift();if(g>d)for(var b=this.session.getFoldedRowCount(d+1,g);b>0;b--)this.$lines.pop();n.firstRow<l.firstRow&&this.$lines.unshift(this.$renderLines(n,n.firstRow,l.firstRow-1)),d>g&&this.$lines.push(this.$renderLines(n,g+1,d)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(n)},r.prototype.$renderLines=function(n,l,d){for(var g=[],b=l,R=this.session.getNextFoldLine(b),$=R?R.start.row:1/0;b>$&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),$=R?R.start.row:1/0),!(b>d);){var _=this.$lines.createCell(b,n,this.session,i);this.$renderCell(_,n,R,b),g.push(_),b++}return g},r.prototype.$renderCell=function(n,l,d,g){var b=n.element,R=this.session,$=b.childNodes[0],_=b.childNodes[1],v=b.childNodes[2],T=v.firstChild,E=R.$firstLineNumber,I=R.$breakpoints,M=R.$decorations,N=R.gutterRenderer||this.$renderer,k=this.$showFoldWidgets&&R.foldWidgets,m=d?d.start.row:Number.MAX_VALUE,x=l.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(R,g):g+E).toString();if(this.$highlightGutterLine&&(g==this.$cursorRow||d&&g<this.$cursorRow&&g>=m&&this.$cursorRow<=d.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=n&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=n)),I[g]&&(L+=I[g]),M[g]&&(L+=M[g]),this.$annotations[g]&&g!==m&&(L+=this.$annotations[g].className),k){var W=k[g];W==null&&(W=k[g]=R.getFoldWidget(g))}if(W){var U="ace_fold-widget ace_"+W,V=W=="start"&&g==m&&g<d.end.row;if(V){U+=" ace_closed";for(var G="",J=!1,K=g+1;K<=d.end.row;K++)if(this.$annotations[K]){if(this.$annotations[K].className===" ace_error"){J=!0,G=" ace_error_fold";break}this.$annotations[K].className===" ace_security"?(J=!0,G=" ace_security_fold"):this.$annotations[K].className===" ace_warning"&&G!==" ace_security_fold"&&(J=!0,G=" ace_warning_fold")}L+=G}else U+=" ace_open";_.className!=U&&(_.className=U),w.setStyle(_.style,"height",x),w.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var Q=R.getFoldWidgetRange(g);Q?_.setAttribute("aria-label",o("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Q.start.row+1,Q.end.row+1])):d?_.setAttribute("aria-label",o("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[d.start.row+1,d.end.row+1])):_.setAttribute("aria-label",o("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[g+1])),V?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",o("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",o("gutter.code-folding.open.title","Fold code")))}else _&&(w.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));if(J&&this.$showFoldedAnnotations){v.className="ace_gutter_annotation",T.className=O,T.className+=G,w.setStyle(T.style,"height",x),w.setStyle(v.style,"display","block"),w.setStyle(v.style,"height",x);var ie;switch(G){case" ace_error_fold":ie=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":ie=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":ie=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}v.setAttribute("aria-label",ie),v.setAttribute("tabindex","-1"),v.setAttribute("role","button")}else if(this.$annotations[g]){v.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[g].className:b.classList.add(this.$annotations[g].className.replace(" ","")),w.setStyle(T.style,"height",x),w.setStyle(v.style,"display","block"),w.setStyle(v.style,"height",x);var ie;switch(this.$annotations[g].className){case" ace_error":ie=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":ie=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":ie=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":ie=o("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":ie=o("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}v.setAttribute("aria-label",ie),v.setAttribute("tabindex","-1"),v.setAttribute("role","button")}else w.setStyle(v.style,"display","none"),v.removeAttribute("aria-label"),v.removeAttribute("role"),v.setAttribute("tabindex","0");return F!==$.data&&($.data=F),b.className!=L&&(b.className=L),w.setStyle(n.element.style,"height",this.$lines.computeLineHeight(g,l,R)+"px"),w.setStyle(n.element.style,"top",this.$lines.computeLineTop(g,l,R)+"px"),n.text=F,v.style.display==="none"&&_.style.display==="none"?n.element.setAttribute("aria-hidden",!0):n.element.setAttribute("aria-hidden",!1),n},r.prototype.setHighlightGutterLine=function(n){this.$highlightGutterLine=n},r.prototype.setShowLineNumbers=function(n){this.$renderer=!n&&{getWidth:function(){return 0},getText:function(){return""}}},r.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},r.prototype.setShowFoldWidgets=function(n){n?w.addCssClass(this.element,"ace_folding-enabled"):w.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=n,this.$padding=null},r.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},r.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var n=w.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(n.borderLeftWidth)||0)+(parseInt(n.paddingLeft)||0)+1,this.$padding.right=(parseInt(n.borderRightWidth)||0)+(parseInt(n.paddingRight)||0),this.$padding},r.prototype.getRegion=function(n){var l=this.$padding||this.$computePadding(),d=this.element.getBoundingClientRect();if(n.x<l.left+d.left)return"markers";if(this.$showFoldWidgets&&n.x>d.right-l.right)return"foldWidgets"},r}();a.prototype.$fixedWidth=!1,a.prototype.$highlightGutterLine=!0,a.prototype.$renderer="",a.prototype.$showLineNumbers=!0,a.prototype.$showFoldWidgets=!0,y.implement(a.prototype,f);function i(r){var n=document.createTextNode("");r.appendChild(n);var l=w.createElement("span");r.appendChild(l);var d=w.createElement("span");r.appendChild(d);var g=w.createElement("span");return d.appendChild(g),r}s.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,s,A){var w=t("../range").Range,y=t("../lib/dom"),S=function(){function p(o){this.element=y.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,a){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=a,i.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var a;for(var i in this.markers){var r=this.markers[i];if(!r.range){r.update(a,this,this.session,o);continue}var n=r.range.clipRows(o.firstRow,o.lastRow);if(!n.isEmpty())if(n=n.toScreenRange(this.session),r.renderer){var l=this.$getTop(n.start.row,o),d=this.$padding+n.start.column*o.characterWidth;r.renderer(a,n,d,l,o)}else r.type=="fullLine"?this.drawFullLineMarker(a,n,r.clazz,o):r.type=="screenLine"?this.drawScreenLineMarker(a,n,r.clazz,o):n.isMultiLine()?r.type=="text"?this.drawTextMarker(a,n,r.clazz,o):this.drawMultiLineMarker(a,n,r.clazz,o):this.drawSingleLineMarker(a,n,r.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,a){return(o-a.firstRowScreen)*a.lineHeight},p.prototype.drawTextMarker=function(o,a,i,r,n){for(var l=this.session,d=a.start.row,g=a.end.row,b=d,R=0,$=0,_=l.getScreenLastRowColumn(b),v=new w(b,a.start.column,b,$);b<=g;b++)v.start.row=v.end.row=b,v.start.column=b==d?a.start.column:l.getRowWrapIndent(b),v.end.column=_,R=$,$=_,_=b+1<g?l.getScreenLastRowColumn(b+1):b==g?0:a.end.column,this.drawSingleLineMarker(o,v,i+(b==d?" ace_start":"")+" ace_br"+f(b==d||b==d+1&&a.start.column,R<$,$>_,b==g),r,b==g?0:1,n)},p.prototype.drawMultiLineMarker=function(o,a,i,r,n){var l=this.$padding,d=r.lineHeight,g=this.$getTop(a.start.row,r),b=l+a.start.column*r.characterWidth;if(n=n||"",this.session.$bidiHandler.isBidiRow(a.start.row)){var R=a.clone();R.end.row=R.start.row,R.end.column=this.session.getLine(R.start.row).length,this.drawBidiSingleLineMarker(o,R,i+" ace_br1 ace_start",r,null,n)}else this.elt(i+" ace_br1 ace_start","height:"+d+"px;right:"+l+"px;top:"+g+"px;left:"+b+"px;"+(n||""));if(this.session.$bidiHandler.isBidiRow(a.end.row)){var R=a.clone();R.start.row=R.end.row,R.start.column=0,this.drawBidiSingleLineMarker(o,R,i+" ace_br12",r,null,n)}else{g=this.$getTop(a.end.row,r);var $=a.end.column*r.characterWidth;this.elt(i+" ace_br12","height:"+d+"px;width:"+$+"px;top:"+g+"px;left:"+l+"px;"+(n||""))}if(d=(a.end.row-a.start.row-1)*r.lineHeight,!(d<=0)){g=this.$getTop(a.start.row+1,r);var _=(a.start.column?1:0)|(a.end.column?0:8);this.elt(i+(_?" ace_br"+_:""),"height:"+d+"px;right:"+l+"px;top:"+g+"px;left:"+l+"px;"+(n||""))}},p.prototype.drawSingleLineMarker=function(o,a,i,r,n,l){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(o,a,i,r,n,l);var d=r.lineHeight,g=(a.end.column+(n||0)-a.start.column)*r.characterWidth,b=this.$getTop(a.start.row,r),R=this.$padding+a.start.column*r.characterWidth;this.elt(i,"height:"+d+"px;width:"+g+"px;top:"+b+"px;left:"+R+"px;"+(l||""))},p.prototype.drawBidiSingleLineMarker=function(o,a,i,r,n,l){var d=r.lineHeight,g=this.$getTop(a.start.row,r),b=this.$padding,R=this.session.$bidiHandler.getSelections(a.start.column,a.end.column);R.forEach(function($){this.elt(i,"height:"+d+"px;width:"+($.width+(n||0))+"px;top:"+g+"px;left:"+(b+$.left)+"px;"+(l||""))},this)},p.prototype.drawFullLineMarker=function(o,a,i,r,n){var l=this.$getTop(a.start.row,r),d=r.lineHeight;a.start.row!=a.end.row&&(d+=this.$getTop(a.end.row,r)-l),this.elt(i,"height:"+d+"px;top:"+l+"px;left:0;right:0;"+(n||""))},p.prototype.drawScreenLineMarker=function(o,a,i,r,n){var l=this.$getTop(a.start.row,r),d=r.lineHeight;this.elt(i,"height:"+d+"px;top:"+l+"px;left:0;right:0;"+(n||""))},p}();S.prototype.$padding=0;function f(p,o,a,i){return(p?1:0)|(o?2:0)|(a?4:0)|(i?8:0)}s.Marker=S}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,s,A){var w=new Set(["text","rparen","lparen"]);s.isTextToken=function(y){return w.has(y)}}),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(t,s,A){var w=t("../lib/oop"),y=t("../lib/dom"),S=t("../lib/lang"),f=t("./lines").Lines,p=t("../lib/event_emitter").EventEmitter,o=t("../config").nls,a=t("./text_util").isTextToken,i=function(){function r(n){this.dom=y,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",n.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new f(this.element)}return r.prototype.$updateEolChar=function(){var n=this.session.doc,l=n.getNewLineCharacter()==`
|
|
208
|
+
`&&n.getNewLineMode()!="windows",d=l?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=d)return this.EOL_CHAR=d,!0},r.prototype.setPadding=function(n){this.$padding=n,this.element.style.margin="0 "+n+"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(n){this.$fontMetrics=n,this.$fontMetrics.on("changeCharacterSize",(function(l){this._signal("changeCharacterSize",l)}).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(n){this.session=n,n&&this.$computeTabString()},r.prototype.setShowInvisibles=function(n){return this.showInvisibles==n?!1:(this.showInvisibles=n,typeof n=="string"?(this.showSpaces=/tab/i.test(n),this.showTabs=/space/i.test(n),this.showEOL=/eol/i.test(n)):this.showSpaces=this.showTabs=this.showEOL=n,this.$computeTabString(),!0)},r.prototype.setDisplayIndentGuides=function(n){return this.displayIndentGuides==n?!1:(this.displayIndentGuides=n,this.$computeTabString(),!0)},r.prototype.setHighlightIndentGuides=function(n){return this.$highlightIndentGuides===n?!1:(this.$highlightIndentGuides=n,n)},r.prototype.$computeTabString=function(){var n=this.session.getTabSize();this.tabSize=n;for(var l=this.$tabStrings=[0],d=1;d<n+1;d++)if(this.showTabs){var g=this.dom.createElement("span");g.className="ace_invisible ace_invisible_tab",g.textContent=S.stringRepeat(this.TAB_CHAR,d),l.push(g)}else l.push(this.dom.createTextNode(S.stringRepeat(" ",d),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",R=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?S.stringRepeat(this.SPACE_CHAR,this.tabSize):S.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",v=this.showTabs?S.stringRepeat(this.TAB_CHAR,this.tabSize):$,g=this.dom.createElement("span");g.className=b+R,g.textContent=$,this.$tabStrings[" "]=g;var g=this.dom.createElement("span");g.className=b+_,g.textContent=v,this.$tabStrings[" "]=g}},r.prototype.updateLines=function(n,l,d){if(this.config.lastRow!=n.lastRow||this.config.firstRow!=n.firstRow)return this.update(n);this.config=n;for(var g=Math.max(l,n.firstRow),b=Math.min(d,n.lastRow),R=this.element.childNodes,$=0,v=n.firstRow;v<g;v++){var T=this.session.getFoldLine(v);if(T)if(T.containsRow(g)){g=T.start.row;break}else v=T.end.row;$++}for(var _=!1,v=g,T=this.session.getNextFoldLine(v),E=T?T.start.row:1/0;v>E&&(v=T.end.row+1,T=this.session.getNextFoldLine(v,T),E=T?T.start.row:1/0),!(v>b);){var I=R[$++];if(I){this.dom.removeChildren(I),this.$renderLine(I,v,v==E?T:!1),_&&(I.style.top=this.$lines.computeLineTop(v,n,this.session)+"px");var M=n.lineHeight*this.session.getRowLength(v)+"px";I.style.height!=M&&(_=!0,I.style.height=M)}v++}if(_)for(;$<this.$lines.cells.length;){var N=this.$lines.cells[$++];N.element.style.top=this.$lines.computeLineTop(N.row,n,this.session)+"px"}},r.prototype.scrollLines=function(n){var l=this.config;if(this.config=n,this.$lines.pageChanged(l,n))return this.update(n);this.$lines.moveContainer(n);var d=n.lastRow,g=l?l.lastRow:-1;if(!l||g<n.firstRow)return this.update(n);if(d<l.firstRow)return this.update(n);if(!l||l.lastRow<n.firstRow)return this.update(n);if(n.lastRow<l.firstRow)return this.update(n);if(l.firstRow<n.firstRow)for(var b=this.session.getFoldedRowCount(l.firstRow,n.firstRow-1);b>0;b--)this.$lines.shift();if(l.lastRow>n.lastRow)for(var b=this.session.getFoldedRowCount(n.lastRow+1,l.lastRow);b>0;b--)this.$lines.pop();n.firstRow<l.firstRow&&this.$lines.unshift(this.$renderLinesFragment(n,n.firstRow,l.firstRow-1)),n.lastRow>l.lastRow&&this.$lines.push(this.$renderLinesFragment(n,l.lastRow+1,n.lastRow)),this.$highlightIndentGuide()},r.prototype.$renderLinesFragment=function(n,l,d){for(var g=[],b=l,R=this.session.getNextFoldLine(b),$=R?R.start.row:1/0;b>$&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),$=R?R.start.row:1/0),!(b>d);){var _=this.$lines.createCell(b,n,this.session),v=_.element;this.dom.removeChildren(v),y.setStyle(v.style,"height",this.$lines.computeLineHeight(b,n,this.session)+"px"),y.setStyle(v.style,"top",this.$lines.computeLineTop(b,n,this.session)+"px"),this.$renderLine(v,b,b==$?R:!1),this.$useLineGroups()?v.className="ace_line_group":v.className="ace_line",g.push(_),b++}return g},r.prototype.update=function(n){this.$lines.moveContainer(n),this.config=n;for(var l=n.firstRow,d=n.lastRow,g=this.$lines;g.getLength();)g.pop();g.push(this.$renderLinesFragment(n,l,d))},r.prototype.$renderToken=function(n,l,d,g){for(var b=this,R=/(\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,$=this.dom.createFragment(this.element),_,v=0;_=R.exec(g);){var T=_[1],E=_[2],I=_[3],M=_[4],N=_[5];if(!(!b.showSpaces&&E)){var k=v!=_.index?g.slice(v,_.index):"";if(v=_.index+_[0].length,k&&$.appendChild(this.dom.createTextNode(k,this.element)),T){var m=b.session.getScreenTabSize(l+_.index);$.appendChild(b.$tabStrings[m].cloneNode(!0)),l+=m-1}else if(E)if(b.showSpaces){var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_space",x.textContent=S.stringRepeat(b.SPACE_CHAR,E.length),$.appendChild(x)}else $.appendChild(this.dom.createTextNode(E,this.element));else if(I){var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_space ace_invalid",x.textContent=S.stringRepeat(b.SPACE_CHAR,I.length),$.appendChild(x)}else if(M){l+=1;var x=this.dom.createElement("span");x.style.width=b.config.characterWidth*2+"px",x.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",x.textContent=b.showSpaces?b.SPACE_CHAR:M,$.appendChild(x)}else if(N){l+=1;var x=this.dom.createElement("span");x.style.width=b.config.characterWidth*2+"px",x.className="ace_cjk",x.textContent=N,$.appendChild(x)}}}if($.appendChild(this.dom.createTextNode(v?g.slice(v):g,this.element)),a(d.type))n.appendChild($);else{var L="ace_"+d.type.replace(/\./g," ace_"),x=this.dom.createElement("span");d.type=="fold"&&(x.style.width=d.value.length*this.config.characterWidth+"px",x.setAttribute("title",o("inline-fold.closed.title","Unfold code"))),x.className=L,x.appendChild($),n.appendChild(x)}return l+g.length},r.prototype.renderIndentGuide=function(n,l,d){var g=l.search(this.$indentGuideRe);if(g<=0||g>=d)return l;if(l[0]==" "){g-=g%this.tabSize;for(var b=g/this.tabSize,R=0;R<b;R++)n.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),l.substr(g)}else if(l[0]==" "){for(var R=0;R<g;R++)n.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),l.substr(g)}return this.$highlightIndentGuide(),l},r.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var n=this.session.doc.$lines;if(n){var l=this.session.selection.getCursor(),d=/^\s*/.exec(this.session.doc.getLine(l.row))[0].length,g=Math.floor(d/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:g,start:l.row};var b=this.session.$bracketHighlight;if(b){for(var R=this.session.$bracketHighlight.ranges,$=0;$<R.length;$++)if(l.row!==R[$].start.row){this.$highlightIndentGuideMarker.end=R[$].start.row+1,l.row>R[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&n[l.row]!==""&&l.column===n[l.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=l.row+1;$<n.length;$++){var _=n[$],v=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=$,v<=d))break}}this.$renderHighlightIndentGuide()}}},r.prototype.$clearActiveIndentGuide=function(){var n=this.element.querySelectorAll(".ace_indent-guide-active");n.forEach(function(l){l.classList.remove("ace_indent-guide-active")})},r.prototype.$setIndentGuideActive=function(n,l){var d=this.session.doc.getLine(n.row);if(d!==""){var g=n.element;if(n.element.classList&&n.element.classList.contains("ace_line_group"))if(n.element.childNodes.length>0)g=n.element.childNodes[0];else return;var b=g.childNodes;if(b){var R=b[l-1];R&&R.classList&&R.classList.contains("ace_indent-guide")&&R.classList.add("ace_indent-guide-active")}}},r.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var n=this.$lines.cells;this.$clearActiveIndentGuide();var l=this.$highlightIndentGuideMarker.indentLevel;if(l!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var d=0;d<n.length;d++){var g=n[d];if(this.$highlightIndentGuideMarker.end&&g.row>=this.$highlightIndentGuideMarker.start+1){if(g.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(g,l)}}else for(var d=n.length-1;d>=0;d--){var g=n[d];if(this.$highlightIndentGuideMarker.end&&g.row<this.$highlightIndentGuideMarker.start){if(g.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(g,l)}}}},r.prototype.$createLineElement=function(n){var l=this.dom.createElement("div");return l.className="ace_line",l.style.height=this.config.lineHeight+"px",l},r.prototype.$renderWrappedLine=function(n,l,d){var g=0,b=0,R=d[0],$=0,_=this.$createLineElement();n.appendChild(_);for(var v=0;v<l.length;v++){var T=l[v],E=T.value;if(v==0&&this.displayIndentGuides){if(g=E.length,E=this.renderIndentGuide(_,E,R),!E)continue;g-=E.length}if(g+E.length<R)$=this.$renderToken(_,$,T,E),g+=E.length;else{for(;g+E.length>=R;)$=this.$renderToken(_,$,T,E.substring(0,R-g)),E=E.substring(R-g),g=R,_=this.$createLineElement(),n.appendChild(_),_.appendChild(this.dom.createTextNode(S.stringRepeat(" ",d.indent),this.element)),b++,$=0,R=d[b]||Number.MAX_VALUE;E.length!=0&&(g+=E.length,$=this.$renderToken(_,$,T,E))}}d[d.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,$,null,"",!0)},r.prototype.$renderSimpleLine=function(n,l){for(var d=0,g=0;g<l.length;g++){var b=l[g],R=b.value;if(!(g==0&&this.displayIndentGuides&&(R=this.renderIndentGuide(n,R),!R))){if(d+R.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(n,d,b,R);d=this.$renderToken(n,d,b,R)}}},r.prototype.$renderOverflowMessage=function(n,l,d,g,b){d&&this.$renderToken(n,l,d,g.slice(0,this.MAX_LINE_LENGTH-l));var R=this.dom.createElement("span");R.className="ace_inline_button ace_keyword ace_toggle_wrap",R.textContent=b?"<hide>":"<click to see more...>",n.appendChild(R)},r.prototype.$renderLine=function(n,l,d){if(!d&&d!=!1&&(d=this.session.getFoldLine(l)),d)var g=this.$getFoldLineTokens(l,d);else var g=this.session.getTokens(l);var b=n;if(g.length){var R=this.session.getRowSplitData(l);if(R&&R.length){this.$renderWrappedLine(n,g,R);var b=n.lastChild}else{var b=n;this.$useLineGroups()&&(b=this.$createLineElement(),n.appendChild(b)),this.$renderSimpleLine(b,g)}}else this.$useLineGroups()&&(b=this.$createLineElement(),n.appendChild(b));if(this.showEOL&&b){d&&(l=d.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=l==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild($)}},r.prototype.$getFoldLineTokens=function(n,l){var d=this.session,g=[];function b($,_,v){for(var T=0,E=0;E+$[T].value.length<_;)if(E+=$[T].value.length,T++,T==$.length)return;if(E!=_){var I=$[T].value.substring(_-E);I.length>v-_&&(I=I.substring(0,v-_)),g.push({type:$[T].type,value:I}),E=_+I.length,T+=1}for(;E<v&&T<$.length;){var I=$[T].value;I.length+E>v?g.push({type:$[T].type,value:I.substring(0,v-E)}):g.push($[T]),E+=I.length,T+=1}}var R=d.getTokens(n);return l.walk(function($,_,v,T,E){$!=null?g.push({type:"fold",value:$}):(E&&(R=d.getTokens(_)),R.length&&b(R,T,v))},l.end.row,this.session.getLine(l.end.row).length),g},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,w.implement(i.prototype,p),s.Text=i}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,s,A){var w=t("../lib/dom"),y=function(){function S(f){this.element=w.createElement("div"),this.element.className="ace_layer ace_cursor-layer",f.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),w.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return S.prototype.$updateOpacity=function(f){for(var p=this.cursors,o=p.length;o--;)w.setStyle(p[o].style,"opacity",f?"":"0")},S.prototype.$startCssAnimation=function(){for(var f=this.cursors,p=f.length;p--;)f[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&w.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},S.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,w.removeCssClass(this.element,"ace_animate-blinking")},S.prototype.setPadding=function(f){this.$padding=f},S.prototype.setSession=function(f){this.session=f},S.prototype.setBlinking=function(f){f!=this.isBlinking&&(this.isBlinking=f,this.restartTimer())},S.prototype.setBlinkInterval=function(f){f!=this.blinkInterval&&(this.blinkInterval=f,this.restartTimer())},S.prototype.setSmoothBlinking=function(f){f!=this.smoothBlinking&&(this.smoothBlinking=f,w.setCssClass(this.element,"ace_smooth-blinking",f),this.$updateCursors(!0),this.restartTimer())},S.prototype.addCursor=function(){var f=w.createElement("div");return f.className="ace_cursor",this.element.appendChild(f),this.cursors.push(f),f},S.prototype.removeCursor=function(){if(this.cursors.length>1){var f=this.cursors.pop();return f.parentNode.removeChild(f),f}},S.prototype.hideCursor=function(){this.isVisible=!1,w.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},S.prototype.showCursor=function(){this.isVisible=!0,w.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},S.prototype.restartTimer=function(){var f=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,w.removeCssClass(this.element,"ace_smooth-blinking")),f(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&w.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),w.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){f(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){f(!0),p()},this.blinkInterval),p()}},S.prototype.getPixelPosition=function(f,p){if(!this.config||!this.session)return{left:0,top:0};f||(f=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(f),a=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,f.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),i=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:a,top:i}},S.prototype.isCursorInView=function(f,p){return f.top>=0&&f.top<p.maxHeight},S.prototype.update=function(f){this.config=f;var p=this.session.$selectionMarkers,o=0,a=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,i=p.length;o<i;o++){var r=this.getPixelPosition(p[o].cursor,!0);if(!((r.top>f.height+f.offset||r.top<0)&&o>1)){var n=this.cursors[a++]||this.addCursor(),l=n.style;this.drawCursor?this.drawCursor(n,r,f,p[o],this.session):this.isCursorInView(r,f)?(w.setStyle(l,"display","block"),w.translate(n,r.left,r.top),w.setStyle(l,"width",Math.round(f.characterWidth)+"px"),w.setStyle(l,"height",f.lineHeight+"px")):w.setStyle(l,"display","none")}}for(;this.cursors.length>a;)this.removeCursor();var d=this.session.getOverwrite();this.$setOverwrite(d),this.$pixelPos=r,this.restartTimer()},S.prototype.$setOverwrite=function(f){f!=this.overwrite&&(this.overwrite=f,f?w.addCssClass(this.element,"ace_overwrite-cursors"):w.removeCssClass(this.element,"ace_overwrite-cursors"))},S.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},S}();y.prototype.$padding=0,y.prototype.drawCursor=null,s.Cursor=y}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,s,A){var w=this&&this.__extends||function(){var n=function(l,d){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&(g[R]=b[R])},n(l,d)};return function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");n(l,d);function g(){this.constructor=l}l.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),y=t("./lib/oop"),S=t("./lib/dom"),f=t("./lib/event"),p=t("./lib/event_emitter").EventEmitter,o=32768,a=function(){function n(l,d){this.element=S.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+d,this.inner=S.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),l.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,f.addListener(this.element,"scroll",this.onScroll.bind(this)),f.addListener(this.element,"mousedown",f.preventDefault)}return n.prototype.setVisible=function(l){this.element.style.display=l?"":"none",this.isVisible=l,this.coeff=1},n}();y.implement(a.prototype,p);var i=function(n){w(l,n);function l(d,g){var b=n.call(this,d,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,g.$scrollbarWidth=b.width=S.scrollbarWidth(d.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return l.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var d=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-d)/(this.coeff-d)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},l.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},l.prototype.setHeight=function(d){this.element.style.height=d+"px"},l.prototype.setScrollHeight=function(d){this.scrollHeight=d,d>o?(this.coeff=o/d,d=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=d+"px"},l.prototype.setScrollTop=function(d){this.scrollTop!=d&&(this.skipEvent=!0,this.scrollTop=d,this.element.scrollTop=d*this.coeff)},l}(a);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var r=function(n){w(l,n);function l(d,g){var b=n.call(this,d,"-h")||this;return b.scrollLeft=0,b.height=g.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}return l.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},l.prototype.getHeight=function(){return this.isVisible?this.height:0},l.prototype.setWidth=function(d){this.element.style.width=d+"px"},l.prototype.setInnerWidth=function(d){this.inner.style.width=d+"px"},l.prototype.setScrollWidth=function(d){this.inner.style.width=d+"px"},l.prototype.setScrollLeft=function(d){this.scrollLeft!=d&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=d)},l}(a);s.ScrollBar=i,s.ScrollBarV=i,s.ScrollBarH=r,s.VScrollBar=i,s.HScrollBar=r}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,s,A){var w=this&&this.__extends||function(){var r=function(n,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(d[b]=g[b])},r(n,l)};return function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");r(n,l);function d(){this.constructor=n}n.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),y=t("./lib/oop"),S=t("./lib/dom"),f=t("./lib/event"),p=t("./lib/event_emitter").EventEmitter;S.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
209
|
+
position: absolute;
|
|
210
|
+
background: rgba(128, 128, 128, 0.6);
|
|
211
|
+
-moz-box-sizing: border-box;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
border: 1px solid #bbb;
|
|
214
|
+
border-radius: 2px;
|
|
215
|
+
z-index: 8;
|
|
216
|
+
}
|
|
217
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
218
|
+
position: absolute;
|
|
219
|
+
z-index: 6;
|
|
220
|
+
background: none;
|
|
221
|
+
overflow: hidden!important;
|
|
222
|
+
}
|
|
223
|
+
.ace_editor>.ace_sb-v {
|
|
224
|
+
z-index: 6;
|
|
225
|
+
right: 0;
|
|
226
|
+
top: 0;
|
|
227
|
+
width: 12px;
|
|
228
|
+
}
|
|
229
|
+
.ace_editor>.ace_sb-v div {
|
|
230
|
+
z-index: 8;
|
|
231
|
+
right: 0;
|
|
232
|
+
width: 100%;
|
|
233
|
+
}
|
|
234
|
+
.ace_editor>.ace_sb-h {
|
|
235
|
+
bottom: 0;
|
|
236
|
+
left: 0;
|
|
237
|
+
height: 12px;
|
|
238
|
+
}
|
|
239
|
+
.ace_editor>.ace_sb-h div {
|
|
240
|
+
bottom: 0;
|
|
241
|
+
height: 100%;
|
|
242
|
+
}
|
|
243
|
+
.ace_editor>.ace_sb_grabbed {
|
|
244
|
+
z-index: 8;
|
|
245
|
+
background: #000;
|
|
246
|
+
}`,"ace_scrollbar.css",!1);var o=function(){function r(n,l){this.element=S.createElement("div"),this.element.className="ace_sb"+l,this.inner=S.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,n.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,f.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return r.prototype.setVisible=function(n){this.element.style.display=n?"":"none",this.isVisible=n,this.coeff=1},r}();y.implement(o.prototype,p);var a=function(r){w(n,r);function n(l,d){var g=r.call(this,l,"-v")||this;return g.scrollTop=0,g.scrollHeight=0,g.parent=l,g.width=g.VScrollWidth,g.renderer=d,g.inner.style.width=g.element.style.width=(g.width||15)+"px",g.$minWidth=0,g}return n.prototype.onMouseDown=function(l,d){if(l==="mousedown"&&!(f.getButton(d)!==0||d.detail===2)){if(d.target===this.inner){var g=this,b=d.clientY,R=function(M){b=M.clientY},$=function(){clearInterval(E)},_=d.clientY,v=this.thumbTop,T=function(){if(b!==void 0){var M=g.scrollTopFromThumbTop(v+b-_);M!==g.scrollTop&&g._emit("scroll",{data:M})}};f.capture(this.inner,R,$);var E=setInterval(T,20);return f.preventDefault(d)}var I=d.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),f.preventDefault(d)}},n.prototype.getHeight=function(){return this.height},n.prototype.scrollTopFromThumbTop=function(l){var d=l*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return d=d>>0,d<0?d=0:d>this.pageHeight-this.viewHeight&&(d=this.pageHeight-this.viewHeight),d},n.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},n.prototype.setHeight=function(l){this.height=Math.max(0,l),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},n.prototype.setScrollHeight=function(l,d){this.pageHeight===l&&!d||(this.pageHeight=l,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})))},n.prototype.setScrollTop=function(l){this.scrollTop=l,l<0&&(l=0),this.thumbTop=l*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},n}(o);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var i=function(r){w(n,r);function n(l,d){var g=r.call(this,l,"-h")||this;return g.scrollLeft=0,g.scrollWidth=0,g.height=g.HScrollHeight,g.inner.style.height=g.element.style.height=(g.height||12)+"px",g.renderer=d,g}return n.prototype.onMouseDown=function(l,d){if(l==="mousedown"&&!(f.getButton(d)!==0||d.detail===2)){if(d.target===this.inner){var g=this,b=d.clientX,R=function(M){b=M.clientX},$=function(){clearInterval(E)},_=d.clientX,v=this.thumbLeft,T=function(){if(b!==void 0){var M=g.scrollLeftFromThumbLeft(v+b-_);M!==g.scrollLeft&&g._emit("scroll",{data:M})}};f.capture(this.inner,R,$);var E=setInterval(T,20);return f.preventDefault(d)}var I=d.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),f.preventDefault(d)}},n.prototype.getHeight=function(){return this.isVisible?this.height:0},n.prototype.scrollLeftFromThumbLeft=function(l){var d=l*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return d=d>>0,d<0?d=0:d>this.pageWidth-this.viewWidth&&(d=this.pageWidth-this.viewWidth),d},n.prototype.setWidth=function(l){this.width=Math.max(0,l),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},n.prototype.setScrollWidth=function(l,d){this.pageWidth===l&&!d||(this.pageWidth=l,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})))},n.prototype.setScrollLeft=function(l){this.scrollLeft=l,l<0&&(l=0),this.thumbLeft=l*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},n}(o);i.prototype.setInnerWidth=i.prototype.setScrollWidth,s.ScrollBar=a,s.ScrollBarV=a,s.ScrollBarH=i,s.VScrollBar=a,s.HScrollBar=i}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,s,A){var w=t("./lib/event"),y=function(){function S(f,p){this.onRender=f,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(a){o.pending=!1;var i=o.changes;if(i&&(w.blockIdle(100),o.changes=0,o.onRender(i)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return S.prototype.schedule=function(f){this.changes=this.changes|f,this.changes&&!this.pending&&(w.nextFrame(this._flush),this.pending=!0)},S.prototype.clear=function(f){var p=this.changes;return this.changes=0,p},S}();s.RenderLoop=y}),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(t,s,A){var w=t("../lib/oop"),y=t("../lib/dom"),S=t("../lib/lang"),f=t("../lib/event"),p=t("../lib/useragent"),o=t("../lib/event_emitter").EventEmitter,a=512,i=typeof ResizeObserver=="function",r=200,n=function(){function l(d){this.el=y.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=y.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=y.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),d.appendChild(this.el),this.$measureNode.textContent=S.stringRepeat("X",a),this.$characterSize={width:0,height:0},i?this.$addObserver():this.checkForSizeChanges()}return l.prototype.$setMeasureNodeStyles=function(d,g){d.width=d.height="auto",d.left=d.top="0px",d.visibility="hidden",d.position="absolute",d.whiteSpace="pre",p.isIE<8?d["font-family"]="inherit":d.font="inherit",d.overflow=g?"hidden":"visible"},l.prototype.checkForSizeChanges=function(d){if(d===void 0&&(d=this.$measureSizes()),d&&(this.$characterSize.width!==d.width||this.$characterSize.height!==d.height)){this.$measureNode.style.fontWeight="bold";var g=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=d,this.charSizes=Object.create(null),this.allowBoldFonts=g&&g.width===d.width&&g.height===d.height,this._emit("changeCharacterSize",{data:d})}},l.prototype.$addObserver=function(){var d=this;this.$observer=new window.ResizeObserver(function(g){d.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},l.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var d=this;return this.$pollSizeChangesTimer=f.onIdle(function g(){d.checkForSizeChanges(),f.onIdle(g,500)},500)},l.prototype.setPolling=function(d){d?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},l.prototype.$measureSizes=function(d){var g={height:(d||this.$measureNode).clientHeight,width:(d||this.$measureNode).clientWidth/a};return g.width===0||g.height===0?null:g},l.prototype.$measureCharWidth=function(d){this.$main.textContent=S.stringRepeat(d,a);var g=this.$main.getBoundingClientRect();return g.width/a},l.prototype.getCharacterWidth=function(d){var g=this.charSizes[d];return g===void 0&&(g=this.charSizes[d]=this.$measureCharWidth(d)/this.$characterSize.width),g},l.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},l.prototype.$getZoom=function(d){return!d||!d.parentElement?1:(Number(window.getComputedStyle(d).zoom)||1)*this.$getZoom(d.parentElement)},l.prototype.$initTransformMeasureNodes=function(){var d=function(g,b){return["div",{style:"position: absolute;top:"+g+"px;left:"+b+"px;"}]};this.els=y.buildDom([d(0,0),d(r,0),d(0,r),d(r,r)],this.el)},l.prototype.transformCoordinates=function(d,g){if(d){var b=this.$getZoom(this.el);d=v(1/b,d)}function R(V,G,J){var K=V[1]*G[0]-V[0]*G[1];return[(-G[1]*J[0]+G[0]*J[1])/K,(+V[1]*J[0]-V[0]*J[1])/K]}function $(V,G){return[V[0]-G[0],V[1]-G[1]]}function _(V,G){return[V[0]+G[0],V[1]+G[1]]}function v(V,G){return[V*G[0],V*G[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var G=V.getBoundingClientRect();return[G.left,G.top]}var E=T(this.els[0]),I=T(this.els[1]),M=T(this.els[2]),N=T(this.els[3]),k=R($(N,I),$(N,M),$(_(I,M),_(N,E))),m=v(1+k[0],$(I,E)),x=v(1+k[1],$(M,E));if(g){var L=g,O=k[0]*L[0]/r+k[1]*L[1]/r+1,F=_(v(L[0],m),v(L[1],x));return _(v(1/O/r,F),E)}var W=$(d,E),U=R($(m,v(k[0],W)),$(x,v(k[1],W)),W);return v(r,U)},l}();n.prototype.$characterSize={width:0,height:0},w.implement(n.prototype,o),s.FontMetrics=n}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,s,A){A.exports=`
|
|
247
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
|
248
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
|
249
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
250
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
251
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
252
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
253
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
254
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
255
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
256
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
257
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
258
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
259
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
260
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
261
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
.ace_editor {
|
|
265
|
+
position: relative;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
padding: 0;
|
|
268
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
269
|
+
direction: ltr;
|
|
270
|
+
text-align: left;
|
|
271
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
272
|
+
forced-color-adjust: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.ace_scroller {
|
|
276
|
+
position: absolute;
|
|
277
|
+
overflow: hidden;
|
|
278
|
+
top: 0;
|
|
279
|
+
bottom: 0;
|
|
280
|
+
background-color: inherit;
|
|
281
|
+
-ms-user-select: none;
|
|
282
|
+
-moz-user-select: none;
|
|
283
|
+
-webkit-user-select: none;
|
|
284
|
+
user-select: none;
|
|
285
|
+
cursor: text;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.ace_content {
|
|
289
|
+
position: absolute;
|
|
290
|
+
box-sizing: border-box;
|
|
291
|
+
min-width: 100%;
|
|
292
|
+
contain: style size layout;
|
|
293
|
+
font-variant-ligatures: no-common-ligatures;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ace_keyboard-focus:focus {
|
|
297
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
298
|
+
outline: none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ace_dragging .ace_scroller:before{
|
|
302
|
+
position: absolute;
|
|
303
|
+
top: 0;
|
|
304
|
+
left: 0;
|
|
305
|
+
right: 0;
|
|
306
|
+
bottom: 0;
|
|
307
|
+
content: '';
|
|
308
|
+
background: rgba(250, 250, 250, 0.01);
|
|
309
|
+
z-index: 1000;
|
|
310
|
+
}
|
|
311
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
|
312
|
+
background: rgba(0, 0, 0, 0.01);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.ace_gutter {
|
|
316
|
+
position: absolute;
|
|
317
|
+
overflow : hidden;
|
|
318
|
+
width: auto;
|
|
319
|
+
top: 0;
|
|
320
|
+
bottom: 0;
|
|
321
|
+
left: 0;
|
|
322
|
+
cursor: default;
|
|
323
|
+
z-index: 4;
|
|
324
|
+
-ms-user-select: none;
|
|
325
|
+
-moz-user-select: none;
|
|
326
|
+
-webkit-user-select: none;
|
|
327
|
+
user-select: none;
|
|
328
|
+
contain: style size layout;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.ace_gutter-active-line {
|
|
332
|
+
position: absolute;
|
|
333
|
+
left: 0;
|
|
334
|
+
right: 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.ace_scroller.ace_scroll-left:after {
|
|
338
|
+
content: "";
|
|
339
|
+
position: absolute;
|
|
340
|
+
top: 0;
|
|
341
|
+
right: 0;
|
|
342
|
+
bottom: 0;
|
|
343
|
+
left: 0;
|
|
344
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
345
|
+
pointer-events: none;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
349
|
+
position: absolute;
|
|
350
|
+
top: 0;
|
|
351
|
+
left: 0;
|
|
352
|
+
right: 0;
|
|
353
|
+
padding-left: 19px;
|
|
354
|
+
padding-right: 6px;
|
|
355
|
+
background-repeat: no-repeat;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
359
|
+
margin-left: -14px;
|
|
360
|
+
float: left;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
|
364
|
+
margin-left: -19px;
|
|
365
|
+
float: left;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.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 {
|
|
369
|
+
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==");
|
|
370
|
+
background-repeat: no-repeat;
|
|
371
|
+
background-position: 2px center;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
375
|
+
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==");
|
|
376
|
+
background-repeat: no-repeat;
|
|
377
|
+
background-position: 2px center;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
381
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
382
|
+
background-repeat: no-repeat;
|
|
383
|
+
background-position: 2px center;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.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 {
|
|
387
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.ace_icon_svg.ace_error {
|
|
391
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
392
|
+
background-color: crimson;
|
|
393
|
+
}
|
|
394
|
+
.ace_icon_svg.ace_security {
|
|
395
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
396
|
+
background-color: crimson;
|
|
397
|
+
}
|
|
398
|
+
.ace_icon_svg.ace_warning {
|
|
399
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
400
|
+
background-color: darkorange;
|
|
401
|
+
}
|
|
402
|
+
.ace_icon_svg.ace_info {
|
|
403
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
404
|
+
background-color: royalblue;
|
|
405
|
+
}
|
|
406
|
+
.ace_icon_svg.ace_hint {
|
|
407
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
408
|
+
background-color: silver;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.ace_icon_svg.ace_error_fold {
|
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
413
|
+
background-color: crimson;
|
|
414
|
+
}
|
|
415
|
+
.ace_icon_svg.ace_security_fold {
|
|
416
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
417
|
+
background-color: crimson;
|
|
418
|
+
}
|
|
419
|
+
.ace_icon_svg.ace_warning_fold {
|
|
420
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
421
|
+
background-color: darkorange;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.ace_scrollbar {
|
|
425
|
+
contain: strict;
|
|
426
|
+
position: absolute;
|
|
427
|
+
right: 0;
|
|
428
|
+
bottom: 0;
|
|
429
|
+
z-index: 6;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.ace_scrollbar-inner {
|
|
433
|
+
position: absolute;
|
|
434
|
+
cursor: text;
|
|
435
|
+
left: 0;
|
|
436
|
+
top: 0;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.ace_scrollbar-v{
|
|
440
|
+
overflow-x: hidden;
|
|
441
|
+
overflow-y: scroll;
|
|
442
|
+
top: 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.ace_scrollbar-h {
|
|
446
|
+
overflow-x: scroll;
|
|
447
|
+
overflow-y: hidden;
|
|
448
|
+
left: 0;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.ace_print-margin {
|
|
452
|
+
position: absolute;
|
|
453
|
+
height: 100%;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.ace_text-input {
|
|
457
|
+
position: absolute;
|
|
458
|
+
z-index: 0;
|
|
459
|
+
width: 0.5em;
|
|
460
|
+
height: 1em;
|
|
461
|
+
opacity: 0;
|
|
462
|
+
background: transparent;
|
|
463
|
+
-moz-appearance: none;
|
|
464
|
+
appearance: none;
|
|
465
|
+
border: none;
|
|
466
|
+
resize: none;
|
|
467
|
+
outline: none;
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
font: inherit;
|
|
470
|
+
padding: 0 1px;
|
|
471
|
+
margin: 0 -1px;
|
|
472
|
+
contain: strict;
|
|
473
|
+
-ms-user-select: text;
|
|
474
|
+
-moz-user-select: text;
|
|
475
|
+
-webkit-user-select: text;
|
|
476
|
+
user-select: text;
|
|
477
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
|
478
|
+
white-space: pre!important;
|
|
479
|
+
}
|
|
480
|
+
.ace_text-input.ace_composition {
|
|
481
|
+
background: transparent;
|
|
482
|
+
color: inherit;
|
|
483
|
+
z-index: 1000;
|
|
484
|
+
opacity: 1;
|
|
485
|
+
}
|
|
486
|
+
.ace_composition_placeholder { color: transparent }
|
|
487
|
+
.ace_composition_marker {
|
|
488
|
+
border-bottom: 1px solid;
|
|
489
|
+
position: absolute;
|
|
490
|
+
border-radius: 0;
|
|
491
|
+
margin-top: 1px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
[ace_nocontext=true] {
|
|
495
|
+
transform: none!important;
|
|
496
|
+
filter: none!important;
|
|
497
|
+
clip-path: none!important;
|
|
498
|
+
mask : none!important;
|
|
499
|
+
contain: none!important;
|
|
500
|
+
perspective: none!important;
|
|
501
|
+
mix-blend-mode: initial!important;
|
|
502
|
+
z-index: auto;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.ace_layer {
|
|
506
|
+
z-index: 1;
|
|
507
|
+
position: absolute;
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
510
|
+
word-wrap: normal;
|
|
511
|
+
white-space: pre;
|
|
512
|
+
height: 100%;
|
|
513
|
+
width: 100%;
|
|
514
|
+
box-sizing: border-box;
|
|
515
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
516
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
|
517
|
+
pointer-events: none;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.ace_gutter-layer {
|
|
521
|
+
position: relative;
|
|
522
|
+
width: auto;
|
|
523
|
+
text-align: right;
|
|
524
|
+
pointer-events: auto;
|
|
525
|
+
height: 1000000px;
|
|
526
|
+
contain: style size layout;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.ace_text-layer {
|
|
530
|
+
font: inherit !important;
|
|
531
|
+
position: absolute;
|
|
532
|
+
height: 1000000px;
|
|
533
|
+
width: 1000000px;
|
|
534
|
+
contain: style size layout;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
538
|
+
contain: style size layout;
|
|
539
|
+
position: absolute;
|
|
540
|
+
top: 0;
|
|
541
|
+
left: 0;
|
|
542
|
+
right: 0;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.ace_hidpi .ace_text-layer,
|
|
546
|
+
.ace_hidpi .ace_gutter-layer,
|
|
547
|
+
.ace_hidpi .ace_content,
|
|
548
|
+
.ace_hidpi .ace_gutter {
|
|
549
|
+
contain: strict;
|
|
550
|
+
}
|
|
551
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
|
552
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
553
|
+
contain: strict;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.ace_cjk {
|
|
557
|
+
display: inline-block;
|
|
558
|
+
text-align: center;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.ace_cursor-layer {
|
|
562
|
+
z-index: 4;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.ace_cursor {
|
|
566
|
+
z-index: 4;
|
|
567
|
+
position: absolute;
|
|
568
|
+
box-sizing: border-box;
|
|
569
|
+
border-left: 2px solid;
|
|
570
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
571
|
+
transform: translatez(0);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.ace_multiselect .ace_cursor {
|
|
575
|
+
border-left-width: 1px;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.ace_slim-cursors .ace_cursor {
|
|
579
|
+
border-left-width: 1px;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.ace_overwrite-cursors .ace_cursor {
|
|
583
|
+
border-left-width: 0;
|
|
584
|
+
border-bottom: 1px solid;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ace_hidden-cursors .ace_cursor {
|
|
588
|
+
opacity: 0.2;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
592
|
+
opacity: 0;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.ace_smooth-blinking .ace_cursor {
|
|
596
|
+
transition: opacity 0.18s;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.ace_animate-blinking .ace_cursor {
|
|
600
|
+
animation-duration: 1000ms;
|
|
601
|
+
animation-timing-function: step-end;
|
|
602
|
+
animation-name: blink-ace-animate;
|
|
603
|
+
animation-iteration-count: infinite;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
607
|
+
animation-duration: 1000ms;
|
|
608
|
+
animation-timing-function: ease-in-out;
|
|
609
|
+
animation-name: blink-ace-animate-smooth;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@keyframes blink-ace-animate {
|
|
613
|
+
from, to { opacity: 1; }
|
|
614
|
+
60% { opacity: 0; }
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
@keyframes blink-ace-animate-smooth {
|
|
618
|
+
from, to { opacity: 1; }
|
|
619
|
+
45% { opacity: 1; }
|
|
620
|
+
60% { opacity: 0; }
|
|
621
|
+
85% { opacity: 0; }
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
625
|
+
position: absolute;
|
|
626
|
+
z-index: 3;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.ace_marker-layer .ace_selection {
|
|
630
|
+
position: absolute;
|
|
631
|
+
z-index: 5;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.ace_marker-layer .ace_bracket {
|
|
635
|
+
position: absolute;
|
|
636
|
+
z-index: 6;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.ace_marker-layer .ace_error_bracket {
|
|
640
|
+
position: absolute;
|
|
641
|
+
border-bottom: 1px solid #DE5555;
|
|
642
|
+
border-radius: 0;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.ace_marker-layer .ace_active-line {
|
|
646
|
+
position: absolute;
|
|
647
|
+
z-index: 2;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.ace_marker-layer .ace_selected-word {
|
|
651
|
+
position: absolute;
|
|
652
|
+
z-index: 4;
|
|
653
|
+
box-sizing: border-box;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.ace_line .ace_fold {
|
|
657
|
+
box-sizing: border-box;
|
|
658
|
+
|
|
659
|
+
display: inline-block;
|
|
660
|
+
height: 11px;
|
|
661
|
+
margin-top: -2px;
|
|
662
|
+
vertical-align: middle;
|
|
663
|
+
|
|
664
|
+
background-image:
|
|
665
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
666
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
667
|
+
background-repeat: no-repeat, repeat-x;
|
|
668
|
+
background-position: center center, top left;
|
|
669
|
+
color: transparent;
|
|
670
|
+
|
|
671
|
+
border: 1px solid black;
|
|
672
|
+
border-radius: 2px;
|
|
673
|
+
|
|
674
|
+
cursor: pointer;
|
|
675
|
+
pointer-events: auto;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.ace_dark .ace_fold {
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.ace_fold:hover{
|
|
682
|
+
background-image:
|
|
683
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
684
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.ace_tooltip {
|
|
688
|
+
background-color: #f5f5f5;
|
|
689
|
+
border: 1px solid gray;
|
|
690
|
+
border-radius: 1px;
|
|
691
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
692
|
+
color: black;
|
|
693
|
+
max-width: 100%;
|
|
694
|
+
padding: 3px 4px;
|
|
695
|
+
position: fixed;
|
|
696
|
+
z-index: 999999;
|
|
697
|
+
box-sizing: border-box;
|
|
698
|
+
cursor: default;
|
|
699
|
+
white-space: pre-wrap;
|
|
700
|
+
word-wrap: break-word;
|
|
701
|
+
line-height: normal;
|
|
702
|
+
font-style: normal;
|
|
703
|
+
font-weight: normal;
|
|
704
|
+
letter-spacing: normal;
|
|
705
|
+
pointer-events: none;
|
|
706
|
+
overflow: auto;
|
|
707
|
+
max-width: min(60em, 66vw);
|
|
708
|
+
overscroll-behavior: contain;
|
|
709
|
+
}
|
|
710
|
+
.ace_tooltip pre {
|
|
711
|
+
white-space: pre-wrap;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.ace_tooltip.ace_dark {
|
|
715
|
+
background-color: #636363;
|
|
716
|
+
color: #fff;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.ace_tooltip:focus {
|
|
720
|
+
outline: 1px solid #5E9ED6;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.ace_icon {
|
|
724
|
+
display: inline-block;
|
|
725
|
+
width: 18px;
|
|
726
|
+
vertical-align: top;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.ace_icon_svg {
|
|
730
|
+
display: inline-block;
|
|
731
|
+
width: 12px;
|
|
732
|
+
vertical-align: top;
|
|
733
|
+
-webkit-mask-repeat: no-repeat;
|
|
734
|
+
-webkit-mask-size: 12px;
|
|
735
|
+
-webkit-mask-position: center;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
739
|
+
padding-right: 13px;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.ace_fold-widget {
|
|
743
|
+
box-sizing: border-box;
|
|
744
|
+
|
|
745
|
+
margin: 0 -12px 0 1px;
|
|
746
|
+
display: none;
|
|
747
|
+
width: 11px;
|
|
748
|
+
vertical-align: top;
|
|
749
|
+
|
|
750
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
751
|
+
background-repeat: no-repeat;
|
|
752
|
+
background-position: center;
|
|
753
|
+
|
|
754
|
+
border-radius: 3px;
|
|
755
|
+
|
|
756
|
+
border: 1px solid transparent;
|
|
757
|
+
cursor: pointer;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.ace_folding-enabled .ace_fold-widget {
|
|
761
|
+
display: inline-block;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.ace_fold-widget.ace_end {
|
|
765
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.ace_fold-widget.ace_closed {
|
|
769
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.ace_fold-widget:hover {
|
|
773
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
774
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
775
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.ace_fold-widget:active {
|
|
779
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
780
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
781
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Dark version for fold widgets
|
|
785
|
+
*/
|
|
786
|
+
.ace_dark .ace_fold-widget {
|
|
787
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
788
|
+
}
|
|
789
|
+
.ace_dark .ace_fold-widget.ace_end {
|
|
790
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
791
|
+
}
|
|
792
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
|
793
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
794
|
+
}
|
|
795
|
+
.ace_dark .ace_fold-widget:hover {
|
|
796
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
797
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
798
|
+
}
|
|
799
|
+
.ace_dark .ace_fold-widget:active {
|
|
800
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.ace_inline_button {
|
|
804
|
+
border: 1px solid lightgray;
|
|
805
|
+
display: inline-block;
|
|
806
|
+
margin: -1px 8px;
|
|
807
|
+
padding: 0 5px;
|
|
808
|
+
pointer-events: auto;
|
|
809
|
+
cursor: pointer;
|
|
810
|
+
}
|
|
811
|
+
.ace_inline_button:hover {
|
|
812
|
+
border-color: gray;
|
|
813
|
+
background: rgba(200,200,200,0.2);
|
|
814
|
+
display: inline-block;
|
|
815
|
+
pointer-events: auto;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.ace_fold-widget.ace_invalid {
|
|
819
|
+
background-color: #FFB4B4;
|
|
820
|
+
border-color: #DE5555;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
|
824
|
+
transition: opacity 0.4s ease 0.05s;
|
|
825
|
+
opacity: 0;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
829
|
+
transition: opacity 0.05s ease 0.05s;
|
|
830
|
+
opacity:1;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.ace_underline {
|
|
834
|
+
text-decoration: underline;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.ace_bold {
|
|
838
|
+
font-weight: bold;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.ace_nobold .ace_bold {
|
|
842
|
+
font-weight: normal;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.ace_italic {
|
|
846
|
+
font-style: italic;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
.ace_error-marker {
|
|
851
|
+
background-color: rgba(255, 0, 0,0.2);
|
|
852
|
+
position: absolute;
|
|
853
|
+
z-index: 9;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.ace_highlight-marker {
|
|
857
|
+
background-color: rgba(255, 255, 0,0.2);
|
|
858
|
+
position: absolute;
|
|
859
|
+
z-index: 8;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.ace_mobile-menu {
|
|
863
|
+
position: absolute;
|
|
864
|
+
line-height: 1.5;
|
|
865
|
+
border-radius: 4px;
|
|
866
|
+
-ms-user-select: none;
|
|
867
|
+
-moz-user-select: none;
|
|
868
|
+
-webkit-user-select: none;
|
|
869
|
+
user-select: none;
|
|
870
|
+
background: white;
|
|
871
|
+
box-shadow: 1px 3px 2px grey;
|
|
872
|
+
border: 1px solid #dcdcdc;
|
|
873
|
+
color: black;
|
|
874
|
+
}
|
|
875
|
+
.ace_dark > .ace_mobile-menu {
|
|
876
|
+
background: #333;
|
|
877
|
+
color: #ccc;
|
|
878
|
+
box-shadow: 1px 3px 2px grey;
|
|
879
|
+
border: 1px solid #444;
|
|
880
|
+
|
|
881
|
+
}
|
|
882
|
+
.ace_mobile-button {
|
|
883
|
+
padding: 2px;
|
|
884
|
+
cursor: pointer;
|
|
885
|
+
overflow: hidden;
|
|
886
|
+
}
|
|
887
|
+
.ace_mobile-button:hover {
|
|
888
|
+
background-color: #eee;
|
|
889
|
+
opacity:1;
|
|
890
|
+
}
|
|
891
|
+
.ace_mobile-button:active {
|
|
892
|
+
background-color: #ddd;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.ace_placeholder {
|
|
896
|
+
position: relative;
|
|
897
|
+
font-family: arial;
|
|
898
|
+
transform: scale(0.9);
|
|
899
|
+
transform-origin: left;
|
|
900
|
+
white-space: pre;
|
|
901
|
+
opacity: 0.7;
|
|
902
|
+
margin: 0 10px;
|
|
903
|
+
z-index: 1;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.ace_ghost_text {
|
|
907
|
+
opacity: 0.5;
|
|
908
|
+
font-style: italic;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.ace_ghost_text_container > div {
|
|
912
|
+
white-space: pre;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.ghost_text_line_wrapped::after {
|
|
916
|
+
content: "↩";
|
|
917
|
+
position: absolute;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
|
921
|
+
margin: 0px 4px
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.ace_screenreader-only {
|
|
925
|
+
position:absolute;
|
|
926
|
+
left:-10000px;
|
|
927
|
+
top:auto;
|
|
928
|
+
width:1px;
|
|
929
|
+
height:1px;
|
|
930
|
+
overflow:hidden;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.ace_hidden_token {
|
|
934
|
+
display: none;
|
|
935
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(t,s,A){var w=t("../lib/dom"),y=t("../lib/oop"),S=t("../lib/event_emitter").EventEmitter,f=function(){function p(o,a){this.canvas=w.createElement("canvas"),this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",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)"},o.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(o){var a=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(o){this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height;var i=(o.lastRow+1)*this.lineHeight;i<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var r=this.canvas.getContext("2d");function n(N,k){return N.priority<k.priority?-1:N.priority>k.priority?1:0}var l=this.renderer.session.$annotations;if(r.clearRect(0,0,this.canvas.width,this.canvas.height),l){var d={info:1,warning:2,error:3};l.forEach(function(N){N.priority=d[N.type]||null}),l=l.sort(n);for(var g=this.renderer.session.$foldData,b=0;b<l.length;b++){var R=l[b].row,$=this.compensateFoldRows(R,g),_=Math.round((R-$)*this.lineHeight*this.heightRatio),v=Math.round((R-$)*this.lineHeight*this.heightRatio),T=Math.round(((R-$)*this.lineHeight+this.lineHeight)*this.heightRatio),E=T-v;if(E<this.minDecorationHeight){var I=(v+T)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),v=Math.round(I-this.halfMinDecorationHeight),T=Math.round(I+this.halfMinDecorationHeight)}r.fillStyle=a[l[b].type]||null,r.fillRect(0,_,this.canvasWidth,T-v)}}var M=this.renderer.session.selection.getCursor();if(M){var $=this.compensateFoldRows(M.row,g),_=Math.round((M.row-$)*this.lineHeight*this.heightRatio);r.fillStyle="rgba(0, 0, 0, 0.5)",r.fillRect(0,_,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(o,a){var i=0;if(a&&a.length>0)for(var r=0;r<a.length;r++)o>a[r].start.row&&o<a[r].end.row?i+=o-a[r].start.row:o>=a[r].end.row&&(i+=a[r].end.row-a[r].start.row);return i},p}();y.implement(f.prototype,S),s.Decorator=f}),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(t,s,A){var w=t("./lib/oop"),y=t("./lib/dom"),S=t("./lib/lang"),f=t("./config"),p=t("./layer/gutter").Gutter,o=t("./layer/marker").Marker,a=t("./layer/text").Text,i=t("./layer/cursor").Cursor,r=t("./scrollbar").HScrollBar,n=t("./scrollbar").VScrollBar,l=t("./scrollbar_custom").HScrollBar,d=t("./scrollbar_custom").VScrollBar,g=t("./renderloop").RenderLoop,b=t("./layer/font_metrics").FontMetrics,R=t("./lib/event_emitter").EventEmitter,$=t("./css/editor-css"),_=t("./layer/decorators").Decorator,v=t("./lib/useragent"),T=t("./layer/text_util").isTextToken;y.importCssString($,"ace_editor.css",!1);var E=function(){function I(M,N){var k=this;this.container=M||y.createElement("div"),y.addCssClass(this.container,"ace_editor"),y.HI_DPI&&y.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),f.get("useStrictCSP")==null&&f.set("useStrictCSP",!1),this.$gutter=y.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=y.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=y.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var m=this.$textLayer=new a(this.content);this.canvas=m.element,this.$markerFront=new o(this.content),this.$cursorLayer=new i(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new n(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(x){k.$scrollAnimation||k.session.setScrollTop(x.data-k.scrollMargin.top)}),this.scrollBarH.on("scroll",function(x){k.$scrollAnimation||k.session.setScrollLeft(x.data-k.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(x){k.updateCharacterSize(),k.onResize(!0,k.gutterWidth,k.$size.width,k.$size.height),k._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=!v.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),f.resetOptions(this),f._signal("renderer",this)}return I.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(),y.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.prototype.setSession=function(M){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=M,M&&this.scrollMargin.top&&M.getScrollTop()<=0&&M.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(M),this.$markerBack.setSession(M),this.$markerFront.setSession(M),this.$gutterLayer.setSession(M),this.$textLayer.setSession(M),M&&(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))},I.prototype.updateLines=function(M,N,k){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>M&&(this.$changedLines.firstRow=M),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:M,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(k)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(M){M?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(M,N,k,m){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=M?1:0;var x=this.container;m||(m=x.clientHeight||x.scrollHeight),!m&&this.$maxLines&&this.lineHeight>1&&(!x.style.height||x.style.height=="0px")&&(x.style.height="1px",m=x.clientHeight||x.scrollHeight),k||(k=x.clientWidth||x.scrollWidth);var L=this.$updateCachedSize(M,N,k,m);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!k&&!m)return this.resizing=0;M&&(this.$gutterLayer.$padding=null),M?this.$renderChanges(L|this.$changes,!0):this.$loop.schedule(L|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(M,N,k,m){m-=this.$extraHeight||0;var x=0,L=this.$size,O={width:L.width,height:L.height,scrollerHeight:L.scrollerHeight,scrollerWidth:L.scrollerWidth};if(m&&(M||L.height!=m)&&(L.height=m,x|=this.CHANGE_SIZE,L.scrollerHeight=L.height,this.$horizScroll&&(L.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(L.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",x=x|this.CHANGE_SCROLL),k&&(M||L.width!=k)){x|=this.CHANGE_SIZE,L.width=k,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,y.setStyle(this.scrollBarH.element.style,"left",N+"px"),y.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),L.scrollerWidth=Math.max(0,k-N-this.scrollBarV.getWidth()-this.margin.h),y.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";y.setStyle(this.scrollBarH.element.style,"right",F),y.setStyle(this.scroller.style,"right",F),y.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(L.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||M)&&(x|=this.CHANGE_FULL)}return L.$dirty=!k||!m,x&&this._signal("resize",O),x},I.prototype.onGutterResize=function(M){var N=this.$showGutter?M:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,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()},I.prototype.adjustWrapLimit=function(){var M=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(M/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(M){this.setOption("animatedScroll",M)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(M){this.setOption("showInvisibles",M),this.session.$bidiHandler.setShowInvisibles(M)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(M){this.setOption("displayIndentGuides",M)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(M){this.setOption("highlightIndentGuides",M)},I.prototype.setShowPrintMargin=function(M){this.setOption("showPrintMargin",M)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(M){this.setOption("printMarginColumn",M)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(M){return this.setOption("showGutter",M)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},I.prototype.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var M=y.createElement("div");M.className="ace_layer ace_print-margin-layer",this.$printMarginEl=y.createElement("div"),this.$printMarginEl.className="ace_print-margin",M.appendChild(this.$printMarginEl),this.content.insertBefore(M,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var M=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){y.translate(this.textarea,-100,0);return}var k=this.$cursorLayer.$pixelPos;if(k){N&&N.markerRange&&(k=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var m=this.layerConfig,x=k.top,L=k.left;x-=m.offset;var O=N&&N.useTextareaForIME||v.isMobile?this.lineHeight:1;if(x<0||x>m.height-O){y.translate(this.textarea,0,0);return}var F=1,W=this.$size.height-O;if(!N)x+=this.lineHeight;else if(N.useTextareaForIME){var U=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(U)[0]}else x+=this.lineHeight+2;L-=this.scrollLeft,L>this.$size.scrollerWidth-F&&(L=this.$size.scrollerWidth-F),L+=this.gutterWidth+this.margin.left,y.setStyle(M,"height",O+"px"),y.setStyle(M,"width",F+"px"),y.translate(this.textarea,Math.min(L,this.$size.scrollerWidth-F),Math.min(x,W))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var M=this.layerConfig,N=M.lastRow,k=this.session.documentToScreenRow(N,0)*M.lineHeight;return k-this.session.getScrollTop()>M.height-M.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(M){this.$padding=M,this.$textLayer.setPadding(M),this.$cursorLayer.setPadding(M),this.$markerFront.setPadding(M),this.$markerBack.setPadding(M),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(M,N,k,m){var x=this.scrollMargin;x.top=M|0,x.bottom=N|0,x.right=m|0,x.left=k|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()},I.prototype.setMargin=function(M,N,k,m){var x=this.margin;x.top=M|0,x.bottom=N|0,x.right=m|0,x.left=k|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()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(M){this.setOption("hScrollBarAlwaysVisible",M)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(M){this.setOption("vScrollBarAlwaysVisible",M)},I.prototype.$updateScrollBarV=function(){var M=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(M-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>M-N&&(M=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(M+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(M,N){if(this.$changes&&(M|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!M&&!N){this.$changes|=M;return}if(this.$size.$dirty)return this.$changes|=M,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",M),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var k=this.layerConfig;if(M&this.CHANGE_FULL||M&this.CHANGE_SIZE||M&this.CHANGE_TEXT||M&this.CHANGE_LINES||M&this.CHANGE_SCROLL||M&this.CHANGE_H_SCROLL){if(M|=this.$computeLayerConfig()|this.$loop.clear(),k.firstRow!=this.layerConfig.firstRow&&k.firstRowScreen==this.layerConfig.firstRowScreen){var m=this.scrollTop+(k.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;m>0&&(this.scrollTop=m,M=M|this.CHANGE_SCROLL,M|=this.$computeLayerConfig()|this.$loop.clear())}k=this.layerConfig,this.$updateScrollBarV(),M&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),y.translate(this.content,-this.scrollLeft,-k.offset);var x=k.width+2*this.$padding+"px",L=k.minHeight+"px";y.setStyle(this.content.style,"width",x),y.setStyle(this.content.style,"height",L)}if(M&this.CHANGE_H_SCROLL&&(y.translate(this.content,-this.scrollLeft,-k.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),M&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}if(M&this.CHANGE_SCROLL){this.$changedLines=null,M&this.CHANGE_TEXT||M&this.CHANGE_LINES?this.$textLayer.update(k):this.$textLayer.scrollLines(k),this.$showGutter&&(M&this.CHANGE_GUTTER||M&this.CHANGE_LINES?this.$gutterLayer.update(k):this.$gutterLayer.scrollLines(k)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}M&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):M&this.CHANGE_LINES?((this.$updateLines()||M&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):M&this.CHANGE_TEXT||M&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):M&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)),M&this.CHANGE_CURSOR&&(this.$cursorLayer.update(k),this.$moveTextAreaToCursor()),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(k),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(k),this._signal("afterRender",M)},I.prototype.$autosize=function(){var M=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,k=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,M))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(k+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&k>this.$maxPixelHeight&&(k=this.$maxPixelHeight);var m=k<=2*this.lineHeight,x=!m&&M>N;if(k!=this.desiredHeight||this.$size.height!=this.desiredHeight||x!=this.$vScroll){x!=this.$vScroll&&(this.$vScroll=x,this.scrollBarV.setVisible(x));var L=this.container.clientWidth;this.container.style.height=k+"px",this.$updateCachedSize(!0,this.$gutterWidth,L,k),this.desiredHeight=k,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var M=this.session,N=this.$size,k=N.height<=2*this.lineHeight,m=this.session.getScreenLength(),x=m*this.lineHeight,L=this.$getLongestLine(),O=!k&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-L-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var W=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),k=N.height<=2*this.lineHeight);var U=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;x+=V;var G=this.scrollMargin;this.session.setScrollTop(Math.max(-G.top,Math.min(this.scrollTop,x-N.scrollerHeight+G.bottom))),this.session.setScrollLeft(Math.max(-G.left,Math.min(this.scrollLeft,L+2*this.$padding-N.scrollerWidth+G.right)));var J=!k&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-x+V<0||this.scrollTop>G.top),K=W!==J;K&&(this.$vScroll=J,this.scrollBarV.setVisible(J));var Q=this.scrollTop%this.lineHeight,ie=Math.ceil(U/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-Q)/this.lineHeight)),ae=X+ie,ge,me,fe=this.lineHeight;X=M.screenToDocumentRow(X,0);var _e=M.getFoldLine(X);_e&&(X=_e.start.row),ge=M.documentToScreenRow(X,0),me=M.getRowLength(X)*fe,ae=Math.min(M.screenToDocumentRow(ae,0),M.getLength()-1),U=N.scrollerHeight+M.getRowLength(ae)*fe+me,Q=this.scrollTop-ge*fe;var Xe=0;return(this.layerConfig.width!=L||F)&&(Xe=this.CHANGE_H_SCROLL),(F||K)&&(Xe|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),K&&(L=this.$getLongestLine())),this.layerConfig={width:L,padding:this.$padding,firstRow:X,firstRowScreen:ge,lastRow:ae,lineHeight:fe,characterWidth:this.characterWidth,minHeight:U,maxHeight:x,offset:Q,gutterOffset:fe?Math.max(0,Math.ceil((Q+N.height-N.scrollerHeight)/fe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(L-this.$padding),Xe},I.prototype.$updateLines=function(){if(this.$changedLines){var M=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var k=this.layerConfig;if(!(M>k.lastRow+1)&&!(N<k.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(k),this.$textLayer.update(k);return}return this.$textLayer.updateLines(k,M,N),!0}}},I.prototype.$getLongestLine=function(){var M=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(M+=1),this.$textLayer&&M>this.$textLayer.MAX_LINE_LENGTH&&(M=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(M*this.characterWidth))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(M,N){this.$gutterLayer.addGutterDecoration(M,N)},I.prototype.removeGutterDecoration=function(M,N){this.$gutterLayer.removeGutterDecoration(M,N)},I.prototype.updateBreakpoints=function(M){this._rows=M,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(M){this.$gutterLayer.setAnnotations(M),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(M,N,k){this.scrollCursorIntoView(M,k),this.scrollCursorIntoView(N,k)},I.prototype.scrollCursorIntoView=function(M,N,k){if(this.$size.scrollerHeight!==0){var m=this.$cursorLayer.getPixelPosition(M),x=m.left,L=m.top,O=k&&k.top||0,F=k&&k.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var W=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;W+O>L?(N&&W+O>L+this.lineHeight&&(L-=N*this.$size.scrollerHeight),L===0&&(L=-this.scrollMargin.top),this.session.setScrollTop(L)):W+this.$size.scrollerHeight-F<L+this.lineHeight&&(N&&W+this.$size.scrollerHeight-F<L-this.lineHeight&&(L+=N*this.$size.scrollerHeight),this.session.setScrollTop(L+this.lineHeight+F-this.$size.scrollerHeight));var U=this.scrollLeft,V=2*this.layerConfig.characterWidth;x-V<U?(x-=V,x<this.$padding+V&&(x=-this.scrollMargin.left),this.session.setScrollLeft(x)):(x+=V,U+this.$size.scrollerWidth<x+this.characterWidth?this.session.setScrollLeft(Math.round(x+this.characterWidth-this.$size.scrollerWidth)):U<=this.$padding&&x-U<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(M){this.session.setScrollTop(M*this.lineHeight)},I.prototype.alignCursor=function(M,N){typeof M=="number"&&(M={row:M,column:0});var k=this.$cursorLayer.getPixelPosition(M),m=this.$size.scrollerHeight-this.lineHeight,x=k.top-m*(N||0);return this.session.setScrollTop(x),x},I.prototype.$calcSteps=function(M,N){var k=0,m=this.STEPS,x=[],L=function(O,F,W){return W*(Math.pow(O-1,3)+1)+F};for(k=0;k<m;++k)x.push(L(k/this.STEPS,M,N-M));return x},I.prototype.scrollToLine=function(M,N,k,m){var x=this.$cursorLayer.getPixelPosition({row:M,column:0}),L=x.top;N&&(L-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(L),k!==!1&&this.animateScrolling(O,m)},I.prototype.animateScrolling=function(M,N){var k=this.scrollTop;if(!this.$animatedScroll)return;var m=this;if(M==k)return;if(this.$scrollAnimation){var x=this.$scrollAnimation.steps;if(x.length&&(M=x[0],M==k))return}var L=m.$calcSteps(M,k);this.$scrollAnimation={from:M,to:k,steps:L},clearInterval(this.$timer),m.session.setScrollTop(L.shift()),m.session.$scrollTop=k;function O(){m.$timer=clearInterval(m.$timer),m.$scrollAnimation=null,m.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(m.$stopAnimation){O();return}if(!m.session)return clearInterval(m.$timer);L.length?(m.session.setScrollTop(L.shift()),m.session.$scrollTop=k):k!=null?(m.session.$scrollTop=-1,m.session.setScrollTop(k),k=null):O()},10)},I.prototype.scrollToY=function(M){this.scrollTop!==M&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=M)},I.prototype.scrollToX=function(M){this.scrollLeft!==M&&(this.scrollLeft=M),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(M,N){this.session.setScrollTop(N),this.session.setScrollLeft(M)},I.prototype.scrollBy=function(M,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),M&&this.session.setScrollLeft(this.session.getScrollLeft()+M)},I.prototype.isScrollableBy=function(M,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||M<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||M>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(M,N){var k;if(this.$hasCssTransforms){k={top:0,left:0};var m=this.$fontMetrics.transformCoordinates([M,N]);M=m[1]-this.gutterWidth-this.margin.left,N=m[0]}else k=this.scroller.getBoundingClientRect();var x=M+this.scrollLeft-k.left-this.$padding,L=x/this.characterWidth,O=Math.floor((N+this.scrollTop-k.top)/this.lineHeight),F=this.$blockCursor?Math.floor(L):Math.round(L);return{row:O,column:F,side:L-F>0?1:-1,offsetX:x}},I.prototype.screenToTextCoordinates=function(M,N){var k;if(this.$hasCssTransforms){k={top:0,left:0};var m=this.$fontMetrics.transformCoordinates([M,N]);M=m[1]-this.gutterWidth-this.margin.left,N=m[0]}else k=this.scroller.getBoundingClientRect();var x=M+this.scrollLeft-k.left-this.$padding,L=x/this.characterWidth,O=this.$blockCursor?Math.floor(L):Math.round(L),F=Math.floor((N+this.scrollTop-k.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),x)},I.prototype.textToScreenCoordinates=function(M,N){var k=this.scroller.getBoundingClientRect(),m=this.session.documentToScreenPosition(M,N),x=this.$padding+(this.session.$bidiHandler.isBidiRow(m.row,M)?this.session.$bidiHandler.getPosLeft(m.column):Math.round(m.column*this.characterWidth)),L=m.row*this.lineHeight;return{pageX:k.left+x-this.scrollLeft,pageY:k.top+L-this.scrollTop}},I.prototype.visualizeFocus=function(){y.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){y.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(M){this.$composition=M,M.cssText||(M.cssText=this.textarea.style.cssText),M.useTextareaForIME==null&&(M.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(y.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):M.markerId=this.session.addMarker(M.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(M){var N=this.session.selection.cursor;this.addToken(M,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),y.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var M=this.session.selection.cursor;this.removeExtraToken(M.row,M.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(M,N){var k=this.session.selection.cursor,m=N||{row:k.row,column:k.column};this.removeGhostText();var x=this.$calculateWrappedTextChunks(M,m);this.addToken(x[0].text,"ghost_text",m.row,m.column),this.$ghostText={text:M,position:{row:m.row,column:m.column}};var L=y.createElement("div");if(x.length>1){var O=this.hideTokensAfterPosition(m.row,m.column),F;x.slice(1).forEach(function(K){var Q=y.createElement("div"),ie=y.createElement("span");ie.className="ace_ghost_text",K.wrapped&&(Q.className="ghost_text_line_wrapped"),K.text.length===0&&(K.text=" "),ie.appendChild(y.createTextNode(K.text)),Q.appendChild(ie),L.appendChild(Q),F=Q}),O.forEach(function(K){var Q=y.createElement("span");T(K.type)||(Q.className="ace_"+K.type.replace(/\./g," ace_")),Q.appendChild(y.createTextNode(K.value)),F.appendChild(Q)}),this.$ghostTextWidget={el:L,row:m.row,column:m.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var W=this.$cursorLayer.getPixelPosition(m,!0),U=this.container,V=U.getBoundingClientRect().height,G=x.length*this.lineHeight,J=G<V-W.top;if(J)return;G<V?this.scrollBy(0,(x.length-1)*this.lineHeight):this.scrollToRow(m.row)}},I.prototype.$calculateWrappedTextChunks=function(M,N){var k=this.$size.scrollerWidth-this.$padding*2,m=Math.floor(k/this.characterWidth)-2;m=m<=0?60:m;for(var x=M.split(/\r?\n/),L=[],O=0;O<x.length;O++){var F=this.session.$getDisplayTokens(x[O],N.column),W=this.session.$computeWrapSplits(F,m,this.session.$tabSize);if(W.length>0){var U=0;W.push(x[O].length);for(var V=0;V<W.length;V++){var G=x[O].slice(U,W[V]);L.push({text:G,wrapped:!0}),U=W[V]}}else L.push({text:x[O],wrapped:!1})}return L},I.prototype.removeGhostText=function(){if(this.$ghostText){var M=this.$ghostText.position;this.removeExtraToken(M.row,M.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(M,N,k,m){var x=this.session;x.bgTokenizer.lines[k]=null;var L={type:N,value:M},O=x.getTokens(k);if(m==null||!O.length)O.push(L);else for(var F=0,W=0;W<O.length;W++){var U=O[W];if(F+=U.value.length,m<=F){var V=U.value.length-(F-m),G=U.value.slice(0,V),J=U.value.slice(V);O.splice(W,1,{type:U.type,value:G},L,{type:U.type,value:J});break}}this.updateLines(k,k)},I.prototype.hideTokensAfterPosition=function(M,N){for(var k=this.session.getTokens(M),m=0,x=!1,L=[],O=0;O<k.length;O++){var F=k[O];if(m+=F.value.length,F.type!=="ghost_text"){if(x){L.push({type:F.type,value:F.value}),F.type="hidden_token";continue}m===N&&(x=!0)}}return this.updateLines(M,M),L},I.prototype.removeExtraToken=function(M,N){this.session.bgTokenizer.lines[M]=null,this.updateLines(M,M)},I.prototype.setTheme=function(M,N){var k=this;if(this.$themeId=M,k._dispatchEvent("themeChange",{theme:M}),!M||typeof M=="string"){var m=M||this.$options.theme.initialValue;f.loadModule(["theme",m],x)}else x(M);function x(L){if(k.$themeId!=M)return N&&N();if(!L||!L.cssClass)throw new Error("couldn't load module "+M+" or it didn't call define");L.$id&&(k.$themeId=L.$id),y.importCssString(L.cssText,L.cssClass,k.container),k.theme&&y.removeCssClass(k.container,k.theme.cssClass);var O="padding"in L?L.padding:"padding"in(k.theme||{})?4:k.$padding;k.$padding&&O!=k.$padding&&k.setPadding(O),k.$theme=L.cssClass,k.theme=L,y.addCssClass(k.container,L.cssClass),y.setCssClass(k.container,"ace_dark",L.isDark),k.$size&&(k.$size.width=0,k.$updateSizeAsync()),k._dispatchEvent("themeLoaded",{theme:L}),N&&N(),v.isSafari&&k.scroller&&(k.scroller.style.background="red",k.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(M,N){y.setCssClass(this.container,M,N!==!1)},I.prototype.unsetStyle=function(M){y.removeCssClass(this.container,M)},I.prototype.setCursorStyle=function(M){y.setStyle(this.scroller.style,"cursor",M)},I.prototype.setMouseCursor=function(M){y.setStyle(this.scroller.style,"cursor",M)},I.prototype.attachToShadowRoot=function(){y.importCssString($,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(M){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,M===!0?(this.scrollBarV=new d(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollTop(k.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollLeft(k.data-N.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new n(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollTop(k.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollLeft(k.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var M=this;this.$resizeTimer=S.delayedCall(function(){M.destroyed||M.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var k=N[0].contentRect.width,m=N[0].contentRect.height;Math.abs(M.$size.width-k)>1||Math.abs(M.$size.height-m)>1?M.$resizeTimer.delay():M.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,w.implement(E.prototype,R),f.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&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(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){y.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!v.isMobile&&!v.isIE}}),s.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,s,A){var w=t("../lib/oop"),y=t("../lib/net"),S=t("../lib/event_emitter").EventEmitter,f=t("../config");function p(r){var n="importScripts('"+y.qualifyURL(r)+"');";try{return new Blob([n],{type:"application/javascript"})}catch{var l=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,d=new l;return d.append(n),d.getBlob("application/javascript")}}function o(r){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(f.get("loadWorkerFromBlob")){var n=p(r),l=window.URL||window.webkitURL,d=l.createObjectURL(n);return new Worker(d)}return new Worker(r)}var a=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(){w.implement(this,S),this.$createWorkerFromOldConfig=function(r,n,l,d,g){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),f.get("packaged")||!t.toUrl)d=d||f.moduleUrl(n,"worker");else{var b=this.$normalizePath;d=d||b(t.toUrl("ace/worker/worker.js",null,"_"));var R={};r.forEach(function($){R[$]=b(t.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(d),g&&this.send("importScripts",g),this.$worker.postMessage({init:!0,tlns:R,module:n,classname:l}),this.$worker},this.onMessage=function(r){var n=r.data;switch(n.type){case"event":this._signal(n.name,{data:n.data});break;case"call":var l=this.callbacks[n.id];l&&(l(n.data),delete this.callbacks[n.id]);break;case"error":this.reportError(n.data);break;case"log":window.console&&console.log&&console.log.apply(console,n.data);break}},this.reportError=function(r){window.console&&console.error&&console.error(r)},this.$normalizePath=function(r){return y.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,n){this.$worker.postMessage({command:r,args:n})},this.call=function(r,n,l){if(l){var d=this.callbackId++;this.callbacks[d]=l,n.push(d)}this.send(r,n)},this.emit=function(r,n){try{n.data&&n.data.err&&(n.data.err={message:n.data.err.message,stack:n.data.err.stack,code:n.data.err.code}),this.$worker&&this.$worker.postMessage({event:r,data:{data:n.data}})}catch(l){console.error(l.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(a.prototype);var i=function(r,n,l){var d=null,g=!1,b=Object.create(S),R=[],$=new a({messageBuffer:R,terminate:function(){},postMessage:function(v){R.push(v),d&&(g?setTimeout(_):_())}});$.setEmitSync=function(v){g=v};var _=function(){var v=R.shift();v.command?d[v.command].apply(d,v.args):v.event&&b._signal(v.event,v.data)};return b.postMessage=function(v){$.onMessage({data:v})},b.callback=function(v,T){this.postMessage({type:"call",id:T,data:v})},b.emit=function(v,T){this.postMessage({type:"event",name:v,data:T})},f.loadModule(["worker",n],function(v){for(d=new v[l](b);R.length;)_()}),$};s.UIWorkerClient=i,s.WorkerClient=a,s.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,s,A){var w=t("./range").Range,y=t("./lib/event_emitter").EventEmitter,S=t("./lib/oop"),f=function(){function p(o,a,i,r,n,l){var d=this;this.length=a,this.session=o,this.doc=o.getDocument(),this.mainClass=n,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){d.onCursorChange()})},this.$pos=i;var g=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=g.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var o=this,a=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=i.addMarker(new w(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var l=a.createAnchor(n.row,n.column);l.$insertRight=!0,l.detach(),o.others.push(l)}),i.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,a=this;this.othersActive=!0,this.others.forEach(function(i){i.markerId=o.addMarker(new w(i.row,i.column,i.row,i.column+a.length),a.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o<this.others.length;o++)this.session.removeMarker(this.others[o].markerId)}},p.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var a=o;if(a.start.row===a.end.row&&a.start.row===this.pos.row){this.$updating=!0;var i=o.action==="insert"?a.end.column-a.start.column:a.start.column-a.end.column,r=a.start.column>=this.pos.column&&a.start.column<=this.pos.column+this.length+1,n=a.start.column-this.pos.column;if(this.updateAnchors(o),r&&(this.length+=i),r&&!this.session.$fromUndo){if(o.action==="insert")for(var l=this.others.length-1;l>=0;l--){var d=this.others[l],g={row:d.row,column:d.column+n};this.doc.insertMergedLines(g,o.lines)}else if(o.action==="remove")for(var l=this.others.length-1;l>=0;l--){var d=this.others[l],g={row:d.row,column:d.column+n};this.doc.remove(new w(g.row,g.column,g.row,g.column-i))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var a=this.others.length;a--;)this.others[a].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,a=this.session,i=function(n,l){a.removeMarker(n.markerId),n.markerId=a.addMarker(new w(n.row,n.column,n.row,n.column+o.length),l,null,!1)};i(this.pos,this.mainClass);for(var r=this.others.length;r--;)i(this.others[r],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.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},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),a=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,i=0;i<a;i++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();S.implement(f.prototype,y),s.PlaceHolder=f}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,s,A){var w=t("../lib/event"),y=t("../lib/useragent");function S(p,o){return p.row==o.row&&p.column==o.column}function f(p){var o=p.domEvent,a=o.altKey,i=o.shiftKey,r=o.ctrlKey,n=p.getAccelKey(),l=p.getButton();if(r&&y.isMac&&(l=o.button),p.editor.inMultiSelectMode&&l==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!r&&!a&&!n){l===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(l===0){var d=p.editor,g=d.selection,b=d.inMultiSelectMode,R=p.getDocumentPosition(),$=g.getCursor(),_=p.inSelection()||g.isEmpty()&&S(R,$),v=p.x,T=p.y,E=function(G){v=G.clientX,T=G.clientY},I=d.session,M=d.renderer.pixelToScreenCoordinates(v,T),N=M,k;if(d.$mouseHandler.$enableJumpToDef)r&&a||n&&a?k=i?"block":"add":a&&d.$blockSelectEnabled&&(k="block");else if(n&&!a){if(k="add",!b&&i)return}else a&&d.$blockSelectEnabled&&(k="block");if(k&&y.isMac&&o.ctrlKey&&d.$mouseHandler.cancelContextMenu(),k=="add"){if(!b&&_)return;if(!b){var m=g.toOrientedRange();d.addSelectionMarker(m)}var x=g.rangeList.rangeAtPoint(R);d.inVirtualSelectionMode=!0,i&&(x=null,m=g.ranges[0]||m,d.removeSelectionMarker(m)),d.once("mouseup",function(){var G=g.toOrientedRange();x&&G.isEmpty()&&S(x.cursor,G.cursor)?g.substractPoint(G.cursor):(i?g.substractPoint(m.cursor):m&&(d.removeSelectionMarker(m),g.addRange(m)),g.addRange(G)),d.inVirtualSelectionMode=!1})}else if(k=="block"){p.stop(),d.inVirtualSelectionMode=!0;var L,O=[],F=function(){var G=d.renderer.pixelToScreenCoordinates(v,T),J=I.screenToDocumentPosition(G.row,G.column,G.offsetX);S(N,G)&&S(J,g.lead)||(N=G,d.selection.moveToPosition(J),d.renderer.scrollCursorIntoView(),d.removeSelectionMarkers(O),O=g.rectangularRangeBlock(N,M),d.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=d.$mouseHandler.$clickSelection.clone()),O.forEach(d.addSelectionMarker,d),d.updateSelectionMarkers())};b&&!n?g.toSingleRange():!b&&n&&(L=g.toOrientedRange(),d.addSelectionMarker(L)),i?M=I.documentToScreenPosition(g.lead):g.moveToPosition(R),N={row:-1,column:-1};var W=function(G){F(),clearInterval(V),d.removeSelectionMarkers(O),O.length||(O=[g.toOrientedRange()]),L&&(d.removeSelectionMarker(L),g.toSingleRange(L));for(var J=0;J<O.length;J++)g.addRange(O[J]);d.inVirtualSelectionMode=!1,d.$mouseHandler.$clickSelection=null},U=F;w.capture(d.container,E,W);var V=setInterval(function(){U()},20);return p.preventDefault()}}}s.onMouseDown=f}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,s,A){s.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(y){y.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(y){y.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(y){y.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(y){y.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(y){y.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(y){y.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(y){y.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(y){y.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(y){y.multiSelect.rangeCount>1?y.multiSelect.joinSelections():y.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(y){y.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(y){y.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(y){y.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],s.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(y){y.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(y){return y&&y.inMultiSelectMode}}];var w=t("../keyboard/hash_handler").HashHandler;s.keyboardHandler=new w(s.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(t,s,A){var w=t("./range_list").RangeList,y=t("./range").Range,S=t("./selection").Selection,f=t("./mouse/multi_select_handler").onMouseDown,p=t("./lib/event"),o=t("./lib/lang"),a=t("./commands/multi_select_commands");s.commands=a.defaultCommands.concat(a.multiSelectCommands);var i=t("./search").Search,r=new i;function n($,_,v){return r.$options.wrap=!0,r.$options.needle=_,r.$options.backwards=v==-1,r.find($)}var l=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(l.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function($,_){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var v=this.toOrientedRange();if(this.rangeList.add(v),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(v),this.$onAddRange(v)}$.cursor||($.cursor=$.end);var T=this.rangeList.add($);return this.$onAddRange($),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),$&&this.fromOrientedRange($)},this.substractPoint=function($){var _=this.rangeList.substractPoint($);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();$.push(_),this.rangeCount=0}for(var v=$.length;v--;){var T=this.ranges.indexOf($[v]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new w,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],_=[],v=0;v<$.length;v++){var T=$[v],E=T.start.row,I=T.end.row;if(E===I)_.push(T.clone());else{for(_.push(new y(E,T.start.column,E,this.session.getLine(E).length));++E<I;)_.push(this.getLineRange(E,!0));_.push(new y(I,0,I,T.end.column))}v==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var v=_.length;v--;)this.addRange(_[v])},this.joinSelections=function(){var $=this.rangeList.ranges,_=$[$.length-1],v=y.fromPoints($[0].start,_.end);this.toSingleRange(),this.setSelectionRange(v,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,_=$[$.length-1],v=y.fromPoints($[0].start,_.end);this.toSingleRange(),this.setSelectionRange(v,_.cursor==_.start)}else{var T=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(T,E);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,_,v){var T=[],E=$.column<_.column;if(E)var I=$.column,M=_.column,N=$.offsetX,k=_.offsetX;else var I=_.column,M=$.column,N=_.offsetX,k=$.offsetX;var m=$.row<_.row;if(m)var x=$.row,L=_.row;else var x=_.row,L=$.row;I<0&&(I=0),x<0&&(x=0),x==L&&(v=!0);for(var O,F=x;F<=L;F++){var W=y.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,M,k));if(W.isEmpty()){if(O&&g(W.end,O))break;O=W.end}W.cursor=E?W.start:W.end,T.push(W)}if(m&&T.reverse(),!v){for(var U=T.length-1;T[U].isEmpty()&&U>0;)U--;if(U>0)for(var V=0;T[V].isEmpty();)V++;for(var G=U;G>=V;G--)T[G].isEmpty()&&T.splice(G,1)}return T}}).call(S.prototype);var d=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var _=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",_),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var _=this.session.$selectionMarkers.indexOf($);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var _=this.session.$selectionMarkers,v=$.length;v--;){var T=$[v];if(T.marker){this.session.removeMarker(T.marker);var E=_.indexOf(T);E!=-1&&_.splice(E,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(a.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function($){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(a.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function($){var _=$.command,v=$.editor;if(v.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?T=v.forEachSelection(_,$.args):_.multiSelectAction=="forEachLine"?T=v.forEachSelection(_,$.args,!0):_.multiSelectAction=="single"?(v.exitMultiSelectMode(),T=_.exec(v,$.args||{})):T=_.multiSelectAction(v,$.args||{});else{var T=_.exec(v,$.args||{});v.multiSelect.addRange(v.multiSelect.toOrientedRange()),v.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function($,_,v){if(!this.inVirtualSelectionMode){var T=v&&v.keepOrder,E=v==!0||v&&v.$byLines,I=this.session,M=this.selection,N=M.rangeList,k=(T?M:N).ranges,m;if(!k.length)return $.exec?$.exec(this,_||{}):$(this,_||{});var x=M._eventRegistry;M._eventRegistry={};var L=new S(I);this.inVirtualSelectionMode=!0;for(var O=k.length;O--;){if(E)for(;O>0&&k[O].start.row==k[O-1].end.row;)O--;L.fromOrientedRange(k[O]),L.index=O,this.selection=I.selection=L;var F=$.exec?$.exec(this,_||{}):$(this,_||{});!m&&F!==void 0&&(m=F),L.toOrientedRange(k[O])}L.detach(),this.selection=I.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=x,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var W=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),W&&W.from==W.to&&this.renderer.animateScrolling(W.from),m}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,v=[],T=0;T<_.length;T++)v.push(this.session.getTextRange(_[T]));var E=this.session.getDocument().getNewLineCharacter();$=v.join(E),$.length==(v.length-1)*E.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var v=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var T=_==this.multiSelect.anchor?v.cursor==v.start?v.end:v.start:v.cursor;T.row!=_.row||this.session.$clipPositionToDocument(T.row,T.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,_,v){if(_=_||{},_.needle=$||_.needle,_.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(T)}this.$search.set(_);var E=this.$search.findAll(this.session);if(!E.length)return 0;var I=this.multiSelect;v||I.toSingleRange(E[0]);for(var M=E.length;M--;)I.addRange(E[M],!0);return T&&I.rangeList.rangeAtPoint(T.start)&&I.addRange(T,!0),E.length},this.selectMoreLines=function($,_){var v=this.selection.toOrientedRange(),T=v.cursor==v.end,E=this.session.documentToScreenPosition(v.cursor);this.selection.$desiredColumn&&(E.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(E.row+$,E.column);if(v.isEmpty())var N=I;else var M=this.session.documentToScreenPosition(T?v.end:v.start),N=this.session.screenToDocumentPosition(M.row+$,M.column);if(T){var k=y.fromPoints(I,N);k.cursor=k.start}else{var k=y.fromPoints(N,I);k.cursor=k.end}if(k.desiredColumn=E.column,!this.selection.inMultiSelectMode)this.selection.addRange(v);else if(_)var m=v.cursor;this.selection.addRange(k),m&&this.selection.substractPoint(m)},this.transposeSelections=function($){for(var _=this.session,v=_.multiSelect,T=v.ranges,E=T.length;E--;){var I=T[E];if(I.isEmpty()){var M=_.getWordRange(I.start.row,I.start.column);I.start.row=M.start.row,I.start.column=M.start.column,I.end.row=M.end.row,I.end.column=M.end.column}}v.mergeOverlappingRanges();for(var N=[],E=T.length;E--;){var I=T[E];N.unshift(_.getTextRange(I))}$<0?N.unshift(N.pop()):N.push(N.shift());for(var E=T.length;E--;){var I=T[E],k=I.clone();_.replace(I,N[E]),I.start.row=k.start.row,I.start.column=k.start.column}v.fromOrientedRange(v.ranges[0])},this.selectMore=function($,_,v){var T=this.session,E=T.multiSelect,I=E.toOrientedRange();if(!(I.isEmpty()&&(I=T.getWordRange(I.start.row,I.start.column),I.cursor=$==-1?I.start:I.end,this.multiSelect.addRange(I),v))){var M=T.getTextRange(I),N=n(T,M,$);N&&(N.cursor=$==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var $=this.session,_=$.multiSelect,v=_.ranges,T=-1,E=v.filter(function(U){if(U.cursor.row==T)return!0;T=U.cursor.row});if(!v.length||E.length==v.length-1){var I=this.selection.getRange(),M=I.start.row,N=I.end.row,k=M==N;if(k){var m=this.session.getLength(),x;do x=this.session.getLine(N);while(/[=:]/.test(x)&&++N<m);do x=this.session.getLine(M);while(/[=:]/.test(x)&&--M>0);M<0&&(M=0),N>=m&&(N=m-1)}var L=this.session.removeFullLines(M,N);L=this.$reAlignText(L,k),this.session.insert({row:M,column:0},L.join(`
|
|
936
|
+
`)+`
|
|
937
|
+
`),k||(I.start.column=0,I.end.column=L[L.length-1].length),this.selection.setRange(I)}else{E.forEach(function(U){_.substractPoint(U.cursor)});var O=0,F=1/0,W=v.map(function(U){var V=U.cursor,G=$.getLine(V.row),J=G.substr(V.column).search(/\S/g);return J==-1&&(J=0),V.column>O&&(O=V.column),J<F&&(F=J),J});v.forEach(function(U,V){var G=U.cursor,J=O-G.column,K=W[V]-F;J>K?$.insert(G,o.stringRepeat(" ",J-K)):$.remove(new y(G.row,G.column,G.row,G.column-J+K)),U.start.column=U.end.column=O,U.start.row=U.end.row=G.row,U.cursor=U.end}),_.fromOrientedRange(v[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,_){var v=!0,T=!0,E,I,M;return $.map(function(L){var O=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?E==null?(E=O[1].length,I=O[2].length,M=O[3].length,O):(E+I+M!=O[1].length+O[2].length+O[3].length&&(T=!1),E!=O[1].length&&(v=!1),E>O[1].length&&(E=O[1].length),I<O[2].length&&(I=O[2].length),M>O[3].length&&(M=O[3].length),O):[L]}).map(_?k:v?T?m:k:x);function N(L){return o.stringRepeat(" ",L)}function k(L){return L[2]?N(E)+L[2]+N(I-L[2].length+M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function m(L){return L[2]?N(E+I-L[2].length)+L[2]+N(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function x(L){return L[2]?N(E)+L[2]+N(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(d.prototype);function g($,_){return $.row==_.row&&$.column==_.column}s.onSessionChange=function($){var _=$.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var v=$.oldSession;v&&(v.multiSelect.off("addRange",this.$onAddRange),v.multiSelect.off("removeRange",this.$onRemoveRange),v.multiSelect.off("multiSelect",this.$onMultiSelect),v.multiSelect.off("singleSelect",this.$onSingleSelect),v.multiSelect.lead.off("change",this.$checkMultiselectChange),v.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=s.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",f),$.commands.addCommands(a.defaultCommands),R($))}function R($){if(!$.textInput)return;var _=$.textInput.getElement(),v=!1;p.addListener(_,"keydown",function(E){var I=E.keyCode==18&&!(E.ctrlKey||E.shiftKey||E.metaKey);$.$blockSelectEnabled&&I?v||($.renderer.setMouseCursor("crosshair"),v=!0):v&&T()},$),p.addListener(_,"keyup",T,$),p.addListener(_,"blur",T,$);function T(E){v&&($.renderer.setMouseCursor(""),v=!1)}}s.MultiSelect=b,t("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function($){b(this),$?this.on("mousedown",f):this.off("mousedown",f)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,s,A){var w=t("../../range").Range,y=s.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(S,f,p){var o=S.getLine(p);return this.foldingStartMarker.test(o)?"start":f=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(S,f,p){return null},this.indentationBlock=function(S,f,p){var o=/\S/,a=S.getLine(f),i=a.search(o);if(i!=-1){for(var r=p||a.length,n=S.getLength(),l=f,d=f;++f<n;){var g=S.getLine(f).search(o);if(g!=-1){if(g<=i){var b=S.getTokenAt(f,0);if(!b||b.type!=="string")break}d=f}}if(d>l){var R=S.getLine(d).length;return new w(l,r,d,R)}}},this.openingBracketBlock=function(S,f,p,o,a){var i={row:p,column:o+1},r=S.$findClosingBracket(f,i,a);if(r){var n=S.foldWidgets[r.row];return n==null&&(n=S.getFoldWidget(r.row)),n=="start"&&r.row>i.row&&(r.row--,r.column=S.getLine(r.row).length),w.fromPoints(i,r)}},this.closingBracketBlock=function(S,f,p,o,a){var i={row:p,column:o},r=S.$findOpeningBracket(f,i);if(r)return r.column++,i.column--,w.fromPoints(r,i)}}).call(y.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(t,s,A){var w=t("../lib/dom"),y=t("../range").Range,S=t("../config").nls;function f(o,a,i){for(var r=0,n=o.length-1;r<=n;){var l=r+n>>1,d=i(a,o[l]);if(d>0)r=l+1;else if(d<0)n=l-1;else return l}return-(r+1)}function p(o,a,i){var r=o.getAnnotations().sort(y.comparePoints);if(r.length){var n=f(r,{row:a,column:-1},y.comparePoints);n<0&&(n=-n-1),n>=r.length?n=i>0?0:r.length-1:n===0&&i<0&&(n=r.length-1);var l=r[n];if(!(!l||!i)){if(l.row===a){do l=r[n+=i];while(l&&l.row===a);if(!l)return r.slice()}var d=[];a=l.row;do d[i<0?"unshift":"push"](l),l=r[n+=i];while(l&&l.row==a);return d.length&&d}}}s.showErrorMarker=function(o,a){var i=o.session,r=o.getCursorPosition(),n=r.row,l=i.widgetManager.getWidgetsAtRow(n).filter(function(E){return E.type=="errorMarker"})[0];l?l.destroy():n-=a;var d=p(i,n,a),g;if(d){var b=d[0];r.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,r.row=b.row,g=o.renderer.$gutterLayer.$annotations[r.row]}else{if(l)return;g={displayText:[S("error-marker.good-state","Looks good!")],className:"ace_ok"}}o.session.unfold(r.row),o.selection.moveToPosition(r);var R={row:r.row,fixedWidth:!0,coverGutter:!0,el:w.createElement("div"),type:"errorMarker"},$=R.el.appendChild(w.createElement("div")),_=R.el.appendChild(w.createElement("div"));_.className="error_widget_arrow "+g.className;var v=o.renderer.$cursorLayer.getPixelPosition(r).left;_.style.left=v+o.renderer.gutterWidth-5+"px",R.el.className="error_widget_wrapper",$.className="error_widget "+g.className,g.displayText.forEach(function(E,I){$.appendChild(w.createTextNode(E)),I<g.displayText.length-1&&$.appendChild(w.createElement("br"))}),$.appendChild(w.createElement("div"));var T=function(E,I,M){if(I===0&&(M==="esc"||M==="return"))return R.destroy(),{command:"null"}};R.destroy=function(){o.$mouseHandler.isMousePressed||(o.keyBinding.removeKeyboardHandler(T),i.widgetManager.removeLineWidget(R),o.off("changeSelection",R.destroy),o.off("changeSession",R.destroy),o.off("mouseup",R.destroy),o.off("change",R.destroy))},o.keyBinding.addKeyboardHandler(T),o.on("changeSelection",R.destroy),o.on("changeSession",R.destroy),o.on("mouseup",R.destroy),o.on("change",R.destroy),o.session.widgetManager.addLineWidget(R),R.el.onmousedown=o.focus.bind(o),o.renderer.scrollCursorIntoView(null,.5,{bottom:R.el.offsetHeight})},w.importCssString(`
|
|
938
|
+
.error_widget_wrapper {
|
|
939
|
+
background: inherit;
|
|
940
|
+
color: inherit;
|
|
941
|
+
border:none
|
|
942
|
+
}
|
|
943
|
+
.error_widget {
|
|
944
|
+
border-top: solid 2px;
|
|
945
|
+
border-bottom: solid 2px;
|
|
946
|
+
margin: 5px 0;
|
|
947
|
+
padding: 10px 40px;
|
|
948
|
+
white-space: pre-wrap;
|
|
949
|
+
}
|
|
950
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
951
|
+
border-color: #ff5a5a
|
|
952
|
+
}
|
|
953
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
954
|
+
border-color: #F1D817
|
|
955
|
+
}
|
|
956
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
957
|
+
border-color: #5a5a5a
|
|
958
|
+
}
|
|
959
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
960
|
+
border-color: #5aaa5a
|
|
961
|
+
}
|
|
962
|
+
.error_widget_arrow {
|
|
963
|
+
position: absolute;
|
|
964
|
+
border: solid 5px;
|
|
965
|
+
border-top-color: transparent!important;
|
|
966
|
+
border-right-color: transparent!important;
|
|
967
|
+
border-left-color: transparent!important;
|
|
968
|
+
top: -5px;
|
|
969
|
+
}
|
|
970
|
+
`,"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(t,s,A){t("./loader_build")(s);var w=t("./lib/dom"),y=t("./range").Range,S=t("./editor").Editor,f=t("./edit_session").EditSession,p=t("./undomanager").UndoManager,o=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),s.config=t("./config"),s.edit=function(i,r){if(typeof i=="string"){var n=i;if(i=document.getElementById(n),!i)throw new Error("ace.edit can't find div #"+n)}if(i&&i.env&&i.env.editor instanceof S)return i.env.editor;var l="";if(i&&/input|textarea/i.test(i.tagName)){var d=i;l=d.value,i=w.createElement("pre"),d.parentNode.replaceChild(i,d)}else i&&(l=i.textContent,i.innerHTML="");var g=s.createEditSession(l),b=new S(new o(i),g,r),R={document:g,editor:b,onResize:b.resize.bind(b,null)};return d&&(R.textarea=d),b.on("destroy",function(){R.editor.container.env=null}),b.container.env=b.env=R,b},s.createEditSession=function(i,r){var n=new f(i,r);return n.setUndoManager(new p),n},s.Range=y,s.Editor=S,s.EditSession=f,s.UndoManager=p,s.VirtualRenderer=o;var a=s.config.version;s.version=a}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var s=function(){return this}();!s&&typeof window<"u"&&(s=window),!s&&typeof self<"u"&&(s=self),s.ace||(s.ace=t);for(var A in t)t.hasOwnProperty(A)&&(s.ace[A]=t[A]);s.ace.default=s.ace,c&&(c.exports=s.ace)})}()}(cc)),cc.exports}var mx=gx(),uc={exports:{}},Hd;function vx(){return Hd||(Hd=1,function(c,u){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop"),y=t("./text_highlight_rules").TextHighlightRules,S=s.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};s.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},s.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},s.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var f=s.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},p=s.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},o=s.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},a=s.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},i=s.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},r=s.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},n=s.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},l=s.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},d=function(){var g="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",b="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",R="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",$="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",_=this.$keywords=this.createKeywordMapper({keyword:b,"constant.language":R,"variable.language":$,"support.function":g,"invalid.deprecated":"debugger"},"identifier"),v=`\\\\(?: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})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:v},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:v},{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(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},l,{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\\?(?:"+v+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},i,r,S,f,n,p,o,a,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:_,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(E,I,M){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",k=E.split(this.splitRegex);return M.push(N,k[3]),[{type:"constant",value:k[1]},{type:"string",value:k[2]},{type:"support.class",value:k[3]},{type:"string",value:k[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,I,M){return this.next="",E=="}"&&M.length>1&&M[1]!="start"&&(M.shift(),this.next=M.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(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:v},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:v},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,I,M){return M.length&&E[0]===T[M[0]]?(M.shift(),this.next=M.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()};w.inherits(d,y),s.RubyHighlightRules=d}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,s,A){var w=t("../range").Range,y=function(){};(function(){this.checkOutdent=function(S,f){return/^\s+$/.test(S)?/^\s*\}/.test(f):!1},this.autoOutdent=function(S,f){var p=S.getLine(f),o=p.match(/^(\s*\})/);if(!o)return 0;var a=o[1].length,i=S.findMatchingBracket({row:f,column:a});if(!i||i.row==f)return 0;var r=this.$getIndent(S.getLine(i.row));S.replace(new w(f,0,f,a-1),r)},this.$getIndent=function(S){return S.match(/^\s*/)[0]}}).call(y.prototype),s.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(t,s,A){var w=t("../../lib/oop"),y=t("./fold_mode").FoldMode,S=t("../../range").Range,f=t("../../token_iterator").TokenIterator,p=s.FoldMode=function(){};w.inherits(p,y),(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(o,a,i){var r=o.getLine(i),n=this.foldingStartMarker.test(r),l=this.foldingStopMarker.test(r);if(n&&!l){var d=r.match(this.foldingStartMarker);if(d[1]){if((d[1]=="if"||d[1]=="else"||d[1]=="while"||d[1]=="until"||d[1]=="unless")&&(d[1]=="else"&&/^\s*else\s*$/.test(r)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(r)===!1)||d[1]=="when"&&/\sthen\s/.test(r)===!0)return;if(o.getTokenAt(i,d.index+2).type==="keyword")return"start"}else if(!d[3]||o.getTokenAt(i,d.index+1).type==="comment.multiline")return"start"}if(a!="markbeginend"||!l||n&&l)return"";var d=r.match(this.foldingStopMarker);if(d[3]==="end"){if(o.getTokenAt(i,d.index+1).type==="keyword")return"end"}else if(!d[1]||o.getTokenAt(i,d.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(o,a,i){var r=o.doc.getLine(i),n=this.foldingStartMarker.exec(r);if(n)return n[1]||n[3]?this.rubyBlock(o,i,n.index+2):this.openingBracketBlock(o,"{",i,n.index);var n=this.foldingStopMarker.exec(r);if(n)return n[3]==="end"&&o.getTokenAt(i,n.index+1).type==="keyword"?this.rubyBlock(o,i,n.index+1):n[1]==="=end"&&o.getTokenAt(i,n.index+1).type==="comment.multiline"?this.rubyBlock(o,i,n.index+1):this.closingBracketBlock(o,"}",i,n.index+n[0].length)},this.rubyBlock=function(o,k,i,r){var n=new f(o,k,i),l=n.getCurrentToken();if(!(!l||l.type!="keyword"&&l.type!="comment.multiline")){var d=l.value,g=o.getLine(k);switch(l.value){case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+l.value);if(!b.test(g))return;var R=this.indentKeywords[d];break;case"when":if(/\sthen\s/.test(g))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var b=new RegExp("^\\s*"+l.value+"\\s*$");if(!b.test(g))return;var R=1;break;default:var R=this.indentKeywords[d]}var $=[d];if(R){var _=R===-1?o.getLine(k-1).length:o.getLine(k).length,v=k,T=[];if(T.push(n.getCurrentTokenRange()),n.step=R===-1?n.stepBackward:n.stepForward,l.type=="comment.multiline"){for(;l=n.step();)if(l.type==="comment.multiline"){if(R==1){if(_=6,l.value=="=end")break}else if(l.value=="=begin")break}}else for(;l=n.step();){var E=!1;if(l.type==="keyword"){var I=R*this.indentKeywords[l.value];switch(g=o.getLine(n.getCurrentTokenRow()),l.value){case"do":for(var M=n.$tokenIndex-1;M>=0;M--){var N=n.$rowTokens[M];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var b=new RegExp("^\\s*"+l.value+"\\s*$");(!b.test(g)||d=="case")&&(I=0,E=!0);break;case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+l.value);b.test(g)||(I=0,E=!0);break;case"when":(/\sthen\s/.test(g)||d=="case")&&(I=0,E=!0)}if(I>0)$.unshift(l.value);else if(I<=0&&E===!1){if($.shift(),!$.length&&((d=="while"||d=="until"||d=="for")&&l.value!="do"||l.value=="do"&&R==-1&&I!=0||l.value!="do"))break;I===0&&$.unshift(l.value)}}}if(!l)return null;if(r)return T.push(n.getCurrentTokenRange()),T;var k=n.getCurrentTokenRow();if(R===-1){if(l.type==="comment.multiline")var m=6;else var m=o.getLine(k).length;return new S(k,m,v-1,_)}return new S(v,_,k-1,o.getLine(k-1).length)}}}}).call(p.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(t,s,A){var w=t("../lib/oop"),y=t("./text").Mode,S=t("./ruby_highlight_rules").RubyHighlightRules,f=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../range").Range,o=t("./folding/ruby").FoldMode,a=function(){this.HighlightRules=S,this.$outdent=new f,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new o,this.indentKeywords=this.foldingRules.indentKeywords};w.inherits(a,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(i,r,n){var l=this.$getIndent(r),d=this.getTokenizer().getLineTokens(r,i),g=d.tokens;if(g.length&&g[g.length-1].type=="comment")return l;if(i=="start"){var b=r.match(/^.*[\{\(\[]\s*$/),R=r.match(/^\s*(class|def|module)\s.*$/),$=r.match(/.*do(\s*|\s+\|.*\|\s*)$/),_=r.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(b||R||$||_)&&(l+=n)}return l},this.checkOutdent=function(i,r,n){return/^\s+(end|else|rescue|ensure)$/.test(r+n)||this.$outdent.checkOutdent(r,n)},this.autoOutdent=function(i,r,n){var l=r.getLine(n);if(/}/.test(l))return this.$outdent.autoOutdent(r,n);var d=this.$getIndent(l),g=r.getLine(n-1),b=this.$getIndent(g),R=r.getTabString();b.length<=d.length&&d.slice(-R.length)==R&&r.remove(new p(n,d.length-R.length,n,d.length))},this.getMatching=function(i,r,n){if(r==null){var l=i.selection.lead;n=l.column,r=l.row}var d=i.getTokenAt(r,n);if(d&&d.value in this.indentKeywords)return this.foldingRules.rubyBlock(i,r,n,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(a.prototype),s.Mode=a}),function(){ace.require(["ace/mode/ruby"],function(t){c&&(c.exports=t)})}()}(uc)),uc.exports}vx();var hc={exports:{}},Ud;function yx(){return Ud||(Ud=1,function(c,u){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop"),y=t("./text_highlight_rules").TextHighlightRules,S=function(){var f="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",p="True|False|None|NotImplemented|Ellipsis|__debug__",o="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",a=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":o,"variable.language":"self|cls","constant.language":p,keyword:f},"identifier"),i="[uU]?",r="[rR]",n="[fF]",l="(?:[rR][fF]|[fF][rR])",d="(?:(?:[1-9]\\d*)|(?:0))",g="(?:0[oO]?[0-7]+)",b="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",$="(?:"+d+"|"+g+"|"+b+"|"+R+")",_="(?:[eE][+-]?\\d+)",v="(?:\\.\\d+)",T="(?:\\d+)",E="(?:(?:"+T+"?"+v+")|(?:"+T+"\\.))",I="(?:(?:"+E+"|"+T+")"+_+")",M="(?:"+I+"|"+E+")",N=`\\\\(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:n+'"{3}',next:"fqqstring3"},{token:"string",regex:n+'"(?=.)',next:"fqqstring"},{token:"string",regex:n+"'{3}",next:"fqstring3"},{token:"string",regex:n+"'(?=.)",next:"fqstring"},{token:"string",regex:l+'"{3}',next:"rfqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rfqqstring"},{token:"string",regex:l+"'{3}",next:"rfqstring3"},{token:"string",regex:l+"'(?=.)",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:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{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:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{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:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:$+"[lL]\\b"},{token:"constant.numeric",regex:$+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:a,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};w.inherits(S,y),s.PythonHighlightRules=S}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,s,A){var w=t("../../lib/oop"),y=t("./fold_mode").FoldMode,S=s.FoldMode=function(f){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+f+")(?:\\s*)(?:#.*)?$")};w.inherits(S,y),(function(){this.getFoldWidgetRange=function(f,p,o){var a=f.getLine(o),i=a.match(this.foldingStartMarker);if(i)return i[1]?this.openingBracketBlock(f,i[1],o,i.index):i[2]?this.indentationBlock(f,o,i.index+i[2].length):this.indentationBlock(f,o)}}).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(t,s,A){var w=t("../lib/oop"),y=t("./text").Mode,S=t("./python_highlight_rules").PythonHighlightRules,f=t("./folding/pythonic").FoldMode,p=t("../range").Range,o=function(){this.HighlightRules=S,this.foldingRules=new f("\\:"),this.$behaviour=this.$defaultBehaviour};w.inherits(o,y),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(i,r,n){var l=this.$getIndent(r),d=this.getTokenizer().getLineTokens(r,i),g=d.tokens;if(g.length&&g[g.length-1].type=="comment")return l;if(i=="start"){var b=r.match(/^.*[\{\(\[:]\s*$/);b&&(l+=n)}return l};var a={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(i,r,n){if(n!==`\r
|
|
971
|
+
`&&n!=="\r"&&n!==`
|
|
972
|
+
`)return!1;var l=this.getTokenizer().getLineTokens(r.trim(),i).tokens;if(!l)return!1;do var d=l.pop();while(d&&(d.type=="comment"||d.type=="text"&&d.value.match(/^\s+$/)));return d?d.type=="keyword"&&a[d.value]:!1},this.autoOutdent=function(i,r,n){n+=1;var l=this.$getIndent(r.getLine(n)),d=r.getTabString();l.slice(-d.length)==d&&r.remove(new p(n,l.length-d.length,n,l.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(o.prototype),s.Mode=o}),function(){ace.require(["ace/mode/python"],function(t){c&&(c.exports=t)})}()}(hc)),hc.exports}yx();var dc={exports:{}},jd;function bx(){return jd||(jd=1,function(c,u){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop"),y=t("./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"}]}};w.inherits(S,y),s.JsonHighlightRules=S}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,s,A){var w=t("../range").Range,y=function(){};(function(){this.checkOutdent=function(S,f){return/^\s+$/.test(S)?/^\s*\}/.test(f):!1},this.autoOutdent=function(S,f){var p=S.getLine(f),o=p.match(/^(\s*\})/);if(!o)return 0;var a=o[1].length,i=S.findMatchingBracket({row:f,column:a});if(!i||i.row==f)return 0;var r=this.$getIndent(S.getLine(i.row));S.replace(new w(f,0,f,a-1),r)},this.$getIndent=function(S){return S.match(/^\s*/)[0]}}).call(y.prototype),s.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,s,A){var w=t("../../lib/oop"),y=t("../../range").Range,S=t("./fold_mode").FoldMode,f=s.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};w.inherits(f,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(p,o,a){var i=p.getLine(a);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(p,o,a);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(p,o,a,i){var r=p.getLine(a);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(p,r,a);var d=r.match(this.foldingStartMarker);if(d){var n=d.index;if(d[1])return this.openingBracketBlock(p,d[1],a,n);var l=p.getCommentFoldRange(a,n+d[0].length,1);return l&&!l.isMultiLine()&&(i?l=this.getSectionRange(p,a):o!="all"&&(l=null)),l}if(o!=="markbegin"){var d=r.match(this.foldingStopMarker);if(d){var n=d.index+d[0].length;return d[1]?this.closingBracketBlock(p,d[1],a,n):p.getCommentFoldRange(a,n,-1)}}},this.getSectionRange=function(p,o){var a=p.getLine(o),i=a.search(/\S/),r=o,n=a.length;o+=1;for(var l=o,d=p.getLength();++o<d;){a=p.getLine(o);var g=a.search(/\S/);if(g!==-1){if(i>g)break;var b=this.getFoldWidgetRange(p,"all",o);if(b){if(b.start.row<=r)break;if(b.isMultiLine())o=b.end.row;else if(i==g)break}l=o}}return new y(r,n,l,p.getLine(l).length)},this.getCommentRegionBlock=function(p,o,a){for(var i=o.search(/\s*$/),r=p.getLength(),n=a,l=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,d=1;++a<r;){o=p.getLine(a);var g=l.exec(o);if(g&&(g[1]?d--:d++,!d))break}var b=a;if(b>n)return new y(n,i,b,o.length)}}).call(f.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(t,s,A){var w=t("../lib/oop"),y=t("./text").Mode,S=t("./json_highlight_rules").JsonHighlightRules,f=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("./folding/cstyle").FoldMode,o=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=S,this.$outdent=new f,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new p};w.inherits(a,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(i,r,n){var l=this.$getIndent(r);if(i=="start"){var d=r.match(/^.*[\{\(\[]\s*$/);d&&(l+=n)}return l},this.checkOutdent=function(i,r,n){return this.$outdent.checkOutdent(r,n)},this.autoOutdent=function(i,r,n){this.$outdent.autoOutdent(r,n)},this.createWorker=function(i){var r=new o(["ace"],"ace/mode/json_worker","JsonWorker");return r.attachToDocument(i.getDocument()),r.on("annotate",function(n){i.setAnnotations(n.data)}),r.on("terminate",function(){i.clearAnnotations()}),r},this.$id="ace/mode/json"}).call(a.prototype),s.Mode=a}),function(){ace.require(["ace/mode/json"],function(t){c&&(c.exports=t)})}()}(dc)),dc.exports}bx();var fc={exports:{}},Vd;function wx(){return Vd||(Vd=1,function(c,u){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop");t("../lib/lang");var y=t("./text_highlight_rules").TextHighlightRules,S=s.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",f=s.supportFunction="rgb|rgba|url|attr|counter|counters",p=s.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",o=s.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",a=s.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=s.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",r=s.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",n=s.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",l=function(){var d=this.createKeywordMapper({"support.function":f,"support.constant":p,"support.type":S,"support.constant.color":o,"support.constant.fonts":a},"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:n},{include:"url"},{token:d,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()};w.inherits(l,y),s.CssHighlightRules=l}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop"),y=t("./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()};w.inherits(S,y),S.getTagRule=function(f){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},S.getStartRule=function(f){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:f}},S.getEndRule=function(f){return{token:"comment.doc",regex:"\\*\\/",next:f}},s.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(t,s,A){function w(){var i=o.replace("\\d","\\d\\-"),r={onMatch:function(l,d,g){var b=l.charAt(1)=="/"?2:1;return b==1?(d!=this.nextState?g.unshift(this.next,this.nextState,0):g.unshift(this.next),g[2]++):b==2&&d==this.nextState&&(g[1]--,(!g[1]||g[1]<0)&&(g.shift(),g.shift())),[{type:"meta.tag.punctuation."+(b==1?"":"end-")+"tag-open.xml",value:l.slice(0,b)},{type:"meta.tag.tag-name.xml",value:l.substr(b)}]},regex:"</?(?:"+i+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(r);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,r,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(l,d,g){return d==g[0]&&g.shift(),l.length==2&&(g[0]==this.nextState&&g[1]--,(!g[1]||g[1]<0)&&g.splice(0,2)),this.next=g[0]||"start",[{type:this.token,value:l}]},nextState:"jsx"},n,y("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 y(i){return[{token:"comment",regex:/\/\*/,next:[f.getTagRule(),{token:"comment",regex:"\\*\\/",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[f.getTagRule(),{token:"comment",regex:"$|^",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var S=t("../lib/oop"),f=t("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,p=t("./text_highlight_rules").TextHighlightRules,o="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",a=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"},n=this.createKeywordMapper(r,"identifier"),l="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",d="\\\\(?: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]?|.)",g="(function)(\\s*)(\\*?)",b={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(r).join("|")+"\\b)"+o+")(\\s*)(\\()"};this.$rules={no_regex:[f.getStartRule("doc-start"),y("no_regex"),b,{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:"("+o+")(\\s*)(=)(\\s*)"+g+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+o+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\s*)(:)(\\s*)"+g+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+g+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+l+")\\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:n,regex:o},{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:g+"(\\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:o},{regex:"",token:"empty",next:"no_regex"}],start:[f.getStartRule("doc-start"),y("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:[y("function_arguments"),{token:"variable.parameter",regex:o},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!i||!i.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,$,_){if(this.next=R=="{"?this.nextState:"",R=="{"&&_.length)_.unshift("start",$);else if(R=="}"&&_.length&&(_.shift(),this.next=_.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:d},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+o+")(\\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)&&w.call(this)),this.embedRules(f,"doc-",[f.getEndRule("no_regex")]),this.normalizeRules()};S.inherits(a,p),s.JavaScriptHighlightRules=a}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop"),y=t("./text_highlight_rules").TextHighlightRules,S=function(f){var p="[_: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:"(<\\?)("+p+")",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:p},{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:"(<\\!)("+p+")",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:"(?:(<)|(</))((?:"+p+":)?"+p+")",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:p},{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(f,p,o){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+o+".tag-name.xml"],regex:"(<)("+o+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:p+"start"}]}),this.$rules[o+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(a,i,r){return r.splice(0),this.token}}],this.embedRules(f,p,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+o+".tag-name.xml"],regex:"(</)("+o+"(?=\\s|>|$))",next:o+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(y.prototype),w.inherits(S,y),s.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(t,s,A){var w=t("../lib/oop"),y=t("../lib/lang"),S=t("./css_highlight_rules").CssHighlightRules,f=t("./javascript_highlight_rules").JavaScriptHighlightRules,p=t("./xml_highlight_rules").XmlHighlightRules,o=y.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"}),a=function(){p.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 n=o[r];return["meta.tag.punctuation."+(i=="<"?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".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 f({jsx:!1}).getRules(),"js-","script"),this.constructor===a&&this.normalizeRules()};w.inherits(a,p),s.HtmlHighlightRules=a}),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(t,s,A){var w=t("../config").$modes,y=t("../lib/oop"),S=t("../lib/lang"),f=t("./text_highlight_rules").TextHighlightRules,p=t("./html_highlight_rules").HtmlHighlightRules,o=function(i){return"(?:[^"+S.escapeRegExp(i)+"\\\\]|\\\\.)*"},a=function(){p.call(this);var i={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(n,l,d,g){var b=n.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(b[3])[0];return w[R]||(R=""),d.unshift("githubblock",[],[b[1],b[2],R],l),this.token},next:"githubblock"},r=[{token:"support.function",regex:".*",onMatch:function(n,l,d,g){var b=d[1],R=d[2][0],$=d[2][1],_=d[2][2],v=/^(\s*)(`+|~+)\s*$/.exec(n);if(v&&v[1].length<R.length+3&&v[2].length>=$.length&&v[2][0]==$[0])return d.splice(0,3),this.next=d.shift(),this.token;if(this.next="",_&&w[_]){var T=w[_].getTokenizer().getLineTokens(n,b.slice(0));return d[1]=T.state,T.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(n){return"markup.heading."+n.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:"(\\[)("+o("]")+")(\\]\\s*\\[)("+o("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+o("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+o('"')+'"\\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()};y.inherits(a,f),s.MarkdownHighlightRules=a}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,s,A){var w=t("../../lib/oop"),y=t("./fold_mode").FoldMode,S=t("../../range").Range,f=s.FoldMode=function(){};w.inherits(f,y),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(p,o,a){var i=p.getLine(a);return this.foldingStartMarker.test(i)?i[0]=="`"&&p.bgTokenizer.getState(a)=="start"?"end":"start":""},this.getFoldWidgetRange=function(p,o,a){function i(E){return R=p.getTokens(E)[0],R&&R.type.lastIndexOf($,0)===0}function r(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var n=p.getLine(a),l=n.length,d=p.getLength(),g=a,b=a;if(n.match(this.foldingStartMarker)){if(n[0]=="`"){if(p.bgTokenizer.getState(a)!=="start"){for(;++a<d&&(n=p.getLine(a),!(n[0]=="`"&n.substring(0,3)=="```")););return new S(g,l,a,0)}for(;a-- >0&&(n=p.getLine(a),!(n[0]=="`"&n.substring(0,3)=="```")););return new S(a,n.length,g,0)}var R,$="markup.heading";if(i(a)){for(var _=r();++a<d;)if(i(a)){var v=r();if(v>=_)break}if(b=a-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),b>g)for(;b>g&&/^\s*$/.test(p.getLine(b));)b--;if(b>g){var T=p.getLine(b).length;return new S(g,l,b,T)}}}}}).call(f.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,s,A){var w=t("../range").Range,y=function(){};(function(){this.checkOutdent=function(S,f){return/^\s+$/.test(S)?/^\s*\}/.test(f):!1},this.autoOutdent=function(S,f){var p=S.getLine(f),o=p.match(/^(\s*\})/);if(!o)return 0;var a=o[1].length,i=S.findMatchingBracket({row:f,column:a});if(!i||i.row==f)return 0;var r=this.$getIndent(S.getLine(i.row));S.replace(new w(f,0,f,a-1),r)},this.$getIndent=function(S){return S.match(/^\s*/)[0]}}).call(y.prototype),s.MatchingBraceOutdent=y}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(t,s,A){function w(o,a){return o&&o.type.lastIndexOf(a+".xml")>-1}var y=t("../../lib/oop"),S=t("../behaviour").Behaviour,f=t("../../token_iterator").TokenIterator,p=function(){this.add("string_dquotes","insertion",function(o,a,i,r,n){if(n=='"'||n=="'"){var l=n,d=r.doc.getTextRange(i.getSelectionRange());if(d!==""&&d!=="'"&&d!='"'&&i.getWrapBehavioursEnabled())return{text:l+d+l,selection:!1};var g=i.getCursorPosition(),b=r.doc.getLine(g.row),R=b.substring(g.column,g.column+1),$=new f(r,g.row,g.column),_=$.getCurrentToken();if(R==l&&(w(_,"attribute-value")||w(_,"string")))return{text:"",selection:[1,1]};if(_||(_=$.stepBackward()),!_)return;for(;w(_,"tag-whitespace")||w(_,"whitespace");)_=$.stepBackward();var v=!R||R.match(/\s/);if(w(_,"attribute-equals")&&(v||R==">")||w(_,"decl-attribute-equals")&&(v||R=="?"))return{text:l+l,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(o,a,i,r,n){var l=r.doc.getTextRange(n);if(!n.isMultiLine()&&(l=='"'||l=="'")){var d=r.doc.getLine(n.start.row),g=d.substring(n.start.column+1,n.start.column+2);if(g==l)return n.end.column++,n}}),this.add("autoclosing","insertion",function(o,a,i,r,n){if(n==">"){var l=i.getSelectionRange().start,d=new f(r,l.row,l.column),g=d.getCurrentToken()||d.stepBackward();if(!g||!(w(g,"tag-name")||w(g,"tag-whitespace")||w(g,"attribute-name")||w(g,"attribute-equals")||w(g,"attribute-value"))||w(g,"reference.attribute-value"))return;if(w(g,"attribute-value")){var b=d.getCurrentTokenColumn()+g.value.length;if(l.column<b)return;if(l.column==b){var R=d.stepForward();if(R&&w(R,"attribute-value"))return;d.stepBackward()}}if(/^\s*>/.test(r.getLine(l.row).slice(l.column)))return;for(;!w(g,"tag-name");)if(g=d.stepBackward(),g.value=="<"){g=d.stepForward();break}var $=d.getCurrentTokenRow(),_=d.getCurrentTokenColumn();if(w(d.stepBackward(),"end-tag-open"))return;var v=g.value;return $==l.row&&(v=v.substring(0,l.column-_)),this.voidElements&&this.voidElements.hasOwnProperty(v.toLowerCase())?void 0:{text:"></"+v+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(o,a,i,r,n){if(n==`
|
|
973
|
+
`){var l=i.getCursorPosition(),d=r.getLine(l.row),g=new f(r,l.row,l.column),b=g.getCurrentToken();if(w(b,"")&&b.type.indexOf("tag-close")!==-1){if(b.value=="/>")return;for(;b&&b.type.indexOf("tag-name")===-1;)b=g.stepBackward();if(!b)return;var R=b.value,$=g.getCurrentTokenRow();if(b=g.stepBackward(),!b||b.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var _=r.getTokenAt(l.row,l.column+1),d=r.getLine($),v=this.$getIndent(d),T=v+r.getTabString();return _&&_.value==="</"?{text:`
|
|
974
|
+
`+T+`
|
|
975
|
+
`+v,selection:[1,T.length,1,T.length]}:{text:`
|
|
976
|
+
`+T}}}}})};y.inherits(p,S),s.XmlBehaviour=p}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(t,s,A){var w=t("../../lib/oop"),y=t("../../token_iterator").TokenIterator,S=t("../behaviour/cstyle").CstyleBehaviour,f=t("../behaviour/xml").XmlBehaviour,p=function(){var o=new f({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(o),this.inherit(S),this.add("autoclosing-fragment","insertion",function(a,i,r,n,l){if(l==">"){var d=r.getSelectionRange().start,g=new y(n,d.row,d.column),b=g.getCurrentToken()||g.stepBackward();if(!b)return;if(b.value=="<")return{text:"></>",selection:[1,1]}}})};w.inherits(p,S),s.JavaScriptBehaviour=p}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,s,A){function w(a,i){return a.type.lastIndexOf(i+".xml")>-1}var y=t("../../lib/oop"),S=t("../../range").Range,f=t("./fold_mode").FoldMode,p=s.FoldMode=function(a,i){f.call(this),this.voidElements=a||{},this.optionalEndTags=y.mixin({},this.voidElements),i&&y.mixin(this.optionalEndTags,i)};y.inherits(p,f);var o=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(a,i,r){var n=this._getFirstTagInLine(a,r);return n?n.closing||!n.tagName&&n.selfClosing?i==="markbeginend"?"end":"":!n.tagName||n.selfClosing||this.voidElements.hasOwnProperty(n.tagName.toLowerCase())||this._findEndTagInLine(a,r,n.tagName,n.end.column)?"":"start":this.getCommentFoldWidget(a,r)},this.getCommentFoldWidget=function(a,i){return/comment/.test(a.getState(i))&&/<!-/.test(a.getLine(i))?"start":""},this._getFirstTagInLine=function(a,i){for(var r=a.getTokens(i),n=new o,l=0;l<r.length;l++){var d=r[l];if(w(d,"tag-open")){if(n.end.column=n.start.column+d.value.length,n.closing=w(d,"end-tag-open"),d=r[++l],!d)return null;if(n.tagName=d.value,d.value===""){if(d=r[++l],!d)return null;n.tagName=d.value}for(n.end.column+=d.value.length,l++;l<r.length;l++)if(d=r[l],n.end.column+=d.value.length,w(d,"tag-close")){n.selfClosing=d.value=="/>";break}return n}if(w(d,"tag-close"))return n.selfClosing=d.value=="/>",n;n.start.column+=d.value.length}return null},this._findEndTagInLine=function(a,i,r,n){for(var l=a.getTokens(i),d=0,g=0;g<l.length;g++){var b=l[g];if(d+=b.value.length,!(d<n-1)&&w(b,"end-tag-open")&&(b=l[g+1],w(b,"tag-name")&&b.value===""&&(b=l[g+2]),b&&b.value==r))return!0}return!1},this.getFoldWidgetRange=function(a,i,r){var n=this._getFirstTagInLine(a,r);if(!n)return this.getCommentFoldWidget(a,r)&&a.getCommentFoldRange(r,a.getLine(r).length);var l=a.getMatchingTags({row:r,column:0});if(l)return new S(l.openTag.end.row,l.openTag.end.column,l.closeTag.start.row,l.closeTag.start.column)}}).call(p.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,s,A){var w=t("../../lib/oop"),y=t("../../range").Range,S=t("./fold_mode").FoldMode,f=s.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};w.inherits(f,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(p,o,a){var i=p.getLine(a);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(p,o,a);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(p,o,a,i){var r=p.getLine(a);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(p,r,a);var d=r.match(this.foldingStartMarker);if(d){var n=d.index;if(d[1])return this.openingBracketBlock(p,d[1],a,n);var l=p.getCommentFoldRange(a,n+d[0].length,1);return l&&!l.isMultiLine()&&(i?l=this.getSectionRange(p,a):o!="all"&&(l=null)),l}if(o!=="markbegin"){var d=r.match(this.foldingStopMarker);if(d){var n=d.index+d[0].length;return d[1]?this.closingBracketBlock(p,d[1],a,n):p.getCommentFoldRange(a,n,-1)}}},this.getSectionRange=function(p,o){var a=p.getLine(o),i=a.search(/\S/),r=o,n=a.length;o+=1;for(var l=o,d=p.getLength();++o<d;){a=p.getLine(o);var g=a.search(/\S/);if(g!==-1){if(i>g)break;var b=this.getFoldWidgetRange(p,"all",o);if(b){if(b.start.row<=r)break;if(b.isMultiLine())o=b.end.row;else if(i==g)break}l=o}}return new y(r,n,l,p.getLine(l).length)},this.getCommentRegionBlock=function(p,o,a){for(var i=o.search(/\s*$/),r=p.getLength(),n=a,l=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,d=1;++a<r;){o=p.getLine(a);var g=l.exec(o);if(g&&(g[1]?d--:d++,!d))break}var b=a;if(b>n)return new y(n,i,b,o.length)}}).call(f.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,s,A){var w=t("../../lib/oop"),y=t("./xml").FoldMode,S=t("./cstyle").FoldMode,f=s.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end))),this.xmlFoldMode=new y};w.inherits(f,S),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(p,o,a){var i=this.getFoldWidgetBase(p,o,a);return i||this.xmlFoldMode.getFoldWidget(p,o,a)},this.getFoldWidgetRange=function(p,o,a,i){var r=this.getFoldWidgetRangeBase(p,o,a,i);return r||this.xmlFoldMode.getFoldWidgetRange(p,o,a)}}).call(f.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(t,s,A){var w=t("../lib/oop"),y=t("./text").Mode,S=t("./javascript_highlight_rules").JavaScriptHighlightRules,f=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../worker/worker_client").WorkerClient,o=t("./behaviour/javascript").JavaScriptBehaviour,a=t("./folding/javascript").FoldMode,i=function(){this.HighlightRules=S,this.$outdent=new f,this.$behaviour=new o,this.foldingRules=new a};w.inherits(i,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(r,n,l){var d=this.$getIndent(n),g=this.getTokenizer().getLineTokens(n,r),b=g.tokens,R=g.state;if(b.length&&b[b.length-1].type=="comment")return d;if(r=="start"||r=="no_regex"){var $=n.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);$&&(d+=l)}else if(r=="doc-start"&&(R=="start"||R=="no_regex"))return"";return d},this.checkOutdent=function(r,n,l){return this.$outdent.checkOutdent(n,l)},this.autoOutdent=function(r,n,l){this.$outdent.autoOutdent(n,l)},this.createWorker=function(r){var n=new p(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return n.attachToDocument(r.getDocument()),n.on("annotate",function(l){r.setAnnotations(l.data)}),n.on("terminate",function(){r.clearAnnotations()}),n},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(i.prototype),s.Mode=i}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,s,A){var w={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}},y=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var S=document.createElement("c").style;for(var f in S)if(typeof S[f]=="string"){var p=f.replace(/[A-Z]/g,function(o){return"-"+o.toLowerCase()});w.hasOwnProperty(p)||(w[p]=1)}}this.completionsDefined=!0},this.getCompletions=function(S,f,p,o){if(this.completionsDefined||this.defineCompletions(),S==="ruleset"||f.$mode.$id=="ace/mode/scss"){var a=f.getLine(p.row).substr(0,p.column),i=/\([^)]*$/.test(a);return i&&(a=a.substr(a.lastIndexOf("(")+1)),/:[^;]+$/.test(a)?this.getPropertyValueCompletions(S,f,p,o):this.getPropertyCompletions(S,f,p,o,i)}return[]},this.getPropertyCompletions=function(S,f,p,o,a){a=a||!1;var i=Object.keys(w);return i.map(function(r){return{caption:r,snippet:r+": $0"+(a?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(S,f,p,o){var a=f.getLine(p.row).substr(0,p.column),i=(/([\w\-]+):[^:]*$/.exec(a)||{})[1];if(!i)return[];var r=[];return i in w&&typeof w[i]=="object"&&(r=Object.keys(w[i])),r.map(function(n){return{caption:n,snippet:n,meta:"property value",score:1e6}})}}).call(y.prototype),s.CssCompletions=y}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(t,s,A){var w=t("../../lib/oop");t("../behaviour").Behaviour;var y=t("./cstyle").CstyleBehaviour,S=t("../../token_iterator").TokenIterator,f=function(){this.inherit(y),this.add("colon","insertion",function(p,o,a,i,r){if(r===":"&&a.selection.isEmpty()){var n=a.getCursorPosition(),l=new S(i,n.row,n.column),d=l.getCurrentToken();if(d&&d.value.match(/\s+/)&&(d=l.stepBackward()),d&&d.type==="support.type"){var g=i.doc.getLine(n.row),b=g.substring(n.column,n.column+1);if(b===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(g.substring(n.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(p,o,a,i,r){var n=i.doc.getTextRange(r);if(!r.isMultiLine()&&n===":"){var l=a.getCursorPosition(),d=new S(i,l.row,l.column),g=d.getCurrentToken();if(g&&g.value.match(/\s+/)&&(g=d.stepBackward()),g&&g.type==="support.type"){var b=i.doc.getLine(r.start.row),R=b.substring(r.end.column,r.end.column+1);if(R===";")return r.end.column++,r}}}),this.add("semicolon","insertion",function(p,o,a,i,r){if(r===";"&&a.selection.isEmpty()){var n=a.getCursorPosition(),l=i.doc.getLine(n.row),d=l.substring(n.column,n.column+1);if(d===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(p,o,a,i,r){if(r==="!"&&a.selection.isEmpty()){var n=a.getCursorPosition(),l=i.doc.getLine(n.row);if(/^\s*(;|}|$)/.test(l.substring(n.column)))return{text:"!important",selection:[10,10]}}})};w.inherits(f,y),s.CssBehaviour=f}),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(t,s,A){var w=t("../lib/oop"),y=t("./text").Mode,S=t("./css_highlight_rules").CssHighlightRules,f=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../worker/worker_client").WorkerClient,o=t("./css_completions").CssCompletions,a=t("./behaviour/css").CssBehaviour,i=t("./folding/cstyle").FoldMode,r=function(){this.HighlightRules=S,this.$outdent=new f,this.$behaviour=new a,this.$completer=new o,this.foldingRules=new i};w.inherits(r,y),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(n,l,d){var g=this.$getIndent(l),b=this.getTokenizer().getLineTokens(l,n).tokens;if(b.length&&b[b.length-1].type=="comment")return g;var R=l.match(/^.*\{\s*$/);return R&&(g+=d),g},this.checkOutdent=function(n,l,d){return this.$outdent.checkOutdent(l,d)},this.autoOutdent=function(n,l,d){this.$outdent.autoOutdent(l,d)},this.getCompletions=function(n,l,d,g){return this.$completer.getCompletions(n,l,d,g)},this.createWorker=function(n){var l=new p(["ace"],"ace/mode/css_worker","Worker");return l.attachToDocument(n.getDocument()),l.on("annotate",function(d){n.setAnnotations(d.data)}),l.on("terminate",function(){n.clearAnnotations()}),l},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(r.prototype),s.Mode=r}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,s,A){var w=t("../../lib/oop"),y=t("./fold_mode").FoldMode,S=s.FoldMode=function(f,p){this.defaultMode=f,this.subModes=p};w.inherits(S,y),(function(){this.$getMode=function(f){typeof f!="string"&&(f=f[0]);for(var p in this.subModes)if(f.indexOf(p)===0)return this.subModes[p];return null},this.$tryMode=function(f,p,o,a){var i=this.$getMode(f);return i?i.getFoldWidget(p,o,a):""},this.getFoldWidget=function(f,p,o){return this.$tryMode(f.getState(o-1),f,p,o)||this.$tryMode(f.getState(o),f,p,o)||this.defaultMode.getFoldWidget(f,p,o)},this.getFoldWidgetRange=function(f,p,o){var a=this.$getMode(f.getState(o-1));return(!a||!a.getFoldWidget(f,p,o))&&(a=this.$getMode(f.getState(o))),(!a||!a.getFoldWidget(f,p,o))&&(a=this.defaultMode),a.getFoldWidgetRange(f,p,o)}}).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(t,s,A){var w=t("../../lib/oop"),y=t("./mixed").FoldMode,S=t("./xml").FoldMode,f=t("./cstyle").FoldMode,p=s.FoldMode=function(o,a){y.call(this,new S(o,a),{"js-":new f,"css-":new f})};w.inherits(p,y)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,s,A){function w(l,d){return l.type.lastIndexOf(d+".xml")>-1}function y(l,d){for(var g=new f(l,d.row,d.column),b=g.getCurrentToken();b&&!w(b,"tag-name");)b=g.stepBackward();if(b)return b.value}function S(l,d){for(var g=new f(l,d.row,d.column),b=g.getCurrentToken();b&&!w(b,"attribute-name");)b=g.stepBackward();if(b)return b.value}var f=t("../token_iterator").TokenIterator,p=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],o=["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"],a=p.concat(o),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),n=function(){};(function(){this.getCompletions=function(l,d,g,b){var R=d.getTokenAt(g.row,g.column);if(!R)return[];if(w(R,"tag-name")||w(R,"tag-open")||w(R,"end-tag-open"))return this.getTagCompletions(l,d,g,b);if(w(R,"tag-whitespace")||w(R,"attribute-name"))return this.getAttributeCompletions(l,d,g,b);if(w(R,"attribute-value"))return this.getAttributeValueCompletions(l,d,g,b);var $=d.getLine(g.row).substr(0,g.column);return/&[a-z]*$/i.test($)?this.getHTMLEntityCompletions(l,d,g,b):[]},this.getTagCompletions=function(l,d,g,b){return r.map(function(R){return{value:R,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(l,d,g,b){var R=y(d,g);if(!R)return[];var $=a;return R in i&&($=$.concat(Object.keys(i[R]))),$.map(function(_){return{caption:_,snippet:_+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(l,d,g,b){var R=y(d,g),$=S(d,g);if(!R)return[];var _=[];return R in i&&$ in i[R]&&typeof i[R][$]=="object"&&(_=Object.keys(i[R][$])),_.map(function(v){return{caption:v,snippet:v,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(l,d,g,b){var R=["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 R.map(function($){return{caption:$,snippet:$,meta:"html entity",score:1e6}})}}).call(n.prototype),s.HtmlCompletions=n}),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(t,s,A){var w=t("../lib/oop"),y=t("../lib/lang"),S=t("./text").Mode,f=t("./javascript").Mode,p=t("./css").Mode,o=t("./html_highlight_rules").HtmlHighlightRules,a=t("./behaviour/xml").XmlBehaviour,i=t("./folding/html").FoldMode,r=t("./html_completions").HtmlCompletions,n=t("../worker/worker_client").WorkerClient,l=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],d=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],g=function(b){this.fragmentContext=b&&b.fragmentContext,this.HighlightRules=o,this.$behaviour=new a,this.$completer=new r,this.createModeDelegates({"js-":f,"css-":p}),this.foldingRules=new i(this.voidElements,y.arrayToMap(d))};w.inherits(g,S),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=y.arrayToMap(l),this.getNextLineIndent=function(b,R,$){return this.$getIndent(R)},this.checkOutdent=function(b,R,$){return!1},this.getCompletions=function(b,R,$,_){return this.$completer.getCompletions(b,R,$,_)},this.createWorker=function(b){if(this.constructor==g){var R=new n(["ace"],"ace/mode/html_worker","Worker");return R.attachToDocument(b.getDocument()),this.fragmentContext&&R.call("setOptions",[{context:this.fragmentContext}]),R.on("error",function($){b.setAnnotations($.data)}),R.on("terminate",function(){b.clearAnnotations()}),R}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(g.prototype),s.Mode=g}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,s,A){var w=t("../lib/oop"),y=t("./text_highlight_rules").TextHighlightRules,S=s.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",f=s.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",p=function(){var o=this.createKeywordMapper({keyword:S,"support.function.builtin":f,"invalid.deprecated":"debugger"},"identifier"),a="(?:(?:[1-9]\\d*)|(?:0))",i="(?:\\.\\d+)",r="(?:\\d+)",n="(?:(?:"+r+"?"+i+")|(?:"+r+"\\.))",l="(?:(?:"+n+"|"+r+"))",d="(?:"+l+"|"+n+")",g="(?:&"+r+")",b="[a-zA-Z_][a-zA-Z0-9_]*",R="(?:"+b+"(?==))",$="(?:\\$(?:SHLVL|\\$|\\!|\\?))",_="(?:"+b+"\\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(v,T,E){var I=v[2]=="-"?"indentedHeredoc":"heredoc",M=v.split(this.splitRegex);return E.push(I,M[4]),[{type:"constant",value:M[1]},{type:"text",value:M[2]},{type:"string",value:M[3]},{type:"support.class",value:M[4]},{type:"string",value:M[5]}]},rules:{heredoc:[{onMatch:function(v,T,E){return v===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(v,T,E){return v===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(v,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:v}},{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:$},{token:"variable",regex:R},{include:"variables"},{token:"support.function",regex:_},{token:"support.function",regex:g},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:a+"\\b"},{token:o,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()};w.inherits(p,y),s.ShHighlightRules=p}),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(t,s,A){var w=t("../lib/oop"),y=t("./text").Mode,S=t("./sh_highlight_rules").ShHighlightRules,f=t("../range").Range,p=t("./folding/cstyle").FoldMode,o=function(){this.HighlightRules=S,this.foldingRules=new p,this.$behaviour=this.$defaultBehaviour};w.inherits(o,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(i,r,n){var l=this.$getIndent(r),d=this.getTokenizer().getLineTokens(r,i),g=d.tokens;if(g.length&&g[g.length-1].type=="comment")return l;if(i=="start"){var b=r.match(/^.*[\{\(\[:]\s*$/);b&&(l+=n)}return l};var a={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(i,r,n){if(n!==`\r
|
|
977
|
+
`&&n!=="\r"&&n!==`
|
|
978
|
+
`)return!1;var l=this.getTokenizer().getLineTokens(r.trim(),i).tokens;if(!l)return!1;do var d=l.pop();while(d&&(d.type=="comment"||d.type=="text"&&d.value.match(/^\s+$/)));return d?d.type=="keyword"&&a[d.value]:!1},this.autoOutdent=function(i,r,n){n+=1;var l=this.$getIndent(r.getLine(n)),d=r.getTabString();l.slice(-d.length)==d&&r.remove(new f(n,l.length-d.length,n,l.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(o.prototype),s.Mode=o}),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(t,s,A){var w=t("../lib/oop"),y=t("../lib/lang"),S=t("./text").Mode,f=t("./xml_highlight_rules").XmlHighlightRules,p=t("./behaviour/xml").XmlBehaviour,o=t("./folding/xml").FoldMode,a=t("../worker/worker_client").WorkerClient,i=function(){this.HighlightRules=f,this.$behaviour=new p,this.foldingRules=new o};w.inherits(i,S),(function(){this.voidElements=y.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(r){var n=new a(["ace"],"ace/mode/xml_worker","Worker");return n.attachToDocument(r.getDocument()),n.on("error",function(l){r.setAnnotations(l.data)}),n.on("terminate",function(){r.clearAnnotations()}),n},this.$id="ace/mode/xml"}).call(i.prototype),s.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(t,s,A){var w=t("../lib/oop"),y=t("./behaviour/cstyle").CstyleBehaviour,S=t("./text").Mode,f=t("./markdown_highlight_rules").MarkdownHighlightRules,p=t("./folding/markdown").FoldMode,o=function(){this.HighlightRules=f,this.createModeDelegates({javascript:t("./javascript").Mode,html:t("./html").Mode,bash:t("./sh").Mode,sh:t("./sh").Mode,xml:t("./xml").Mode,css:t("./css").Mode}),this.foldingRules=new p,this.$behaviour=new y({braces:!0})};w.inherits(o,S),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(a,i,r){if(a=="listblock"){var n=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(i);if(!n)return"";var l=n[2];return l||(l=parseInt(n[3],10)+1+"."),n[1]+l+n[4]}return this.$getIndent(i)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(o.prototype),s.Mode=o}),function(){ace.require(["ace/mode/markdown"],function(t){c&&(c.exports=t)})}()}(fc)),fc.exports}wx();var pc={exports:{}},Gd;function xx(){return Gd||(Gd=1,function(c,u){ace.define("ace/theme/twilight-css",["require","exports","module"],function(t,s,A){A.exports=`.ace-twilight .ace_gutter {
|
|
979
|
+
background: #232323;
|
|
980
|
+
color: #E2E2E2
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.ace-twilight .ace_print-margin {
|
|
984
|
+
width: 1px;
|
|
985
|
+
background: #232323
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.ace-twilight {
|
|
989
|
+
background-color: #141414;
|
|
990
|
+
color: #F8F8F8
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.ace-twilight .ace_cursor {
|
|
994
|
+
color: #A7A7A7
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.ace-twilight .ace_marker-layer .ace_selection {
|
|
998
|
+
background: rgba(221, 240, 255, 0.20)
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|
1002
|
+
box-shadow: 0 0 3px 0px #141414;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.ace-twilight .ace_marker-layer .ace_step {
|
|
1006
|
+
background: rgb(102, 82, 0)
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.ace-twilight .ace_marker-layer .ace_bracket {
|
|
1010
|
+
margin: -1px 0 0 -1px;
|
|
1011
|
+
border: 1px solid rgba(255, 255, 255, 0.25)
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.ace-twilight .ace_marker-layer .ace_active-line {
|
|
1015
|
+
background: rgba(255, 255, 255, 0.031)
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.ace-twilight .ace_gutter-active-line {
|
|
1019
|
+
background-color: rgba(255, 255, 255, 0.031)
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|
1023
|
+
border: 1px solid rgba(221, 240, 255, 0.20)
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.ace-twilight .ace_invisible {
|
|
1027
|
+
color: rgba(255, 255, 255, 0.25)
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.ace-twilight .ace_keyword,
|
|
1031
|
+
.ace-twilight .ace_meta {
|
|
1032
|
+
color: #CDA869
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.ace-twilight .ace_constant,
|
|
1036
|
+
.ace-twilight .ace_constant.ace_character,
|
|
1037
|
+
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|
1038
|
+
.ace-twilight .ace_constant.ace_other,
|
|
1039
|
+
.ace-twilight .ace_heading,
|
|
1040
|
+
.ace-twilight .ace_markup.ace_heading,
|
|
1041
|
+
.ace-twilight .ace_support.ace_constant {
|
|
1042
|
+
color: #CF6A4C
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.ace-twilight .ace_invalid.ace_illegal {
|
|
1046
|
+
color: #F8F8F8;
|
|
1047
|
+
background-color: rgba(86, 45, 86, 0.75)
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.ace-twilight .ace_invalid.ace_deprecated {
|
|
1051
|
+
text-decoration: underline;
|
|
1052
|
+
font-style: italic;
|
|
1053
|
+
color: #D2A8A1
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.ace-twilight .ace_support {
|
|
1057
|
+
color: #9B859D
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.ace-twilight .ace_fold {
|
|
1061
|
+
background-color: #AC885B;
|
|
1062
|
+
border-color: #F8F8F8
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.ace-twilight .ace_support.ace_function {
|
|
1066
|
+
color: #DAD085
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.ace-twilight .ace_list,
|
|
1070
|
+
.ace-twilight .ace_markup.ace_list,
|
|
1071
|
+
.ace-twilight .ace_storage {
|
|
1072
|
+
color: #F9EE98
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.ace-twilight .ace_entity.ace_name.ace_function,
|
|
1076
|
+
.ace-twilight .ace_meta.ace_tag {
|
|
1077
|
+
color: #AC885B
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.ace-twilight .ace_string {
|
|
1081
|
+
color: #8F9D6A
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.ace-twilight .ace_string.ace_regexp {
|
|
1085
|
+
color: #E9C062
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.ace-twilight .ace_comment {
|
|
1089
|
+
font-style: italic;
|
|
1090
|
+
color: #5F5A60
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.ace-twilight .ace_variable {
|
|
1094
|
+
color: #7587A6
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.ace-twilight .ace_xml-pe {
|
|
1098
|
+
color: #494949
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.ace-twilight .ace_indent-guide {
|
|
1102
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.ace-twilight .ace_indent-guide-active {
|
|
1106
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1107
|
+
}
|
|
1108
|
+
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(t,s,A){s.isDark=!0,s.cssClass="ace-twilight",s.cssText=t("./twilight-css");var w=t("../lib/dom");w.importCssString(s.cssText,s.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(t){c&&(c.exports=t)})}()}(pc)),pc.exports}xx();var gc={exports:{}},Kd;function _x(){return Kd||(Kd=1,function(c,u){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(t,s,A){function w(v){var T=new Date().toLocaleString("en-us",v);return T.length==1?"0"+T:T}var y=t("./lib/dom"),S=t("./lib/oop"),f=t("./lib/event_emitter").EventEmitter,p=t("./lib/lang"),o=t("./range").Range,a=t("./range_list").RangeList,i=t("./keyboard/hash_handler").HashHandler,r=t("./tokenizer").Tokenizer,n=t("./clipboard"),l={CURRENT_WORD:function(v){return v.session.getTextRange(v.session.getWordRange())},SELECTION:function(v,T,E){var I=v.session.getTextRange();return E?I.replace(/\n\r?([ \t]*\S)/g,`
|
|
1109
|
+
`+E+"$1"):I},CURRENT_LINE:function(v){return v.session.getLine(v.getCursorPosition().row)},PREV_LINE:function(v){return v.session.getLine(v.getCursorPosition().row-1)},LINE_INDEX:function(v){return v.getCursorPosition().row},LINE_NUMBER:function(v){return v.getCursorPosition().row+1},SOFT_TABS:function(v){return v.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(v){return v.session.getTabSize()},CLIPBOARD:function(v){return n.getText&&n.getText()},FILENAME:function(v){return/[^/\\]*$/.exec(this.FILEPATH(v))[0]},FILENAME_BASE:function(v){return/[^/\\]*$/.exec(this.FILEPATH(v))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(v){return this.FILEPATH(v).replace(/[^/\\]*$/,"")},FILEPATH:function(v){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(v){var T=v.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(v){var T=v.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(v){var T=v.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:w.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:w.bind(null,{year:"2-digit"}),CURRENT_MONTH:w.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:w.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:w.bind(null,{month:"short"}),CURRENT_DATE:w.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:w.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:w.bind(null,{weekday:"short"}),CURRENT_HOUR:w.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:w.bind(null,{minute:"2-digit"}),CURRENT_SECOND:w.bind(null,{second:"2-digit"})};l.SELECTED_TEXT=l.SELECTION;var d=function(){function v(){this.snippetMap={},this.snippetNameMap={},this.variables=l}return v.prototype.getTokenizer=function(){return v.$tokenizer||this.createTokenizer()},v.prototype.createTokenizer=function(){function T(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function E(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var I={regex:"/("+E("/")+"+)/",onMatch:function(M,N,k){var m=k[0];return m.fmtString=!0,m.guard=M.slice(1,-1),m.flag="",""},next:"formatString"};return v.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(M,N,k){var m=M[1];return(m=="}"&&k.length||"`$\\".indexOf(m)!=-1)&&(M=m),[M]}},{regex:/}/,onMatch:function(M,N,k){return[k.length?k.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,N,k){var m=T(M.substr(1));return k.unshift(m[0]),m},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(M,N,k){var m=M.slice(1,-1).replace(/\\[,|\\]|,/g,function(x){return x.length==2?x[1]:"\0"}).split("\0").map(function(x){return{value:x}});return k[0].choices=m,[m[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,N,k){return k.length&&k[0].expectElse?(k[0].expectElse=!1,k[0].ifEnd={elseEnd:k[0]},[k[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,N,k){var m=M[1];return m=="}"&&k.length||"`$\\".indexOf(m)!=-1?M=m:m=="n"?M=`
|
|
1110
|
+
`:m=="t"?M=" ":"ulULE".indexOf(m)!=-1&&(M={changeCase:m,local:m>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,N,k){var m=k.shift();return m&&(m.flag=M.slice(1,-1)),this.next=m&&m.tabstopId?"start":"",[m||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,N,k){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,N,k){var m={text:M.slice(2)};return k.unshift(m),[m]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,N,k){var m=k.shift();return this.next=m&&m.tabstopId?"start":"",[m||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,N,k){var m=k[0];return m.formatFunction=M.slice(2,-1),[k.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(M,N,k){M[1]=="+"&&(k[0].ifEnd=k[0]),M[1]=="?"&&(k[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),v.$tokenizer},v.prototype.tokenizeTmSnippet=function(T,E){return this.getTokenizer().getLineTokens(T,E).tokens.map(function(I){return I.value||I})},v.prototype.getVariableValue=function(T,E,I){if(/^\d+$/.test(E))return(this.variables.__||{})[E]||"";if(/^[A-Z]\d+$/.test(E))return(this.variables[E[0]+"__"]||{})[E.substr(1)]||"";if(E=E.replace(/^TM_/,""),!this.variables.hasOwnProperty(E))return"";var M=this.variables[E];return typeof M=="function"&&(M=this.variables[E](T,E,I)),M??""},v.prototype.tmStrFormat=function(T,E,I){if(!E.fmt)return T;var M=E.flag||"",N=E.guard;N=new RegExp(N,M.replace(/[^gim]/g,""));var k=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,m=this,x=T.replace(N,function(){var L=m.variables.__;m.variables.__=[].slice.call(arguments);for(var O=m.resolveVariables(k,I),F="E",W=0;W<O.length;W++){var U=O[W];if(typeof U=="object")if(O[W]="",U.changeCase&&U.local){var V=O[W+1];V&&typeof V=="string"&&(U.changeCase=="u"?O[W]=V[0].toUpperCase():O[W]=V[0].toLowerCase(),O[W+1]=V.substr(1))}else U.changeCase&&(F=U.changeCase);else F=="U"?O[W]=U.toUpperCase():F=="L"&&(O[W]=U.toLowerCase())}return m.variables.__=L,O.join("")});return x},v.prototype.tmFormatFunction=function(T,E,I){return E.formatFunction=="upcase"?T.toUpperCase():E.formatFunction=="downcase"?T.toLowerCase():T},v.prototype.resolveVariables=function(T,E){function I(F){var W=T.indexOf(F,m+1);W!=-1&&(m=W)}for(var M=[],N="",k=!0,m=0;m<T.length;m++){var x=T[m];if(typeof x=="string"){M.push(x),x==`
|
|
1111
|
+
`?(k=!0,N=""):k&&(N=/^\t*/.exec(x)[0],k=/\S/.test(x));continue}if(x){if(k=!1,x.fmtString){var L=T.indexOf(x,m+1);L==-1&&(L=T.length),x.fmt=T.slice(m+1,L),m=L}if(x.text){var O=this.getVariableValue(E,x.text,N)+"";x.fmtString&&(O=this.tmStrFormat(O,x,E)),x.formatFunction&&(O=this.tmFormatFunction(O,x,E)),O&&!x.ifEnd?(M.push(O),I(x)):!O&&x.ifEnd&&I(x.ifEnd)}else x.elseEnd?I(x.elseEnd):(x.tabstopId!=null||x.changeCase!=null)&&M.push(x)}}return M},v.prototype.getDisplayTextForSnippet=function(T,E){var I=g.call(this,T,E);return I.text},v.prototype.insertSnippetForSelection=function(T,E,I){I===void 0&&(I={});var M=g.call(this,T,E,I),N=T.getSelectionRange(),k=T.session.replace(N,M.text),m=new b(T),x=T.inVirtualSelectionMode&&T.selection.index;m.addTabstops(M.tabstops,N.start,k,x)},v.prototype.insertSnippet=function(T,E,I){I===void 0&&(I={});var M=this;if(T.inVirtualSelectionMode)return M.insertSnippetForSelection(T,E,I);T.forEachSelection(function(){M.insertSnippetForSelection(T,E,I)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},v.prototype.$getScope=function(T){var E=T.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!T.session.$mode.inlinePhp&&(E="html");var I=T.getCursorPosition(),M=T.session.getState(I.row);typeof M=="object"&&(M=M[0]),M.substring&&(M.substring(0,3)=="js-"?E="javascript":M.substring(0,4)=="css-"?E="css":M.substring(0,4)=="php-"&&(E="php"))}return E},v.prototype.getActiveScopes=function(T){var E=this.$getScope(T),I=[E],M=this.snippetMap;return M[E]&&M[E].includeScopes&&I.push.apply(I,M[E].includeScopes),I.push("_"),I},v.prototype.expandWithTab=function(T,E){var I=this,M=T.forEachSelection(function(){return I.expandSnippetForSelection(T,E)},null,{keepOrder:!0});return M&&T.tabstopManager&&T.tabstopManager.tabNext(),M},v.prototype.expandSnippetForSelection=function(T,E){var I=T.getCursorPosition(),M=T.session.getLine(I.row),N=M.substring(0,I.column),k=M.substr(I.column),m=this.snippetMap,x;return this.getActiveScopes(T).some(function(L){var O=m[L];return O&&(x=this.findMatchingSnippet(O,N,k)),!!x},this),x?(E&&E.dryRun||(T.session.doc.removeInLine(I.row,I.column-x.replaceBefore.length,I.column+x.replaceAfter.length),this.variables.M__=x.matchBefore,this.variables.T__=x.matchAfter,this.insertSnippetForSelection(T,x.content),this.variables.M__=this.variables.T__=null),!0):!1},v.prototype.findMatchingSnippet=function(T,E,I){for(var M=T.length;M--;){var N=T[M];if(!(N.startRe&&!N.startRe.test(E))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(E):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(E)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},v.prototype.register=function(T,E){function I(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function M(L,O,F){return L=I(L),O=I(O),L=O+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function N(L){L.scope||(L.scope=E||"_"),E=L.scope,k[E]||(k[E]=[],m[E]={});var O=m[E];if(L.name){var F=O[L.name];F&&x.unregister(F),O[L.name]=L}k[E].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
|
|
1112
|
+
`):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=p.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=M(L.trigger,L.guard),L.triggerRe=new RegExp(L.trigger),L.endRe=M(L.endTrigger,L.endGuard),L.endTriggerRe=new RegExp(L.endTrigger))}var k=this.snippetMap,m=this.snippetNameMap,x=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(L){N(T[L])}),this._signal("registerSnippets",{scope:E})},v.prototype.unregister=function(T,E){function I(k){var m=N[k.scope||E];if(m&&m[k.name]){delete m[k.name];var x=M[k.scope||E],L=x&&x.indexOf(k);L>=0&&x.splice(L,1)}}var M=this.snippetMap,N=this.snippetNameMap;T.content?I(T):Array.isArray(T)&&T.forEach(I)},v.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var E=[],I={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=M.exec(T);){if(N[1])try{I=JSON.parse(N[1]),E.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),E.push(I),I={};else{var k=N[2],m=N[3];if(k=="regex"){var x=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=x.exec(m)[1],I.trigger=x.exec(m)[1],I.endTrigger=x.exec(m)[1],I.endGuard=x.exec(m)[1]}else k=="snippet"?(I.tabTrigger=m.match(/^\S*/)[0],I.name||(I.name=m)):k&&(I[k]=m)}}return E},v.prototype.getSnippetByName=function(T,E){var I=this.snippetNameMap,M;return this.getActiveScopes(E).some(function(N){var k=I[N];return k&&(M=k[T]),!!M},this),M},v}();S.implement(d.prototype,f);var g=function(v,T,E){function I(X){for(var ae=[],ge=0;ge<X.length;ge++){var me=X[ge];if(typeof me=="object"){if(O[me.tabstopId])continue;var fe=X.lastIndexOf(me,ge-1);me=ae[fe]||{tabstopId:me.tabstopId}}ae[ge]=me}return ae}E===void 0&&(E={});var M=v.getCursorPosition(),N=v.session.getLine(M.row),k=v.session.getTabString(),m=N.match(/^\s*/)[0];M.column<m.length&&(m=m.slice(0,M.column)),T=T.replace(/\r/g,"");var x=this.tokenizeTmSnippet(T);x=this.resolveVariables(x,v),x=x.map(function(X){return X==`
|
|
1113
|
+
`&&!E.excludeExtraIndent?X+m:typeof X=="string"?X.replace(/\t/g,k):X});var L=[];x.forEach(function(X,ae){if(typeof X=="object"){var ge=X.tabstopId,me=L[ge];if(me||(me=L[ge]=[],me.index=ge,me.value="",me.parents={}),me.indexOf(X)===-1){X.choices&&!me.choices&&(me.choices=X.choices),me.push(X);var fe=x.indexOf(X,ae+1);if(fe!==-1){var _e=x.slice(ae+1,fe),Xe=_e.some(function(At){return typeof At=="object"});Xe&&!me.value?me.value=_e:_e.length&&(!me.value||typeof me.value!="string")&&(me.value=_e.join(""))}}}}),L.forEach(function(X){X.length=0});for(var O={},F=0;F<x.length;F++){var W=x[F];if(typeof W=="object"){var U=W.tabstopId,V=L[U],G=x.indexOf(W,F+1);if(O[U]){O[U]===W&&(delete O[U],Object.keys(O).forEach(function(X){V.parents[X]=!0}));continue}O[U]=W;var J=V.value;typeof J!="string"?J=I(J):W.fmt&&(J=this.tmStrFormat(J,W,v)),x.splice.apply(x,[F+1,Math.max(0,G-F)].concat(J,W)),V.indexOf(W)===-1&&V.push(W)}}var K=0,Q=0,ie="";return x.forEach(function(X){if(typeof X=="string"){var ae=X.split(`
|
|
1114
|
+
`);ae.length>1?(Q=ae[ae.length-1].length,K+=ae.length-1):Q+=X.length,ie+=X}else X&&(X.start?X.end={row:K,column:Q}:X.start={row:K,column:Q})}),{text:ie,tabstops:L,tokens:x}},b=function(){function v(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=p.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return v.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.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)},v.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},v.prototype.onChange=function(T){for(var E=T.action[0]=="r",I=this.selectedTabstop||{},M=I.parents||{},N=this.tabstops.slice(),k=0;k<N.length;k++){var m=N[k],x=m==I||M[m.index];if(m.rangeList.$bias=x?0:1,T.action=="remove"&&m!==I){var L=m.parents&&m.parents[I.index],O=m.rangeList.pointIndex(T.start,L);O=O<0?-O-1:O+1;var F=m.rangeList.pointIndex(T.end,L);F=F<0?-F-1:F-1;for(var W=m.rangeList.ranges.slice(O,F),U=0;U<W.length;U++)this.removeRange(W[U])}m.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},v.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var E=this.session,I=E.getTextRange(T.firstNonLinked),M=0;M<T.length;M++){var N=T[M];if(N.linked){var k=N.original,m=s.snippetManager.tmStrFormat(I,k,this.editor);E.replace(N,m)}}this.$inChange=!1}},v.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},v.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,E=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),M=0;M<this.ranges.length;M++)if(!this.ranges[M].linked){var N=this.ranges[M].contains(T.row,T.column),k=I||this.ranges[M].contains(E.row,E.column);if(N&&k)return}this.detach()}},v.prototype.onChangeSession=function(){this.detach()},v.prototype.tabNext=function(T){var E=this.tabstops.length,I=this.index+(T||1);I=Math.min(Math.max(I,1),E),I==E&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},v.prototype.selectTabstop=function(T){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=T,E=this.tabstops[this.index],!(!E||!E.length)){this.selectedTabstop=E;var I=E.firstNonLinked||E;if(E.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var M=this.editor.multiSelect;M.toSingleRange(I);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||M.addRange(E[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},v.prototype.addTabstops=function(T,E,I){var M=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=o.fromPoints(I,I);$(N.start,E),$(N.end,E),T[0]=[N],T[0].index=0}var k=this.index,m=[k+1,0],x=this.ranges,L=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var W=this.$openTabstops[F]||O;W.snippetId=L;for(var U=0;U<O.length;U++){var V=O[U],G=o.fromPoints(V.start,V.end||V.start);R(G.start,E),R(G.end,E),G.original=V,G.tabstop=W,x.push(G),W!=O?W.unshift(G):W[U]=G,V.fmtString||W.firstNonLinked&&M?(G.linked=!0,W.hasLinkedRanges=!0):W.firstNonLinked||(W.firstNonLinked=G)}W.firstNonLinked||(W.hasLinkedRanges=!1),W===O&&(m.push(W),this.$openTabstops[F]=W),this.addTabstopMarkers(W),W.rangeList=W.rangeList||new a,W.rangeList.$bias=0,W.rangeList.addList(W)},this),m.length>2&&(this.tabstops.length&&m.push(m.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,m))},v.prototype.addTabstopMarkers=function(T){var E=this.session;T.forEach(function(I){I.markerId||(I.markerId=E.addMarker(I,"ace_snippet-marker","text"))})},v.prototype.removeTabstopMarkers=function(T){var E=this.session;T.forEach(function(I){E.removeMarker(I.markerId),I.markerId=null})},v.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(E){E.snippetId===T?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},v.prototype.removeRange=function(T){var E=T.tabstop.indexOf(T);E!=-1&&T.tabstop.splice(E,1),E=this.ranges.indexOf(T),E!=-1&&this.ranges.splice(E,1),E=T.tabstop.rangeList.ranges.indexOf(T),E!=-1&&T.tabstop.splice(E,1),this.session.removeMarker(T.markerId),T.tabstop.length||(E=this.tabstops.indexOf(T.tabstop),E!=-1&&this.tabstops.splice(E,1),this.tabstops.length||this.detach())},v}();b.prototype.keyboardHandler=new i,b.prototype.keyboardHandler.bindKeys({Tab:function(v){s.snippetManager&&s.snippetManager.expandWithTab(v)||(v.tabstopManager.tabNext(1),v.renderer.scrollCursorIntoView())},"Shift-Tab":function(v){v.tabstopManager.tabNext(-1),v.renderer.scrollCursorIntoView()},Esc:function(v){v.tabstopManager.detach()}});var R=function(v,T){v.row==0&&(v.column+=T.column),v.row+=T.row},$=function(v,T){v.row==T.row&&(v.column-=T.column),v.row-=T.row};y.importCssString(`
|
|
1115
|
+
.ace_snippet-marker {
|
|
1116
|
+
-moz-box-sizing: border-box;
|
|
1117
|
+
box-sizing: border-box;
|
|
1118
|
+
background: rgba(194, 193, 208, 0.09);
|
|
1119
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1120
|
+
position: absolute;
|
|
1121
|
+
}`,"snippets.css",!1),s.snippetManager=new d;var _=t("./editor").Editor;(function(){this.insertSnippet=function(v,T){return s.snippetManager.insertSnippet(this,v,T)},this.expandSnippet=function(v){return s.snippetManager.expandWithTab(this,v)}}).call(_.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(t,s,A){var w=t("../virtual_renderer").VirtualRenderer,y=t("../editor").Editor,S=t("../range").Range,f=t("../lib/event"),p=t("../lib/lang"),o=t("../lib/dom"),a=t("../config").nls,i=t("./../lib/useragent"),r=function(R){return"suggest-aria-id:".concat(R)},n=i.isSafari?"menu":"listbox",l=i.isSafari?"menuitem":"option",d=i.isSafari?"aria-current":"aria-selected",g=function(R){var $=new w(R);$.$maxLines=4;var _=new y($);return _.setHighlightActiveLine(!1),_.setShowPrintMargin(!1),_.renderer.setShowGutter(!1),_.renderer.setHighlightGutterLine(!1),_.$mouseHandler.$focusTimeout=0,_.$highlightTagPending=!0,_},b=function(){function R($){var _=o.createElement("div"),v=g(_);$&&$.appendChild(_),_.style.display="none",v.renderer.content.style.cursor="default",v.renderer.setStyle("ace_autocomplete"),v.renderer.$textLayer.element.setAttribute("role",n),v.renderer.$textLayer.element.setAttribute("aria-roledescription",a("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),v.renderer.$textLayer.element.setAttribute("aria-label",a("autocomplete.popup.aria-label","Autocomplete suggestions")),v.renderer.textarea.setAttribute("aria-hidden","true"),v.setOption("displayIndentGuides",!1),v.setOption("dragDelay",150);var T=function(){};v.focus=T,v.$isFocused=!0,v.renderer.$cursorLayer.restartTimer=T,v.renderer.$cursorLayer.element.style.opacity="0",v.renderer.$maxLines=8,v.renderer.$keepTextAreaAtCursor=!1,v.setHighlightActiveLine(!1),v.session.highlight(""),v.session.$searchHighlight.clazz="ace_highlight-marker",v.on("mousedown",function(x){var L=x.getDocumentPosition();v.selection.moveToPosition(L),M.start.row=M.end.row=L.row,x.stop()});var E,I=new S(-1,0,-1,1/0),M=new S(-1,0,-1,1/0);M.id=v.session.addMarker(M,"ace_active-line","fullLine"),v.setSelectOnHover=function(x){x?I.id&&(v.session.removeMarker(I.id),I.id=null):I.id=v.session.addMarker(I,"ace_line-hover","fullLine")},v.setSelectOnHover(!1),v.on("mousemove",function(x){if(!E){E=x;return}if(!(E.x==x.x&&E.y==x.y)){E=x,E.scrollTop=v.renderer.scrollTop,v.isMouseOver=!0;var L=E.getDocumentPosition().row;I.start.row!=L&&(I.id||v.setRow(L),k(L))}}),v.renderer.on("beforeRender",function(){if(E&&I.start.row!=-1){E.$pos=null;var x=E.getDocumentPosition().row;I.id||v.setRow(x),k(x,!0)}}),v.renderer.on("afterRender",function(){for(var x=v.renderer.$textLayer,L=x.config.firstRow,O=x.config.lastRow;L<=O;L++){var F=x.element.childNodes[L-x.config.firstRow],W=v.getData(L),U="".concat(W.caption||W.value).concat(W.meta?", ".concat(W.meta):"");F.setAttribute("role",l),F.setAttribute("aria-roledescription",a("autocomplete.popup.item.aria-roledescription","item")),F.setAttribute("aria-label",U),F.setAttribute("aria-setsize",v.data.length),F.setAttribute("aria-describedby","doc-tooltip"),F.setAttribute("aria-posinset",L+1);var V=F.querySelectorAll(".ace_completion-highlight");V.forEach(function(G){G.setAttribute("role","mark")})}}),v.renderer.on("afterRender",function(){var x=v.getRow(),L=v.renderer.$textLayer,O=L.element.childNodes[x-L.config.firstRow],F=document.activeElement;if(O!==v.selectedNode&&v.selectedNode&&(o.removeCssClass(v.selectedNode,"ace_selected"),v.selectedNode.removeAttribute(d),v.selectedNode.removeAttribute("id")),F.removeAttribute("aria-activedescendant"),v.selectedNode=O,O){var W=r(x);o.addCssClass(O,"ace_selected"),O.id=W,L.element.setAttribute("aria-activedescendant",W),F.setAttribute("aria-activedescendant",W),O.setAttribute(d,"true")}});var N=function(){k(-1)},k=function(x,L){x!==I.start.row&&(I.start.row=I.end.row=x,L||v.session._emit("changeBackMarker"),v._emit("changeHoverMarker"))};v.getHoveredRow=function(){return I.start.row},f.addListener(v.container,"mouseout",function(){v.isMouseOver=!1,N()}),v.on("hide",N),v.on("changeSelection",N),v.session.doc.getLength=function(){return v.data.length},v.session.doc.getLine=function(x){var L=v.data[x];return typeof L=="string"?L:L&&L.value||""};var m=v.session.bgTokenizer;return m.$tokenizeRow=function(x){function L(X,ae){X&&F.push({type:(O.className||"")+(ae||""),value:X})}var O=v.data[x],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var W=O.caption||O.value||O.name,U=W.toLowerCase(),V=(v.filterText||"").toLowerCase(),G=0,J=0,K=0;K<=V.length;K++)if(K!=J&&(O.matchMask&1<<K||K==V.length)){var Q=V.slice(J,K);J=K;var ie=U.indexOf(Q,G);if(ie==-1)continue;L(W.slice(G,ie),""),G=ie+Q.length,L(W.slice(ie,G),"completion-highlight")}return L(W.slice(G,W.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},m.$updateOnChange=T,m.start=T,v.session.$computeWidth=function(){return this.screenWidth=0},v.isOpen=!1,v.isTopdown=!1,v.autoSelect=!0,v.filterText="",v.isMouseOver=!1,v.data=[],v.setData=function(x,L){v.filterText=L||"",v.setValue(p.stringRepeat(`
|
|
1122
|
+
`,x.length),-1),v.data=x||[],v.setRow(0)},v.getData=function(x){return v.data[x]},v.getRow=function(){return M.start.row},v.setRow=function(x){x=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,x)),M.start.row!=x&&(v.selection.clearSelection(),M.start.row=M.end.row=x||0,v.session._emit("changeBackMarker"),v.moveCursorTo(x||0,0),v.isOpen&&v._signal("select"))},v.on("changeSelection",function(){v.isOpen&&v.setRow(v.selection.lead.row),v.renderer.scrollCursorIntoView()}),v.hide=function(){this.container.style.display="none",v.anchorPos=null,v.anchor=null,v.isOpen&&(v.isOpen=!1,this._signal("hide"))},v.tryShow=function(x,L,O,F){if(!F&&v.isOpen&&v.anchorPos&&v.anchor&&v.anchorPos.top===x.top&&v.anchorPos.left===x.left&&v.anchor===O)return!0;var W=this.container,U=window.innerHeight,V=window.innerWidth,G=this.renderer,J=G.$maxLines*L*1.4,K={top:0,bottom:0},Q=U-x.top-3*this.$borderSize-L,ie=x.top-3*this.$borderSize;O||(ie<=Q||Q>=J?O="bottom":O="top"),O==="top"?(K.bottom=x.top-this.$borderSize,K.top=K.bottom-J):O==="bottom"&&(K.top=x.top+L+this.$borderSize,K.bottom=K.top+J);var X=K.top>=0&&K.bottom<=U;if(!F&&!X)return!1;X?G.$maxPixelHeight=null:O==="top"?G.$maxPixelHeight=ie:G.$maxPixelHeight=Q,O==="top"?(W.style.top="",W.style.bottom=U-K.bottom+"px",v.isTopdown=!1):(W.style.top=K.top+"px",W.style.bottom="",v.isTopdown=!0),W.style.display="";var ae=x.left;return ae+W.offsetWidth>V&&(ae=V-W.offsetWidth),W.style.left=ae+"px",W.style.right="",v.isOpen||(v.isOpen=!0,this._signal("show"),E=null),v.anchorPos=x,v.anchor=O,!0},v.show=function(x,L,O){this.tryShow(x,L,O?"bottom":void 0,!0)},v.goTo=function(x){var L=this.getRow(),O=this.session.getLength()-1;switch(x){case"up":L=L<=0?O:L-1;break;case"down":L=L>=O?-1:L+1;break;case"start":L=0;break;case"end":L=O}this.setRow(L)},v.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},v.$imageSize=0,v.$borderSize=1,v}return R}();o.importCssString(`
|
|
1123
|
+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1124
|
+
background-color: #CAD6FA;
|
|
1125
|
+
z-index: 1;
|
|
1126
|
+
}
|
|
1127
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1128
|
+
background-color: #3a674e;
|
|
1129
|
+
}
|
|
1130
|
+
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1131
|
+
border: 1px solid #abbffe;
|
|
1132
|
+
margin-top: -1px;
|
|
1133
|
+
background: rgba(233,233,253,0.4);
|
|
1134
|
+
position: absolute;
|
|
1135
|
+
z-index: 2;
|
|
1136
|
+
}
|
|
1137
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1138
|
+
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
1139
|
+
background: rgba(58, 103, 78, 0.62);
|
|
1140
|
+
}
|
|
1141
|
+
.ace_completion-meta {
|
|
1142
|
+
opacity: 0.5;
|
|
1143
|
+
margin-left: 0.9em;
|
|
1144
|
+
}
|
|
1145
|
+
.ace_completion-message {
|
|
1146
|
+
margin-left: 0.9em;
|
|
1147
|
+
color: blue;
|
|
1148
|
+
}
|
|
1149
|
+
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1150
|
+
color: #2d69c7;
|
|
1151
|
+
}
|
|
1152
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1153
|
+
color: #93ca12;
|
|
1154
|
+
}
|
|
1155
|
+
.ace_editor.ace_autocomplete {
|
|
1156
|
+
width: 300px;
|
|
1157
|
+
z-index: 200000;
|
|
1158
|
+
border: 1px lightgray solid;
|
|
1159
|
+
position: fixed;
|
|
1160
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
1161
|
+
line-height: 1.4;
|
|
1162
|
+
background: #fefefe;
|
|
1163
|
+
color: #111;
|
|
1164
|
+
}
|
|
1165
|
+
.ace_dark.ace_editor.ace_autocomplete {
|
|
1166
|
+
border: 1px #484747 solid;
|
|
1167
|
+
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
1168
|
+
line-height: 1.4;
|
|
1169
|
+
background: #25282c;
|
|
1170
|
+
color: #c1c1c1;
|
|
1171
|
+
}
|
|
1172
|
+
.ace_autocomplete .ace_text-layer {
|
|
1173
|
+
width: calc(100% - 8px);
|
|
1174
|
+
}
|
|
1175
|
+
.ace_autocomplete .ace_line {
|
|
1176
|
+
display: flex;
|
|
1177
|
+
align-items: center;
|
|
1178
|
+
}
|
|
1179
|
+
.ace_autocomplete .ace_line > * {
|
|
1180
|
+
min-width: 0;
|
|
1181
|
+
flex: 0 0 auto;
|
|
1182
|
+
}
|
|
1183
|
+
.ace_autocomplete .ace_line .ace_ {
|
|
1184
|
+
flex: 0 1 auto;
|
|
1185
|
+
overflow: hidden;
|
|
1186
|
+
text-overflow: ellipsis;
|
|
1187
|
+
}
|
|
1188
|
+
.ace_autocomplete .ace_completion-spacer {
|
|
1189
|
+
flex: 1;
|
|
1190
|
+
}
|
|
1191
|
+
.ace_autocomplete.ace_loading:after {
|
|
1192
|
+
content: "";
|
|
1193
|
+
position: absolute;
|
|
1194
|
+
top: 0px;
|
|
1195
|
+
height: 2px;
|
|
1196
|
+
width: 8%;
|
|
1197
|
+
background: blue;
|
|
1198
|
+
z-index: 100;
|
|
1199
|
+
animation: ace_progress 3s infinite linear;
|
|
1200
|
+
animation-delay: 300ms;
|
|
1201
|
+
transform: translateX(-100%) scaleX(1);
|
|
1202
|
+
}
|
|
1203
|
+
@keyframes ace_progress {
|
|
1204
|
+
0% { transform: translateX(-100%) scaleX(1) }
|
|
1205
|
+
50% { transform: translateX(625%) scaleX(2) }
|
|
1206
|
+
100% { transform: translateX(1500%) scaleX(3) }
|
|
1207
|
+
}
|
|
1208
|
+
@media (prefers-reduced-motion) {
|
|
1209
|
+
.ace_autocomplete.ace_loading:after {
|
|
1210
|
+
transform: translateX(625%) scaleX(2);
|
|
1211
|
+
animation: none;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
`,"autocompletion.css",!1),s.AcePopup=b,s.$singleLineEditor=g,s.getAriaId=r}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,s,A){var w=function(){function y(S){this.editor=S,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return y.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 p=this.popup.getRow(),o=this.popup.renderer.$textLayer,a=o.element.childNodes[p-o.config.firstRow];if(a){for(var i="doc-tooltip ",r=0;r<this._lines.length;r++)i+="ace-inline-screenreader-line-".concat(r," ");a.setAttribute("aria-describedby",i)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=S.split(/\r\n|\r|\n/);var f=this.createCodeBlock();this.screenReaderDiv.appendChild(f)},y.prototype.destroy=function(){this.screenReaderDiv.remove()},y.prototype.createCodeBlock=function(){var S=document.createElement("pre");S.setAttribute("id","ace-inline-screenreader");for(var f=0;f<this._lines.length;f++){var p=document.createElement("code");p.setAttribute("id","ace-inline-screenreader-line-".concat(f));var o=document.createTextNode(this._lines[f]);p.appendChild(o),S.appendChild(p)}return S},y}();s.AceInlineScreenReader=w}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,s,A){var w=t("../snippets").snippetManager,y=t("./inline_screenreader").AceInlineScreenReader,S=function(){function f(){this.editor=null}return f.prototype.show=function(p,o,a){if(a=a||"",p&&this.editor&&this.editor!==p&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!p||!o)return!1;this.inlineScreenReader||(this.inlineScreenReader=new y(p));var i=o.snippet?w.getDisplayTextForSnippet(p,o.snippet):o.value;return o.hideInlinePreview||!i||!i.startsWith(a)?!1:(this.editor=p,this.inlineScreenReader.setScreenReaderContent(i),i=i.slice(a.length),i===""?p.removeGhostText():p.setGhostText(i),!0)},f.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},f.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},f.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},f}();s.AceInline=S}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,s,A){s.parForEach=function(y,S,f){var p=0,o=y.length;o===0&&f();for(var a=0;a<o;a++)S(y[a],function(i,r){p++,p===o&&f(i,r)})};var w=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;s.retrievePrecedingIdentifier=function(y,S,f){f=f||w;for(var p=[],o=S-1;o>=0&&f.test(y[o]);o--)p.push(y[o]);return p.reverse().join("")},s.retrieveFollowingIdentifier=function(y,S,f){f=f||w;for(var p=[],o=S;o<y.length&&f.test(y[o]);o++)p.push(y[o]);return p},s.getCompletionPrefix=function(y){var S=y.getCursorPosition(),f=y.session.getLine(S.row),p;return y.completers.forEach((function(o){o.identifierRegexps&&o.identifierRegexps.forEach((function(a){!p&&a&&(p=this.retrievePrecedingIdentifier(f,S.column,a))}).bind(this))}).bind(this)),p||this.retrievePrecedingIdentifier(f,S.column)},s.triggerAutocomplete=function(y,f){var f=f??y.session.getPrecedingCharacter();return y.completers.some(function(p){if(p.triggerCharacters&&Array.isArray(p.triggerCharacters))return p.triggerCharacters.includes(f)})}}),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(t,s,A){var w=t("./keyboard/hash_handler").HashHandler,y=t("./autocomplete/popup").AcePopup,S=t("./autocomplete/inline").AceInline,f=t("./autocomplete/popup").getAriaId,p=t("./autocomplete/util"),o=t("./lib/lang"),a=t("./lib/dom"),i=t("./snippets").snippetManager,r=t("./config"),n=t("./lib/event"),l=t("./lib/scroll").preventParentScroll,d=function($,_){_.completer&&_.completer.destroy()},g=function(){function $(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new w,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=o.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=o.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=o.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=o.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=o.delayedCall((function(){var _=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!_||this.editor.completers.length===0||(this.completions=new R($.completionsForLoading),this.openPopup(this.editor,_.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty($,"completionsForLoading",{get:function(){return[{caption:r.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),$.prototype.$init=function(){return this.popup=new y(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(_){this.insertMatch(),_.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)),n.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},$.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new S,this.inlineRenderer},$.prototype.getPopup=function(){return this.popup||this.$init()},$.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},$.prototype.$seen=function(_){!this.hasSeen.has(_)&&_&&_.completer&&_.completer.onSeen&&typeof _.completer.onSeen=="function"&&(_.completer.onSeen(this.editor,_),this.hasSeen.add(_))},$.prototype.$onPopupChange=function(_){if(this.inlineRenderer&&this.inlineEnabled){var v=_?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(v),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)},$.prototype.$updateGhostText=function(_){var v=this.base.row,T=this.base.column,E=this.editor.getCursorPosition().column,I=this.editor.session.getLine(v).slice(T,E);this.inlineRenderer.show(this.editor,_,I)?this.$seen(_):this.inlineRenderer.hide()},$.prototype.$onPopupRender=function(){var _=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var v=this.popup.getFirstVisibleRow();v<=this.popup.getLastVisibleRow();v++){var T=this.popup.getData(v);T&&(!_||T.hideInlinePreview)&&this.$seen(T)}},$.prototype.$onPopupShow=function(_){this.$onPopupChange(_),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},$.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var _=this.editor.container.parentNode,v=[];_;)v.push(_),_.addEventListener("scroll",this.onLayoutChange,{passive:!0}),_=_.parentNode;this.$elements=v}},$.prototype.unObserveLayoutChanges=function(){var _=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(v){v.removeEventListener("scroll",_.onLayoutChange,{passive:!0})}),this.$elements=null},$.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},$.prototype.$updatePopupPosition=function(){var _=this.editor,v=_.renderer,T=v.layerConfig.lineHeight,E=v.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var I=_.container.getBoundingClientRect();E.top+=I.top-v.layerConfig.offset,E.left+=I.left-_.renderer.scrollLeft,E.left+=v.gutterWidth;var M={top:E.top,left:E.left};v.$ghostText&&v.$ghostTextWidget&&this.base.row===v.$ghostText.position.row&&(M.top+=v.$ghostTextWidget.el.offsetHeight);var N=_.container.getBoundingClientRect().bottom-T,k=N<M.top?{top:N,left:M.left}:M;this.popup.tryShow(k,T,"bottom")||this.popup.tryShow(E,T,"top")||this.popup.show(E,T)},$.prototype.openPopup=function(_,v,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E=this.popup.getRow(),I=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:f(this.popup.getRow()),inline:this.inlineEnabled}),_.keyBinding.addKeyboardHandler(this.keyboardHandler);var M;this.stickySelection&&(M=this.popup.data.indexOf(I)),(!M||M===-1)&&(M=0),this.popup.setRow(this.autoSelect?M:-1),M===E&&I!==this.completions.filtered[M]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(M===E&&N){var k=this.popup.getData(this.popup.getRow());this.$updateGhostText(k)}T||(this.popup.setTheme(_.getTheme()),this.popup.setFontSize(_.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},$.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()},$.prototype.changeListener=function(_){var v=this.editor.selection.lead;(v.row!=this.base.row||v.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},$.prototype.blurListener=function(_){var v=document.activeElement,T=this.editor.textInput.getElement(),E=_.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(_.relatedTarget),I=this.popup&&this.popup.container;v!=T&&v.parentNode!=I&&!E&&v!=this.tooltipNode&&_.relatedTarget!=T&&this.detach()},$.prototype.mousedownListener=function(_){this.detach()},$.prototype.mousewheelListener=function(_){this.popup&&!this.popup.isMouseOver&&this.detach()},$.prototype.mouseOutListener=function(_){this.popup.isOpen&&this.$updatePopupPosition()},$.prototype.goTo=function(_){this.popup.goTo(_)},$.prototype.insertMatch=function(_,v){if(_||(_=this.popup.getData(this.popup.getRow())),!_)return!1;if(_.value==="")return this.detach();var T=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,_,T.filterText,v);return this.completions==T&&this.detach(),E},$.prototype.showPopup=function(_,v){this.editor&&this.detach(),this.activated=!0,this.editor=_,_.completer!=this&&(_.completer&&_.completer.detach(),_.completer=this),_.on("changeSelection",this.changeListener),_.on("blur",this.blurListener),_.on("mousedown",this.mousedownListener),_.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,v)},$.prototype.getCompletionProvider=function(_){return this.completionProvider||(this.completionProvider=new b(_)),this.completionProvider},$.prototype.gatherCompletions=function(_,v){return this.getCompletionProvider().gatherCompletions(_,v)},$.prototype.updateCompletions=function(_,v){if(_&&this.base&&this.completions){var E=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:E});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,_);return}if(v&&v.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new R(v.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",_)}var T=this.editor.getSession(),E=this.editor.getCursorPosition(),I=p.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(E.row,E.column-I.length),this.base.$insertRight=!0;var M={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:E}).provideCompletions(this.editor,M,(function(N,k,m){var x=k.filtered,L=p.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),m){if(!x.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(L)),O){var F=[{caption:O,value:""}];this.completions=new R(F),this.openPopup(this.editor,L,_),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==L&&!x[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&x.length==1)return this.insertMatch(x[0])}this.completions=!m&&this.showLoadingState?new R($.completionsForLoading.concat(x),k.filterText):k,this.openPopup(this.editor,L,_),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!m)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},$.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},$.prototype.updateDocTooltip=function(){var _=this.popup,v=this.completions.filtered,T=v&&(v[_.getHoveredRow()]||v[_.getRow()]),E=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,M=0;M<I;M++){var N=this.editor.completers[M];if(N.getDocTooltip&&T.completerId===N.id){E=N.getDocTooltip(T);break}}if(!E&&typeof T!="string"&&(E=T),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},$.prototype.showDocTooltip=function(_){this.tooltipNode||(this.tooltipNode=a.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",l));var v=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(v.isDark?"ace_dark ":"")+(v.cssClass||"");var T=this.tooltipNode;_.docHTML?T.innerHTML=_.docHTML:_.docText&&(T.textContent=_.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,I=E.container.getBoundingClientRect();T.style.top=E.container.style.top,T.style.bottom=E.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?E.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=E.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},$.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var _=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==_&&this.editor.focus(),this.tooltipNode=null,_.parentNode&&_.parentNode.removeChild(_)}},$.prototype.onTooltipClick=function(_){for(var v=_.target;v&&v!=this.tooltipNode;){if(v.nodeName=="A"&&v.href){v.rel="noreferrer",v.target="_blank";break}v=v.parentNode}},$.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var _=this.popup.container;_&&_.parentNode&&_.parentNode.removeChild(_)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",d),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},$.for=function(_){return _.completer instanceof $||(_.completer&&(_.completer.destroy(),_.completer=null),r.get("sharedPopups")?($.$sharedInstance||($.$sharedInstance=new $),_.completer=$.$sharedInstance):(_.completer=new $,_.once("destroy",d))),_.completer},$}();g.prototype.commands={Up:function($){$.completer.goTo("up")},Down:function($){$.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function($){$.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function($){$.completer.goTo("end")},Esc:function($){$.completer.detach()},Return:function($){return $.completer.insertMatch()},"Shift-Return":function($){$.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function($){var _=$.completer.insertMatch();if(_||$.tabstopManager)return _;$.completer.goTo("down")},Backspace:function($){$.execCommand("backspace");var _=p.getCompletionPrefix($);!_&&$.completer&&$.completer.detach()},PageUp:function($){$.completer.popup.gotoPageUp()},PageDown:function($){$.completer.popup.gotoPageDown()}},g.startCommand={name:"startAutocomplete",exec:function($,_){var v=g.for($);v.autoInsert=!1,v.autoSelect=!0,v.autoShown=!1,v.showPopup($,_),v.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var b=function(){function $(_){this.initialPosition=_,this.active=!0}return $.prototype.insertByIndex=function(_,v,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(_,this.completions.filtered[v],T)},$.prototype.insertMatch=function(_,v,T){if(!v)return!1;if(_.startOperation({command:{name:"insertMatch"}}),v.completer&&v.completer.insertMatch)v.completer.insertMatch(_,v);else{if(!this.completions)return!1;var E=this.completions.filterText.length,I=0;if(v.range&&v.range.start.row===v.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-v.range.start.column,I+=v.range.end.column-this.initialPosition.pos.column),E||I){var M;_.selection.getAllRanges?M=_.selection.getAllRanges():M=[_.getSelectionRange()];for(var N=0,k;k=M[N];N++)k.start.column-=E,k.end.column+=I,_.session.remove(k)}v.snippet?i.insertSnippet(_,v.snippet):this.$insertString(_,v),v.completer&&v.completer.onInsert&&typeof v.completer.onInsert=="function"&&v.completer.onInsert(_,v),v.command&&v.command==="startAutocomplete"&&_.execCommand(v.command)}return _.endOperation(),!0},$.prototype.$insertString=function(_,v){var T=v.value||v;_.execCommand("insertstring",T)},$.prototype.gatherCompletions=function(_,v){var T=_.getSession(),E=_.getCursorPosition(),I=p.getCompletionPrefix(_),M=[];this.completers=_.completers;var N=_.completers.length;return _.completers.forEach(function(k,m){k.getCompletions(_,T,E,I,function(x,L){k.hideInlinePreview&&(L=L.map(function(O){return Object.assign(O,{hideInlinePreview:k.hideInlinePreview})})),!x&&L&&(M=M.concat(L)),v(null,{prefix:p.getCompletionPrefix(_),matches:M,finished:--N===0})})}),!0},$.prototype.provideCompletions=function(_,v,T){var E=(function(k){var m=k.prefix,x=k.matches;this.completions=new R(x),v.exactMatch&&(this.completions.exactMatch=!0),v.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(m),(k.finished||this.completions.filtered.length)&&T(null,this.completions,k.finished)}).bind(this),I=!0,M=null;if(this.gatherCompletions(_,(function(k,m){if(this.active){k&&(T(k,[],!0),this.detach());var x=m.prefix;if(x.indexOf(m.prefix)===0){if(I){M=m;return}E(m)}}}).bind(this)),I=!1,M){var N=M;M=null,E(N)}},$.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(_){typeof _.cancel=="function"&&_.cancel()})},$}(),R=function(){function $(_,v){this.all=_,this.filtered=_,this.filterText=v||"",this.exactMatch=!1,this.ignoreCaption=!1}return $.prototype.setFilter=function(_){if(_.length>this.filterText&&_.lastIndexOf(this.filterText,0)===0)var v=this.filtered;else var v=this.all;this.filterText=_,v=this.filterCompletions(v,this.filterText),v=v.sort(function(E,I){return I.exactMatch-E.exactMatch||I.$score-E.$score||(E.caption||E.value).localeCompare(I.caption||I.value)});var T=null;v=v.filter(function(E){var I=E.snippet||E.caption||E.value;return I===T?!1:(T=I,!0)}),this.filtered=v},$.prototype.filterCompletions=function(_,v){var T=[],E=v.toUpperCase(),I=v.toLowerCase();e:for(var M=0,N;N=_[M];M++){if(N.skipFilter){T.push(N);continue}var k=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(k){var m=-1,x=0,L=0,O,F;if(this.exactMatch){if(v!==k.substr(0,v.length))continue e}else{var W=k.toLowerCase().indexOf(I);if(W>-1)L=W;else for(var U=0;U<v.length;U++){var V=k.indexOf(I[U],m+1),G=k.indexOf(E[U],m+1);if(O=V>=0&&(G<0||V<G)?V:G,O<0)continue e;F=O-m-1,F>0&&(m===-1&&(L+=10),L+=F,x|=1<<U),m=O}}N.matchMask=x,N.exactMatch=L?0:1,N.$score=(N.score||0)-L,T.push(N)}}return T},$}();s.Autocomplete=g,s.CompletionProvider=b,s.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,s,A){function w(p,o){var a=p.getTextRange(S.fromPoints({row:0,column:0},o));return a.split(f).length-1}function y(p,o){var a=w(p,o),i=p.getValue().split(f),r=Object.create(null),n=i[a];return i.forEach(function(l,d){if(!(!l||l===n)){var g=Math.abs(a-d),b=i.length-g;r[l]?r[l]=Math.max(b,r[l]):r[l]=b}}),r}var S=t("../range").Range,f=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;s.getCompletions=function(p,o,a,i,r){var n=y(o,a),l=Object.keys(n);r(null,l.map(function(d){return{caption:d,value:d,score:n[d],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(t,s,A){var w=t("../snippets").snippetManager,y=t("../autocomplete").Autocomplete,S=t("../config"),f=t("../lib/lang"),p=t("../autocomplete/util"),o=t("../autocomplete/text_completer"),a={getCompletions:function(E,I,M,N,k){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,M,N,k);var m=E.session.getState(M.row),x=I.$mode.getCompletions(m,I,M,N);x=x.map(function(L){return L.completerId=a.id,L}),k(null,x)},id:"keywordCompleter"},i=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(M,N,k,m){return I[N]=m||""}).replace(/\$(\d+?)/g,function(M,N){return I[N]})},r={getCompletions:function(E,I,M,N,k){var m=[],x=I.getTokenAt(M.row,M.column);x&&x.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?m.push("html-tag"):m=w.getActiveScopes(E);var L=w.snippetMap,O=[];m.forEach(function(F){for(var W=L[F]||[],U=W.length;U--;){var V=W[U],G=V.name||V.tabTrigger;G&&O.push({caption:G,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:r.id})}},this),k(null,O)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",f.escapeHTML(E.caption),"</b>","<hr></hr>",f.escapeHTML(i(E.snippet))].join(""))},id:"snippetCompleter"},n=[r,o,a];s.setCompleters=function(E){n.length=0,E&&n.push.apply(n,E)},s.addCompleter=function(E){n.push(E)},s.textCompleter=o,s.keyWordCompleter=a,s.snippetCompleter=r;var l={name:"expandSnippet",exec:function(E){return w.expandWithTab(E)},bindKey:"Tab"},d=function(E,I){g(I.session.$mode)},g=function(E){typeof E=="string"&&(E=S.$modes[E]),E&&(w.files||(w.files={}),b(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(g))},b=function(E,I){!I||!E||w.files[E]||(w.files[E]={},S.loadModule(I,function(M){M&&(w.files[E]=M,!M.snippets&&M.snippetText&&(M.snippets=w.parseSnippetFile(M.snippetText)),w.register(M.snippets||[],M.scope),M.includeScopes&&(w.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(N){g("ace/mode/"+N)})))}))},R=function(E){var I=E.editor,M=I.completer&&I.completer.activated;if(E.command.name==="backspace")M&&!p.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!M){$=E;var N=E.editor.$liveAutocompletionDelay;N?_.delay(N):v(E)}},$,_=f.delayedCall(function(){v($)},0),v=function(E){var I=E.editor,M=p.getCompletionPrefix(I),N=E.args,k=p.triggerAutocomplete(I,N);if(M&&M.length>=I.$liveAutocompletionThreshold||k){var m=y.for(I);m.autoShown=!0,m.showPopup(I)}},T=t("../editor").Editor;t("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:n),this.commands.addCommand(y.startCommand)):this.commands.removeCommand(y.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:n),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(l),this.on("changeMode",d),d(null,this)):(this.commands.removeCommand(l),this.off("changeMode",d))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(t){c&&(c.exports=t)})}()}(gc)),gc.exports}_x();var mc={exports:{}},qd;function Sx(){return qd||(qd=1,function(c,u){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,s,A){A.exports=`
|
|
1215
|
+
|
|
1216
|
+
/* ------------------------------------------------------------------------------------------
|
|
1217
|
+
* Editor Search Form
|
|
1218
|
+
* --------------------------------------------------------------------------------------- */
|
|
1219
|
+
.ace_search {
|
|
1220
|
+
background-color: #ddd;
|
|
1221
|
+
color: #666;
|
|
1222
|
+
border: 1px solid #cbcbcb;
|
|
1223
|
+
border-top: 0 none;
|
|
1224
|
+
overflow: hidden;
|
|
1225
|
+
margin: 0;
|
|
1226
|
+
padding: 4px 6px 0 4px;
|
|
1227
|
+
position: absolute;
|
|
1228
|
+
top: 0;
|
|
1229
|
+
z-index: 99;
|
|
1230
|
+
white-space: normal;
|
|
1231
|
+
}
|
|
1232
|
+
.ace_search.left {
|
|
1233
|
+
border-left: 0 none;
|
|
1234
|
+
border-radius: 0px 0px 5px 0px;
|
|
1235
|
+
left: 0;
|
|
1236
|
+
}
|
|
1237
|
+
.ace_search.right {
|
|
1238
|
+
border-radius: 0px 0px 0px 5px;
|
|
1239
|
+
border-right: 0 none;
|
|
1240
|
+
right: 0;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.ace_search_form, .ace_replace_form {
|
|
1244
|
+
margin: 0 20px 4px 0;
|
|
1245
|
+
overflow: hidden;
|
|
1246
|
+
line-height: 1.9;
|
|
1247
|
+
}
|
|
1248
|
+
.ace_replace_form {
|
|
1249
|
+
margin-right: 0;
|
|
1250
|
+
}
|
|
1251
|
+
.ace_search_form.ace_nomatch {
|
|
1252
|
+
outline: 1px solid red;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.ace_search_field {
|
|
1256
|
+
border-radius: 3px 0 0 3px;
|
|
1257
|
+
background-color: white;
|
|
1258
|
+
color: black;
|
|
1259
|
+
border: 1px solid #cbcbcb;
|
|
1260
|
+
border-right: 0 none;
|
|
1261
|
+
outline: 0;
|
|
1262
|
+
padding: 0;
|
|
1263
|
+
font-size: inherit;
|
|
1264
|
+
margin: 0;
|
|
1265
|
+
line-height: inherit;
|
|
1266
|
+
padding: 0 6px;
|
|
1267
|
+
min-width: 17em;
|
|
1268
|
+
vertical-align: top;
|
|
1269
|
+
min-height: 1.8em;
|
|
1270
|
+
box-sizing: content-box;
|
|
1271
|
+
}
|
|
1272
|
+
.ace_searchbtn {
|
|
1273
|
+
border: 1px solid #cbcbcb;
|
|
1274
|
+
line-height: inherit;
|
|
1275
|
+
display: inline-block;
|
|
1276
|
+
padding: 0 6px;
|
|
1277
|
+
background: #fff;
|
|
1278
|
+
border-right: 0 none;
|
|
1279
|
+
border-left: 1px solid #dcdcdc;
|
|
1280
|
+
cursor: pointer;
|
|
1281
|
+
margin: 0;
|
|
1282
|
+
position: relative;
|
|
1283
|
+
color: #666;
|
|
1284
|
+
}
|
|
1285
|
+
.ace_searchbtn:last-child {
|
|
1286
|
+
border-radius: 0 3px 3px 0;
|
|
1287
|
+
border-right: 1px solid #cbcbcb;
|
|
1288
|
+
}
|
|
1289
|
+
.ace_searchbtn:disabled {
|
|
1290
|
+
background: none;
|
|
1291
|
+
cursor: default;
|
|
1292
|
+
}
|
|
1293
|
+
.ace_searchbtn:hover {
|
|
1294
|
+
background-color: #eef1f6;
|
|
1295
|
+
}
|
|
1296
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
1297
|
+
padding: 0px 0.7em
|
|
1298
|
+
}
|
|
1299
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
1300
|
+
content: "";
|
|
1301
|
+
border: solid 2px #888;
|
|
1302
|
+
width: 0.5em;
|
|
1303
|
+
height: 0.5em;
|
|
1304
|
+
border-width: 2px 0 0 2px;
|
|
1305
|
+
display:inline-block;
|
|
1306
|
+
transform: rotate(-45deg);
|
|
1307
|
+
}
|
|
1308
|
+
.ace_searchbtn.next:after {
|
|
1309
|
+
border-width: 0 2px 2px 0 ;
|
|
1310
|
+
}
|
|
1311
|
+
.ace_searchbtn_close {
|
|
1312
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
1313
|
+
border-radius: 50%;
|
|
1314
|
+
border: 0 none;
|
|
1315
|
+
color: #656565;
|
|
1316
|
+
cursor: pointer;
|
|
1317
|
+
font: 16px/16px Arial;
|
|
1318
|
+
padding: 0;
|
|
1319
|
+
height: 14px;
|
|
1320
|
+
width: 14px;
|
|
1321
|
+
top: 9px;
|
|
1322
|
+
right: 7px;
|
|
1323
|
+
position: absolute;
|
|
1324
|
+
}
|
|
1325
|
+
.ace_searchbtn_close:hover {
|
|
1326
|
+
background-color: #656565;
|
|
1327
|
+
background-position: 50% 100%;
|
|
1328
|
+
color: white;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.ace_button {
|
|
1332
|
+
margin-left: 2px;
|
|
1333
|
+
cursor: pointer;
|
|
1334
|
+
-webkit-user-select: none;
|
|
1335
|
+
-moz-user-select: none;
|
|
1336
|
+
-o-user-select: none;
|
|
1337
|
+
-ms-user-select: none;
|
|
1338
|
+
user-select: none;
|
|
1339
|
+
overflow: hidden;
|
|
1340
|
+
opacity: 0.7;
|
|
1341
|
+
border: 1px solid rgba(100,100,100,0.23);
|
|
1342
|
+
padding: 1px;
|
|
1343
|
+
box-sizing: border-box!important;
|
|
1344
|
+
color: black;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.ace_button:hover {
|
|
1348
|
+
background-color: #eee;
|
|
1349
|
+
opacity:1;
|
|
1350
|
+
}
|
|
1351
|
+
.ace_button:active {
|
|
1352
|
+
background-color: #ddd;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.ace_button.checked {
|
|
1356
|
+
border-color: #3399ff;
|
|
1357
|
+
opacity:1;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.ace_search_options{
|
|
1361
|
+
margin-bottom: 3px;
|
|
1362
|
+
text-align: right;
|
|
1363
|
+
-webkit-user-select: none;
|
|
1364
|
+
-moz-user-select: none;
|
|
1365
|
+
-o-user-select: none;
|
|
1366
|
+
-ms-user-select: none;
|
|
1367
|
+
user-select: none;
|
|
1368
|
+
clear: both;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.ace_search_counter {
|
|
1372
|
+
float: left;
|
|
1373
|
+
font-family: arial;
|
|
1374
|
+
padding: 0 8px;
|
|
1375
|
+
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(t,s,A){var w=t("../lib/dom"),y=t("../lib/lang"),S=t("../lib/event"),f=t("./searchbox-css"),p=t("../keyboard/hash_handler").HashHandler,o=t("../lib/keys"),a=t("../config").nls,i=999;w.importCssString(f,"ace_searchbox",!1);var r=function(){function d(g,b,R){this.activeInput;var $=w.createElement("div");w.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:a("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"},a("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:a("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},a("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},a("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:a("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:a("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:a("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:a("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:a("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],$),this.element=$.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(g),w.importCssString(f,"ace_searchbox",g.container)}return d.prototype.setEditor=function(g){g.searchBox=this,g.renderer.scroller.appendChild(this.element),this.editor=g},d.prototype.setSession=function(g){this.searchRange=null,this.$syncOptions(!0)},d.prototype.$initElements=function(g){this.searchBox=g.querySelector(".ace_search_form"),this.replaceBox=g.querySelector(".ace_replace_form"),this.searchOption=g.querySelector("[action=searchInSelection]"),this.replaceOption=g.querySelector("[action=toggleReplace]"),this.regExpOption=g.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=g.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=g.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=g.querySelector(".ace_search_counter")},d.prototype.$init=function(){var g=this.element;this.$initElements(g);var b=this;S.addListener(g,"mousedown",function(R){setTimeout(function(){b.activeInput.focus()},0),S.stopPropagation(R)}),S.addListener(g,"click",function(R){var $=R.target||R.srcElement,_=$.getAttribute("action");_&&b[_]?b[_]():b.$searchBarKb.commands[_]&&b.$searchBarKb.commands[_].exec(b),S.stopPropagation(R)}),S.addCommandKeyListener(g,function(R,$,_){var v=o.keyCodeToString(_),T=b.$searchBarKb.findKeyCommand($,v);T&&T.exec&&(T.exec(b),S.stopEvent(R))}),this.$onChange=y.delayedCall(function(){b.find(!1,!1)}),S.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),S.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),S.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},d.prototype.setSearchRange=function(g){this.searchRange=g,g?this.searchRangeMarker=this.editor.session.addMarker(g,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},d.prototype.$syncOptions=function(g){w.setCssClass(this.replaceOption,"checked",this.searchRange),w.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",w.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),w.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),w.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var b=this.editor.getReadOnly();this.replaceOption.style.display=b?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!b?"":"none",this.find(!1,!1,g)},d.prototype.highlight=function(g){this.editor.session.highlight(g||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},d.prototype.find=function(g,b,R){var $=this.editor.find(this.searchInput.value,{skipCurrent:g,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:R,range:this.searchRange}),_=!$&&this.searchInput.value;w.setCssClass(this.searchBox,"ace_nomatch",_),this.editor._emit("findSearchBox",{match:!_}),this.highlight(),this.updateCounter()},d.prototype.updateCounter=function(){var g=this.editor,b=g.$search.$options.re,R=b.unicode,$=0,_=0;if(b){var v=this.searchRange?g.session.getTextRange(this.searchRange):g.getValue(),T=g.session.doc.positionToIndex(g.selection.anchor);this.searchRange&&(T-=g.session.doc.positionToIndex(this.searchRange.start));for(var E=b.lastIndex=0,I;(I=b.exec(v))&&($++,E=I.index,E<=T&&_++,!($>i||!I[0]&&(b.lastIndex=E+=y.skipEmptyMatch(v,E,R),E>=v.length))););}this.searchCounter.textContent=a("search-box.search-counter","$0 of $1",[_,$>i?i+"+":$])},d.prototype.findNext=function(){this.find(!0,!1)},d.prototype.findPrev=function(){this.find(!0,!0)},d.prototype.findAll=function(){var g=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!g&&this.searchInput.value;w.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},d.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},d.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},d.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},d.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},d.prototype.show=function(g,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,g&&(this.searchInput.value=g),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},d.prototype.isFocused=function(){var g=document.activeElement;return g==this.searchInput||g==this.replaceInput},d}(),n=new p;n.bindKeys({"Ctrl-f|Command-f":function(d){var g=d.isReplace=!d.isReplace;d.replaceBox.style.display=g?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.editor.getReadOnly()||(d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus())},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),n.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]);var l=new p([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]);r.prototype.$searchBarKb=n,r.prototype.$closeSearchBarKb=l,s.SearchBox=r,s.Search=function(d,g){var b=d.searchBox||new r(d);b.show(d.session.getTextRange(),g)}}),function(){ace.require(["ace/ext/searchbox"],function(t){c&&(c.exports=t)})}()}(mc)),mc.exports}Sx();var kx=Object.defineProperty,Cx=(c,u,t)=>u in c?kx(c,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[u]=t,ki=(c,u,t)=>Cx(c,typeof u!="symbol"?u+"":u,t);function Bp(c,u){return function(){return c.apply(u,arguments)}}const{toString:Ax}=Object.prototype,{getPrototypeOf:$u}=Object,Ua=(c=>u=>{const t=Ax.call(u);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ui=c=>(c=c.toLowerCase(),u=>Ua(u)===c),ja=c=>u=>typeof u===c,{isArray:yo}=Array,ys=ja("undefined");function $x(c){return c!==null&&!ys(c)&&c.constructor!==null&&!ys(c.constructor)&&zn(c.constructor.isBuffer)&&c.constructor.isBuffer(c)}const zp=ui("ArrayBuffer");function Tx(c){let u;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?u=ArrayBuffer.isView(c):u=c&&c.buffer&&zp(c.buffer),u}const Mx=ja("string"),zn=ja("function"),Hp=ja("number"),Va=c=>c!==null&&typeof c=="object",Lx=c=>c===!0||c===!1,Ia=c=>{if(Ua(c)!=="object")return!1;const u=$u(c);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(Symbol.toStringTag in c)&&!(Symbol.iterator in c)},Ex=ui("Date"),Rx=ui("File"),Ix=ui("Blob"),Ox=ui("FileList"),Dx=c=>Va(c)&&zn(c.pipe),Nx=c=>{let u;return c&&(typeof FormData=="function"&&c instanceof FormData||zn(c.append)&&((u=Ua(c))==="formdata"||u==="object"&&zn(c.toString)&&c.toString()==="[object FormData]"))},Fx=ui("URLSearchParams"),[Px,Wx,Bx,zx]=["ReadableStream","Request","Response","Headers"].map(ui),Hx=c=>c.trim?c.trim():c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ws(c,u,{allOwnKeys:t=!1}={}){if(c===null||typeof c>"u")return;let s,A;if(typeof c!="object"&&(c=[c]),yo(c))for(s=0,A=c.length;s<A;s++)u.call(null,c[s],s,c);else{const w=t?Object.getOwnPropertyNames(c):Object.keys(c),y=w.length;let S;for(s=0;s<y;s++)S=w[s],u.call(null,c[S],S,c)}}function Up(c,u){u=u.toLowerCase();const t=Object.keys(c);let s=t.length,A;for(;s-- >0;)if(A=t[s],u===A.toLowerCase())return A;return null}const Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jp=c=>!ys(c)&&c!==Or;function au(){const{caseless:c}=jp(this)&&this||{},u={},t=(s,A)=>{const w=c&&Up(u,A)||A;Ia(u[w])&&Ia(s)?u[w]=au(u[w],s):Ia(s)?u[w]=au({},s):yo(s)?u[w]=s.slice():u[w]=s};for(let s=0,A=arguments.length;s<A;s++)arguments[s]&&ws(arguments[s],t);return u}const Ux=(c,u,t,{allOwnKeys:s}={})=>(ws(u,(A,w)=>{t&&zn(A)?c[w]=Bp(A,t):c[w]=A},{allOwnKeys:s}),c),jx=c=>(c.charCodeAt(0)===65279&&(c=c.slice(1)),c),Vx=(c,u,t,s)=>{c.prototype=Object.create(u.prototype,s),c.prototype.constructor=c,Object.defineProperty(c,"super",{value:u.prototype}),t&&Object.assign(c.prototype,t)},Gx=(c,u,t,s)=>{let A,w,y;const S={};if(u=u||{},c==null)return u;do{for(A=Object.getOwnPropertyNames(c),w=A.length;w-- >0;)y=A[w],(!s||s(y,c,u))&&!S[y]&&(u[y]=c[y],S[y]=!0);c=t!==!1&&$u(c)}while(c&&(!t||t(c,u))&&c!==Object.prototype);return u},Kx=(c,u,t)=>{c=String(c),(t===void 0||t>c.length)&&(t=c.length),t-=u.length;const s=c.indexOf(u,t);return s!==-1&&s===t},qx=c=>{if(!c)return null;if(yo(c))return c;let u=c.length;if(!Hp(u))return null;const t=new Array(u);for(;u-- >0;)t[u]=c[u];return t},Yx=(c=>u=>c&&u instanceof c)(typeof Uint8Array<"u"&&$u(Uint8Array)),Zx=(c,u)=>{const t=(c&&c[Symbol.iterator]).call(c);let s;for(;(s=t.next())&&!s.done;){const A=s.value;u.call(c,A[0],A[1])}},Qx=(c,u)=>{let t;const s=[];for(;(t=c.exec(u))!==null;)s.push(t);return s},Xx=ui("HTMLFormElement"),Jx=c=>c.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,t,s){return t.toUpperCase()+s}),Yd=(({hasOwnProperty:c})=>(u,t)=>c.call(u,t))(Object.prototype),e1=ui("RegExp"),Vp=(c,u)=>{const t=Object.getOwnPropertyDescriptors(c),s={};ws(t,(A,w)=>{let y;(y=u(A,w,c))!==!1&&(s[w]=y||A)}),Object.defineProperties(c,s)},t1=c=>{Vp(c,(u,t)=>{if(zn(c)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=c[t];if(zn(s)){if(u.enumerable=!1,"writable"in u){u.writable=!1;return}u.set||(u.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},n1=(c,u)=>{const t={},s=A=>{A.forEach(w=>{t[w]=!0})};return yo(c)?s(c):s(String(c).split(u)),t},i1=()=>{},r1=(c,u)=>c!=null&&Number.isFinite(c=+c)?c:u,vc="abcdefghijklmnopqrstuvwxyz",Zd="0123456789",Gp={DIGIT:Zd,ALPHA:vc,ALPHA_DIGIT:vc+vc.toUpperCase()+Zd},o1=(c=16,u=Gp.ALPHA_DIGIT)=>{let t="";const{length:s}=u;for(;c--;)t+=u[Math.random()*s|0];return t};function s1(c){return!!(c&&zn(c.append)&&c[Symbol.toStringTag]==="FormData"&&c[Symbol.iterator])}const a1=c=>{const u=new Array(10),t=(s,A)=>{if(Va(s)){if(u.indexOf(s)>=0)return;if(!("toJSON"in s)){u[A]=s;const w=yo(s)?[]:{};return ws(s,(y,S)=>{const f=t(y,A+1);!ys(f)&&(w[S]=f)}),u[A]=void 0,w}}return s};return t(c,0)},l1=ui("AsyncFunction"),c1=c=>c&&(Va(c)||zn(c))&&zn(c.then)&&zn(c.catch),Kp=((c,u)=>c?setImmediate:u?((t,s)=>(Or.addEventListener("message",({source:A,data:w})=>{A===Or&&w===t&&s.length&&s.shift()()},!1),A=>{s.push(A),Or.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",zn(Or.postMessage)),u1=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||Kp,ue={isArray:yo,isArrayBuffer:zp,isBuffer:$x,isFormData:Nx,isArrayBufferView:Tx,isString:Mx,isNumber:Hp,isBoolean:Lx,isObject:Va,isPlainObject:Ia,isReadableStream:Px,isRequest:Wx,isResponse:Bx,isHeaders:zx,isUndefined:ys,isDate:Ex,isFile:Rx,isBlob:Ix,isRegExp:e1,isFunction:zn,isStream:Dx,isURLSearchParams:Fx,isTypedArray:Yx,isFileList:Ox,forEach:ws,merge:au,extend:Ux,trim:Hx,stripBOM:jx,inherits:Vx,toFlatObject:Gx,kindOf:Ua,kindOfTest:ui,endsWith:Kx,toArray:qx,forEachEntry:Zx,matchAll:Qx,isHTMLForm:Xx,hasOwnProperty:Yd,hasOwnProp:Yd,reduceDescriptors:Vp,freezeMethods:t1,toObjectSet:n1,toCamelCase:Jx,noop:i1,toFiniteNumber:r1,findKey:Up,global:Or,isContextDefined:jp,ALPHABET:Gp,generateString:o1,isSpecCompliantForm:s1,toJSONObject:a1,isAsyncFn:l1,isThenable:c1,setImmediate:Kp,asap:u1};function Ze(c,u,t,s,A){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=c,this.name="AxiosError",u&&(this.code=u),t&&(this.config=t),s&&(this.request=s),A&&(this.response=A,this.status=A.status?A.status:null)}ue.inherits(Ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const qp=Ze.prototype,Yp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(c=>{Yp[c]={value:c}});Object.defineProperties(Ze,Yp);Object.defineProperty(qp,"isAxiosError",{value:!0});Ze.from=(c,u,t,s,A,w)=>{const y=Object.create(qp);return ue.toFlatObject(c,y,function(S){return S!==Error.prototype},S=>S!=="isAxiosError"),Ze.call(y,c.message,u,t,s,A),y.cause=c,y.name=c.name,w&&Object.assign(y,w),y};const h1=null;function lu(c){return ue.isPlainObject(c)||ue.isArray(c)}function Zp(c){return ue.endsWith(c,"[]")?c.slice(0,-2):c}function Qd(c,u,t){return c?c.concat(u).map(function(s,A){return s=Zp(s),!t&&A?"["+s+"]":s}).join(t?".":""):u}function d1(c){return ue.isArray(c)&&!c.some(lu)}const f1=ue.toFlatObject(ue,{},null,function(c){return/^is[A-Z]/.test(c)});function Ga(c,u,t){if(!ue.isObject(c))throw new TypeError("target must be an object");u=u||new FormData,t=ue.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(r,n){return!ue.isUndefined(n[r])});const s=t.metaTokens,A=t.visitor||p,w=t.dots,y=t.indexes,S=(t.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(u);if(!ue.isFunction(A))throw new TypeError("visitor must be a function");function f(r){if(r===null)return"";if(ue.isDate(r))return r.toISOString();if(!S&&ue.isBlob(r))throw new Ze("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(r)||ue.isTypedArray(r)?S&&typeof Blob=="function"?new Blob([r]):Buffer.from(r):r}function p(r,n,l){let d=r;if(r&&!l&&typeof r=="object"){if(ue.endsWith(n,"{}"))n=s?n:n.slice(0,-2),r=JSON.stringify(r);else if(ue.isArray(r)&&d1(r)||(ue.isFileList(r)||ue.endsWith(n,"[]"))&&(d=ue.toArray(r)))return n=Zp(n),d.forEach(function(g,b){!(ue.isUndefined(g)||g===null)&&u.append(y===!0?Qd([n],b,w):y===null?n:n+"[]",f(g))}),!1}return lu(r)?!0:(u.append(Qd(l,n,w),f(r)),!1)}const o=[],a=Object.assign(f1,{defaultVisitor:p,convertValue:f,isVisitable:lu});function i(r,n){if(!ue.isUndefined(r)){if(o.indexOf(r)!==-1)throw Error("Circular reference detected in "+n.join("."));o.push(r),ue.forEach(r,function(l,d){(!(ue.isUndefined(l)||l===null)&&A.call(u,l,ue.isString(d)?d.trim():d,n,a))===!0&&i(l,n?n.concat(d):[d])}),o.pop()}}if(!ue.isObject(c))throw new TypeError("data must be an object");return i(c),u}function Xd(c){const u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(c).replace(/[!'()~]|%20|%00/g,function(t){return u[t]})}function Tu(c,u){this._pairs=[],c&&Ga(c,this,u)}const Qp=Tu.prototype;Qp.append=function(c,u){this._pairs.push([c,u])};Qp.toString=function(c){const u=c?function(t){return c.call(this,t,Xd)}:Xd;return this._pairs.map(function(t){return u(t[0])+"="+u(t[1])},"").join("&")};function p1(c){return encodeURIComponent(c).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xp(c,u,t){if(!u)return c;const s=t&&t.encode||p1;ue.isFunction(t)&&(t={serialize:t});const A=t&&t.serialize;let w;if(A?w=A(u,t):w=ue.isURLSearchParams(u)?u.toString():new Tu(u,t).toString(s),w){const y=c.indexOf("#");y!==-1&&(c=c.slice(0,y)),c+=(c.indexOf("?")===-1?"?":"&")+w}return c}class Jd{constructor(){this.handlers=[]}use(u,t,s){return this.handlers.push({fulfilled:u,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(u){this.handlers[u]&&(this.handlers[u]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(u){ue.forEach(this.handlers,function(t){t!==null&&u(t)})}}const Jp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g1=typeof URLSearchParams<"u"?URLSearchParams:Tu,m1=typeof FormData<"u"?FormData:null,v1=typeof Blob<"u"?Blob:null,y1={isBrowser:!0,classes:{URLSearchParams:g1,FormData:m1,Blob:v1},protocols:["http","https","file","blob","url","data"]},Mu=typeof window<"u"&&typeof document<"u",cu=typeof navigator=="object"&&navigator||void 0,b1=Mu&&(!cu||["ReactNative","NativeScript","NS"].indexOf(cu.product)<0),w1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",x1=Mu&&window.location.href||"http://localhost",_1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mu,hasStandardBrowserEnv:b1,hasStandardBrowserWebWorkerEnv:w1,navigator:cu,origin:x1},Symbol.toStringTag,{value:"Module"})),yn={..._1,...y1};function S1(c,u){return Ga(c,new yn.classes.URLSearchParams,Object.assign({visitor:function(t,s,A,w){return yn.isNode&&ue.isBuffer(t)?(this.append(s,t.toString("base64")),!1):w.defaultVisitor.apply(this,arguments)}},u))}function k1(c){return ue.matchAll(/\w+|\[(\w*)]/g,c).map(u=>u[0]==="[]"?"":u[1]||u[0])}function C1(c){const u={},t=Object.keys(c);let s;const A=t.length;let w;for(s=0;s<A;s++)w=t[s],u[w]=c[w];return u}function eg(c){function u(t,s,A,w){let y=t[w++];if(y==="__proto__")return!0;const S=Number.isFinite(+y),f=w>=t.length;return y=!y&&ue.isArray(A)?A.length:y,f?(ue.hasOwnProp(A,y)?A[y]=[A[y],s]:A[y]=s,!S):((!A[y]||!ue.isObject(A[y]))&&(A[y]=[]),u(t,s,A[y],w)&&ue.isArray(A[y])&&(A[y]=C1(A[y])),!S)}if(ue.isFormData(c)&&ue.isFunction(c.entries)){const t={};return ue.forEachEntry(c,(s,A)=>{u(k1(s),A,t,0)}),t}return null}function A1(c,u,t){if(ue.isString(c))try{return(u||JSON.parse)(c),ue.trim(c)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(c)}const xs={transitional:Jp,adapter:["xhr","http","fetch"],transformRequest:[function(c,u){const t=u.getContentType()||"",s=t.indexOf("application/json")>-1,A=ue.isObject(c);if(A&&ue.isHTMLForm(c)&&(c=new FormData(c)),ue.isFormData(c))return s?JSON.stringify(eg(c)):c;if(ue.isArrayBuffer(c)||ue.isBuffer(c)||ue.isStream(c)||ue.isFile(c)||ue.isBlob(c)||ue.isReadableStream(c))return c;if(ue.isArrayBufferView(c))return c.buffer;if(ue.isURLSearchParams(c))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),c.toString();let w;if(A){if(t.indexOf("application/x-www-form-urlencoded")>-1)return S1(c,this.formSerializer).toString();if((w=ue.isFileList(c))||t.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ga(w?{"files[]":c}:c,y&&new y,this.formSerializer)}}return A||s?(u.setContentType("application/json",!1),A1(c)):c}],transformResponse:[function(c){const u=this.transitional||xs.transitional,t=u&&u.forcedJSONParsing,s=this.responseType==="json";if(ue.isResponse(c)||ue.isReadableStream(c))return c;if(c&&ue.isString(c)&&(t&&!this.responseType||s)){const A=!(u&&u.silentJSONParsing)&&s;try{return JSON.parse(c)}catch(w){if(A)throw w.name==="SyntaxError"?Ze.from(w,Ze.ERR_BAD_RESPONSE,this,null,this.response):w}}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yn.classes.FormData,Blob:yn.classes.Blob},validateStatus:function(c){return c>=200&&c<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],c=>{xs.headers[c]={}});const $1=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),T1=c=>{const u={};let t,s,A;return c&&c.split(`
|
|
1376
|
+
`).forEach(function(w){A=w.indexOf(":"),t=w.substring(0,A).trim().toLowerCase(),s=w.substring(A+1).trim(),!(!t||u[t]&&$1[t])&&(t==="set-cookie"?u[t]?u[t].push(s):u[t]=[s]:u[t]=u[t]?u[t]+", "+s:s)}),u},ef=Symbol("internals");function ls(c){return c&&String(c).trim().toLowerCase()}function Oa(c){return c===!1||c==null?c:ue.isArray(c)?c.map(Oa):String(c)}function M1(c){const u=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(c);)u[s[1]]=s[2];return u}const L1=c=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(c.trim());function yc(c,u,t,s,A){if(ue.isFunction(s))return s.call(this,u,t);if(A&&(u=t),!!ue.isString(u)){if(ue.isString(s))return u.indexOf(s)!==-1;if(ue.isRegExp(s))return s.test(u)}}function E1(c){return c.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(u,t,s)=>t.toUpperCase()+s)}function R1(c,u){const t=ue.toCamelCase(" "+u);["get","set","has"].forEach(s=>{Object.defineProperty(c,s+t,{value:function(A,w,y){return this[s].call(this,u,A,w,y)},configurable:!0})})}let On=class{constructor(c){c&&this.set(c)}set(c,u,t){const s=this;function A(y,S,f){const p=ls(S);if(!p)throw new Error("header name must be a non-empty string");const o=ue.findKey(s,p);(!o||s[o]===void 0||f===!0||f===void 0&&s[o]!==!1)&&(s[o||S]=Oa(y))}const w=(y,S)=>ue.forEach(y,(f,p)=>A(f,p,S));if(ue.isPlainObject(c)||c instanceof this.constructor)w(c,u);else if(ue.isString(c)&&(c=c.trim())&&!L1(c))w(T1(c),u);else if(ue.isHeaders(c))for(const[y,S]of c.entries())A(S,y,t);else c!=null&&A(u,c,t);return this}get(c,u){if(c=ls(c),c){const t=ue.findKey(this,c);if(t){const s=this[t];if(!u)return s;if(u===!0)return M1(s);if(ue.isFunction(u))return u.call(this,s,t);if(ue.isRegExp(u))return u.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(c,u){if(c=ls(c),c){const t=ue.findKey(this,c);return!!(t&&this[t]!==void 0&&(!u||yc(this,this[t],t,u)))}return!1}delete(c,u){const t=this;let s=!1;function A(w){if(w=ls(w),w){const y=ue.findKey(t,w);y&&(!u||yc(t,t[y],y,u))&&(delete t[y],s=!0)}}return ue.isArray(c)?c.forEach(A):A(c),s}clear(c){const u=Object.keys(this);let t=u.length,s=!1;for(;t--;){const A=u[t];(!c||yc(this,this[A],A,c,!0))&&(delete this[A],s=!0)}return s}normalize(c){const u=this,t={};return ue.forEach(this,(s,A)=>{const w=ue.findKey(t,A);if(w){u[w]=Oa(s),delete u[A];return}const y=c?E1(A):String(A).trim();y!==A&&delete u[A],u[y]=Oa(s),t[y]=!0}),this}concat(...c){return this.constructor.concat(this,...c)}toJSON(c){const u=Object.create(null);return ue.forEach(this,(t,s)=>{t!=null&&t!==!1&&(u[s]=c&&ue.isArray(t)?t.join(", "):t)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([c,u])=>c+": "+u).join(`
|
|
1377
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(c){return c instanceof this?c:new this(c)}static concat(c,...u){const t=new this(c);return u.forEach(s=>t.set(s)),t}static accessor(c){const u=(this[ef]=this[ef]={accessors:{}}).accessors,t=this.prototype;function s(A){const w=ls(A);u[w]||(R1(t,A),u[w]=!0)}return ue.isArray(c)?c.forEach(s):s(c),this}};On.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ue.reduceDescriptors(On.prototype,({value:c},u)=>{let t=u[0].toUpperCase()+u.slice(1);return{get:()=>c,set(s){this[t]=s}}});ue.freezeMethods(On);function bc(c,u){const t=this||xs,s=u||t,A=On.from(s.headers);let w=s.data;return ue.forEach(c,function(y){w=y.call(t,w,A.normalize(),u?u.status:void 0)}),A.normalize(),w}function tg(c){return!!(c&&c.__CANCEL__)}function bo(c,u,t){Ze.call(this,c??"canceled",Ze.ERR_CANCELED,u,t),this.name="CanceledError"}ue.inherits(bo,Ze,{__CANCEL__:!0});function ng(c,u,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?c(t):u(new Ze("Request failed with status code "+t.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function I1(c){const u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c);return u&&u[1]||""}function O1(c,u){c=c||10;const t=new Array(c),s=new Array(c);let A=0,w=0,y;return u=u!==void 0?u:1e3,function(S){const f=Date.now(),p=s[w];y||(y=f),t[A]=S,s[A]=f;let o=w,a=0;for(;o!==A;)a+=t[o++],o=o%c;if(A=(A+1)%c,A===w&&(w=(w+1)%c),f-y<u)return;const i=p&&f-p;return i?Math.round(a*1e3/i):void 0}}function D1(c,u){let t=0,s=1e3/u,A,w;const y=(S,f=Date.now())=>{t=f,A=null,w&&(clearTimeout(w),w=null),c.apply(null,S)};return[(...S)=>{const f=Date.now(),p=f-t;p>=s?y(S,f):(A=S,w||(w=setTimeout(()=>{w=null,y(A)},s-p)))},()=>A&&y(A)]}const Fa=(c,u,t=3)=>{let s=0;const A=O1(50,250);return D1(w=>{const y=w.loaded,S=w.lengthComputable?w.total:void 0,f=y-s,p=A(f),o=y<=S;s=y;const a={loaded:y,total:S,progress:S?y/S:void 0,bytes:f,rate:p||void 0,estimated:p&&S&&o?(S-y)/p:void 0,event:w,lengthComputable:S!=null,[u?"download":"upload"]:!0};c(a)},t)},tf=(c,u)=>{const t=c!=null;return[s=>u[0]({lengthComputable:t,total:c,loaded:s}),u[1]]},nf=c=>(...u)=>ue.asap(()=>c(...u)),N1=yn.hasStandardBrowserEnv?((c,u)=>t=>(t=new URL(t,yn.origin),c.protocol===t.protocol&&c.host===t.host&&(u||c.port===t.port)))(new URL(yn.origin),yn.navigator&&/(msie|trident)/i.test(yn.navigator.userAgent)):()=>!0,F1=yn.hasStandardBrowserEnv?{write(c,u,t,s,A,w){const y=[c+"="+encodeURIComponent(u)];ue.isNumber(t)&&y.push("expires="+new Date(t).toGMTString()),ue.isString(s)&&y.push("path="+s),ue.isString(A)&&y.push("domain="+A),w===!0&&y.push("secure"),document.cookie=y.join("; ")},read(c){const u=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove(c){this.write(c,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function P1(c){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(c)}function W1(c,u){return u?c.replace(/\/?\/$/,"")+"/"+u.replace(/^\/+/,""):c}function ig(c,u){return c&&!P1(u)?W1(c,u):u}const rf=c=>c instanceof On?{...c}:c;function Fr(c,u){u=u||{};const t={};function s(p,o,a,i){return ue.isPlainObject(p)&&ue.isPlainObject(o)?ue.merge.call({caseless:i},p,o):ue.isPlainObject(o)?ue.merge({},o):ue.isArray(o)?o.slice():o}function A(p,o,a,i){if(ue.isUndefined(o)){if(!ue.isUndefined(p))return s(void 0,p,a,i)}else return s(p,o,a,i)}function w(p,o){if(!ue.isUndefined(o))return s(void 0,o)}function y(p,o){if(ue.isUndefined(o)){if(!ue.isUndefined(p))return s(void 0,p)}else return s(void 0,o)}function S(p,o,a){if(a in u)return s(p,o);if(a in c)return s(void 0,p)}const f={url:w,method:w,data:w,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:S,headers:(p,o,a)=>A(rf(p),rf(o),a,!0)};return ue.forEach(Object.keys(Object.assign({},c,u)),function(p){const o=f[p]||A,a=o(c[p],u[p],p);ue.isUndefined(a)&&o!==S||(t[p]=a)}),t}const rg=c=>{const u=Fr({},c);let{data:t,withXSRFToken:s,xsrfHeaderName:A,xsrfCookieName:w,headers:y,auth:S}=u;u.headers=y=On.from(y),u.url=Xp(ig(u.baseURL,u.url),c.params,c.paramsSerializer),S&&y.set("Authorization","Basic "+btoa((S.username||"")+":"+(S.password?unescape(encodeURIComponent(S.password)):"")));let f;if(ue.isFormData(t)){if(yn.hasStandardBrowserEnv||yn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((f=y.getContentType())!==!1){const[p,...o]=f?f.split(";").map(a=>a.trim()).filter(Boolean):[];y.setContentType([p||"multipart/form-data",...o].join("; "))}}if(yn.hasStandardBrowserEnv&&(s&&ue.isFunction(s)&&(s=s(u)),s||s!==!1&&N1(u.url))){const p=A&&w&&F1.read(w);p&&y.set(A,p)}return u},B1=typeof XMLHttpRequest<"u",z1=B1&&function(c){return new Promise(function(u,t){const s=rg(c);let A=s.data;const w=On.from(s.headers).normalize();let{responseType:y,onUploadProgress:S,onDownloadProgress:f}=s,p,o,a,i,r;function n(){i&&i(),r&&r(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let l=new XMLHttpRequest;l.open(s.method.toUpperCase(),s.url,!0),l.timeout=s.timeout;function d(){if(!l)return;const b=On.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),R={data:!y||y==="text"||y==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:b,config:c,request:l};ng(function($){u($),n()},function($){t($),n()},R),l=null}"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(t(new Ze("Request aborted",Ze.ECONNABORTED,c,l)),l=null)},l.onerror=function(){t(new Ze("Network Error",Ze.ERR_NETWORK,c,l)),l=null},l.ontimeout=function(){let b=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||Jp;s.timeoutErrorMessage&&(b=s.timeoutErrorMessage),t(new Ze(b,R.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,c,l)),l=null},A===void 0&&w.setContentType(null),"setRequestHeader"in l&&ue.forEach(w.toJSON(),function(b,R){l.setRequestHeader(R,b)}),ue.isUndefined(s.withCredentials)||(l.withCredentials=!!s.withCredentials),y&&y!=="json"&&(l.responseType=s.responseType),f&&([a,r]=Fa(f,!0),l.addEventListener("progress",a)),S&&l.upload&&([o,i]=Fa(S),l.upload.addEventListener("progress",o),l.upload.addEventListener("loadend",i)),(s.cancelToken||s.signal)&&(p=b=>{l&&(t(!b||b.type?new bo(null,c,l):b),l.abort(),l=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const g=I1(s.url);if(g&&yn.protocols.indexOf(g)===-1){t(new Ze("Unsupported protocol "+g+":",Ze.ERR_BAD_REQUEST,c));return}l.send(A||null)})},H1=(c,u)=>{const{length:t}=c=c?c.filter(Boolean):[];if(u||t){let s=new AbortController,A;const w=function(p){if(!A){A=!0,S();const o=p instanceof Error?p:this.reason;s.abort(o instanceof Ze?o:new bo(o instanceof Error?o.message:o))}};let y=u&&setTimeout(()=>{y=null,w(new Ze(`timeout ${u} of ms exceeded`,Ze.ETIMEDOUT))},u);const S=()=>{c&&(y&&clearTimeout(y),y=null,c.forEach(p=>{p.unsubscribe?p.unsubscribe(w):p.removeEventListener("abort",w)}),c=null)};c.forEach(p=>p.addEventListener("abort",w));const{signal:f}=s;return f.unsubscribe=()=>ue.asap(S),f}},U1=function*(c,u){let t=c.byteLength;if(t<u){yield c;return}let s=0,A;for(;s<t;)A=s+u,yield c.slice(s,A),s=A},j1=async function*(c,u){for await(const t of V1(c))yield*U1(t,u)},V1=async function*(c){if(c[Symbol.asyncIterator]){yield*c;return}const u=c.getReader();try{for(;;){const{done:t,value:s}=await u.read();if(t)break;yield s}}finally{await u.cancel()}},of=(c,u,t,s)=>{const A=j1(c,u);let w=0,y,S=f=>{y||(y=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:p,value:o}=await A.next();if(p){S(),f.close();return}let a=o.byteLength;if(t){let i=w+=a;t(i)}f.enqueue(new Uint8Array(o))}catch(p){throw S(p),p}},cancel(f){return S(f),A.return()}},{highWaterMark:2})},Ka=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",og=Ka&&typeof ReadableStream=="function",G1=Ka&&(typeof TextEncoder=="function"?(c=>u=>c.encode(u))(new TextEncoder):async c=>new Uint8Array(await new Response(c).arrayBuffer())),sg=(c,...u)=>{try{return!!c(...u)}catch{return!1}},K1=og&&sg(()=>{let c=!1;const u=new Request(yn.origin,{body:new ReadableStream,method:"POST",get duplex(){return c=!0,"half"}}).headers.has("Content-Type");return c&&!u}),sf=64*1024,uu=og&&sg(()=>ue.isReadableStream(new Response("").body)),Pa={stream:uu&&(c=>c.body)};Ka&&(c=>{["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!Pa[u]&&(Pa[u]=ue.isFunction(c[u])?t=>t[u]():(t,s)=>{throw new Ze(`Response type '${u}' is not supported`,Ze.ERR_NOT_SUPPORT,s)})})})(new Response);const q1=async c=>{if(c==null)return 0;if(ue.isBlob(c))return c.size;if(ue.isSpecCompliantForm(c))return(await new Request(yn.origin,{method:"POST",body:c}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(c)||ue.isArrayBuffer(c))return c.byteLength;if(ue.isURLSearchParams(c)&&(c=c+""),ue.isString(c))return(await G1(c)).byteLength},Y1=async(c,u)=>ue.toFiniteNumber(c.getContentLength())??q1(u),Z1=Ka&&(async c=>{let{url:u,method:t,data:s,signal:A,cancelToken:w,timeout:y,onDownloadProgress:S,onUploadProgress:f,responseType:p,headers:o,withCredentials:a="same-origin",fetchOptions:i}=rg(c);p=p?(p+"").toLowerCase():"text";let r=H1([A,w&&w.toAbortSignal()],y),n;const l=r&&r.unsubscribe&&(()=>{r.unsubscribe()});let d;try{if(f&&K1&&t!=="get"&&t!=="head"&&(d=await Y1(o,s))!==0){let _=new Request(u,{method:"POST",body:s,duplex:"half"}),v;if(ue.isFormData(s)&&(v=_.headers.get("content-type"))&&o.setContentType(v),_.body){const[T,E]=tf(d,Fa(nf(f)));s=of(_.body,sf,T,E)}}ue.isString(a)||(a=a?"include":"omit");const g="credentials"in Request.prototype;n=new Request(u,{...i,signal:r,method:t.toUpperCase(),headers:o.normalize().toJSON(),body:s,duplex:"half",credentials:g?a:void 0});let b=await fetch(n);const R=uu&&(p==="stream"||p==="response");if(uu&&(S||R&&l)){const _={};["status","statusText","headers"].forEach(I=>{_[I]=b[I]});const v=ue.toFiniteNumber(b.headers.get("content-length")),[T,E]=S&&tf(v,Fa(nf(S),!0))||[];b=new Response(of(b.body,sf,T,()=>{E&&E(),l&&l()}),_)}p=p||"text";let $=await Pa[ue.findKey(Pa,p)||"text"](b,c);return!R&&l&&l(),await new Promise((_,v)=>{ng(_,v,{data:$,headers:On.from(b.headers),status:b.status,statusText:b.statusText,config:c,request:n})})}catch(g){throw l&&l(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,c,n),{cause:g.cause||g}):Ze.from(g,g&&g.code,c,n)}}),hu={http:h1,xhr:z1,fetch:Z1};ue.forEach(hu,(c,u)=>{if(c){try{Object.defineProperty(c,"name",{value:u})}catch{}Object.defineProperty(c,"adapterName",{value:u})}});const af=c=>`- ${c}`,Q1=c=>ue.isFunction(c)||c===null||c===!1,ag={getAdapter:c=>{c=ue.isArray(c)?c:[c];const{length:u}=c;let t,s;const A={};for(let w=0;w<u;w++){t=c[w];let y;if(s=t,!Q1(t)&&(s=hu[(y=String(t)).toLowerCase()],s===void 0))throw new Ze(`Unknown adapter '${y}'`);if(s)break;A[y||"#"+w]=s}if(!s){const w=Object.entries(A).map(([S,f])=>`adapter ${S} `+(f===!1?"is not supported by the environment":"is not available in the build"));let y=u?w.length>1?`since :
|
|
1378
|
+
`+w.map(af).join(`
|
|
1379
|
+
`):" "+af(w[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return s},adapters:hu};function wc(c){if(c.cancelToken&&c.cancelToken.throwIfRequested(),c.signal&&c.signal.aborted)throw new bo(null,c)}function lf(c){return wc(c),c.headers=On.from(c.headers),c.data=bc.call(c,c.transformRequest),["post","put","patch"].indexOf(c.method)!==-1&&c.headers.setContentType("application/x-www-form-urlencoded",!1),ag.getAdapter(c.adapter||xs.adapter)(c).then(function(u){return wc(c),u.data=bc.call(c,c.transformResponse,u),u.headers=On.from(u.headers),u},function(u){return tg(u)||(wc(c),u&&u.response&&(u.response.data=bc.call(c,c.transformResponse,u.response),u.response.headers=On.from(u.response.headers))),Promise.reject(u)})}const lg="1.7.9",qa={};["object","boolean","number","function","string","symbol"].forEach((c,u)=>{qa[c]=function(t){return typeof t===c||"a"+(u<1?"n ":" ")+c}});const cf={};qa.transitional=function(c,u,t){function s(A,w){return"[Axios v"+lg+"] Transitional option '"+A+"'"+w+(t?". "+t:"")}return(A,w,y)=>{if(c===!1)throw new Ze(s(w," has been removed"+(u?" in "+u:"")),Ze.ERR_DEPRECATED);return u&&!cf[w]&&(cf[w]=!0,console.warn(s(w," has been deprecated since v"+u+" and will be removed in the near future"))),c?c(A,w,y):!0}};qa.spelling=function(c){return(u,t)=>(console.warn(`${t} is likely a misspelling of ${c}`),!0)};function X1(c,u,t){if(typeof c!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const s=Object.keys(c);let A=s.length;for(;A-- >0;){const w=s[A],y=u[w];if(y){const S=c[w],f=S===void 0||y(S,w,c);if(f!==!0)throw new Ze("option "+w+" must be "+f,Ze.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ze("Unknown option "+w,Ze.ERR_BAD_OPTION)}}const Da={assertOptions:X1,validators:qa},_i=Da.validators;let Dr=class{constructor(c){this.defaults=c,this.interceptors={request:new Jd,response:new Jd}}async request(c,u){try{return await this._request(c,u)}catch(t){if(t instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const A=s.stack?s.stack.replace(/^.+\n/,""):"";try{t.stack?A&&!String(t.stack).endsWith(A.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
|
1380
|
+
`+A):t.stack=A}catch{}}throw t}}_request(c,u){typeof c=="string"?(u=u||{},u.url=c):u=c||{},u=Fr(this.defaults,u);const{transitional:t,paramsSerializer:s,headers:A}=u;t!==void 0&&Da.assertOptions(t,{silentJSONParsing:_i.transitional(_i.boolean),forcedJSONParsing:_i.transitional(_i.boolean),clarifyTimeoutError:_i.transitional(_i.boolean)},!1),s!=null&&(ue.isFunction(s)?u.paramsSerializer={serialize:s}:Da.assertOptions(s,{encode:_i.function,serialize:_i.function},!0)),Da.assertOptions(u,{baseUrl:_i.spelling("baseURL"),withXsrfToken:_i.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let w=A&&ue.merge(A.common,A[u.method]);A&&ue.forEach(["delete","get","head","post","put","patch","common"],r=>{delete A[r]}),u.headers=On.concat(w,A);const y=[];let S=!0;this.interceptors.request.forEach(function(r){typeof r.runWhen=="function"&&r.runWhen(u)===!1||(S=S&&r.synchronous,y.unshift(r.fulfilled,r.rejected))});const f=[];this.interceptors.response.forEach(function(r){f.push(r.fulfilled,r.rejected)});let p,o=0,a;if(!S){const r=[lf.bind(this),void 0];for(r.unshift.apply(r,y),r.push.apply(r,f),a=r.length,p=Promise.resolve(u);o<a;)p=p.then(r[o++],r[o++]);return p}a=y.length;let i=u;for(o=0;o<a;){const r=y[o++],n=y[o++];try{i=r(i)}catch(l){n.call(this,l);break}}try{p=lf.call(this,i)}catch(r){return Promise.reject(r)}for(o=0,a=f.length;o<a;)p=p.then(f[o++],f[o++]);return p}getUri(c){c=Fr(this.defaults,c);const u=ig(c.baseURL,c.url);return Xp(u,c.params,c.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(c){Dr.prototype[c]=function(u,t){return this.request(Fr(t||{},{method:c,url:u,data:(t||{}).data}))}});ue.forEach(["post","put","patch"],function(c){function u(t){return function(s,A,w){return this.request(Fr(w||{},{method:c,headers:t?{"Content-Type":"multipart/form-data"}:{},url:s,data:A}))}}Dr.prototype[c]=u(),Dr.prototype[c+"Form"]=u(!0)});let J1=class cg{constructor(u){if(typeof u!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(A){t=A});const s=this;this.promise.then(A=>{if(!s._listeners)return;let w=s._listeners.length;for(;w-- >0;)s._listeners[w](A);s._listeners=null}),this.promise.then=A=>{let w;const y=new Promise(S=>{s.subscribe(S),w=S}).then(A);return y.cancel=function(){s.unsubscribe(w)},y},u(function(A,w,y){s.reason||(s.reason=new bo(A,w,y),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(u){if(this.reason){u(this.reason);return}this._listeners?this._listeners.push(u):this._listeners=[u]}unsubscribe(u){if(!this._listeners)return;const t=this._listeners.indexOf(u);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const u=new AbortController,t=s=>{u.abort(s)};return this.subscribe(t),u.signal.unsubscribe=()=>this.unsubscribe(t),u.signal}static source(){let u;return{token:new cg(function(t){u=t}),cancel:u}}};function e_(c){return function(u){return c.apply(null,u)}}function t_(c){return ue.isObject(c)&&c.isAxiosError===!0}const du={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(du).forEach(([c,u])=>{du[u]=c});function ug(c){const u=new Dr(c),t=Bp(Dr.prototype.request,u);return ue.extend(t,Dr.prototype,u,{allOwnKeys:!0}),ue.extend(t,u,null,{allOwnKeys:!0}),t.create=function(s){return ug(Fr(c,s))},t}const jt=ug(xs);jt.Axios=Dr;jt.CanceledError=bo;jt.CancelToken=J1;jt.isCancel=tg;jt.VERSION=lg;jt.toFormData=Ga;jt.AxiosError=Ze;jt.Cancel=jt.CanceledError;jt.all=function(c){return Promise.all(c)};jt.spread=e_;jt.isAxiosError=t_;jt.mergeConfig=Fr;jt.AxiosHeaders=On;jt.formToJSON=c=>eg(ue.isHTMLForm(c)?new FormData(c):c);jt.getAdapter=ag.getAdapter;jt.HttpStatusCode=du;jt.default=jt;const{Axios:lA,AxiosError:cA,CanceledError:uA,isCancel:hA,CancelToken:dA,VERSION:fA,all:pA,Cancel:gA,isAxiosError:mA,spread:vA,toFormData:yA,AxiosHeaders:bA,HttpStatusCode:wA,formToJSON:xA,getAdapter:_A,mergeConfig:SA}=jt,Lu=jt.create({baseURL:location.origin,timeout:6e4,params:{}});Lu.interceptors.response.use(c=>c,c=>{var u,t,s,A,w,y,S,f,p,o,a;if(c.response){if(c.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(n){n&&OpenC3Auth.setTokens()}),c.response.config.headers["Ignore-Errors"]&&c.response.config.headers["Ignore-Errors"].includes(c.response.status.toString()))return Promise.reject(c);let i=`HTTP ${c.response.status} - `;(u=c.response)!=null&&u.statusText&&(i+=`${c.response.statusText} `),(s=(t=c.response)==null?void 0:t.config)!=null&&s.data&&(i+=`${c.response.config.data} `),(w=(A=c.response)==null?void 0:A.data)!=null&&w.message?i+=`${c.response.data.message}`:(S=(y=c.response)==null?void 0:y.data)!=null&&S.exception?i+=`${c.response.data.exception}`:(o=(p=(f=c.response)==null?void 0:f.data)==null?void 0:p.error)!=null&&o.message?(c.response.data.error.class&&(i+=`${c.response.data.error.class} `),i+=`${c.response.data.error.message}`):i+=`${(a=c.response)==null?void 0:a.data}`;const{$cosmosNotify:r}=window;throw r&&r.serious({title:"Network error",body:i}),c}else throw c});const $a=async function(c,u,{data:t,params:s={},headers:A,noAuth:w=!1,noScope:y=!1,onUploadProgress:S=!1}={}){if(!w){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}A.Authorization=localStorage.openc3Token}return A.manual=!0,!y&&!s.scope&&(s.scope=window.openc3Scope),Lu({method:c,url:u,data:t,params:s,headers:A,onUploadProgress:S})},fu={Accept:"application/json"},uf={...fu,"Content-Type":"application/json"},n_={get:function(c,{params:u,headers:t=fu,noScope:s,noAuth:A,onUploadProgress:w}={}){return $a("get",c,{params:u,headers:t,noScope:s,noAuth:A,onUploadProgress:w})},put:function(c,{data:u,params:t,headers:s=uf,noScope:A,noAuth:w,onUploadProgress:y}={}){return $a("put",c,{data:u,params:t,headers:s,noScope:A,noAuth:w,onUploadProgress:y})},post:function(c,{data:u,params:t,headers:s=uf,noScope:A,noAuth:w,onUploadProgress:y}={}){return $a("post",c,{data:u,params:t,headers:s,noScope:A,noAuth:w,onUploadProgress:y})},delete:function(c,{params:u,headers:t=fu,noScope:s,noAuth:A,onUploadProgress:w}={}){return $a("delete",c,{params:u,headers:t,noScope:s,noAuth:A,onUploadProgress:w})}};let Ya=()=>({emit(c,...u){for(let t=this.events[c]||[],s=0,A=t.length;s<A;s++)t[s](...u)},events:{},on(c,u){var t;return((t=this.events)[c]||(t[c]=[])).push(u),()=>{var s;this.events[c]=(s=this.events[c])==null?void 0:s.filter(A=>u!==A)}}});class _s extends Error{constructor(u,t){u instanceof Error?(super(u.message),this.cause=u):super(u),this.reason=t,this.name="ReasonError"}}class Eu extends _s{constructor(u){super("Rejected",u),this.name="SubscriptionRejectedError"}}class i_ extends _s{constructor(u){super(u||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class li extends _s{constructor(u,t){t?super(u,t):super("Disconnected",u),this.name="DisconnectedError"}}class r_ extends li{constructor(u){super(u,"stale_connection"),this.name="StaleConnectionError"}}function hg(c){return c?`{${Object.keys(c).sort().filter(u=>c[u]!==void 0).map(u=>{let t=JSON.stringify(c[u]);return`${JSON.stringify(u)}:${t}`}).join(",")}}`:""}class o_{constructor(u){this.channel=u,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",u=>{if(u.type==="info"){this._state||(this._state=this.stateFromInfo(u));return}this._state&&(u.type==="join"?this._state[u.id]=u.info:u.type==="leave"&&delete this._state[u.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(u=>u()),this.listeners.length=0}async join(u,t){if(!this._info)return this._info={id:u,info:t},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let u=await this.channel.perform("$presence:leave");return delete this._info,u}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let u=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(u),this._state}finally{delete this._promise}}stateFromInfo(u){return u.records.reduce((t,{id:s,info:A})=>(t[s]=A,t),{})}}const Mr=Symbol("state");class dg{constructor(u={}){this.emitter=Ya(),this.params=Object.freeze(u),this.presence=new o_(this),this.initialConnect=!0,this[Mr]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=hg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Mr]}attached(u){if(this.receiver){if(this.receiver!==u)throw Error("Already connected to a different receiver");return!1}return this.receiver=u,!0}connecting(){this[Mr]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Mr]="connected";let u=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:u})):this.emit("connect",{reconnect:!0,restored:u})}restored(){if(this.state==="connected")throw Error("Already connected");this[Mr]="connected";let u=!0,t=!0;this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:u})}disconnected(u){this.state==="disconnected"||this.state==="closed"||(this[Mr]="disconnected",this.presence.reset(),this.emit("disconnect",u))}closed(u){this.state!=="closed"&&(this[Mr]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",u))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(u,t){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,u,t)}async send(u){return this.perform(void 0,u)}async whisper(u){try{await this.perform("$whisper",u)}catch(t){let s=this.receiver?this.receiver.logger:null;s&&s.warn("whisper failed: ",t)}}receive(u,t){this.emit("message",u,t)}on(u,t){return this.emitter.on(u,t)}once(u,t){let s=this.emitter.on(u,(...A)=>{s(),t(...A)});return s}emit(u,...t){return this.emitter.emit(u,...t)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((u,t)=>{let s=[()=>delete this._pendingSubscribe];s.push(this.on("connect",()=>{s.forEach(A=>A()),u()})),s.push(this.on("close",A=>{s.forEach(w=>w()),t(A||new _s("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class s_{constructor(u){this.id=u,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(u){this.channels.includes(u)||this.channels.push(u)}remove(u){let t=this.channels.indexOf(u);t>-1&&this.channels.splice(t,1)}notify(u,...t){this.state=u==="restored"?"connected":u,t.length===1?this.channels.forEach(s=>s[u](t[0])):this.channels.forEach(s=>s[u]())}pending(u){this._checkIntent(u);let t=this._pendings[0];return!t||t.intent!==u?Promise.resolve():t.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(u){this._checkIntent(u);let t,s={promise:new Promise(w=>{t=w}),intent:u,release:()=>{this._pendings.splice(this._pendings.indexOf(s),1),t(s)},canceled:!1,acquired:!1},A=this._pendingTop;return this._pendings.push(s),A&&await A.promise,this.gvl&&await this.gvl.acquire(s,u),s.acquired=!0,s}close(u){this.disposed=!0,this.intent=void 0,this.notify("closed",u)}_checkIntent(u){if(!(u==="unsubscribed"||u==="subscribed"))throw Error(`Unknown subscription intent: ${u}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(u){let t=this._pendingTop;return!t||t.acquired||t.intent!==u?!1:(this._pendings.pop(),t.canceled=!0,!0)}}class a_{constructor(){this.queue=[]}async acquire(u,t){t==="subscribed"&&(this.queue.push(u.promise.then(()=>{this.queue.splice(this.queue.indexOf(u),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class l_{constructor(u){u.concurrentSubscribes===!1&&(this.glv=new a_),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(u){return this._subscriptions[u]}create(u,{subscribe:t,unsubscribe:s}){let A=this._subscriptions[u]=new s_(u);return A.remoteId=this._localToRemote[u],A.subscriber=t,A.unsubscriber=s,A.gvl=this.glv,A}remove(u){delete this._subscriptions[u],delete this._localToRemote[u]}storeRemoteId(u,t){this._localToRemote[u]=t;let s=this.get(u);s&&(s.remoteId=t)}}class c_{constructor(u={}){this.subscriptions=new l_(u),this._pendingMessages=[],this._remoteToLocal={}}subscribe(u,t){this._remoteToLocal[t]=u,this.subscriptions.storeRemoteId(u,t),this.flush(t)}unsubscribe(u){let t=this.subscriptions.get(u);if(!t)return;let s=t.remoteId;s&&delete this._remoteToLocal[s],this.subscriptions.remove(u)}transmit(u,t,s){let A=this._remoteToLocal[u];if(!A){this._pendingMessages.push([u,t,s]);return}let w=this.subscriptions.get(A);w&&w.channels.forEach(y=>{y.receive(t,s)})}notify(u,t,s){let A=this._remoteToLocal[u];if(!A)return;let w=this.subscriptions.get(A);w&&w.channels.forEach(y=>y.emit(t,s))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(u=>u.channels)}flush(u){let t=[];for(let s of this._pendingMessages)s[0]===u?this.transmit(s[0],s[1],s[2]):t.push(s);this._pendingMessages=t}}const hf={debug:0,info:1,warn:2,error:3};class fg{constructor(u){this.level=u||"warn"}log(u,t,s){hf[u]<hf[this.level]||this.writeLogEntry(u,t,s)}writeLogEntry(){throw Error("Not implemented")}debug(u,t){this.log("debug",u,t)}info(u,t){this.log("info",u,t)}warn(u,t){this.log("warn",u,t)}error(u,t){this.log("error",u,t)}}class Ss extends fg{writeLogEntry(){}}class u_{encode(u){return JSON.stringify(u)}decode(u){try{return JSON.parse(u)}catch{}}}let h_=0;class pg{constructor(u={}){let{logger:t}=u;this.logger=t||new Ss,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=u.subscribeCooldownInterval||250,this.subscribeRetryInterval=u.subscribeRetryInterval||5e3}attached(u){this.cable=u}subscribe(u,t){let s={channel:u};t&&Object.assign(s,t);let A=hg(s);if(this.pendingUnsubscriptions[A]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,A),new Promise(S=>{setTimeout(()=>{S(this.subscribe(u,t))},y)})}if(this.pendingSubscriptions[A])return this.logger.warn("subscription is already pending, skipping",A),Promise.reject(Error("Already subscribing"));let w=this.subscribeRetryInterval;return new Promise((y,S)=>{let f=++h_;this.pendingSubscriptions[A]={resolve:y,reject:S,id:f},this.cable.send(this.buildSubscribeRequest(A)),this.maybeRetrySubscribe(f,A,w)})}buildSubscribeRequest(u){return{command:"subscribe",identifier:u}}maybeRetrySubscribe(u,t,s){setTimeout(()=>{let A=this.pendingSubscriptions[t];A&&A.id===u&&(this.logger.warn(`no subscription ack received in ${s}ms, retrying subscribe`,t),this.cable.send(this.buildSubscribeRequest(t)),this.maybeExpireSubscribe(u,t,s))},s)}maybeExpireSubscribe(u,t,s){setTimeout(()=>{let A=this.pendingSubscriptions[t];A&&A.id===u&&(delete this.pendingSubscriptions[t],A.reject(new i_(`Haven't received subscription ack in ${s*2}ms for ${t}`)))},s)}unsubscribe(u){return this.cable.send({command:"unsubscribe",identifier:u}),this.pendingUnsubscriptions[u]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[u]},this.subscribeCooldownInterval),Promise.resolve()}perform(u,t,s){return t==="$whisper"?this.whisper(u,s):(s||(s={}),s.action=t,this.cable.send({command:"message",identifier:u,data:JSON.stringify(s)}),Promise.resolve())}whisper(u,t){return this.cable.send({command:"whisper",identifier:u,data:t}),Promise.resolve()}receive(u){if(typeof u!="object"){this.logger.error("unsupported message format",{message:u});return}let{type:t,identifier:s,message:A,reason:w,reconnect:y}=u;if(t==="ping")return this.cable.keepalive(u.message);if(this.cable.keepalive(),t==="welcome"){let S=u.sid;return S&&this.cable.setSessionId(S),this.cable.connected()}if(t==="disconnect"){let S=new li(w);this.reset(S),y===!1?this.cable.closed(S):this.cable.disconnected(S);return}if(t==="confirm_subscription"){let S=this.pendingSubscriptions[s];if(!S){this.logger.error("subscription not found, unsubscribing",{type:t,identifier:s}),this.unsubscribe(s);return}return delete this.pendingSubscriptions[s],S.resolve(s)}if(t==="reject_subscription"){let S=this.pendingSubscriptions[s];return S?(delete this.pendingSubscriptions[s],S.reject(new Eu)):this.logger.error("subscription not found",{type:t,identifier:s})}if(A)return{identifier:s,message:A};this.logger.warn(`unknown message type: ${t}`,{message:u})}reset(u){for(let t in this.pendingSubscriptions)this.pendingSubscriptions[t].reject(u);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const df=()=>Date.now()/1e3|0;class d_ extends pg{constructor(u={}){super(u),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=u.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=df()),this.sessionId=void 0,this.sendPongs=u.pongs}reset(u){for(let t in this.pendingPresence)this.pendingPresence[t].reject(u);return this.pendingPresence={},super.reset()}receive(u){if(typeof u!="object"){this.logger.error("unsupported message format",{message:u});return}let{type:t,identifier:s,message:A}=u;if(t==="disconnect"||t==="reject_subscription")return super.receive(u);if(t==="confirm_subscription")return this.subscriptionStreams[s]||(this.subscriptionStreams[s]=new Set),super.receive(u);if(t==="ping")return this.restoreSince&&(this.restoreSince=df()),this.sendPongs&&this.sendPong(),this.cable.keepalive(u.message);if(this.cable.keepalive(),t==="confirm_history"){this.logger.debug("history result received",u),this.cable.notify("history_received",s);return}if(t==="reject_history"){this.logger.warn("failed to retrieve history",u),this.cable.notify("history_not_found",s);return}if(t==="welcome"){if(this.sessionId=u.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),u.restored){let w=u.restored_ids||Object.keys(this.subscriptionStreams);for(let y of w)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(w)}return this.cable.connected(this.sessionId)}if(t==="presence"){let w=A.type;if(w==="info"){let y=this.pendingPresence[s];y&&(delete this.pendingPresence[s],y.resolve(A))}else if(w==="error"){let y=this.pendingPresence[s];y&&(delete this.pendingPresence[s],y.reject(new Error("failed to retrieve presence")))}return{type:t,identifier:s,message:A}}if(A){let w=this.trackStreamPosition(s,u.stream_id,u.epoch,u.offset);return{identifier:s,message:A,meta:w}}this.logger.warn(`unknown message type: ${t}`,{message:u})}perform(u,t,s){switch(t){case"$presence:join":return this.join(u,s);case"$presence:leave":return this.leave(u,s);case"$presence:info":return this.presence(u,s)}return super.perform(u,t,s)}unsubscribe(u){return delete this.presenceInfo[u],super.unsubscribe(u)}buildSubscribeRequest(u){let t=super.buildSubscribeRequest(u),s=this.historyRequestFor(u);s&&(t.history=s,this.pendingHistory[u]=!0);let A=this.presenceInfo[u];return A&&(t.presence=A),t}recoverableClosure(){return!!this.sessionId}historyRequestFor(u){let t={},s=!1;if(this.subscriptionStreams[u])for(let A of this.subscriptionStreams[u]){let w=this.streamsPositions[A];w&&(s=!0,t[A]=w)}if(!(!s&&!this.restoreSince))return{since:this.restoreSince,streams:t}}trackStreamPosition(u,t,s,A){if(!(!t||!s))return this.subscriptionStreams[u]||(this.subscriptionStreams[u]=new Set),this.subscriptionStreams[u].add(t),this.streamsPositions[t]={epoch:s,offset:A},{stream:t,epoch:s,offset:A}}async sendPong(){await new Promise(u=>setTimeout(u,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(u,t){return this.presenceInfo[u]=t,this.cable.send({command:"join",identifier:u,presence:t}),Promise.resolve()}async leave(u,t){return delete this.presenceInfo[u],this.cable.send({command:"leave",identifier:u,presence:t}),Promise.resolve()}presence(u,t){return this.pendingPresence[u]?(this.logger.warn("presence is already pending, skipping",u),Promise.reject(Error("presence request is already pending"))):new Promise((s,A)=>{this.pendingPresence[u]={resolve:s,reject:A},this.cable.send({command:"presence",identifier:u,data:t})})}}class f_ extends _s{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Ru extends dg{constructor(u,t){super(t),this.channelId=u}set channelId(u){this._channelId=u}get channelId(){return this._channelId}}ki(Ru,"identifier","__ghost__");const p_="$pubsub";class pu extends dg{async perform(u,t){if(u.startsWith("$"))return super.perform(u,t);throw Error("not implemented")}}ki(pu,"identifier",p_);const Lr=Symbol("state");let g_=class{constructor({transport:c,protocol:u,encoder:t,logger:s,lazy:A,hubOptions:w,performFailures:y,transportConfigurator:S}){this.emitter=Ya(),this.transport=c,this.encoder=t,this.logger=s||new Ss,this.protocol=u,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new c_(w||{}),this[Lr]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=S,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,A===!1&&this.connect().catch(()=>{})}get state(){return this[Lr]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let c=this.state==="idle";this[Lr]="connecting";let u=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:c}),await this.transport.open()}catch(t){this.handleClose(t)}return u}setSessionId(c){this.sessionId=c,this.transport.setParam("sid",c)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Lr]="connected",this.recovering&&this.hub.subscriptions.all().forEach(u=>u.notify("disconnected",new li("recovery_failed"))),this.hub.subscriptions.all().forEach(u=>this._resubscribe(u));let c=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:c})):this.emit("connect",{reconnect:!0,restored:c})}restored(c){this.logger.info("connection recovered",{remoteIds:c}),this[Lr]="connected",this.hub.subscriptions.all().forEach(s=>{c&&s.remoteId&&c.includes(s.remoteId)?s.notify("restored"):(s.notify("disconnected",new li("recovery_failed")),this._resubscribe(s))});let u=!this.initialConnect,t=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:u,restored:t})}notify(c,u,t){u&&typeof u!="string"&&(t=u,u=void 0),u?this.hub.notify(u,"info",{type:c,data:t}):this.emit("info",{type:c,data:t})}handleClose(c){this.logger.debug("transport closed",{error:c}),this.disconnected(new li(c,"transport_closed"))}disconnected(c){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:c}),this[Lr]="disconnected",this.recovering=this.protocol.recoverableClosure(c),this.recovering?this.hub.subscriptions.all().forEach(u=>u.notify("connecting")):this.hub.subscriptions.all().forEach(u=>{u.notify("disconnected",c)}),this.protocol.reset(c),this.hub.close(),this.transport.close(),this.emit("disconnect",c))}closed(c){if(this.state==="closed"||this.state==="idle")return;let u;c&&(u=c instanceof li?c:new li(c,void 0)),this.logger.info("closed",{reason:c||"user"}),this[Lr]="closed";let t=u||new li("cable_closed");this.hub.subscriptions.all().forEach(s=>s.notify("disconnected",t)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",u)}disconnect(){this.closed()}handleIncoming(c){if(this.state==="closed"||this.state==="idle")return;let u=this.encoder.decode(c);if(u===void 0){this.logger.error("failed to decode message",{message:c});return}this.logger.debug("incoming data",u);let t=this.protocol.receive(u);if(t){this.logger.debug("processed incoming message",t);let{type:s,identifier:A,message:w,meta:y}=t;s?this.hub.notify(A,s,w):this.hub.transmit(A,w,y)}}send(c){if(this.state==="closed")throw Error("Cable is closed");let u=this.encoder.encode(c);if(u===void 0){this.logger.error("failed to encode message",{message:c});return}this.logger.debug("outgoing message",c),this.transport.send(u)}keepalive(c){this.emit("keepalive",c)}streamFrom(c){let u=new pu({stream_name:c});return this.subscribe(u)}streamFromSigned(c){let u=new pu({signed_stream_name:c});return this.subscribe(u)}subscribeTo(c,u){let t,s;return typeof c=="string"&&(s=c,c=Ru),t=s?new c(s,u):new c(u),this.subscribe(t)}subscribe(c){if(!c.attached(this))return c;let u=c.identifier;c.connecting();let t=this.hub.subscriptions.get(u)||this.hub.subscriptions.create(u,{subscribe:s=>this._subscribe(s,c.channelId,c.params),unsubscribe:s=>this._unsubscribe(s)});return t.add(c),t.intent==="subscribed"&&t.state==="connected"&&c.connected(),t.ensureSubscribed(),c}async _resubscribe(c){c.intent!=="subscribed"||!c.channels[0]||(c.notify("connecting"),c.ensureResubscribed())}async _subscribe(c,u,t){let s=c.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:s});return}this.logger.debug("acquiring subscribe lock",{identifier:s});let A=await c.acquire("subscribed");if(A.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:s}),A.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:s}),c.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),A.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:s}),A.release();return}if(c.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:s}),c.notify("connected"),A.release();return}let w={identifier:u,params:t};this.logger.debug("subscribing",w);try{let y=await this.protocol.subscribe(u,t);this.hub.subscribe(s,y),this.logger.debug("subscribed",{...w,remoteId:y}),c.notify("connected")}catch(y){if(y){if(y instanceof Eu&&this.logger.warn("rejected",w),y instanceof li){this.logger.debug("disconnected during subscription; will retry on connect",w),A.release();return}this.logger.error("failed to subscribe",{error:y,...w})}c.close(y),this.hub.unsubscribe(s)}A.release()}unsubscribe(c){let u=c.identifier,t=this.hub.subscriptions.get(u);if(!t)throw Error(`Subscription not found: ${u}`);t.remove(c),c.closed(),t.maybeUnsubscribe()}async _unsubscribe(c){let u=c.id;this.logger.debug("acquiring unsubscribe lock",{identifier:u});let t=await c.acquire("unsubscribed");if(t.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:u}),t.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:u}),c.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:u,intent:c.intent}),t.release();return}if(c.state==="disconnected"||c.state==="closed"){this.logger.debug(`already ${c.state} connected, skip unsubscribe command`,{identifier:u}),t.release();return}let s=c.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:s}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:u}),c.close(),this.hub.unsubscribe(u),t.release();return}try{await this.protocol.unsubscribe(s),this.logger.debug("unsubscribed remotely",{id:u})}catch(A){A&&(A instanceof li?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:u,error:A}):this.logger.error("unsubscribe failed",{id:u,error:A}))}c.intent==="unsubscribed"?(c.close(),this.hub.unsubscribe(u)):c.state="closed",t.release()}async perform(c,u,t){if(this.performFailures==="throw")return this._perform(c,u,t);try{return await this._perform(c,u,t)}catch(s){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:s});return}}async _perform(c,u,t){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new f_;let s=this.hub.subscriptions.get(c);if(!s)throw Error(`Subscription not found: ${c}`);if(await s.pending("subscribed"),s.intent!=="subscribed")throw Error(`Subscription is closed: ${c}`);let A=s.remoteId,w={id:A,action:u,payload:t};this.logger.debug("perform",w);try{let y=await this.protocol.perform(A,u,t);return y&&this.logger.debug("perform result",{message:y,request:w}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:w}),y}}on(c,u){return this.emitter.on(c,u)}once(c,u){let t=this.emitter.on(c,(...s)=>{t(),u(...s)});return t}emit(c,...u){return this.emitter.emit(c,...u)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((c,u)=>{let t=[()=>delete this._pendingConnect];t.push(this.on("connect",()=>{t.forEach(s=>s()),c()})),t.push(this.on("close",s=>{t.forEach(A=>A()),u(s)})),t.push(this.on("disconnect",s=>{t.forEach(A=>A()),u(s)}))}),this._pendingConnect)}};const m_={maxMissingPings:2,maxReconnectAttempts:1/0},lo=()=>Date.now(),gg=(c,u)=>{u=u||{};let{backoffRate:t,jitterRatio:s,maxInterval:A}=u;return t=t||2,s===void 0&&(s=.5),w=>{let y=c*t**w,S=y*t,f=y+(S-y)*Math.random(),p=2*(Math.random()-.5)*s;return f=f*(1+p),A&&A<f&&(f=A),f}};let mg=class{constructor({pingInterval:c,...u}){if(this.pingInterval=c,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${c}`);if(u=Object.assign({},m_,u),this.strategy=u.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=u.maxMissingPings,this.maxReconnectAttempts=u.maxReconnectAttempts,this.logger=u.logger||new Ss,this.state="pending_connect",this.attempts=0,this.disconnectedAt=lo()}watch(c){this.target=c,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(c=>{this.logger.info("Failed at reconnecting: "+c)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=lo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=lo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=lo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=lo()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(c=>c()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let c=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},c)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let c=lo()-this.pingedAt;c>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${c}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new r_))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let c=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${c}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),c)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class v_{constructor(u,t={}){this.transports=u,this.transport=null,this.emitter=Ya(),this.unbind=[],this.logger=t.logger||new Ss}displayName(){return"fallbacked transport"}async open(){for(let u=0;u<this.transports.length;u++){let t=this.transports[u];try{this.transport=t,this.resetListeners(),this.logger.debug(`Trying to connect via ${t.displayName()}`),await t.open(),this.logger.debug(`Connected via ${t.displayName()}`);return}catch(s){this.logger.debug(`Failed to connect via ${t.displayName()}: ${s.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(u){if(!this.transport)throw new Error("No transport is open");this.transport.send(u)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(u,t){this.transports.forEach(s=>{s.setParam(u,t)})}setToken(u,t){this.transports.forEach(s=>{s.setToken(u,t)})}on(u,t){return this.emitter.on(u,t)}once(u,t){let s=this.emitter.on(u,(...A)=>{s(),t(...A)});return s}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(u=>u()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",u=>{this.emitter.emit("data",u)}),this.transport.on("close",u=>{this.emitter.emit("close",u)}),this.transport.on("error",u=>{this.emitter.emit("error",u)}))}}class y_{constructor(u,t={}){this.url=u;let s=t.websocketImplementation;if(s)this.Impl=s;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Ya();let{format:A,subprotocol:w,authStrategy:y}=t;this.format=A||"text",this.connectionOptions=t.websocketOptions,this.authStrategy=y||"param",this.authProtocol="",this.subprotocol=w}displayName(){return"WebSocket("+this.url+")"}open(){let u=this.subprotocol;return this.authStrategy==="sub-protocol"&&(u=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,u,this.connectionOptions):this.ws=new this.Impl(this.url,u),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((t,s)=>{let A=[];A.push(this.once("open",()=>{A.forEach(w=>w()),t()})),A.push(this.once("close",()=>{A.forEach(w=>w()),s(Error("WS connection closed"))}))})}setURL(u){this.url=u}setParam(u,t){let s=new URL(this.url);s.searchParams.set(u,t);let A=`${s.protocol}//${s.host}${s.pathname}?${s.searchParams}`;this.setURL(A)}setToken(u,t="jid"){if(this.authStrategy==="param")this.setParam(t,u);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let s=`x-${t}`.toLowerCase();s=Object.keys(this.connectionOptions.headers).find(A=>A.toLowerCase()===s)||s,this.connectionOptions.headers[s]=u}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${u}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(u){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(u)}close(){this.ws?this.onclose():this.connected=!1}on(u,t){return this.emitter.on(u,t)}once(u,t){let s=this.emitter.on(u,(...A)=>{s(),t(...A)});return s}initListeners(){this.ws.onerror=u=>{this.connected&&this.emitter.emit("error",u.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=u=>{let t=u.data;this.format==="binary"&&(t=new Uint8Array(t)),this.emitter.emit("data",t)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const vg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function b_(c,u){if(typeof c=="object"&&typeof u>"u"&&(u=c,c=void 0),u=u||{},!c&&!u.transport)throw Error("URL or transport must be specified");u=Object.assign({},vg,u);let{protocol:t,websocketImplementation:s,websocketFormat:A,websocketOptions:w,websocketAuthStrategy:y,fallbacks:S,logLevel:f,logger:p,transport:o,encoder:a,lazy:i,monitor:r,pingInterval:n,reconnectStrategy:l,maxMissingPings:d,maxReconnectAttempts:g,subprotocol:b,tokenRefresher:R,historyTimestamp:$,protocolOptions:_,concurrentSubscribes:v,performFailures:T,transportConfigurator:E,auth:I}=u;if(p=p||new Ss(f),typeof t=="string"){b=b||t;let k=t.substring(0,t.lastIndexOf("-")),m=t.substring(t.lastIndexOf("-")+1);if(_=_||{},k==="actioncable-v1")t=new pg({logger:p,..._});else if(k==="actioncable-v1-ext")t=new d_({logger:p,historyTimestamp:$,..._});else throw Error(`Protocol is not supported yet: ${t}`);if(m==="json")a=a||new u_,A=A||"text";else if(m==="msgpack"){if(A="binary",!a)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(m==="protobuf"){if(A=A||"binary",!a)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${t}`)}if(!t)throw Error("Protocol must be specified");o=o||new y_(c,{websocketImplementation:s,websocketOptions:w,subprotocol:b,authStrategy:y,format:A}),S&&(o=new v_([o,...S],{logger:p})),I&&I.token&&o.setToken(I.token,I.param||"jid"),l=l||gg(n),r!==!1&&(r=r||new mg({pingInterval:n,reconnectStrategy:l,maxMissingPings:d,maxReconnectAttempts:g,logger:p}));let M={concurrentSubscribes:v},N=new g_({protocol:t,transport:o,encoder:a,logger:p,lazy:i,hubOptions:M,performFailures:T,transportConfigurator:E});return r&&(r.watch(N),N.monitor=r),R&&w_(N,async()=>{try{await R(o)}catch(k){return p.error("Failed to refresh authentication token: "+k),!1}return N.connect().catch(()=>{}),!0}),N}function w_(c,u){let t=!1;c.on("connect",()=>t=!1),c.on("close",async s=>{if(s){if(t){c.logger.warn("Token auto-refresh is disabled",s);return}s.reason==="token_expired"&&(t=!0,await u())}})}class x_{constructor(u){this.channel=u}notify(u,...t){typeof this[u]=="function"&&this[u](...t)}perform(u,t={}){this.channel.perform(u,t)}send(u){this.channel.send(u)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class __ extends Ru{constructor(u,t,s){super(u,t),this.subscription=new x_(this),Object.assign(this.subscription,s),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",A=>this.subscription.notify("received",A)),this.on("close",A=>{A&&A instanceof Eu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class S_{constructor(u){this.cable=u}create(u,t){let s,A;typeof u=="object"?(s=u.channel,delete u.channel,A=u):(s=u,A={});let w=new __(s,A,t);return w.subscription.notify("initialized"),this.cable.subscribe(w),w.subscription}findAll(u){return this.cable.hub.channels.filter(t=>t.identifier===u).map(t=>t.subscription)}}class k_{constructor(u){this.cable=u,this.subscriptions=new S_(u)}}class C_ extends fg{writeLogEntry(u,t,s){s?console[u](t,s):console[u](t)}}class A_ extends mg{watch(u){super.watch(u),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let u=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},t=A=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:A})},s=()=>this.disconnect(new li("page_frozen"));document.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",t,!1),window.addEventListener("online",t,!1),window.addEventListener("resume",t,!1),window.addEventListener("freeze",s,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",u,!1),window.removeEventListener("focus",t,!1),window.removeEventListener("online",t,!1),window.removeEventListener("resume",t,!1),window.removeEventListener("freeze",s,!1)})}}disconnect(u){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:u.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(u))}}const $_=["cable","action-cable"],T_="/cable",Za=(c,u)=>{for(let t of $_){let s=c.head.querySelector(`meta[name='${t}-${u}']`);if(s)return s.getAttribute("content")}},ff=c=>c.match(/wss?:\/\//)?c:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${c}`:c,M_=()=>{if(typeof document<"u"&&document.head){let c=Za(document,"url");if(c)return ff(c)}return ff(T_)},L_=()=>{if(typeof document<"u"&&document.head){let c=Za(document,"history-timestamp");if(c)return c|0}},E_=()=>{if(typeof document<"u"&&document.head)return Za(document,"token")},R_=()=>{if(typeof document<"u"&&document.head)return Za(document,"token-param")};function I_(c,u){typeof c=="object"&&typeof u>"u"&&(u=c,c=void 0),c=c||M_(),u=u||{},u.historyTimestamp||(u.historyTimestamp=L_());let t=E_();if(t){let p=R_();u.auth=Object.assign({token:t,param:p},u.auth||{})}u=Object.assign({},vg,u);let{logLevel:s,logger:A,pingInterval:w,reconnectStrategy:y,maxMissingPings:S,maxReconnectAttempts:f}=u;return A=u.logger=u.logger||new C_(s),y=u.reconnectStrategy=u.reconnectStrategy||gg(w),u.monitor!==!1&&(u.monitor=u.monitor||new A_({pingInterval:w,reconnectStrategy:y,maxMissingPings:S,maxReconnectAttempts:f,logger:A})),b_(c,u)}function O_(c,u){let t=I_(c,u);return new k_(t)}class D_{constructor(u="/openc3-api/cable"){this._cable=null,this._url=u}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(u,t,s={},A={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(w=>{if(w&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=O_(y)}return this._cable.subscriptions.create({channel:u,...A},s)})}recordPing(){}}class gu{constructor(u,t,s="",A=""){this.keyword=u.keyword,this.parameters=u.parameters,this.filename=u.filename,this.line=u.line,this.lineNumber=u.lineNumber,this.message=t,this.usage=s,this.url=A}}class N_{constructor(){ki(this,"keyword",null),ki(this,"parameters",[]),ki(this,"filename",""),ki(this,"line",""),ki(this,"lineNumber",0),ki(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(u,t,s=""){for(let A=1;A<=u;A++)if(this.parameters[A-1]===void 0)throw new gu(this,`Not enough parameters for ${this.keyword}.`,s,this.url);if(t&&this.parameters[t]!==void 0)throw new gu(this,`Too many parameters for ${this.keyword}.`,s,this.url)}remove_quotes(u){if(u.length<2)return u;let t=u.charAt(0);if(t!=='"'&&t!=="'")return u;let s=u.charAt(u.length-1);return t!==s?u:u.substring(1,u.length-1)}scan_string(u,t){if(!t.global)throw"rx must have 'global' flag set";let s=[];return u.replace(t,function(A){return s.push(A),A}),s}parse_string(u,t,s,A,w){let y=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;let S=u.split(`
|
|
1381
|
+
`),f=S.length;for(let p=0;p<f;p++){this.lineNumber=p+1;let o=S[p].trim();if(o.length===0)continue;if(y===!0){if(o[0]==="#")continue;o=o.substring(1,o.length)}let a=o.charAt(o.length-1),i=!1;switch(a){case"+":i=!0;case"\\":let g=o.substring(0,o.length-1).trim();this.line+=g.substring(0,g.length-1),i&&(this.line+=`
|
|
1382
|
+
`),y=!0;continue;case"&":this.line+=o.substring(0,o.length-1);continue;default:this.line+=o}y=!1;let r=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,n=this.scan_string(this.line,r),l="";if(n.length>0&&(l=l+n[0]),l.length===0||l.charAt(0)==="#"?this.keyword=null:this.keyword=l.toUpperCase(),this.parameters=[],this.keyword===null){s&&w(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let d=n.length;if(d>1)for(let g=1;g<d;g++){let b=n[g];if(b.length>0&&b.charAt(0)==="#")break;A?this.parameters.push(this.remove_quotes(b)):this.parameters.push(b)}w(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}function Iu(c){return F_.test(c)}const F_=/^-?[0-9]+$/;function yg(c){return P_.test(c)}const P_=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function bg(c,u){const t=Number.parseFloat(c),s=String(t),A=pf(c),w=pf(s);return!!(A===w||(u==null?void 0:u.approx)===!0&&!Iu(c)&&w.length>=14&&A.startsWith(w.substring(0,14)))}let hs=function(c){return c.underflow="underflow",c.overflow="overflow",c.truncate_integer="truncate_integer",c.truncate_float="truncate_float",c}({});function W_(c){if(bg(c,{approx:!1}))return;if(Iu(c))return hs.truncate_integer;const u=Number.parseFloat(c);return Number.isFinite(u)?u===0?hs.underflow:hs.truncate_float:hs.overflow}function pf(c){return c.replace(B_,"").replace(H_,"").replace(U_,"").replace(z_,"")}const B_=/[eE][+-]?\d+$/,z_=/^-?(0*)?/,H_=/\./,U_=/0+$/;class j_{constructor(u){if(ki(this,"isLosslessNumber",!0),!yg(u))throw new Error(`Invalid number (value: "${u}")`);this.value=u}valueOf(){const u=W_(this.value);if(u===void 0||u===hs.truncate_float)return Number.parseFloat(this.value);if(Iu(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${u} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function V_(c){return c&&typeof c=="object"&&c.isLosslessNumber===!0||!1}function G_(c){return new j_(c)}function K_(c,u){return Ou({"":c},"",c,u)}function Ou(c,u,t,s){return Array.isArray(t)?s.call(c,u,Y_(t,s)):t&&typeof t=="object"&&!V_(t)?s.call(c,u,q_(t,s)):s.call(c,u,t)}function q_(c,u){for(const t of Object.keys(c)){const s=Ou(c,t,c[t],u);s!==void 0?c[t]=s:delete c[t]}return c}function Y_(c,u){for(let t=0;t<c.length;t++)c[t]=Ou(c,String(t),c[t],u);return c}function Z_(c,u){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:G_,s=0;const A=S();return n(A),d(),u?K_(A,u):A;function w(){if(c.charCodeAt(s)===nS){s++,p();const x={};let L=!0;for(;s<c.length&&c.charCodeAt(s)!==mf;){L?L=!1:(i(),p());const O=s,F=o();if(F===void 0){R();return}p(),r();const W=S();if(W===void 0){I();return}Object.prototype.hasOwnProperty.call(x,F)&&!mu(W,x[F])&&$(F,O+1),x[F]=W}return c.charCodeAt(s)!==mf&&_(),s++,x}}function y(){if(c.charCodeAt(s)===iS){s++,p();const x=[];let L=!0;for(;s<c.length&&c.charCodeAt(s)!==vf;){L?L=!1:i();const O=S();l(O),x.push(O)}return c.charCodeAt(s)!==vf&&v(),s++,x}}function S(){p();const x=o()??a()??w()??y()??f("true",!0)??f("false",!1)??f("null",null);return p(),x}function f(x,L){if(c.slice(s,s+x.length)===x)return s+=x.length,L}function p(){for(;Q_(c.charCodeAt(s));)s++}function o(){if(c.charCodeAt(s)===xc){s++;let x="";for(;s<c.length&&c.charCodeAt(s)!==xc;){if(c.charCodeAt(s)===tS){const L=c[s+1],O=eS[L];O!==void 0?(x+=O,s++):L==="u"?Ta(c.charCodeAt(s+2))&&Ta(c.charCodeAt(s+3))&&Ta(c.charCodeAt(s+4))&&Ta(c.charCodeAt(s+5))?(x+=String.fromCharCode(Number.parseInt(c.slice(s+2,s+6),16)),s+=5):M(s):E(s)}else J_(c.charCodeAt(s))?x+=c[s]:T(c[s]);s++}return b(),s++,x}}function a(){const x=s;if(c.charCodeAt(s)===yf&&(s++,g(x)),c.charCodeAt(s)===Du)s++;else if(X_(c.charCodeAt(s)))for(s++;Ma(c.charCodeAt(s));)s++;if(c.charCodeAt(s)===hS)for(s++,g(x);Ma(c.charCodeAt(s));)s++;if(c.charCodeAt(s)===mS||c.charCodeAt(s)===gS)for(s++,(c.charCodeAt(s)===yf||c.charCodeAt(s)===lS)&&s++,g(x);Ma(c.charCodeAt(s));)s++;if(s>x)return t(c.slice(x,s))}function i(){if(c.charCodeAt(s)!==uS)throw new SyntaxError(`Comma ',' expected after value ${m()}`);s++}function r(){if(c.charCodeAt(s)!==dS)throw new SyntaxError(`Colon ':' expected after property name ${m()}`);s++}function n(x){if(x===void 0)throw new SyntaxError(`JSON value expected ${m()}`)}function l(x){if(x===void 0)throw new SyntaxError(`Array item expected ${m()}`)}function d(){if(s<c.length)throw new SyntaxError(`Expected end of input ${m()}`)}function g(x){if(!Ma(c.charCodeAt(s))){const L=c.slice(x,s);throw new SyntaxError(`Invalid number '${L}', expecting a digit ${m()}`)}}function b(){if(c.charCodeAt(s)!==xc)throw new SyntaxError(`End of string '"' expected ${m()}`)}function R(){throw new SyntaxError(`Quoted object key expected ${m()}`)}function $(x,L){throw new SyntaxError(`Duplicate key '${x}' encountered at position ${L}`)}function _(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${m()}`)}function v(){throw new SyntaxError(`Array item or end of array ']' expected ${m()}`)}function T(x){throw new SyntaxError(`Invalid character '${x}' ${N()}`)}function E(x){const L=c.slice(x,x+2);throw new SyntaxError(`Invalid escape character '${L}' ${N()}`)}function I(){throw new SyntaxError(`Object value expected after ':' ${N()}`)}function M(x){const L=c.slice(x,x+6);throw new SyntaxError(`Invalid unicode character '${L}' ${N()}`)}function N(){return`at position ${s}`}function k(){return s<c.length?`but got '${c[s]}'`:"but reached end of input"}function m(){return`${k()} ${N()}`}}function Q_(c){return c===rS||c===oS||c===sS||c===aS}function Ta(c){return c>=Du&&c<=Nu||c>=fS&&c<=vS||c>=pS&&c<=yS}function Ma(c){return c>=Du&&c<=Nu}function X_(c){return c>=cS&&c<=Nu}function J_(c){return c>=32&&c<=1114111}function mu(c,u){return c===u?!0:Array.isArray(c)&&Array.isArray(u)?c.length===u.length&&c.every((t,s)=>mu(t,u[s])):gf(c)&&gf(u)?[...new Set([...Object.keys(c),...Object.keys(u)])].every(t=>mu(c[t],u[t])):!1}function gf(c){return typeof c=="object"&&c!==null}const eS={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1383
|
+
`,r:"\r",t:" "},tS=92,nS=123,mf=125,iS=91,vf=93,rS=32,oS=10,sS=9,aS=13,xc=34,lS=43,yf=45,Du=48,cS=49,Nu=57,uS=44,hS=46,dS=58,fS=65,pS=97,gS=69,mS=101,vS=70,yS=102;function wg(c,u,t,s){return w(c);function w(p,o){if(Array.isArray(s)){const a=s.find(i=>i.test(p));if(a){const i=a.stringify(p);if(typeof i!="string"||!yg(i))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${i})`);return i}}if(typeof p=="boolean"||typeof p=="number"||typeof p=="string"||p===null||p instanceof Date||p instanceof Boolean||p instanceof Number||p instanceof String)return JSON.stringify(p);if(p!=null&&p.isLosslessNumber||typeof p=="bigint")return p.toString();if(Array.isArray(p))return y(p);if(p&&typeof p=="object")return S(p)}function y(p,o){if(p.length===0)return"[]";let a="[";for(let i=0;i<p.length;i++){const r=p[i];typeof r<"u"&&typeof r!="function"?a+=w(r):a+="null",i<p.length-1&&(a+=",")}return a+="]",a}function S(p,o){if(typeof p.toJSON=="function")return wg(p.toJSON(),u,t,void 0);const a=Array.isArray(u)?u.map(String):Object.keys(p);if(a.length===0)return"{}";let i=!0,r="{";for(const n of a){const l=p[n];if(f(n,l)){i?i=!1:r+=",";const d=JSON.stringify(n);r+=`${d}:`,r+=w(l)}}return r+="}",r}function f(p,o){return typeof o<"u"&&typeof o!="function"&&typeof o!="symbol"}}function bS(c){return bg(c)?parseFloat(c):BigInt(c)}class wS{constructor(){ki(this,"id",1)}async exec(u,t,s={},A={},w=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return s.scope=window.openc3Scope,A.manual=!0,(await Lu.post("/openc3-api/api",{jsonrpc:"2.0",method:u,params:t,id:this.id,keyword_params:s},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...A},timeout:w,transformRequest:[(y,S)=>wg(y)],transformResponse:[y=>Z_(y,void 0,bS)]})).data.result}catch(y){let S=new Error;throw y.response?(S.name=y.response.data.error.data.class,S.message=y.response.data.error.data.message,S.object=y.response.data.error):y.request?(S.name="Request error",S.message="Request error, no response received"):S.name="Unknown error",S}}decode_openc3_type(u){if(u!==null&&typeof u=="object"&&u.json_class=="Float"&&u.raw){if(u.raw=="NaN")return NaN;if(u.raw=="Infinity")return 1/0;if(u.raw=="-Infinity")return-1/0}return null}encode_openc3_type(u){return Number.isNaN(u)?{json_class:"Float",raw:"NaN"}:u==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:u==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(u=>{u&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(u){return this.exec("set_offline_access",[u])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(u,t){return this.exec("map_target_to_interface",[u,t])}connect_interface(u,...t){return t.length>0?this.exec("connect_interface",[u,...t]):this.exec("connect_interface",[u])}disconnect_interface(u){return this.exec("disconnect_interface",[u])}interface_cmd(u,t,...s){return this.exec("interface_cmd",[u,t,...s])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(u){return this.exec("connect_router",[u])}disconnect_router(u){return this.exec("disconnect_router",[u])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(u){return this.exec("get_tlm_cnts",[u])}get_item(u,t,s){return this.exec("get_item",[u,t,s])}get_param(u,t,s){return this.exec("get_param",[u,t,s])}get_parameter(u,t,s){return this.exec("get_param",[u,t,s])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(u){return this.exec("set_limits_set",[u])}get_target(u){return this.exec("get_target",[u])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(u,t){return this.exec("get_tlm",[u,t])}get_telemetry(u,t){return this.exec("get_tlm",[u,t])}get_all_tlm(u){return this.exec("get_all_tlm",[u])}get_all_telemetry(u){return this.exec("get_all_tlm",[u])}get_all_tlm_names(u,t=!1){return this.exec("get_all_tlm_names",[u],{hidden:t})}get_all_telemetry_names(u){return this.exec("get_all_tlm_names",[u])}async get_tlm_packet(u,t,s,A=30){const w=await this.exec("get_tlm_packet",[u,t],{type:s,stale_time:A});if(w!=null){let y=w.length,S=null;for(let f=0;f<y;f++)S=this.decode_openc3_type(w[f][1]),S!==null&&(w[f][1]=S)}return w}get_packet_derived_items(u,t){return this.exec("get_packet_derived_items",[u,t])}get_tlm_buffer(u,t){return this.exec("get_tlm_buffer",[u,t])}async get_tlm_values(u,t=30,s=null){let A={stale_time:t};s!==null&&(A.cache_timeout=s);const w=await this.exec("get_tlm_values",[u],A,{},1e4);let y=w[0].length,S=null;for(let f=0;f<y;f++)S=this.decode_openc3_type(w[0][f]),S!==null&&(w[0][f]=S);return w}get_limits(u,t,s){return this.exec("get_limits",[u,t,s])}async tlm(u,t,s,A="CONVERTED"){let w=null;if(t===void 0)w=await this.exec("tlm",[u]);else if(s===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))w=await this.exec("tlm",[u],{type:t});else{let S=new Error;throw S.name="TypeError",S.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,S}else w=await this.exec("tlm",[u,t,s],{type:A});let y=this.decode_openc3_type(w);return y!==null&&(w=y),w}async inject_tlm(u,t,s=null,A="CONVERTED"){await this.exec("inject_tlm",[u,t,s],{type:A})}set_tlm(u,t,s,A){return this.exec("set_tlm",[u,t,s],{type:A})}override_tlm(u,t,s,A){return this.exec("override_tlm",[u,t,s],{type:A})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(u,t,s,A){return this.exec("normalize_tlm",[u,t,s],{type:A})}get_all_cmds(u){return this.exec("get_all_cmds",[u])}get_all_commands(u){return this.exec("get_all_cmds",[u])}get_all_cmd_names(u,t=!1){return this.exec("get_all_cmd_names",[u],{hidden:t})}get_all_command_names(u){return this.exec("get_all_cmd_names",[u])}get_cmd(u,t){return this.exec("get_cmd",[u,t])}get_command(u,t){return this.exec("get_cmd",[u,t])}get_cmd_cnts(u){return this.exec("get_cmd_cnts",[u])}get_cmd_value(u,t,s,A="CONVERTED"){return this.exec("get_cmd_value",[u,t,s,A])}get_cmd_buffer(u,t){return this.exec("get_cmd_buffer",[u,t])}_cmd(u,t,s,A,w){let y=null;for(let S in A)Object.prototype.hasOwnProperty.call(A,S)&&(y=this.encode_openc3_type(A[S]),y!==null&&(A[S]=y));return this.exec(u,[t,s,A],{},w)}get_cmd_hazardous(u,t,s,A={}){return t===void 0?this.exec("get_cmd_hazardous",u,{},A):this._cmd("get_cmd_hazardous",u,t,s,A)}cmd(u,t,s,A={}){return t===void 0?this.exec("cmd",u,{},A):this._cmd("cmd",u,t,s,A)}cmd_no_range_check(u,t,s,A={}){return t===void 0?this.exec("cmd_no_range_check",u,{},A):this._cmd("cmd_no_range_check",u,t,s,A)}cmd_raw(u,t,s,A={}){return t===void 0?this.exec("cmd_raw",u,{},A):this._cmd("cmd_raw",u,t,s,A)}cmd_raw_no_range_check(u,t,s,A={}){return t===void 0?this.exec("cmd_raw_no_range_check",u,{},A):this._cmd("cmd_raw_no_range_check",u,t,s,A)}cmd_no_hazardous_check(u,t,s,A={}){return t===void 0?this.exec("cmd_no_hazardous_check",u,{},A):this._cmd("cmd_no_hazardous_check",u,t,s,A)}cmd_no_checks(u,t,s,A={}){return t===void 0?this.exec("cmd_no_checks",u,{},A):this._cmd("cmd_no_checks",u,t,s,A)}cmd_raw_no_hazardous_check(u,t,s,A={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",u,{},A):this._cmd("cmd_raw_no_hazardous_check",u,t,s,A)}cmd_raw_no_checks(u,t,s,A={}){return t===void 0?this.exec("cmd_raw_no_checks",u,{},A):this._cmd("cmd_raw_no_checks",u,t,s,A)}build_cmd(u,t,s){return t===void 0?this.exec("build_cmd",u):this._cmd("build_cmd",u,t,s)}build_command(u,t,s){return t===void 0?this.exec("build_cmd",u):this._cmd("build_cmd",u,t,s)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(u,t){return this.exec("send_raw",[u,t])}list_configs(u){return this.exec("list_configs",[u])}load_config(u,t){return this.exec("load_config",[u,t])}save_config(u,t,s){return this.exec("save_config",[u,t,s])}delete_config(u,t){return this.exec("delete_config",[u,t])}enable_limits(u,t,s){return this.exec("enable_limits",[u,t,s])}disable_limits(u,t,s){return this.exec("disable_limits",[u,t,s])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(u){return this.exec("get_overall_limits_state",[u])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(u){return this.exec("get_setting",[u])}get_settings(u){return this.exec("get_settings",u)}set_setting(u,t){return this.exec("set_setting",[u,t])}update_news(){return this.exec("update_news",[])}save_setting(u,t){return this.exec("set_setting",[u,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(u){if(window.isSecureContext){const t=new TextEncoder().encode(u),s=await crypto.subtle.digest("SHA-256",t),A=new Uint8Array(s);return Array.from(A).map(w=>w.toString(16).padStart(2,"0")).join("")}}}const xg={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let c=0;c<this.currentPackets.length;c++)if(this.currentPackets[c].mode==="RAW")return!0;return!1},hasDecom:function(){for(let c=0;c<this.currentPackets.length;c++)if(this.currentPackets[c].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(c){this.$emit("config",c)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(c){this.latestData=c}}};var ds={exports:{}};/**
|
|
1384
|
+
* @license
|
|
1385
|
+
* Lodash <https://lodash.com/>
|
|
1386
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1387
|
+
* Released under MIT license <https://lodash.com/license>
|
|
1388
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1389
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1390
|
+
*/var xS=ds.exports,bf;function _S(){return bf||(bf=1,function(c,u){(function(){var t,s="4.17.21",A=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",S="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,o="__lodash_placeholder__",a=1,i=2,r=4,n=1,l=2,d=1,g=2,b=4,R=8,$=16,_=32,v=64,T=128,E=256,I=512,M=30,N="...",k=800,m=16,x=1,L=2,O=3,F=1/0,W=9007199254740991,U=17976931348623157e292,V=NaN,G=4294967295,J=G-1,K=G>>>1,Q=[["ary",T],["bind",d],["bindKey",g],["curry",R],["curryRight",$],["flip",I],["partial",_],["partialRight",v],["rearg",E]],ie="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",ge="[object Boolean]",me="[object Date]",fe="[object DOMException]",_e="[object Error]",Xe="[object Function]",At="[object GeneratorFunction]",it="[object Map]",st="[object Number]",zt="[object Null]",xt="[object Object]",It="[object Promise]",hi="[object Proxy]",Zt="[object RegExp]",Ft="[object Set]",Re="[object String]",De="[object Symbol]",Pt="[object Undefined]",Ne="[object WeakMap]",ce="[object WeakSet]",Ae="[object ArrayBuffer]",Te="[object DataView]",Be="[object Float32Array]",He="[object Float64Array]",rt="[object Int8Array]",ot="[object Int16Array]",et="[object Int32Array]",tt="[object Uint8Array]",qe="[object Uint8ClampedArray]",Mt="[object Uint16Array]",un="[object Uint32Array]",Ci=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,So=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ko=/&(?:amp|lt|gt|quot|#39);/g,ks=/[&<>"']/g,ol=RegExp(ko.source),sl=RegExp(ks.source),al=/<%-([\s\S]+?)%>/g,ll=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,Ai=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,an=/^\w*$/,di=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fi=/[\\^$.*+?()[\]{}|]/g,Ui=RegExp(fi.source),dn=/^\s+/,ji=/\s/,Vi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cs=/\{\n\/\* \[wrapped with (.+)\] \*/,As=/,? & /,cl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ul=/[()=,{}\[\]\/\s]/,$i=/\\(\\)?/g,hl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gi=/\w*$/,$s=/^[-+]0x[0-9a-f]+$/i,pi=/^0b[01]+$/i,Qt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Br=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fn=/($^)/,dr=/['\n\r\u2028\u2029\\]/g,fr="\\ud800-\\udfff",Co="\\u0300-\\u036f",zr="\\ufe20-\\ufe2f",Ki="\\u20d0-\\u20ff",Hr=Co+zr+Ki,Ur="\\u2700-\\u27bf",jr="a-z\\xdf-\\xf6\\xf8-\\xff",Ao="\\xac\\xb1\\xd7\\xf7",$o="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",To="\\u2000-\\u206f",Mo=" \\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",jn="A-Z\\xc0-\\xd6\\xd8-\\xde",Lo="\\ufe0e\\ufe0f",Eo=Ao+$o+To+Mo,pr="['’]",Ts="["+fr+"]",Ms="["+Eo+"]",Vr="["+Hr+"]",Ls="\\d+",Es="["+Ur+"]",Ro="["+jr+"]",Rs="[^"+fr+Eo+Ls+Ur+jr+jn+"]",Gr="\\ud83c[\\udffb-\\udfff]",Io="(?:"+Vr+"|"+Gr+")",gr="[^"+fr+"]",qi="(?:\\ud83c[\\udde6-\\uddff]){2}",Oo="[\\ud800-\\udbff][\\udc00-\\udfff]",gi="["+jn+"]",Is="\\u200d",Os="(?:"+Ro+"|"+Rs+")",dl="(?:"+gi+"|"+Rs+")",Ti="(?:"+pr+"(?:d|ll|m|re|s|t|ve))?",mr="(?:"+pr+"(?:D|LL|M|RE|S|T|VE))?",Kr=Io+"?",Yi="["+Lo+"]?",fl="(?:"+Is+"(?:"+[gr,qi,Oo].join("|")+")"+Yi+Kr+")*",Zi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Do=Yi+Kr+fl,No="(?:"+[Es,qi,Oo].join("|")+")"+Do,Fo="(?:"+[gr+Vr+"?",Vr,qi,Oo,Ts].join("|")+")",Po=RegExp(pr,"g"),Qi=RegExp(Vr,"g"),mi=RegExp(Gr+"(?="+Gr+")|"+Fo+Do,"g"),Ds=RegExp([gi+"?"+Ro+"+"+Ti+"(?="+[Ms,gi,"$"].join("|")+")",dl+"+"+mr+"(?="+[Ms,gi+Os,"$"].join("|")+")",gi+"?"+Os+"+"+Ti,gi+"+"+mr,pl,Zi,Ls,No].join("|"),"g"),Ns=RegExp("["+Is+fr+Hr+Lo+"]"),Xi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ji=["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"],Fs=-1,wt={};wt[Be]=wt[He]=wt[rt]=wt[ot]=wt[et]=wt[tt]=wt[qe]=wt[Mt]=wt[un]=!0,wt[ie]=wt[X]=wt[Ae]=wt[ge]=wt[Te]=wt[me]=wt[_e]=wt[Xe]=wt[it]=wt[st]=wt[xt]=wt[Zt]=wt[Ft]=wt[Re]=wt[Ne]=!1;var Oe={};Oe[ie]=Oe[X]=Oe[Ae]=Oe[Te]=Oe[ge]=Oe[me]=Oe[Be]=Oe[He]=Oe[rt]=Oe[ot]=Oe[et]=Oe[it]=Oe[st]=Oe[xt]=Oe[Zt]=Oe[Ft]=Oe[Re]=Oe[De]=Oe[tt]=Oe[qe]=Oe[Mt]=Oe[un]=!0,Oe[_e]=Oe[Xe]=Oe[Ne]=!1;var $t={À:"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"},vi={"&":"&","<":"<",">":">",'"':""","'":"'"},Xt={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qt=parseFloat,_t=parseInt,Mi=typeof ur=="object"&&ur&&ur.Object===Object&&ur,qr=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Mi||qr||Function("return this")(),Vn=u&&!u.nodeType&&u,ln=Vn&&!0&&c&&!c.nodeType&&c,Ps=ln&&ln.exports===Vn,Wo=Ps&&Mi.process,$n=function(){try{var ne=ln&&ln.require&&ln.require("util").types;return ne||Wo&&Wo.binding&&Wo.binding("util")}catch{}}(),Ws=$n&&$n.isArrayBuffer,Gn=$n&&$n.isDate,ni=$n&&$n.isMap,yi=$n&&$n.isRegExp,Li=$n&&$n.isSet,Bs=$n&&$n.isTypedArray;function Et(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function gl(ne,le,se,Se){for(var Ee=-1,je=ne==null?0:ne.length;++Ee<je;){var gt=ne[Ee];le(Se,gt,se(gt),ne)}return Se}function xn(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se&&le(ne[se],se,ne)!==!1;);return ne}function zs(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function er(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se;)if(!le(ne[se],se,ne))return!1;return!0}function Tn(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Ee=0,je=[];++se<Se;){var gt=ne[se];le(gt,se,ne)&&(je[Ee++]=gt)}return je}function Yr(ne,le){var se=ne==null?0:ne.length;return!!se&&Ei(ne,le,0)>-1}function vr(ne,le,se){for(var Se=-1,Ee=ne==null?0:ne.length;++Se<Ee;)if(se(le,ne[Se]))return!0;return!1}function Tt(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Ee=Array(Se);++se<Se;)Ee[se]=le(ne[se],se,ne);return Ee}function pn(ne,le){for(var se=-1,Se=le.length,Ee=ne.length;++se<Se;)ne[Ee+se]=le[se];return ne}function Kn(ne,le,se,Se){var Ee=-1,je=ne==null?0:ne.length;for(Se&&je&&(se=ne[++Ee]);++Ee<je;)se=le(se,ne[Ee],Ee,ne);return se}function yr(ne,le,se,Se){var Ee=ne==null?0:ne.length;for(Se&&Ee&&(se=ne[--Ee]);Ee--;)se=le(se,ne[Ee],Ee,ne);return se}function Zr(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se;)if(le(ne[se],se,ne))return!0;return!1}var Bo=Vo("length");function zo(ne){return ne.split("")}function Qr(ne){return ne.match(cl)||[]}function Ho(ne,le,se){var Se;return se(ne,function(Ee,je,gt){if(le(Ee,je,gt))return Se=je,!1}),Se}function br(ne,le,se,Se){for(var Ee=ne.length,je=se+(Se?1:-1);Se?je--:++je<Ee;)if(le(ne[je],je,ne))return je;return-1}function Ei(ne,le,se){return le===le?Ue(ne,le,se):br(ne,Uo,se)}function Hs(ne,le,se,Se){for(var Ee=se-1,je=ne.length;++Ee<je;)if(Se(ne[Ee],le))return Ee;return-1}function Uo(ne){return ne!==ne}function jo(ne,le){var se=ne==null?0:ne.length;return se?nr(ne,le)/se:V}function Vo(ne){return function(le){return le==null?t:le[ne]}}function Xr(ne){return function(le){return ne==null?t:ne[le]}}function Go(ne,le,se,Se,Ee){return Ee(ne,function(je,gt,Ge){se=Se?(Se=!1,je):le(se,je,gt,Ge)}),se}function tr(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function nr(ne,le){for(var se,Se=-1,Ee=ne.length;++Se<Ee;){var je=le(ne[Se]);je!==t&&(se=se===t?je:se+je)}return se}function Wt(ne,le){for(var se=-1,Se=Array(ne);++se<ne;)Se[se]=le(se);return Se}function Us(ne,le){return Tt(le,function(se){return[se,ne[se]]})}function Ot(ne){return ne&&ne.slice(0,Ve(ne)+1).replace(dn,"")}function gn(ne){return function(le){return ne(le)}}function wr(ne,le){return Tt(le,function(se){return ne[se]})}function ii(ne,le){return ne.has(le)}function js(ne,le){for(var se=-1,Se=ne.length;++se<Se&&Ei(le,ne[se],0)>-1;);return se}function Vs(ne,le){for(var se=ne.length;se--&&Ei(le,ne[se],0)>-1;);return se}function Ko(ne,le){for(var se=ne.length,Se=0;se--;)ne[se]===le&&++Se;return Se}var P=Xr($t),z=Xr(vi);function q(ne){return"\\"+Kt[ne]}function Y(ne,le){return ne==null?t:ne[le]}function te(ne){return Ns.test(ne)}function oe(ne){return Xi.test(ne)}function he(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function ye(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se,Ee){se[++le]=[Ee,Se]}),se}function be(ne,le){return function(se){return ne(le(se))}}function xe(ne,le){for(var se=-1,Se=ne.length,Ee=0,je=[];++se<Se;){var gt=ne[se];(gt===le||gt===o)&&(ne[se]=o,je[Ee++]=se)}return je}function ke(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=Se}),se}function $e(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=[Se,Se]}),se}function Ue(ne,le,se){for(var Se=se-1,Ee=ne.length;++Se<Ee;)if(ne[Se]===le)return Se;return-1}function yt(ne,le,se){for(var Se=se+1;Se--;)if(ne[Se]===le)return Se;return Se}function Ye(ne){return te(ne)?pt(ne):Bo(ne)}function ze(ne){return te(ne)?Dt(ne):zo(ne)}function Ve(ne){for(var le=ne.length;le--&&ji.test(ne.charAt(le)););return le}var Me=Xr(Xt);function pt(ne){for(var le=mi.lastIndex=0;mi.test(ne);)++le;return le}function Dt(ne){return ne.match(mi)||[]}function Rt(ne){return ne.match(Ds)||[]}var St=function ne(le){le=le==null?Jt:kt.defaults(Jt.Object(),le,kt.pick(Jt,Ji));var se=le.Array,Se=le.Date,Ee=le.Error,je=le.Function,gt=le.Math,Ge=le.Object,en=le.RegExp,_n=le.String,tn=le.TypeError,Dn=se.prototype,Mn=je.prototype,Jr=Ge.prototype,Gs=le["__core-js_shared__"],Ks=Mn.toString,bt=Jr.hasOwnProperty,lm=0,Xu=function(){var e=/[^.]+$/.exec(Gs&&Gs.keys&&Gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qs=Jr.toString,cm=Ks.call(Ge),um=Jt._,hm=en("^"+Ks.call(bt).replace(fi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ys=Ps?le.Buffer:t,ir=le.Symbol,Zs=le.Uint8Array,Ju=Ys?Ys.allocUnsafe:t,Qs=be(Ge.getPrototypeOf,Ge),eh=Ge.create,th=Jr.propertyIsEnumerable,Xs=Dn.splice,nh=ir?ir.isConcatSpreadable:t,qo=ir?ir.iterator:t,xr=ir?ir.toStringTag:t,Js=function(){try{var e=Ar(Ge,"defineProperty");return e({},"",{}),e}catch{}}(),dm=le.clearTimeout!==Jt.clearTimeout&&le.clearTimeout,fm=Se&&Se.now!==Jt.Date.now&&Se.now,pm=le.setTimeout!==Jt.setTimeout&&le.setTimeout,ea=gt.ceil,ta=gt.floor,ml=Ge.getOwnPropertySymbols,gm=Ys?Ys.isBuffer:t,ih=le.isFinite,mm=Dn.join,vm=be(Ge.keys,Ge),nn=gt.max,mn=gt.min,ym=Se.now,bm=le.parseInt,rh=gt.random,wm=Dn.reverse,vl=Ar(le,"DataView"),Yo=Ar(le,"Map"),yl=Ar(le,"Promise"),eo=Ar(le,"Set"),Zo=Ar(le,"WeakMap"),Qo=Ar(Ge,"create"),na=Zo&&new Zo,to={},xm=$r(vl),_m=$r(Yo),Sm=$r(yl),km=$r(eo),Cm=$r(Zo),ia=ir?ir.prototype:t,Xo=ia?ia.valueOf:t,oh=ia?ia.toString:t;function H(e){if(Bt(e)&&!Ke(e)&&!(e instanceof lt)){if(e instanceof qn)return e;if(bt.call(e,"__wrapped__"))return sd(e)}return new qn(e)}var no=function(){function e(){}return function(h){if(!Nt(h))return{};if(eh)return eh(h);e.prototype=h;var C=new e;return e.prototype=t,C}}();function ra(){}function qn(e,h){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=t}H.templateSettings={escape:al,evaluate:ll,interpolate:Ie,variable:"",imports:{_:H}},H.prototype=ra.prototype,H.prototype.constructor=H,qn.prototype=no(ra.prototype),qn.prototype.constructor=qn;function lt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Am(){var e=new lt(this.__wrapped__);return e.__actions__=Ln(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ln(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ln(this.__views__),e}function $m(){if(this.__filtered__){var e=new lt(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Tm(){var e=this.__wrapped__.value(),h=this.__dir__,C=Ke(e),D=h<0,B=C?e.length:0,j=Bv(0,B,this.__views__),Z=j.start,ee=j.end,re=ee-Z,de=D?ee:Z-1,pe=this.__iteratees__,ve=pe.length,Ce=0,Le=mn(re,this.__takeCount__);if(!C||!D&&B==re&&Le==re)return Mh(e,this.__actions__);var Pe=[];e:for(;re--&&Ce<Le;){de+=h;for(var Je=-1,We=e[de];++Je<ve;){var at=pe[Je],ht=at.iteratee,Pn=at.type,Cn=ht(We);if(Pn==L)We=Cn;else if(!Cn){if(Pn==x)continue e;break e}}Pe[Ce++]=We}return Pe}lt.prototype=no(ra.prototype),lt.prototype.constructor=lt;function _r(e){var h=-1,C=e==null?0:e.length;for(this.clear();++h<C;){var D=e[h];this.set(D[0],D[1])}}function Mm(){this.__data__=Qo?Qo(null):{},this.size=0}function Lm(e){var h=this.has(e)&&delete this.__data__[e];return this.size-=h?1:0,h}function Em(e){var h=this.__data__;if(Qo){var C=h[e];return C===f?t:C}return bt.call(h,e)?h[e]:t}function Rm(e){var h=this.__data__;return Qo?h[e]!==t:bt.call(h,e)}function Im(e,h){var C=this.__data__;return this.size+=this.has(e)?0:1,C[e]=Qo&&h===t?f:h,this}_r.prototype.clear=Mm,_r.prototype.delete=Lm,_r.prototype.get=Em,_r.prototype.has=Rm,_r.prototype.set=Im;function Ri(e){var h=-1,C=e==null?0:e.length;for(this.clear();++h<C;){var D=e[h];this.set(D[0],D[1])}}function Om(){this.__data__=[],this.size=0}function Dm(e){var h=this.__data__,C=oa(h,e);if(C<0)return!1;var D=h.length-1;return C==D?h.pop():Xs.call(h,C,1),--this.size,!0}function Nm(e){var h=this.__data__,C=oa(h,e);return C<0?t:h[C][1]}function Fm(e){return oa(this.__data__,e)>-1}function Pm(e,h){var C=this.__data__,D=oa(C,e);return D<0?(++this.size,C.push([e,h])):C[D][1]=h,this}Ri.prototype.clear=Om,Ri.prototype.delete=Dm,Ri.prototype.get=Nm,Ri.prototype.has=Fm,Ri.prototype.set=Pm;function Ii(e){var h=-1,C=e==null?0:e.length;for(this.clear();++h<C;){var D=e[h];this.set(D[0],D[1])}}function Wm(){this.size=0,this.__data__={hash:new _r,map:new(Yo||Ri),string:new _r}}function Bm(e){var h=va(this,e).delete(e);return this.size-=h?1:0,h}function zm(e){return va(this,e).get(e)}function Hm(e){return va(this,e).has(e)}function Um(e,h){var C=va(this,e),D=C.size;return C.set(e,h),this.size+=C.size==D?0:1,this}Ii.prototype.clear=Wm,Ii.prototype.delete=Bm,Ii.prototype.get=zm,Ii.prototype.has=Hm,Ii.prototype.set=Um;function Sr(e){var h=-1,C=e==null?0:e.length;for(this.__data__=new Ii;++h<C;)this.add(e[h])}function jm(e){return this.__data__.set(e,f),this}function Vm(e){return this.__data__.has(e)}Sr.prototype.add=Sr.prototype.push=jm,Sr.prototype.has=Vm;function ri(e){var h=this.__data__=new Ri(e);this.size=h.size}function Gm(){this.__data__=new Ri,this.size=0}function Km(e){var h=this.__data__,C=h.delete(e);return this.size=h.size,C}function qm(e){return this.__data__.get(e)}function Ym(e){return this.__data__.has(e)}function Zm(e,h){var C=this.__data__;if(C instanceof Ri){var D=C.__data__;if(!Yo||D.length<A-1)return D.push([e,h]),this.size=++C.size,this;C=this.__data__=new Ii(D)}return C.set(e,h),this.size=C.size,this}ri.prototype.clear=Gm,ri.prototype.delete=Km,ri.prototype.get=qm,ri.prototype.has=Ym,ri.prototype.set=Zm;function sh(e,h){var C=Ke(e),D=!C&&Tr(e),B=!C&&!D&&lr(e),j=!C&&!D&&!B&&so(e),Z=C||D||B||j,ee=Z?Wt(e.length,_n):[],re=ee.length;for(var de in e)(h||bt.call(e,de))&&!(Z&&(de=="length"||B&&(de=="offset"||de=="parent")||j&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||Fi(de,re)))&&ee.push(de);return ee}function ah(e){var h=e.length;return h?e[Ml(0,h-1)]:t}function Qm(e,h){return ya(Ln(e),kr(h,0,e.length))}function Xm(e){return ya(Ln(e))}function bl(e,h,C){(C!==t&&!oi(e[h],C)||C===t&&!(h in e))&&Oi(e,h,C)}function Jo(e,h,C){var D=e[h];(!(bt.call(e,h)&&oi(D,C))||C===t&&!(h in e))&&Oi(e,h,C)}function oa(e,h){for(var C=e.length;C--;)if(oi(e[C][0],h))return C;return-1}function Jm(e,h,C,D){return rr(e,function(B,j,Z){h(D,B,C(B),Z)}),D}function lh(e,h){return e&&wi(h,cn(h),e)}function ev(e,h){return e&&wi(h,Rn(h),e)}function Oi(e,h,C){h=="__proto__"&&Js?Js(e,h,{configurable:!0,enumerable:!0,value:C,writable:!0}):e[h]=C}function wl(e,h){for(var C=-1,D=h.length,B=se(D),j=e==null;++C<D;)B[C]=j?t:ec(e,h[C]);return B}function kr(e,h,C){return e===e&&(C!==t&&(e=e<=C?e:C),h!==t&&(e=e>=h?e:h)),e}function Yn(e,h,C,D,B,j){var Z,ee=h&a,re=h&i,de=h&r;if(C&&(Z=B?C(e,D,B,j):C(e)),Z!==t)return Z;if(!Nt(e))return e;var pe=Ke(e);if(pe){if(Z=Hv(e),!ee)return Ln(e,Z)}else{var ve=vn(e),Ce=ve==Xe||ve==At;if(lr(e))return Rh(e,ee);if(ve==xt||ve==ie||Ce&&!B){if(Z=re||Ce?{}:Qh(e),!ee)return re?Ev(e,ev(Z,e)):Lv(e,lh(Z,e))}else{if(!Oe[ve])return B?e:{};Z=Uv(e,ve,ee)}}j||(j=new ri);var Le=j.get(e);if(Le)return Le;j.set(e,Z),Ad(e)?e.forEach(function(We){Z.add(Yn(We,h,C,We,e,j))}):kd(e)&&e.forEach(function(We,at){Z.set(at,Yn(We,h,C,at,e,j))});var Pe=de?re?Bl:Wl:re?Rn:cn,Je=pe?t:Pe(e);return xn(Je||e,function(We,at){Je&&(at=We,We=e[at]),Jo(Z,at,Yn(We,h,C,at,e,j))}),Z}function tv(e){var h=cn(e);return function(C){return ch(C,e,h)}}function ch(e,h,C){var D=C.length;if(e==null)return!D;for(e=Ge(e);D--;){var B=C[D],j=h[B],Z=e[B];if(Z===t&&!(B in e)||!j(Z))return!1}return!0}function uh(e,h,C){if(typeof e!="function")throw new tn(y);return ss(function(){e.apply(t,C)},h)}function es(e,h,C,D){var B=-1,j=Yr,Z=!0,ee=e.length,re=[],de=h.length;if(!ee)return re;C&&(h=Tt(h,gn(C))),D?(j=vr,Z=!1):h.length>=A&&(j=ii,Z=!1,h=new Sr(h));e:for(;++B<ee;){var pe=e[B],ve=C==null?pe:C(pe);if(pe=D||pe!==0?pe:0,Z&&ve===ve){for(var Ce=de;Ce--;)if(h[Ce]===ve)continue e;re.push(pe)}else j(h,ve,D)||re.push(pe)}return re}var rr=Fh(bi),hh=Fh(_l,!0);function nv(e,h){var C=!0;return rr(e,function(D,B,j){return C=!!h(D,B,j),C}),C}function sa(e,h,C){for(var D=-1,B=e.length;++D<B;){var j=e[D],Z=h(j);if(Z!=null&&(ee===t?Z===Z&&!Fn(Z):C(Z,ee)))var ee=Z,re=j}return re}function iv(e,h,C,D){var B=e.length;for(C=Qe(C),C<0&&(C=-C>B?0:B+C),D=D===t||D>B?B:Qe(D),D<0&&(D+=B),D=C>D?0:Td(D);C<D;)e[C++]=h;return e}function dh(e,h){var C=[];return rr(e,function(D,B,j){h(D,B,j)&&C.push(D)}),C}function hn(e,h,C,D,B){var j=-1,Z=e.length;for(C||(C=Vv),B||(B=[]);++j<Z;){var ee=e[j];h>0&&C(ee)?h>1?hn(ee,h-1,C,D,B):pn(B,ee):D||(B[B.length]=ee)}return B}var xl=Ph(),fh=Ph(!0);function bi(e,h){return e&&xl(e,h,cn)}function _l(e,h){return e&&fh(e,h,cn)}function aa(e,h){return Tn(h,function(C){return Pi(e[C])})}function Cr(e,h){h=sr(h,e);for(var C=0,D=h.length;e!=null&&C<D;)e=e[xi(h[C++])];return C&&C==D?e:t}function ph(e,h,C){var D=h(e);return Ke(e)?D:pn(D,C(e))}function Sn(e){return e==null?e===t?Pt:zt:xr&&xr in Ge(e)?Wv(e):Xv(e)}function Sl(e,h){return e>h}function rv(e,h){return e!=null&&bt.call(e,h)}function ov(e,h){return e!=null&&h in Ge(e)}function sv(e,h,C){return e>=mn(h,C)&&e<nn(h,C)}function kl(e,h,C){for(var D=C?vr:Yr,B=e[0].length,j=e.length,Z=j,ee=se(j),re=1/0,de=[];Z--;){var pe=e[Z];Z&&h&&(pe=Tt(pe,gn(h))),re=mn(pe.length,re),ee[Z]=!C&&(h||B>=120&&pe.length>=120)?new Sr(Z&&pe):t}pe=e[0];var ve=-1,Ce=ee[0];e:for(;++ve<B&&de.length<re;){var Le=pe[ve],Pe=h?h(Le):Le;if(Le=C||Le!==0?Le:0,!(Ce?ii(Ce,Pe):D(de,Pe,C))){for(Z=j;--Z;){var Je=ee[Z];if(!(Je?ii(Je,Pe):D(e[Z],Pe,C)))continue e}Ce&&Ce.push(Pe),de.push(Le)}}return de}function av(e,h,C,D){return bi(e,function(B,j,Z){h(D,C(B),j,Z)}),D}function ts(e,h,C){h=sr(h,e),e=td(e,h);var D=e==null?e:e[xi(Qn(h))];return D==null?t:Et(D,e,C)}function gh(e){return Bt(e)&&Sn(e)==ie}function lv(e){return Bt(e)&&Sn(e)==Ae}function cv(e){return Bt(e)&&Sn(e)==me}function ns(e,h,C,D,B){return e===h?!0:e==null||h==null||!Bt(e)&&!Bt(h)?e!==e&&h!==h:uv(e,h,C,D,ns,B)}function uv(e,h,C,D,B,j){var Z=Ke(e),ee=Ke(h),re=Z?X:vn(e),de=ee?X:vn(h);re=re==ie?xt:re,de=de==ie?xt:de;var pe=re==xt,ve=de==xt,Ce=re==de;if(Ce&&lr(e)){if(!lr(h))return!1;Z=!0,pe=!1}if(Ce&&!pe)return j||(j=new ri),Z||so(e)?qh(e,h,C,D,B,j):Fv(e,h,re,C,D,B,j);if(!(C&n)){var Le=pe&&bt.call(e,"__wrapped__"),Pe=ve&&bt.call(h,"__wrapped__");if(Le||Pe){var Je=Le?e.value():e,We=Pe?h.value():h;return j||(j=new ri),B(Je,We,C,D,j)}}return Ce?(j||(j=new ri),Pv(e,h,C,D,B,j)):!1}function hv(e){return Bt(e)&&vn(e)==it}function Cl(e,h,C,D){var B=C.length,j=B,Z=!D;if(e==null)return!j;for(e=Ge(e);B--;){var ee=C[B];if(Z&&ee[2]?ee[1]!==e[ee[0]]:!(ee[0]in e))return!1}for(;++B<j;){ee=C[B];var re=ee[0],de=e[re],pe=ee[1];if(Z&&ee[2]){if(de===t&&!(re in e))return!1}else{var ve=new ri;if(D)var Ce=D(de,pe,re,e,h,ve);if(!(Ce===t?ns(pe,de,n|l,D,ve):Ce))return!1}}return!0}function mh(e){if(!Nt(e)||Kv(e))return!1;var h=Pi(e)?hm:Qt;return h.test($r(e))}function dv(e){return Bt(e)&&Sn(e)==Zt}function fv(e){return Bt(e)&&vn(e)==Ft}function pv(e){return Bt(e)&&ka(e.length)&&!!wt[Sn(e)]}function vh(e){return typeof e=="function"?e:e==null?In:typeof e=="object"?Ke(e)?wh(e[0],e[1]):bh(e):Wd(e)}function Al(e){if(!os(e))return vm(e);var h=[];for(var C in Ge(e))bt.call(e,C)&&C!="constructor"&&h.push(C);return h}function gv(e){if(!Nt(e))return Qv(e);var h=os(e),C=[];for(var D in e)D=="constructor"&&(h||!bt.call(e,D))||C.push(D);return C}function $l(e,h){return e<h}function yh(e,h){var C=-1,D=En(e)?se(e.length):[];return rr(e,function(B,j,Z){D[++C]=h(B,j,Z)}),D}function bh(e){var h=Hl(e);return h.length==1&&h[0][2]?Jh(h[0][0],h[0][1]):function(C){return C===e||Cl(C,e,h)}}function wh(e,h){return jl(e)&&Xh(h)?Jh(xi(e),h):function(C){var D=ec(C,e);return D===t&&D===h?tc(C,e):ns(h,D,n|l)}}function la(e,h,C,D,B){e!==h&&xl(h,function(j,Z){if(B||(B=new ri),Nt(j))mv(e,h,Z,C,la,D,B);else{var ee=D?D(Gl(e,Z),j,Z+"",e,h,B):t;ee===t&&(ee=j),bl(e,Z,ee)}},Rn)}function mv(e,h,C,D,B,j,Z){var ee=Gl(e,C),re=Gl(h,C),de=Z.get(re);if(de){bl(e,C,de);return}var pe=j?j(ee,re,C+"",e,h,Z):t,ve=pe===t;if(ve){var Ce=Ke(re),Le=!Ce&&lr(re),Pe=!Ce&&!Le&&so(re);pe=re,Ce||Le||Pe?Ke(ee)?pe=ee:Ht(ee)?pe=Ln(ee):Le?(ve=!1,pe=Rh(re,!0)):Pe?(ve=!1,pe=Ih(re,!0)):pe=[]:as(re)||Tr(re)?(pe=ee,Tr(ee)?pe=Md(ee):(!Nt(ee)||Pi(ee))&&(pe=Qh(re))):ve=!1}ve&&(Z.set(re,pe),B(pe,re,D,j,Z),Z.delete(re)),bl(e,C,pe)}function xh(e,h){var C=e.length;if(C)return h+=h<0?C:0,Fi(h,C)?e[h]:t}function _h(e,h,C){h.length?h=Tt(h,function(j){return Ke(j)?function(Z){return Cr(Z,j.length===1?j[0]:j)}:j}):h=[In];var D=-1;h=Tt(h,gn(Fe()));var B=yh(e,function(j,Z,ee){var re=Tt(h,function(de){return de(j)});return{criteria:re,index:++D,value:j}});return tr(B,function(j,Z){return Mv(j,Z,C)})}function vv(e,h){return Sh(e,h,function(C,D){return tc(e,D)})}function Sh(e,h,C){for(var D=-1,B=h.length,j={};++D<B;){var Z=h[D],ee=Cr(e,Z);C(ee,Z)&&is(j,sr(Z,e),ee)}return j}function yv(e){return function(h){return Cr(h,e)}}function Tl(e,h,C,D){var B=D?Hs:Ei,j=-1,Z=h.length,ee=e;for(e===h&&(h=Ln(h)),C&&(ee=Tt(e,gn(C)));++j<Z;)for(var re=0,de=h[j],pe=C?C(de):de;(re=B(ee,pe,re,D))>-1;)ee!==e&&Xs.call(ee,re,1),Xs.call(e,re,1);return e}function kh(e,h){for(var C=e?h.length:0,D=C-1;C--;){var B=h[C];if(C==D||B!==j){var j=B;Fi(B)?Xs.call(e,B,1):Rl(e,B)}}return e}function Ml(e,h){return e+ta(rh()*(h-e+1))}function bv(e,h,C,D){for(var B=-1,j=nn(ea((h-e)/(C||1)),0),Z=se(j);j--;)Z[D?j:++B]=e,e+=C;return Z}function Ll(e,h){var C="";if(!e||h<1||h>W)return C;do h%2&&(C+=e),h=ta(h/2),h&&(e+=e);while(h);return C}function nt(e,h){return Kl(ed(e,h,In),e+"")}function wv(e){return ah(ao(e))}function xv(e,h){var C=ao(e);return ya(C,kr(h,0,C.length))}function is(e,h,C,D){if(!Nt(e))return e;h=sr(h,e);for(var B=-1,j=h.length,Z=j-1,ee=e;ee!=null&&++B<j;){var re=xi(h[B]),de=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return e;if(B!=Z){var pe=ee[re];de=D?D(pe,re,ee):t,de===t&&(de=Nt(pe)?pe:Fi(h[B+1])?[]:{})}Jo(ee,re,de),ee=ee[re]}return e}var Ch=na?function(e,h){return na.set(e,h),e}:In,_v=Js?function(e,h){return Js(e,"toString",{configurable:!0,enumerable:!1,value:ic(h),writable:!0})}:In;function Sv(e){return ya(ao(e))}function Zn(e,h,C){var D=-1,B=e.length;h<0&&(h=-h>B?0:B+h),C=C>B?B:C,C<0&&(C+=B),B=h>C?0:C-h>>>0,h>>>=0;for(var j=se(B);++D<B;)j[D]=e[D+h];return j}function kv(e,h){var C;return rr(e,function(D,B,j){return C=h(D,B,j),!C}),!!C}function ca(e,h,C){var D=0,B=e==null?D:e.length;if(typeof h=="number"&&h===h&&B<=K){for(;D<B;){var j=D+B>>>1,Z=e[j];Z!==null&&!Fn(Z)&&(C?Z<=h:Z<h)?D=j+1:B=j}return B}return El(e,h,In,C)}function El(e,h,C,D){var B=0,j=e==null?0:e.length;if(j===0)return 0;h=C(h);for(var Z=h!==h,ee=h===null,re=Fn(h),de=h===t;B<j;){var pe=ta((B+j)/2),ve=C(e[pe]),Ce=ve!==t,Le=ve===null,Pe=ve===ve,Je=Fn(ve);if(Z)var We=D||Pe;else de?We=Pe&&(D||Ce):ee?We=Pe&&Ce&&(D||!Le):re?We=Pe&&Ce&&!Le&&(D||!Je):Le||Je?We=!1:We=D?ve<=h:ve<h;We?B=pe+1:j=pe}return mn(j,J)}function Ah(e,h){for(var C=-1,D=e.length,B=0,j=[];++C<D;){var Z=e[C],ee=h?h(Z):Z;if(!C||!oi(ee,re)){var re=ee;j[B++]=Z===0?0:Z}}return j}function $h(e){return typeof e=="number"?e:Fn(e)?V:+e}function Nn(e){if(typeof e=="string")return e;if(Ke(e))return Tt(e,Nn)+"";if(Fn(e))return oh?oh.call(e):"";var h=e+"";return h=="0"&&1/e==-1/0?"-0":h}function or(e,h,C){var D=-1,B=Yr,j=e.length,Z=!0,ee=[],re=ee;if(C)Z=!1,B=vr;else if(j>=A){var de=h?null:Dv(e);if(de)return ke(de);Z=!1,B=ii,re=new Sr}else re=h?[]:ee;e:for(;++D<j;){var pe=e[D],ve=h?h(pe):pe;if(pe=C||pe!==0?pe:0,Z&&ve===ve){for(var Ce=re.length;Ce--;)if(re[Ce]===ve)continue e;h&&re.push(ve),ee.push(pe)}else B(re,ve,C)||(re!==ee&&re.push(ve),ee.push(pe))}return ee}function Rl(e,h){return h=sr(h,e),e=td(e,h),e==null||delete e[xi(Qn(h))]}function Th(e,h,C,D){return is(e,h,C(Cr(e,h)),D)}function ua(e,h,C,D){for(var B=e.length,j=D?B:-1;(D?j--:++j<B)&&h(e[j],j,e););return C?Zn(e,D?0:j,D?j+1:B):Zn(e,D?j+1:0,D?B:j)}function Mh(e,h){var C=e;return C instanceof lt&&(C=C.value()),Kn(h,function(D,B){return B.func.apply(B.thisArg,pn([D],B.args))},C)}function Il(e,h,C){var D=e.length;if(D<2)return D?or(e[0]):[];for(var B=-1,j=se(D);++B<D;)for(var Z=e[B],ee=-1;++ee<D;)ee!=B&&(j[B]=es(j[B]||Z,e[ee],h,C));return or(hn(j,1),h,C)}function Lh(e,h,C){for(var D=-1,B=e.length,j=h.length,Z={};++D<B;){var ee=D<j?h[D]:t;C(Z,e[D],ee)}return Z}function Ol(e){return Ht(e)?e:[]}function Dl(e){return typeof e=="function"?e:In}function sr(e,h){return Ke(e)?e:jl(e,h)?[e]:od(mt(e))}var Cv=nt;function ar(e,h,C){var D=e.length;return C=C===t?D:C,!h&&C>=D?e:Zn(e,h,C)}var Eh=dm||function(e){return Jt.clearTimeout(e)};function Rh(e,h){if(h)return e.slice();var C=e.length,D=Ju?Ju(C):new e.constructor(C);return e.copy(D),D}function Nl(e){var h=new e.constructor(e.byteLength);return new Zs(h).set(new Zs(e)),h}function Av(e,h){var C=h?Nl(e.buffer):e.buffer;return new e.constructor(C,e.byteOffset,e.byteLength)}function $v(e){var h=new e.constructor(e.source,Gi.exec(e));return h.lastIndex=e.lastIndex,h}function Tv(e){return Xo?Ge(Xo.call(e)):{}}function Ih(e,h){var C=h?Nl(e.buffer):e.buffer;return new e.constructor(C,e.byteOffset,e.length)}function Oh(e,h){if(e!==h){var C=e!==t,D=e===null,B=e===e,j=Fn(e),Z=h!==t,ee=h===null,re=h===h,de=Fn(h);if(!ee&&!de&&!j&&e>h||j&&Z&&re&&!ee&&!de||D&&Z&&re||!C&&re||!B)return 1;if(!D&&!j&&!de&&e<h||de&&C&&B&&!D&&!j||ee&&C&&B||!Z&&B||!re)return-1}return 0}function Mv(e,h,C){for(var D=-1,B=e.criteria,j=h.criteria,Z=B.length,ee=C.length;++D<Z;){var re=Oh(B[D],j[D]);if(re){if(D>=ee)return re;var de=C[D];return re*(de=="desc"?-1:1)}}return e.index-h.index}function Dh(e,h,C,D){for(var B=-1,j=e.length,Z=C.length,ee=-1,re=h.length,de=nn(j-Z,0),pe=se(re+de),ve=!D;++ee<re;)pe[ee]=h[ee];for(;++B<Z;)(ve||B<j)&&(pe[C[B]]=e[B]);for(;de--;)pe[ee++]=e[B++];return pe}function Nh(e,h,C,D){for(var B=-1,j=e.length,Z=-1,ee=C.length,re=-1,de=h.length,pe=nn(j-ee,0),ve=se(pe+de),Ce=!D;++B<pe;)ve[B]=e[B];for(var Le=B;++re<de;)ve[Le+re]=h[re];for(;++Z<ee;)(Ce||B<j)&&(ve[Le+C[Z]]=e[B++]);return ve}function Ln(e,h){var C=-1,D=e.length;for(h||(h=se(D));++C<D;)h[C]=e[C];return h}function wi(e,h,C,D){var B=!C;C||(C={});for(var j=-1,Z=h.length;++j<Z;){var ee=h[j],re=D?D(C[ee],e[ee],ee,C,e):t;re===t&&(re=e[ee]),B?Oi(C,ee,re):Jo(C,ee,re)}return C}function Lv(e,h){return wi(e,Ul(e),h)}function Ev(e,h){return wi(e,Yh(e),h)}function ha(e,h){return function(C,D){var B=Ke(C)?gl:Jm,j=h?h():{};return B(C,e,Fe(D,2),j)}}function io(e){return nt(function(h,C){var D=-1,B=C.length,j=B>1?C[B-1]:t,Z=B>2?C[2]:t;for(j=e.length>3&&typeof j=="function"?(B--,j):t,Z&&kn(C[0],C[1],Z)&&(j=B<3?t:j,B=1),h=Ge(h);++D<B;){var ee=C[D];ee&&e(h,ee,D,j)}return h})}function Fh(e,h){return function(C,D){if(C==null)return C;if(!En(C))return e(C,D);for(var B=C.length,j=h?B:-1,Z=Ge(C);(h?j--:++j<B)&&D(Z[j],j,Z)!==!1;);return C}}function Ph(e){return function(h,C,D){for(var B=-1,j=Ge(h),Z=D(h),ee=Z.length;ee--;){var re=Z[e?ee:++B];if(C(j[re],re,j)===!1)break}return h}}function Rv(e,h,C){var D=h&d,B=rs(e);function j(){var Z=this&&this!==Jt&&this instanceof j?B:e;return Z.apply(D?C:this,arguments)}return j}function Wh(e){return function(h){h=mt(h);var C=te(h)?ze(h):t,D=C?C[0]:h.charAt(0),B=C?ar(C,1).join(""):h.slice(1);return D[e]()+B}}function ro(e){return function(h){return Kn(Fd(Nd(h).replace(Po,"")),e,"")}}function rs(e){return function(){var h=arguments;switch(h.length){case 0:return new e;case 1:return new e(h[0]);case 2:return new e(h[0],h[1]);case 3:return new e(h[0],h[1],h[2]);case 4:return new e(h[0],h[1],h[2],h[3]);case 5:return new e(h[0],h[1],h[2],h[3],h[4]);case 6:return new e(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new e(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var C=no(e.prototype),D=e.apply(C,h);return Nt(D)?D:C}}function Iv(e,h,C){var D=rs(e);function B(){for(var j=arguments.length,Z=se(j),ee=j,re=oo(B);ee--;)Z[ee]=arguments[ee];var de=j<3&&Z[0]!==re&&Z[j-1]!==re?[]:xe(Z,re);if(j-=de.length,j<C)return jh(e,h,da,B.placeholder,t,Z,de,t,t,C-j);var pe=this&&this!==Jt&&this instanceof B?D:e;return Et(pe,this,Z)}return B}function Bh(e){return function(h,C,D){var B=Ge(h);if(!En(h)){var j=Fe(C,3);h=cn(h),C=function(ee){return j(B[ee],ee,B)}}var Z=e(h,C,D);return Z>-1?B[j?h[Z]:Z]:t}}function zh(e){return Ni(function(h){var C=h.length,D=C,B=qn.prototype.thru;for(e&&h.reverse();D--;){var j=h[D];if(typeof j!="function")throw new tn(y);if(B&&!Z&&ma(j)=="wrapper")var Z=new qn([],!0)}for(D=Z?D:C;++D<C;){j=h[D];var ee=ma(j),re=ee=="wrapper"?zl(j):t;re&&Vl(re[0])&&re[1]==(T|R|_|E)&&!re[4].length&&re[9]==1?Z=Z[ma(re[0])].apply(Z,re[3]):Z=j.length==1&&Vl(j)?Z[ee]():Z.thru(j)}return function(){var de=arguments,pe=de[0];if(Z&&de.length==1&&Ke(pe))return Z.plant(pe).value();for(var ve=0,Ce=C?h[ve].apply(this,de):pe;++ve<C;)Ce=h[ve].call(this,Ce);return Ce}})}function da(e,h,C,D,B,j,Z,ee,re,de){var pe=h&T,ve=h&d,Ce=h&g,Le=h&(R|$),Pe=h&I,Je=Ce?t:rs(e);function We(){for(var at=arguments.length,ht=se(at),Pn=at;Pn--;)ht[Pn]=arguments[Pn];if(Le)var Cn=oo(We),Wn=Ko(ht,Cn);if(D&&(ht=Dh(ht,D,B,Le)),j&&(ht=Nh(ht,j,Z,Le)),at-=Wn,Le&&at<de){var Ut=xe(ht,Cn);return jh(e,h,da,We.placeholder,C,ht,Ut,ee,re,de-at)}var si=ve?C:this,Bi=Ce?si[e]:e;return at=ht.length,ee?ht=Jv(ht,ee):Pe&&at>1&&ht.reverse(),pe&&re<at&&(ht.length=re),this&&this!==Jt&&this instanceof We&&(Bi=Je||rs(Bi)),Bi.apply(si,ht)}return We}function Hh(e,h){return function(C,D){return av(C,e,h(D),{})}}function fa(e,h){return function(C,D){var B;if(C===t&&D===t)return h;if(C!==t&&(B=C),D!==t){if(B===t)return D;typeof C=="string"||typeof D=="string"?(C=Nn(C),D=Nn(D)):(C=$h(C),D=$h(D)),B=e(C,D)}return B}}function Fl(e){return Ni(function(h){return h=Tt(h,gn(Fe())),nt(function(C){var D=this;return e(h,function(B){return Et(B,D,C)})})})}function pa(e,h){h=h===t?" ":Nn(h);var C=h.length;if(C<2)return C?Ll(h,e):h;var D=Ll(h,ea(e/Ye(h)));return te(h)?ar(ze(D),0,e).join(""):D.slice(0,e)}function Ov(e,h,C,D){var B=h&d,j=rs(e);function Z(){for(var ee=-1,re=arguments.length,de=-1,pe=D.length,ve=se(pe+re),Ce=this&&this!==Jt&&this instanceof Z?j:e;++de<pe;)ve[de]=D[de];for(;re--;)ve[de++]=arguments[++ee];return Et(Ce,B?C:this,ve)}return Z}function Uh(e){return function(h,C,D){return D&&typeof D!="number"&&kn(h,C,D)&&(C=D=t),h=Wi(h),C===t?(C=h,h=0):C=Wi(C),D=D===t?h<C?1:-1:Wi(D),bv(h,C,D,e)}}function ga(e){return function(h,C){return typeof h=="string"&&typeof C=="string"||(h=Xn(h),C=Xn(C)),e(h,C)}}function jh(e,h,C,D,B,j,Z,ee,re,de){var pe=h&R,ve=pe?Z:t,Ce=pe?t:Z,Le=pe?j:t,Pe=pe?t:j;h|=pe?_:v,h&=~(pe?v:_),h&b||(h&=-4);var Je=[e,h,B,Le,ve,Pe,Ce,ee,re,de],We=C.apply(t,Je);return Vl(e)&&nd(We,Je),We.placeholder=D,id(We,e,h)}function Pl(e){var h=gt[e];return function(C,D){if(C=Xn(C),D=D==null?0:mn(Qe(D),292),D&&ih(C)){var B=(mt(C)+"e").split("e"),j=h(B[0]+"e"+(+B[1]+D));return B=(mt(j)+"e").split("e"),+(B[0]+"e"+(+B[1]-D))}return h(C)}}var Dv=eo&&1/ke(new eo([,-0]))[1]==F?function(e){return new eo(e)}:sc;function Vh(e){return function(h){var C=vn(h);return C==it?ye(h):C==Ft?$e(h):Us(h,e(h))}}function Di(e,h,C,D,B,j,Z,ee){var re=h&g;if(!re&&typeof e!="function")throw new tn(y);var de=D?D.length:0;if(de||(h&=-97,D=B=t),Z=Z===t?Z:nn(Qe(Z),0),ee=ee===t?ee:Qe(ee),de-=B?B.length:0,h&v){var pe=D,ve=B;D=B=t}var Ce=re?t:zl(e),Le=[e,h,C,D,B,pe,ve,j,Z,ee];if(Ce&&Zv(Le,Ce),e=Le[0],h=Le[1],C=Le[2],D=Le[3],B=Le[4],ee=Le[9]=Le[9]===t?re?0:e.length:nn(Le[9]-de,0),!ee&&h&(R|$)&&(h&=-25),!h||h==d)var Pe=Rv(e,h,C);else h==R||h==$?Pe=Iv(e,h,ee):(h==_||h==(d|_))&&!B.length?Pe=Ov(e,h,C,D):Pe=da.apply(t,Le);var Je=Ce?Ch:nd;return id(Je(Pe,Le),e,h)}function Gh(e,h,C,D){return e===t||oi(e,Jr[C])&&!bt.call(D,C)?h:e}function Kh(e,h,C,D,B,j){return Nt(e)&&Nt(h)&&(j.set(h,e),la(e,h,t,Kh,j),j.delete(h)),e}function Nv(e){return as(e)?t:e}function qh(e,h,C,D,B,j){var Z=C&n,ee=e.length,re=h.length;if(ee!=re&&!(Z&&re>ee))return!1;var de=j.get(e),pe=j.get(h);if(de&&pe)return de==h&&pe==e;var ve=-1,Ce=!0,Le=C&l?new Sr:t;for(j.set(e,h),j.set(h,e);++ve<ee;){var Pe=e[ve],Je=h[ve];if(D)var We=Z?D(Je,Pe,ve,h,e,j):D(Pe,Je,ve,e,h,j);if(We!==t){if(We)continue;Ce=!1;break}if(Le){if(!Zr(h,function(at,ht){if(!ii(Le,ht)&&(Pe===at||B(Pe,at,C,D,j)))return Le.push(ht)})){Ce=!1;break}}else if(!(Pe===Je||B(Pe,Je,C,D,j))){Ce=!1;break}}return j.delete(e),j.delete(h),Ce}function Fv(e,h,C,D,B,j,Z){switch(C){case Te:if(e.byteLength!=h.byteLength||e.byteOffset!=h.byteOffset)return!1;e=e.buffer,h=h.buffer;case Ae:return!(e.byteLength!=h.byteLength||!j(new Zs(e),new Zs(h)));case ge:case me:case st:return oi(+e,+h);case _e:return e.name==h.name&&e.message==h.message;case Zt:case Re:return e==h+"";case it:var ee=ye;case Ft:var re=D&n;if(ee||(ee=ke),e.size!=h.size&&!re)return!1;var de=Z.get(e);if(de)return de==h;D|=l,Z.set(e,h);var pe=qh(ee(e),ee(h),D,B,j,Z);return Z.delete(e),pe;case De:if(Xo)return Xo.call(e)==Xo.call(h)}return!1}function Pv(e,h,C,D,B,j){var Z=C&n,ee=Wl(e),re=ee.length,de=Wl(h),pe=de.length;if(re!=pe&&!Z)return!1;for(var ve=re;ve--;){var Ce=ee[ve];if(!(Z?Ce in h:bt.call(h,Ce)))return!1}var Le=j.get(e),Pe=j.get(h);if(Le&&Pe)return Le==h&&Pe==e;var Je=!0;j.set(e,h),j.set(h,e);for(var We=Z;++ve<re;){Ce=ee[ve];var at=e[Ce],ht=h[Ce];if(D)var Pn=Z?D(ht,at,Ce,h,e,j):D(at,ht,Ce,e,h,j);if(!(Pn===t?at===ht||B(at,ht,C,D,j):Pn)){Je=!1;break}We||(We=Ce=="constructor")}if(Je&&!We){var Cn=e.constructor,Wn=h.constructor;Cn!=Wn&&"constructor"in e&&"constructor"in h&&!(typeof Cn=="function"&&Cn instanceof Cn&&typeof Wn=="function"&&Wn instanceof Wn)&&(Je=!1)}return j.delete(e),j.delete(h),Je}function Ni(e){return Kl(ed(e,t,cd),e+"")}function Wl(e){return ph(e,cn,Ul)}function Bl(e){return ph(e,Rn,Yh)}var zl=na?function(e){return na.get(e)}:sc;function ma(e){for(var h=e.name+"",C=to[h],D=bt.call(to,h)?C.length:0;D--;){var B=C[D],j=B.func;if(j==null||j==e)return B.name}return h}function oo(e){var h=bt.call(H,"placeholder")?H:e;return h.placeholder}function Fe(){var e=H.iteratee||rc;return e=e===rc?vh:e,arguments.length?e(arguments[0],arguments[1]):e}function va(e,h){var C=e.__data__;return Gv(h)?C[typeof h=="string"?"string":"hash"]:C.map}function Hl(e){for(var h=cn(e),C=h.length;C--;){var D=h[C],B=e[D];h[C]=[D,B,Xh(B)]}return h}function Ar(e,h){var C=Y(e,h);return mh(C)?C:t}function Wv(e){var h=bt.call(e,xr),C=e[xr];try{e[xr]=t;var D=!0}catch{}var B=qs.call(e);return D&&(h?e[xr]=C:delete e[xr]),B}var Ul=ml?function(e){return e==null?[]:(e=Ge(e),Tn(ml(e),function(h){return th.call(e,h)}))}:ac,Yh=ml?function(e){for(var h=[];e;)pn(h,Ul(e)),e=Qs(e);return h}:ac,vn=Sn;(vl&&vn(new vl(new ArrayBuffer(1)))!=Te||Yo&&vn(new Yo)!=it||yl&&vn(yl.resolve())!=It||eo&&vn(new eo)!=Ft||Zo&&vn(new Zo)!=Ne)&&(vn=function(e){var h=Sn(e),C=h==xt?e.constructor:t,D=C?$r(C):"";if(D)switch(D){case xm:return Te;case _m:return it;case Sm:return It;case km:return Ft;case Cm:return Ne}return h});function Bv(e,h,C){for(var D=-1,B=C.length;++D<B;){var j=C[D],Z=j.size;switch(j.type){case"drop":e+=Z;break;case"dropRight":h-=Z;break;case"take":h=mn(h,e+Z);break;case"takeRight":e=nn(e,h-Z);break}}return{start:e,end:h}}function zv(e){var h=e.match(Cs);return h?h[1].split(As):[]}function Zh(e,h,C){h=sr(h,e);for(var D=-1,B=h.length,j=!1;++D<B;){var Z=xi(h[D]);if(!(j=e!=null&&C(e,Z)))break;e=e[Z]}return j||++D!=B?j:(B=e==null?0:e.length,!!B&&ka(B)&&Fi(Z,B)&&(Ke(e)||Tr(e)))}function Hv(e){var h=e.length,C=new e.constructor(h);return h&&typeof e[0]=="string"&&bt.call(e,"index")&&(C.index=e.index,C.input=e.input),C}function Qh(e){return typeof e.constructor=="function"&&!os(e)?no(Qs(e)):{}}function Uv(e,h,C){var D=e.constructor;switch(h){case Ae:return Nl(e);case ge:case me:return new D(+e);case Te:return Av(e,C);case Be:case He:case rt:case ot:case et:case tt:case qe:case Mt:case un:return Ih(e,C);case it:return new D;case st:case Re:return new D(e);case Zt:return $v(e);case Ft:return new D;case De:return Tv(e)}}function jv(e,h){var C=h.length;if(!C)return e;var D=C-1;return h[D]=(C>1?"& ":"")+h[D],h=h.join(C>2?", ":" "),e.replace(Vi,`{
|
|
1391
|
+
/* [wrapped with `+h+`] */
|
|
1392
|
+
`)}function Vv(e){return Ke(e)||Tr(e)||!!(nh&&e&&e[nh])}function Fi(e,h){var C=typeof e;return h=h??W,!!h&&(C=="number"||C!="symbol"&&Gt.test(e))&&e>-1&&e%1==0&&e<h}function kn(e,h,C){if(!Nt(C))return!1;var D=typeof h;return(D=="number"?En(C)&&Fi(h,C.length):D=="string"&&h in C)?oi(C[h],e):!1}function jl(e,h){if(Ke(e))return!1;var C=typeof e;return C=="number"||C=="symbol"||C=="boolean"||e==null||Fn(e)?!0:an.test(e)||!Ai.test(e)||h!=null&&e in Ge(h)}function Gv(e){var h=typeof e;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?e!=="__proto__":e===null}function Vl(e){var h=ma(e),C=H[h];if(typeof C!="function"||!(h in lt.prototype))return!1;if(e===C)return!0;var D=zl(C);return!!D&&e===D[0]}function Kv(e){return!!Xu&&Xu in e}var qv=Gs?Pi:lc;function os(e){var h=e&&e.constructor,C=typeof h=="function"&&h.prototype||Jr;return e===C}function Xh(e){return e===e&&!Nt(e)}function Jh(e,h){return function(C){return C==null?!1:C[e]===h&&(h!==t||e in Ge(C))}}function Yv(e){var h=_a(e,function(D){return C.size===p&&C.clear(),D}),C=h.cache;return h}function Zv(e,h){var C=e[1],D=h[1],B=C|D,j=B<(d|g|T),Z=D==T&&C==R||D==T&&C==E&&e[7].length<=h[8]||D==(T|E)&&h[7].length<=h[8]&&C==R;if(!(j||Z))return e;D&d&&(e[2]=h[2],B|=C&d?0:b);var ee=h[3];if(ee){var re=e[3];e[3]=re?Dh(re,ee,h[4]):ee,e[4]=re?xe(e[3],o):h[4]}return ee=h[5],ee&&(re=e[5],e[5]=re?Nh(re,ee,h[6]):ee,e[6]=re?xe(e[5],o):h[6]),ee=h[7],ee&&(e[7]=ee),D&T&&(e[8]=e[8]==null?h[8]:mn(e[8],h[8])),e[9]==null&&(e[9]=h[9]),e[0]=h[0],e[1]=B,e}function Qv(e){var h=[];if(e!=null)for(var C in Ge(e))h.push(C);return h}function Xv(e){return qs.call(e)}function ed(e,h,C){return h=nn(h===t?e.length-1:h,0),function(){for(var D=arguments,B=-1,j=nn(D.length-h,0),Z=se(j);++B<j;)Z[B]=D[h+B];B=-1;for(var ee=se(h+1);++B<h;)ee[B]=D[B];return ee[h]=C(Z),Et(e,this,ee)}}function td(e,h){return h.length<2?e:Cr(e,Zn(h,0,-1))}function Jv(e,h){for(var C=e.length,D=mn(h.length,C),B=Ln(e);D--;){var j=h[D];e[D]=Fi(j,C)?B[j]:t}return e}function Gl(e,h){if(!(h==="constructor"&&typeof e[h]=="function")&&h!="__proto__")return e[h]}var nd=rd(Ch),ss=pm||function(e,h){return Jt.setTimeout(e,h)},Kl=rd(_v);function id(e,h,C){var D=h+"";return Kl(e,jv(D,ey(zv(D),C)))}function rd(e){var h=0,C=0;return function(){var D=ym(),B=m-(D-C);if(C=D,B>0){if(++h>=k)return arguments[0]}else h=0;return e.apply(t,arguments)}}function ya(e,h){var C=-1,D=e.length,B=D-1;for(h=h===t?D:h;++C<h;){var j=Ml(C,B),Z=e[j];e[j]=e[C],e[C]=Z}return e.length=h,e}var od=Yv(function(e){var h=[];return e.charCodeAt(0)===46&&h.push(""),e.replace(di,function(C,D,B,j){h.push(B?j.replace($i,"$1"):D||C)}),h});function xi(e){if(typeof e=="string"||Fn(e))return e;var h=e+"";return h=="0"&&1/e==-1/0?"-0":h}function $r(e){if(e!=null){try{return Ks.call(e)}catch{}try{return e+""}catch{}}return""}function ey(e,h){return xn(Q,function(C){var D="_."+C[0];h&C[1]&&!Yr(e,D)&&e.push(D)}),e.sort()}function sd(e){if(e instanceof lt)return e.clone();var h=new qn(e.__wrapped__,e.__chain__);return h.__actions__=Ln(e.__actions__),h.__index__=e.__index__,h.__values__=e.__values__,h}function ty(e,h,C){(C?kn(e,h,C):h===t)?h=1:h=nn(Qe(h),0);var D=e==null?0:e.length;if(!D||h<1)return[];for(var B=0,j=0,Z=se(ea(D/h));B<D;)Z[j++]=Zn(e,B,B+=h);return Z}function ny(e){for(var h=-1,C=e==null?0:e.length,D=0,B=[];++h<C;){var j=e[h];j&&(B[D++]=j)}return B}function iy(){var e=arguments.length;if(!e)return[];for(var h=se(e-1),C=arguments[0],D=e;D--;)h[D-1]=arguments[D];return pn(Ke(C)?Ln(C):[C],hn(h,1))}var ry=nt(function(e,h){return Ht(e)?es(e,hn(h,1,Ht,!0)):[]}),oy=nt(function(e,h){var C=Qn(h);return Ht(C)&&(C=t),Ht(e)?es(e,hn(h,1,Ht,!0),Fe(C,2)):[]}),sy=nt(function(e,h){var C=Qn(h);return Ht(C)&&(C=t),Ht(e)?es(e,hn(h,1,Ht,!0),t,C):[]});function ay(e,h,C){var D=e==null?0:e.length;return D?(h=C||h===t?1:Qe(h),Zn(e,h<0?0:h,D)):[]}function ly(e,h,C){var D=e==null?0:e.length;return D?(h=C||h===t?1:Qe(h),h=D-h,Zn(e,0,h<0?0:h)):[]}function cy(e,h){return e&&e.length?ua(e,Fe(h,3),!0,!0):[]}function uy(e,h){return e&&e.length?ua(e,Fe(h,3),!0):[]}function hy(e,h,C,D){var B=e==null?0:e.length;return B?(C&&typeof C!="number"&&kn(e,h,C)&&(C=0,D=B),iv(e,h,C,D)):[]}function ad(e,h,C){var D=e==null?0:e.length;if(!D)return-1;var B=C==null?0:Qe(C);return B<0&&(B=nn(D+B,0)),br(e,Fe(h,3),B)}function ld(e,h,C){var D=e==null?0:e.length;if(!D)return-1;var B=D-1;return C!==t&&(B=Qe(C),B=C<0?nn(D+B,0):mn(B,D-1)),br(e,Fe(h,3),B,!0)}function cd(e){var h=e==null?0:e.length;return h?hn(e,1):[]}function dy(e){var h=e==null?0:e.length;return h?hn(e,F):[]}function fy(e,h){var C=e==null?0:e.length;return C?(h=h===t?1:Qe(h),hn(e,h)):[]}function py(e){for(var h=-1,C=e==null?0:e.length,D={};++h<C;){var B=e[h];D[B[0]]=B[1]}return D}function ud(e){return e&&e.length?e[0]:t}function gy(e,h,C){var D=e==null?0:e.length;if(!D)return-1;var B=C==null?0:Qe(C);return B<0&&(B=nn(D+B,0)),Ei(e,h,B)}function my(e){var h=e==null?0:e.length;return h?Zn(e,0,-1):[]}var vy=nt(function(e){var h=Tt(e,Ol);return h.length&&h[0]===e[0]?kl(h):[]}),yy=nt(function(e){var h=Qn(e),C=Tt(e,Ol);return h===Qn(C)?h=t:C.pop(),C.length&&C[0]===e[0]?kl(C,Fe(h,2)):[]}),by=nt(function(e){var h=Qn(e),C=Tt(e,Ol);return h=typeof h=="function"?h:t,h&&C.pop(),C.length&&C[0]===e[0]?kl(C,t,h):[]});function wy(e,h){return e==null?"":mm.call(e,h)}function Qn(e){var h=e==null?0:e.length;return h?e[h-1]:t}function xy(e,h,C){var D=e==null?0:e.length;if(!D)return-1;var B=D;return C!==t&&(B=Qe(C),B=B<0?nn(D+B,0):mn(B,D-1)),h===h?yt(e,h,B):br(e,Uo,B,!0)}function _y(e,h){return e&&e.length?xh(e,Qe(h)):t}var Sy=nt(hd);function hd(e,h){return e&&e.length&&h&&h.length?Tl(e,h):e}function ky(e,h,C){return e&&e.length&&h&&h.length?Tl(e,h,Fe(C,2)):e}function Cy(e,h,C){return e&&e.length&&h&&h.length?Tl(e,h,t,C):e}var Ay=Ni(function(e,h){var C=e==null?0:e.length,D=wl(e,h);return kh(e,Tt(h,function(B){return Fi(B,C)?+B:B}).sort(Oh)),D});function $y(e,h){var C=[];if(!(e&&e.length))return C;var D=-1,B=[],j=e.length;for(h=Fe(h,3);++D<j;){var Z=e[D];h(Z,D,e)&&(C.push(Z),B.push(D))}return kh(e,B),C}function ql(e){return e==null?e:wm.call(e)}function Ty(e,h,C){var D=e==null?0:e.length;return D?(C&&typeof C!="number"&&kn(e,h,C)?(h=0,C=D):(h=h==null?0:Qe(h),C=C===t?D:Qe(C)),Zn(e,h,C)):[]}function My(e,h){return ca(e,h)}function Ly(e,h,C){return El(e,h,Fe(C,2))}function Ey(e,h){var C=e==null?0:e.length;if(C){var D=ca(e,h);if(D<C&&oi(e[D],h))return D}return-1}function Ry(e,h){return ca(e,h,!0)}function Iy(e,h,C){return El(e,h,Fe(C,2),!0)}function Oy(e,h){var C=e==null?0:e.length;if(C){var D=ca(e,h,!0)-1;if(oi(e[D],h))return D}return-1}function Dy(e){return e&&e.length?Ah(e):[]}function Ny(e,h){return e&&e.length?Ah(e,Fe(h,2)):[]}function Fy(e){var h=e==null?0:e.length;return h?Zn(e,1,h):[]}function Py(e,h,C){return e&&e.length?(h=C||h===t?1:Qe(h),Zn(e,0,h<0?0:h)):[]}function Wy(e,h,C){var D=e==null?0:e.length;return D?(h=C||h===t?1:Qe(h),h=D-h,Zn(e,h<0?0:h,D)):[]}function By(e,h){return e&&e.length?ua(e,Fe(h,3),!1,!0):[]}function zy(e,h){return e&&e.length?ua(e,Fe(h,3)):[]}var Hy=nt(function(e){return or(hn(e,1,Ht,!0))}),Uy=nt(function(e){var h=Qn(e);return Ht(h)&&(h=t),or(hn(e,1,Ht,!0),Fe(h,2))}),jy=nt(function(e){var h=Qn(e);return h=typeof h=="function"?h:t,or(hn(e,1,Ht,!0),t,h)});function Vy(e){return e&&e.length?or(e):[]}function Gy(e,h){return e&&e.length?or(e,Fe(h,2)):[]}function Ky(e,h){return h=typeof h=="function"?h:t,e&&e.length?or(e,t,h):[]}function Yl(e){if(!(e&&e.length))return[];var h=0;return e=Tn(e,function(C){if(Ht(C))return h=nn(C.length,h),!0}),Wt(h,function(C){return Tt(e,Vo(C))})}function dd(e,h){if(!(e&&e.length))return[];var C=Yl(e);return h==null?C:Tt(C,function(D){return Et(h,t,D)})}var qy=nt(function(e,h){return Ht(e)?es(e,h):[]}),Yy=nt(function(e){return Il(Tn(e,Ht))}),Zy=nt(function(e){var h=Qn(e);return Ht(h)&&(h=t),Il(Tn(e,Ht),Fe(h,2))}),Qy=nt(function(e){var h=Qn(e);return h=typeof h=="function"?h:t,Il(Tn(e,Ht),t,h)}),Xy=nt(Yl);function Jy(e,h){return Lh(e||[],h||[],Jo)}function eb(e,h){return Lh(e||[],h||[],is)}var tb=nt(function(e){var h=e.length,C=h>1?e[h-1]:t;return C=typeof C=="function"?(e.pop(),C):t,dd(e,C)});function fd(e){var h=H(e);return h.__chain__=!0,h}function nb(e,h){return h(e),e}function ba(e,h){return h(e)}var ib=Ni(function(e){var h=e.length,C=h?e[0]:0,D=this.__wrapped__,B=function(j){return wl(j,e)};return h>1||this.__actions__.length||!(D instanceof lt)||!Fi(C)?this.thru(B):(D=D.slice(C,+C+(h?1:0)),D.__actions__.push({func:ba,args:[B],thisArg:t}),new qn(D,this.__chain__).thru(function(j){return h&&!j.length&&j.push(t),j}))});function rb(){return fd(this)}function ob(){return new qn(this.value(),this.__chain__)}function sb(){this.__values__===t&&(this.__values__=$d(this.value()));var e=this.__index__>=this.__values__.length,h=e?t:this.__values__[this.__index__++];return{done:e,value:h}}function ab(){return this}function lb(e){for(var h,C=this;C instanceof ra;){var D=sd(C);D.__index__=0,D.__values__=t,h?B.__wrapped__=D:h=D;var B=D;C=C.__wrapped__}return B.__wrapped__=e,h}function cb(){var e=this.__wrapped__;if(e instanceof lt){var h=e;return this.__actions__.length&&(h=new lt(this)),h=h.reverse(),h.__actions__.push({func:ba,args:[ql],thisArg:t}),new qn(h,this.__chain__)}return this.thru(ql)}function ub(){return Mh(this.__wrapped__,this.__actions__)}var hb=ha(function(e,h,C){bt.call(e,C)?++e[C]:Oi(e,C,1)});function db(e,h,C){var D=Ke(e)?er:nv;return C&&kn(e,h,C)&&(h=t),D(e,Fe(h,3))}function fb(e,h){var C=Ke(e)?Tn:dh;return C(e,Fe(h,3))}var pb=Bh(ad),gb=Bh(ld);function mb(e,h){return hn(wa(e,h),1)}function vb(e,h){return hn(wa(e,h),F)}function yb(e,h,C){return C=C===t?1:Qe(C),hn(wa(e,h),C)}function pd(e,h){var C=Ke(e)?xn:rr;return C(e,Fe(h,3))}function gd(e,h){var C=Ke(e)?zs:hh;return C(e,Fe(h,3))}var bb=ha(function(e,h,C){bt.call(e,C)?e[C].push(h):Oi(e,C,[h])});function wb(e,h,C,D){e=En(e)?e:ao(e),C=C&&!D?Qe(C):0;var B=e.length;return C<0&&(C=nn(B+C,0)),Ca(e)?C<=B&&e.indexOf(h,C)>-1:!!B&&Ei(e,h,C)>-1}var xb=nt(function(e,h,C){var D=-1,B=typeof h=="function",j=En(e)?se(e.length):[];return rr(e,function(Z){j[++D]=B?Et(h,Z,C):ts(Z,h,C)}),j}),_b=ha(function(e,h,C){Oi(e,C,h)});function wa(e,h){var C=Ke(e)?Tt:yh;return C(e,Fe(h,3))}function Sb(e,h,C,D){return e==null?[]:(Ke(h)||(h=h==null?[]:[h]),C=D?t:C,Ke(C)||(C=C==null?[]:[C]),_h(e,h,C))}var kb=ha(function(e,h,C){e[C?0:1].push(h)},function(){return[[],[]]});function Cb(e,h,C){var D=Ke(e)?Kn:Go,B=arguments.length<3;return D(e,Fe(h,4),C,B,rr)}function Ab(e,h,C){var D=Ke(e)?yr:Go,B=arguments.length<3;return D(e,Fe(h,4),C,B,hh)}function $b(e,h){var C=Ke(e)?Tn:dh;return C(e,Sa(Fe(h,3)))}function Tb(e){var h=Ke(e)?ah:wv;return h(e)}function Mb(e,h,C){(C?kn(e,h,C):h===t)?h=1:h=Qe(h);var D=Ke(e)?Qm:xv;return D(e,h)}function Lb(e){var h=Ke(e)?Xm:Sv;return h(e)}function Eb(e){if(e==null)return 0;if(En(e))return Ca(e)?Ye(e):e.length;var h=vn(e);return h==it||h==Ft?e.size:Al(e).length}function Rb(e,h,C){var D=Ke(e)?Zr:kv;return C&&kn(e,h,C)&&(h=t),D(e,Fe(h,3))}var Ib=nt(function(e,h){if(e==null)return[];var C=h.length;return C>1&&kn(e,h[0],h[1])?h=[]:C>2&&kn(h[0],h[1],h[2])&&(h=[h[0]]),_h(e,hn(h,1),[])}),xa=fm||function(){return Jt.Date.now()};function Ob(e,h){if(typeof h!="function")throw new tn(y);return e=Qe(e),function(){if(--e<1)return h.apply(this,arguments)}}function md(e,h,C){return h=C?t:h,h=e&&h==null?e.length:h,Di(e,T,t,t,t,t,h)}function vd(e,h){var C;if(typeof h!="function")throw new tn(y);return e=Qe(e),function(){return--e>0&&(C=h.apply(this,arguments)),e<=1&&(h=t),C}}var Zl=nt(function(e,h,C){var D=d;if(C.length){var B=xe(C,oo(Zl));D|=_}return Di(e,D,h,C,B)}),yd=nt(function(e,h,C){var D=d|g;if(C.length){var B=xe(C,oo(yd));D|=_}return Di(h,D,e,C,B)});function bd(e,h,C){h=C?t:h;var D=Di(e,R,t,t,t,t,t,h);return D.placeholder=bd.placeholder,D}function wd(e,h,C){h=C?t:h;var D=Di(e,$,t,t,t,t,t,h);return D.placeholder=wd.placeholder,D}function xd(e,h,C){var D,B,j,Z,ee,re,de=0,pe=!1,ve=!1,Ce=!0;if(typeof e!="function")throw new tn(y);h=Xn(h)||0,Nt(C)&&(pe=!!C.leading,ve="maxWait"in C,j=ve?nn(Xn(C.maxWait)||0,h):j,Ce="trailing"in C?!!C.trailing:Ce);function Le(Ut){var si=D,Bi=B;return D=B=t,de=Ut,Z=e.apply(Bi,si),Z}function Pe(Ut){return de=Ut,ee=ss(at,h),pe?Le(Ut):Z}function Je(Ut){var si=Ut-re,Bi=Ut-de,Bd=h-si;return ve?mn(Bd,j-Bi):Bd}function We(Ut){var si=Ut-re,Bi=Ut-de;return re===t||si>=h||si<0||ve&&Bi>=j}function at(){var Ut=xa();if(We(Ut))return ht(Ut);ee=ss(at,Je(Ut))}function ht(Ut){return ee=t,Ce&&D?Le(Ut):(D=B=t,Z)}function Pn(){ee!==t&&Eh(ee),de=0,D=re=B=ee=t}function Cn(){return ee===t?Z:ht(xa())}function Wn(){var Ut=xa(),si=We(Ut);if(D=arguments,B=this,re=Ut,si){if(ee===t)return Pe(re);if(ve)return Eh(ee),ee=ss(at,h),Le(re)}return ee===t&&(ee=ss(at,h)),Z}return Wn.cancel=Pn,Wn.flush=Cn,Wn}var Db=nt(function(e,h){return uh(e,1,h)}),Nb=nt(function(e,h,C){return uh(e,Xn(h)||0,C)});function Fb(e){return Di(e,I)}function _a(e,h){if(typeof e!="function"||h!=null&&typeof h!="function")throw new tn(y);var C=function(){var D=arguments,B=h?h.apply(this,D):D[0],j=C.cache;if(j.has(B))return j.get(B);var Z=e.apply(this,D);return C.cache=j.set(B,Z)||j,Z};return C.cache=new(_a.Cache||Ii),C}_a.Cache=Ii;function Sa(e){if(typeof e!="function")throw new tn(y);return function(){var h=arguments;switch(h.length){case 0:return!e.call(this);case 1:return!e.call(this,h[0]);case 2:return!e.call(this,h[0],h[1]);case 3:return!e.call(this,h[0],h[1],h[2])}return!e.apply(this,h)}}function Pb(e){return vd(2,e)}var Wb=Cv(function(e,h){h=h.length==1&&Ke(h[0])?Tt(h[0],gn(Fe())):Tt(hn(h,1),gn(Fe()));var C=h.length;return nt(function(D){for(var B=-1,j=mn(D.length,C);++B<j;)D[B]=h[B].call(this,D[B]);return Et(e,this,D)})}),Ql=nt(function(e,h){var C=xe(h,oo(Ql));return Di(e,_,t,h,C)}),_d=nt(function(e,h){var C=xe(h,oo(_d));return Di(e,v,t,h,C)}),Bb=Ni(function(e,h){return Di(e,E,t,t,t,h)});function zb(e,h){if(typeof e!="function")throw new tn(y);return h=h===t?h:Qe(h),nt(e,h)}function Hb(e,h){if(typeof e!="function")throw new tn(y);return h=h==null?0:nn(Qe(h),0),nt(function(C){var D=C[h],B=ar(C,0,h);return D&&pn(B,D),Et(e,this,B)})}function Ub(e,h,C){var D=!0,B=!0;if(typeof e!="function")throw new tn(y);return Nt(C)&&(D="leading"in C?!!C.leading:D,B="trailing"in C?!!C.trailing:B),xd(e,h,{leading:D,maxWait:h,trailing:B})}function jb(e){return md(e,1)}function Vb(e,h){return Ql(Dl(h),e)}function Gb(){if(!arguments.length)return[];var e=arguments[0];return Ke(e)?e:[e]}function Kb(e){return Yn(e,r)}function qb(e,h){return h=typeof h=="function"?h:t,Yn(e,r,h)}function Yb(e){return Yn(e,a|r)}function Zb(e,h){return h=typeof h=="function"?h:t,Yn(e,a|r,h)}function Qb(e,h){return h==null||ch(e,h,cn(h))}function oi(e,h){return e===h||e!==e&&h!==h}var Xb=ga(Sl),Jb=ga(function(e,h){return e>=h}),Tr=gh(function(){return arguments}())?gh:function(e){return Bt(e)&&bt.call(e,"callee")&&!th.call(e,"callee")},Ke=se.isArray,ew=Ws?gn(Ws):lv;function En(e){return e!=null&&ka(e.length)&&!Pi(e)}function Ht(e){return Bt(e)&&En(e)}function tw(e){return e===!0||e===!1||Bt(e)&&Sn(e)==ge}var lr=gm||lc,nw=Gn?gn(Gn):cv;function iw(e){return Bt(e)&&e.nodeType===1&&!as(e)}function rw(e){if(e==null)return!0;if(En(e)&&(Ke(e)||typeof e=="string"||typeof e.splice=="function"||lr(e)||so(e)||Tr(e)))return!e.length;var h=vn(e);if(h==it||h==Ft)return!e.size;if(os(e))return!Al(e).length;for(var C in e)if(bt.call(e,C))return!1;return!0}function ow(e,h){return ns(e,h)}function sw(e,h,C){C=typeof C=="function"?C:t;var D=C?C(e,h):t;return D===t?ns(e,h,t,C):!!D}function Xl(e){if(!Bt(e))return!1;var h=Sn(e);return h==_e||h==fe||typeof e.message=="string"&&typeof e.name=="string"&&!as(e)}function aw(e){return typeof e=="number"&&ih(e)}function Pi(e){if(!Nt(e))return!1;var h=Sn(e);return h==Xe||h==At||h==ae||h==hi}function Sd(e){return typeof e=="number"&&e==Qe(e)}function ka(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W}function Nt(e){var h=typeof e;return e!=null&&(h=="object"||h=="function")}function Bt(e){return e!=null&&typeof e=="object"}var kd=ni?gn(ni):hv;function lw(e,h){return e===h||Cl(e,h,Hl(h))}function cw(e,h,C){return C=typeof C=="function"?C:t,Cl(e,h,Hl(h),C)}function uw(e){return Cd(e)&&e!=+e}function hw(e){if(qv(e))throw new Ee(w);return mh(e)}function dw(e){return e===null}function fw(e){return e==null}function Cd(e){return typeof e=="number"||Bt(e)&&Sn(e)==st}function as(e){if(!Bt(e)||Sn(e)!=xt)return!1;var h=Qs(e);if(h===null)return!0;var C=bt.call(h,"constructor")&&h.constructor;return typeof C=="function"&&C instanceof C&&Ks.call(C)==cm}var Jl=yi?gn(yi):dv;function pw(e){return Sd(e)&&e>=-9007199254740991&&e<=W}var Ad=Li?gn(Li):fv;function Ca(e){return typeof e=="string"||!Ke(e)&&Bt(e)&&Sn(e)==Re}function Fn(e){return typeof e=="symbol"||Bt(e)&&Sn(e)==De}var so=Bs?gn(Bs):pv;function gw(e){return e===t}function mw(e){return Bt(e)&&vn(e)==Ne}function vw(e){return Bt(e)&&Sn(e)==ce}var yw=ga($l),bw=ga(function(e,h){return e<=h});function $d(e){if(!e)return[];if(En(e))return Ca(e)?ze(e):Ln(e);if(qo&&e[qo])return he(e[qo]());var h=vn(e),C=h==it?ye:h==Ft?ke:ao;return C(e)}function Wi(e){if(!e)return e===0?e:0;if(e=Xn(e),e===F||e===-1/0){var h=e<0?-1:1;return h*U}return e===e?e:0}function Qe(e){var h=Wi(e),C=h%1;return h===h?C?h-C:h:0}function Td(e){return e?kr(Qe(e),0,G):0}function Xn(e){if(typeof e=="number")return e;if(Fn(e))return V;if(Nt(e)){var h=typeof e.valueOf=="function"?e.valueOf():e;e=Nt(h)?h+"":h}if(typeof e!="string")return e===0?e:+e;e=Ot(e);var C=pi.test(e);return C||Vt.test(e)?_t(e.slice(2),C?2:8):$s.test(e)?V:+e}function Md(e){return wi(e,Rn(e))}function ww(e){return e?kr(Qe(e),-9007199254740991,W):e===0?e:0}function mt(e){return e==null?"":Nn(e)}var xw=io(function(e,h){if(os(h)||En(h)){wi(h,cn(h),e);return}for(var C in h)bt.call(h,C)&&Jo(e,C,h[C])}),Ld=io(function(e,h){wi(h,Rn(h),e)}),Aa=io(function(e,h,C,D){wi(h,Rn(h),e,D)}),_w=io(function(e,h,C,D){wi(h,cn(h),e,D)}),Sw=Ni(wl);function kw(e,h){var C=no(e);return h==null?C:lh(C,h)}var Cw=nt(function(e,h){e=Ge(e);var C=-1,D=h.length,B=D>2?h[2]:t;for(B&&kn(h[0],h[1],B)&&(D=1);++C<D;)for(var j=h[C],Z=Rn(j),ee=-1,re=Z.length;++ee<re;){var de=Z[ee],pe=e[de];(pe===t||oi(pe,Jr[de])&&!bt.call(e,de))&&(e[de]=j[de])}return e}),Aw=nt(function(e){return e.push(t,Kh),Et(Ed,t,e)});function $w(e,h){return Ho(e,Fe(h,3),bi)}function Tw(e,h){return Ho(e,Fe(h,3),_l)}function Mw(e,h){return e==null?e:xl(e,Fe(h,3),Rn)}function Lw(e,h){return e==null?e:fh(e,Fe(h,3),Rn)}function Ew(e,h){return e&&bi(e,Fe(h,3))}function Rw(e,h){return e&&_l(e,Fe(h,3))}function Iw(e){return e==null?[]:aa(e,cn(e))}function Ow(e){return e==null?[]:aa(e,Rn(e))}function ec(e,h,C){var D=e==null?t:Cr(e,h);return D===t?C:D}function Dw(e,h){return e!=null&&Zh(e,h,rv)}function tc(e,h){return e!=null&&Zh(e,h,ov)}var Nw=Hh(function(e,h,C){h!=null&&typeof h.toString!="function"&&(h=qs.call(h)),e[h]=C},ic(In)),Fw=Hh(function(e,h,C){h!=null&&typeof h.toString!="function"&&(h=qs.call(h)),bt.call(e,h)?e[h].push(C):e[h]=[C]},Fe),Pw=nt(ts);function cn(e){return En(e)?sh(e):Al(e)}function Rn(e){return En(e)?sh(e,!0):gv(e)}function Ww(e,h){var C={};return h=Fe(h,3),bi(e,function(D,B,j){Oi(C,h(D,B,j),D)}),C}function Bw(e,h){var C={};return h=Fe(h,3),bi(e,function(D,B,j){Oi(C,B,h(D,B,j))}),C}var zw=io(function(e,h,C){la(e,h,C)}),Ed=io(function(e,h,C,D){la(e,h,C,D)}),Hw=Ni(function(e,h){var C={};if(e==null)return C;var D=!1;h=Tt(h,function(j){return j=sr(j,e),D||(D=j.length>1),j}),wi(e,Bl(e),C),D&&(C=Yn(C,a|i|r,Nv));for(var B=h.length;B--;)Rl(C,h[B]);return C});function Uw(e,h){return Rd(e,Sa(Fe(h)))}var jw=Ni(function(e,h){return e==null?{}:vv(e,h)});function Rd(e,h){if(e==null)return{};var C=Tt(Bl(e),function(D){return[D]});return h=Fe(h),Sh(e,C,function(D,B){return h(D,B[0])})}function Vw(e,h,C){h=sr(h,e);var D=-1,B=h.length;for(B||(B=1,e=t);++D<B;){var j=e==null?t:e[xi(h[D])];j===t&&(D=B,j=C),e=Pi(j)?j.call(e):j}return e}function Gw(e,h,C){return e==null?e:is(e,h,C)}function Kw(e,h,C,D){return D=typeof D=="function"?D:t,e==null?e:is(e,h,C,D)}var Id=Vh(cn),Od=Vh(Rn);function qw(e,h,C){var D=Ke(e),B=D||lr(e)||so(e);if(h=Fe(h,4),C==null){var j=e&&e.constructor;B?C=D?new j:[]:Nt(e)?C=Pi(j)?no(Qs(e)):{}:C={}}return(B?xn:bi)(e,function(Z,ee,re){return h(C,Z,ee,re)}),C}function Yw(e,h){return e==null?!0:Rl(e,h)}function Zw(e,h,C){return e==null?e:Th(e,h,Dl(C))}function Qw(e,h,C,D){return D=typeof D=="function"?D:t,e==null?e:Th(e,h,Dl(C),D)}function ao(e){return e==null?[]:wr(e,cn(e))}function Xw(e){return e==null?[]:wr(e,Rn(e))}function Jw(e,h,C){return C===t&&(C=h,h=t),C!==t&&(C=Xn(C),C=C===C?C:0),h!==t&&(h=Xn(h),h=h===h?h:0),kr(Xn(e),h,C)}function e0(e,h,C){return h=Wi(h),C===t?(C=h,h=0):C=Wi(C),e=Xn(e),sv(e,h,C)}function t0(e,h,C){if(C&&typeof C!="boolean"&&kn(e,h,C)&&(h=C=t),C===t&&(typeof h=="boolean"?(C=h,h=t):typeof e=="boolean"&&(C=e,e=t)),e===t&&h===t?(e=0,h=1):(e=Wi(e),h===t?(h=e,e=0):h=Wi(h)),e>h){var D=e;e=h,h=D}if(C||e%1||h%1){var B=rh();return mn(e+B*(h-e+qt("1e-"+((B+"").length-1))),h)}return Ml(e,h)}var n0=ro(function(e,h,C){return h=h.toLowerCase(),e+(C?Dd(h):h)});function Dd(e){return nc(mt(e).toLowerCase())}function Nd(e){return e=mt(e),e&&e.replace(Br,P).replace(Qi,"")}function i0(e,h,C){e=mt(e),h=Nn(h);var D=e.length;C=C===t?D:kr(Qe(C),0,D);var B=C;return C-=h.length,C>=0&&e.slice(C,B)==h}function r0(e){return e=mt(e),e&&sl.test(e)?e.replace(ks,z):e}function o0(e){return e=mt(e),e&&Ui.test(e)?e.replace(fi,"\\$&"):e}var s0=ro(function(e,h,C){return e+(C?"-":"")+h.toLowerCase()}),a0=ro(function(e,h,C){return e+(C?" ":"")+h.toLowerCase()}),l0=Wh("toLowerCase");function c0(e,h,C){e=mt(e),h=Qe(h);var D=h?Ye(e):0;if(!h||D>=h)return e;var B=(h-D)/2;return pa(ta(B),C)+e+pa(ea(B),C)}function u0(e,h,C){e=mt(e),h=Qe(h);var D=h?Ye(e):0;return h&&D<h?e+pa(h-D,C):e}function h0(e,h,C){e=mt(e),h=Qe(h);var D=h?Ye(e):0;return h&&D<h?pa(h-D,C)+e:e}function d0(e,h,C){return C||h==null?h=0:h&&(h=+h),bm(mt(e).replace(dn,""),h||0)}function f0(e,h,C){return(C?kn(e,h,C):h===t)?h=1:h=Qe(h),Ll(mt(e),h)}function p0(){var e=arguments,h=mt(e[0]);return e.length<3?h:h.replace(e[1],e[2])}var g0=ro(function(e,h,C){return e+(C?"_":"")+h.toLowerCase()});function m0(e,h,C){return C&&typeof C!="number"&&kn(e,h,C)&&(h=C=t),C=C===t?G:C>>>0,C?(e=mt(e),e&&(typeof h=="string"||h!=null&&!Jl(h))&&(h=Nn(h),!h&&te(e))?ar(ze(e),0,C):e.split(h,C)):[]}var v0=ro(function(e,h,C){return e+(C?" ":"")+nc(h)});function y0(e,h,C){return e=mt(e),C=C==null?0:kr(Qe(C),0,e.length),h=Nn(h),e.slice(C,C+h.length)==h}function b0(e,h,C){var D=H.templateSettings;C&&kn(e,h,C)&&(h=t),e=mt(e),h=Aa({},h,D,Gh);var B=Aa({},h.imports,D.imports,Gh),j=cn(B),Z=wr(B,j),ee,re,de=0,pe=h.interpolate||fn,ve="__p += '",Ce=en((h.escape||fn).source+"|"+pe.source+"|"+(pe===Ie?hl:fn).source+"|"+(h.evaluate||fn).source+"|$","g"),Le="//# sourceURL="+(bt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fs+"]")+`
|
|
1393
|
+
`;e.replace(Ce,function(We,at,ht,Pn,Cn,Wn){return ht||(ht=Pn),ve+=e.slice(de,Wn).replace(dr,q),at&&(ee=!0,ve+=`' +
|
|
1394
|
+
__e(`+at+`) +
|
|
1395
|
+
'`),Cn&&(re=!0,ve+=`';
|
|
1396
|
+
`+Cn+`;
|
|
1397
|
+
__p += '`),ht&&(ve+=`' +
|
|
1398
|
+
((__t = (`+ht+`)) == null ? '' : __t) +
|
|
1399
|
+
'`),de=Wn+We.length,We}),ve+=`';
|
|
1400
|
+
`;var Pe=bt.call(h,"variable")&&h.variable;if(!Pe)ve=`with (obj) {
|
|
1401
|
+
`+ve+`
|
|
1402
|
+
}
|
|
1403
|
+
`;else if(ul.test(Pe))throw new Ee(S);ve=(re?ve.replace(Ci,""):ve).replace(An,"$1").replace(So,"$1;"),ve="function("+(Pe||"obj")+`) {
|
|
1404
|
+
`+(Pe?"":`obj || (obj = {});
|
|
1405
|
+
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
|
|
1406
|
+
function print() { __p += __j.call(arguments, '') }
|
|
1407
|
+
`:`;
|
|
1408
|
+
`)+ve+`return __p
|
|
1409
|
+
}`;var Je=Pd(function(){return je(j,Le+"return "+ve).apply(t,Z)});if(Je.source=ve,Xl(Je))throw Je;return Je}function w0(e){return mt(e).toLowerCase()}function x0(e){return mt(e).toUpperCase()}function _0(e,h,C){if(e=mt(e),e&&(C||h===t))return Ot(e);if(!e||!(h=Nn(h)))return e;var D=ze(e),B=ze(h),j=js(D,B),Z=Vs(D,B)+1;return ar(D,j,Z).join("")}function S0(e,h,C){if(e=mt(e),e&&(C||h===t))return e.slice(0,Ve(e)+1);if(!e||!(h=Nn(h)))return e;var D=ze(e),B=Vs(D,ze(h))+1;return ar(D,0,B).join("")}function k0(e,h,C){if(e=mt(e),e&&(C||h===t))return e.replace(dn,"");if(!e||!(h=Nn(h)))return e;var D=ze(e),B=js(D,ze(h));return ar(D,B).join("")}function C0(e,h){var C=M,D=N;if(Nt(h)){var B="separator"in h?h.separator:B;C="length"in h?Qe(h.length):C,D="omission"in h?Nn(h.omission):D}e=mt(e);var j=e.length;if(te(e)){var Z=ze(e);j=Z.length}if(C>=j)return e;var ee=C-Ye(D);if(ee<1)return D;var re=Z?ar(Z,0,ee).join(""):e.slice(0,ee);if(B===t)return re+D;if(Z&&(ee+=re.length-ee),Jl(B)){if(e.slice(ee).search(B)){var de,pe=re;for(B.global||(B=en(B.source,mt(Gi.exec(B))+"g")),B.lastIndex=0;de=B.exec(pe);)var ve=de.index;re=re.slice(0,ve===t?ee:ve)}}else if(e.indexOf(Nn(B),ee)!=ee){var Ce=re.lastIndexOf(B);Ce>-1&&(re=re.slice(0,Ce))}return re+D}function A0(e){return e=mt(e),e&&ol.test(e)?e.replace(ko,Me):e}var $0=ro(function(e,h,C){return e+(C?" ":"")+h.toUpperCase()}),nc=Wh("toUpperCase");function Fd(e,h,C){return e=mt(e),h=C?t:h,h===t?oe(e)?Rt(e):Qr(e):e.match(h)||[]}var Pd=nt(function(e,h){try{return Et(e,t,h)}catch(C){return Xl(C)?C:new Ee(C)}}),T0=Ni(function(e,h){return xn(h,function(C){C=xi(C),Oi(e,C,Zl(e[C],e))}),e});function M0(e){var h=e==null?0:e.length,C=Fe();return e=h?Tt(e,function(D){if(typeof D[1]!="function")throw new tn(y);return[C(D[0]),D[1]]}):[],nt(function(D){for(var B=-1;++B<h;){var j=e[B];if(Et(j[0],this,D))return Et(j[1],this,D)}})}function L0(e){return tv(Yn(e,a))}function ic(e){return function(){return e}}function E0(e,h){return e==null||e!==e?h:e}var R0=zh(),I0=zh(!0);function In(e){return e}function rc(e){return vh(typeof e=="function"?e:Yn(e,a))}function O0(e){return bh(Yn(e,a))}function D0(e,h){return wh(e,Yn(h,a))}var N0=nt(function(e,h){return function(C){return ts(C,e,h)}}),F0=nt(function(e,h){return function(C){return ts(e,C,h)}});function oc(e,h,C){var D=cn(h),B=aa(h,D);C==null&&!(Nt(h)&&(B.length||!D.length))&&(C=h,h=e,e=this,B=aa(h,cn(h)));var j=!(Nt(C)&&"chain"in C)||!!C.chain,Z=Pi(e);return xn(B,function(ee){var re=h[ee];e[ee]=re,Z&&(e.prototype[ee]=function(){var de=this.__chain__;if(j||de){var pe=e(this.__wrapped__),ve=pe.__actions__=Ln(this.__actions__);return ve.push({func:re,args:arguments,thisArg:e}),pe.__chain__=de,pe}return re.apply(e,pn([this.value()],arguments))})}),e}function P0(){return Jt._===this&&(Jt._=um),this}function sc(){}function W0(e){return e=Qe(e),nt(function(h){return xh(h,e)})}var B0=Fl(Tt),z0=Fl(er),H0=Fl(Zr);function Wd(e){return jl(e)?Vo(xi(e)):yv(e)}function U0(e){return function(h){return e==null?t:Cr(e,h)}}var j0=Uh(),V0=Uh(!0);function ac(){return[]}function lc(){return!1}function G0(){return{}}function K0(){return""}function q0(){return!0}function Y0(e,h){if(e=Qe(e),e<1||e>W)return[];var C=G,D=mn(e,G);h=Fe(h),e-=G;for(var B=Wt(D,h);++C<e;)h(C);return B}function Z0(e){return Ke(e)?Tt(e,xi):Fn(e)?[e]:Ln(od(mt(e)))}function Q0(e){var h=++lm;return mt(e)+h}var X0=fa(function(e,h){return e+h},0),J0=Pl("ceil"),ex=fa(function(e,h){return e/h},1),tx=Pl("floor");function nx(e){return e&&e.length?sa(e,In,Sl):t}function ix(e,h){return e&&e.length?sa(e,Fe(h,2),Sl):t}function rx(e){return jo(e,In)}function ox(e,h){return jo(e,Fe(h,2))}function sx(e){return e&&e.length?sa(e,In,$l):t}function ax(e,h){return e&&e.length?sa(e,Fe(h,2),$l):t}var lx=fa(function(e,h){return e*h},1),cx=Pl("round"),ux=fa(function(e,h){return e-h},0);function hx(e){return e&&e.length?nr(e,In):0}function dx(e,h){return e&&e.length?nr(e,Fe(h,2)):0}return H.after=Ob,H.ary=md,H.assign=xw,H.assignIn=Ld,H.assignInWith=Aa,H.assignWith=_w,H.at=Sw,H.before=vd,H.bind=Zl,H.bindAll=T0,H.bindKey=yd,H.castArray=Gb,H.chain=fd,H.chunk=ty,H.compact=ny,H.concat=iy,H.cond=M0,H.conforms=L0,H.constant=ic,H.countBy=hb,H.create=kw,H.curry=bd,H.curryRight=wd,H.debounce=xd,H.defaults=Cw,H.defaultsDeep=Aw,H.defer=Db,H.delay=Nb,H.difference=ry,H.differenceBy=oy,H.differenceWith=sy,H.drop=ay,H.dropRight=ly,H.dropRightWhile=cy,H.dropWhile=uy,H.fill=hy,H.filter=fb,H.flatMap=mb,H.flatMapDeep=vb,H.flatMapDepth=yb,H.flatten=cd,H.flattenDeep=dy,H.flattenDepth=fy,H.flip=Fb,H.flow=R0,H.flowRight=I0,H.fromPairs=py,H.functions=Iw,H.functionsIn=Ow,H.groupBy=bb,H.initial=my,H.intersection=vy,H.intersectionBy=yy,H.intersectionWith=by,H.invert=Nw,H.invertBy=Fw,H.invokeMap=xb,H.iteratee=rc,H.keyBy=_b,H.keys=cn,H.keysIn=Rn,H.map=wa,H.mapKeys=Ww,H.mapValues=Bw,H.matches=O0,H.matchesProperty=D0,H.memoize=_a,H.merge=zw,H.mergeWith=Ed,H.method=N0,H.methodOf=F0,H.mixin=oc,H.negate=Sa,H.nthArg=W0,H.omit=Hw,H.omitBy=Uw,H.once=Pb,H.orderBy=Sb,H.over=B0,H.overArgs=Wb,H.overEvery=z0,H.overSome=H0,H.partial=Ql,H.partialRight=_d,H.partition=kb,H.pick=jw,H.pickBy=Rd,H.property=Wd,H.propertyOf=U0,H.pull=Sy,H.pullAll=hd,H.pullAllBy=ky,H.pullAllWith=Cy,H.pullAt=Ay,H.range=j0,H.rangeRight=V0,H.rearg=Bb,H.reject=$b,H.remove=$y,H.rest=zb,H.reverse=ql,H.sampleSize=Mb,H.set=Gw,H.setWith=Kw,H.shuffle=Lb,H.slice=Ty,H.sortBy=Ib,H.sortedUniq=Dy,H.sortedUniqBy=Ny,H.split=m0,H.spread=Hb,H.tail=Fy,H.take=Py,H.takeRight=Wy,H.takeRightWhile=By,H.takeWhile=zy,H.tap=nb,H.throttle=Ub,H.thru=ba,H.toArray=$d,H.toPairs=Id,H.toPairsIn=Od,H.toPath=Z0,H.toPlainObject=Md,H.transform=qw,H.unary=jb,H.union=Hy,H.unionBy=Uy,H.unionWith=jy,H.uniq=Vy,H.uniqBy=Gy,H.uniqWith=Ky,H.unset=Yw,H.unzip=Yl,H.unzipWith=dd,H.update=Zw,H.updateWith=Qw,H.values=ao,H.valuesIn=Xw,H.without=qy,H.words=Fd,H.wrap=Vb,H.xor=Yy,H.xorBy=Zy,H.xorWith=Qy,H.zip=Xy,H.zipObject=Jy,H.zipObjectDeep=eb,H.zipWith=tb,H.entries=Id,H.entriesIn=Od,H.extend=Ld,H.extendWith=Aa,oc(H,H),H.add=X0,H.attempt=Pd,H.camelCase=n0,H.capitalize=Dd,H.ceil=J0,H.clamp=Jw,H.clone=Kb,H.cloneDeep=Yb,H.cloneDeepWith=Zb,H.cloneWith=qb,H.conformsTo=Qb,H.deburr=Nd,H.defaultTo=E0,H.divide=ex,H.endsWith=i0,H.eq=oi,H.escape=r0,H.escapeRegExp=o0,H.every=db,H.find=pb,H.findIndex=ad,H.findKey=$w,H.findLast=gb,H.findLastIndex=ld,H.findLastKey=Tw,H.floor=tx,H.forEach=pd,H.forEachRight=gd,H.forIn=Mw,H.forInRight=Lw,H.forOwn=Ew,H.forOwnRight=Rw,H.get=ec,H.gt=Xb,H.gte=Jb,H.has=Dw,H.hasIn=tc,H.head=ud,H.identity=In,H.includes=wb,H.indexOf=gy,H.inRange=e0,H.invoke=Pw,H.isArguments=Tr,H.isArray=Ke,H.isArrayBuffer=ew,H.isArrayLike=En,H.isArrayLikeObject=Ht,H.isBoolean=tw,H.isBuffer=lr,H.isDate=nw,H.isElement=iw,H.isEmpty=rw,H.isEqual=ow,H.isEqualWith=sw,H.isError=Xl,H.isFinite=aw,H.isFunction=Pi,H.isInteger=Sd,H.isLength=ka,H.isMap=kd,H.isMatch=lw,H.isMatchWith=cw,H.isNaN=uw,H.isNative=hw,H.isNil=fw,H.isNull=dw,H.isNumber=Cd,H.isObject=Nt,H.isObjectLike=Bt,H.isPlainObject=as,H.isRegExp=Jl,H.isSafeInteger=pw,H.isSet=Ad,H.isString=Ca,H.isSymbol=Fn,H.isTypedArray=so,H.isUndefined=gw,H.isWeakMap=mw,H.isWeakSet=vw,H.join=wy,H.kebabCase=s0,H.last=Qn,H.lastIndexOf=xy,H.lowerCase=a0,H.lowerFirst=l0,H.lt=yw,H.lte=bw,H.max=nx,H.maxBy=ix,H.mean=rx,H.meanBy=ox,H.min=sx,H.minBy=ax,H.stubArray=ac,H.stubFalse=lc,H.stubObject=G0,H.stubString=K0,H.stubTrue=q0,H.multiply=lx,H.nth=_y,H.noConflict=P0,H.noop=sc,H.now=xa,H.pad=c0,H.padEnd=u0,H.padStart=h0,H.parseInt=d0,H.random=t0,H.reduce=Cb,H.reduceRight=Ab,H.repeat=f0,H.replace=p0,H.result=Vw,H.round=cx,H.runInContext=ne,H.sample=Tb,H.size=Eb,H.snakeCase=g0,H.some=Rb,H.sortedIndex=My,H.sortedIndexBy=Ly,H.sortedIndexOf=Ey,H.sortedLastIndex=Ry,H.sortedLastIndexBy=Iy,H.sortedLastIndexOf=Oy,H.startCase=v0,H.startsWith=y0,H.subtract=ux,H.sum=hx,H.sumBy=dx,H.template=b0,H.times=Y0,H.toFinite=Wi,H.toInteger=Qe,H.toLength=Td,H.toLower=w0,H.toNumber=Xn,H.toSafeInteger=ww,H.toString=mt,H.toUpper=x0,H.trim=_0,H.trimEnd=S0,H.trimStart=k0,H.truncate=C0,H.unescape=A0,H.uniqueId=Q0,H.upperCase=$0,H.upperFirst=nc,H.each=pd,H.eachRight=gd,H.first=ud,oc(H,function(){var e={};return bi(H,function(h,C){bt.call(H.prototype,C)||(e[C]=h)}),e}(),{chain:!1}),H.VERSION=s,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){H[e].placeholder=H}),xn(["drop","take"],function(e,h){lt.prototype[e]=function(C){C=C===t?1:nn(Qe(C),0);var D=this.__filtered__&&!h?new lt(this):this.clone();return D.__filtered__?D.__takeCount__=mn(C,D.__takeCount__):D.__views__.push({size:mn(C,G),type:e+(D.__dir__<0?"Right":"")}),D},lt.prototype[e+"Right"]=function(C){return this.reverse()[e](C).reverse()}}),xn(["filter","map","takeWhile"],function(e,h){var C=h+1,D=C==x||C==O;lt.prototype[e]=function(B){var j=this.clone();return j.__iteratees__.push({iteratee:Fe(B,3),type:C}),j.__filtered__=j.__filtered__||D,j}}),xn(["head","last"],function(e,h){var C="take"+(h?"Right":"");lt.prototype[e]=function(){return this[C](1).value()[0]}}),xn(["initial","tail"],function(e,h){var C="drop"+(h?"":"Right");lt.prototype[e]=function(){return this.__filtered__?new lt(this):this[C](1)}}),lt.prototype.compact=function(){return this.filter(In)},lt.prototype.find=function(e){return this.filter(e).head()},lt.prototype.findLast=function(e){return this.reverse().find(e)},lt.prototype.invokeMap=nt(function(e,h){return typeof e=="function"?new lt(this):this.map(function(C){return ts(C,e,h)})}),lt.prototype.reject=function(e){return this.filter(Sa(Fe(e)))},lt.prototype.slice=function(e,h){e=Qe(e);var C=this;return C.__filtered__&&(e>0||h<0)?new lt(C):(e<0?C=C.takeRight(-e):e&&(C=C.drop(e)),h!==t&&(h=Qe(h),C=h<0?C.dropRight(-h):C.take(h-e)),C)},lt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},lt.prototype.toArray=function(){return this.take(G)},bi(lt.prototype,function(e,h){var C=/^(?:filter|find|map|reject)|While$/.test(h),D=/^(?:head|last)$/.test(h),B=H[D?"take"+(h=="last"?"Right":""):h],j=D||/^find/.test(h);B&&(H.prototype[h]=function(){var Z=this.__wrapped__,ee=D?[1]:arguments,re=Z instanceof lt,de=ee[0],pe=re||Ke(Z),ve=function(at){var ht=B.apply(H,pn([at],ee));return D&&Ce?ht[0]:ht};pe&&C&&typeof de=="function"&&de.length!=1&&(re=pe=!1);var Ce=this.__chain__,Le=!!this.__actions__.length,Pe=j&&!Ce,Je=re&&!Le;if(!j&&pe){Z=Je?Z:new lt(this);var We=e.apply(Z,ee);return We.__actions__.push({func:ba,args:[ve],thisArg:t}),new qn(We,Ce)}return Pe&&Je?e.apply(this,ee):(We=this.thru(ve),Pe?D?We.value()[0]:We.value():We)})}),xn(["pop","push","shift","sort","splice","unshift"],function(e){var h=Dn[e],C=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",D=/^(?:pop|shift)$/.test(e);H.prototype[e]=function(){var B=arguments;if(D&&!this.__chain__){var j=this.value();return h.apply(Ke(j)?j:[],B)}return this[C](function(Z){return h.apply(Ke(Z)?Z:[],B)})}}),bi(lt.prototype,function(e,h){var C=H[h];if(C){var D=C.name+"";bt.call(to,D)||(to[D]=[]),to[D].push({name:h,func:C})}}),to[da(t,g).name]=[{name:"wrapper",func:t}],lt.prototype.clone=Am,lt.prototype.reverse=$m,lt.prototype.value=Tm,H.prototype.at=ib,H.prototype.chain=rb,H.prototype.commit=ob,H.prototype.next=sb,H.prototype.plant=lb,H.prototype.reverse=cb,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=ub,H.prototype.first=H.prototype.head,qo&&(H.prototype[qo]=ab),H},kt=St();ln?((ln.exports=kt)._=kt,Vn._=kt):Jt._=kt}).call(xS)}(ds,ds.exports)),ds.exports}var _g=_S();const Sg=Ha(_g),SS={props:["calculatePacketText"],mixins:[xg],data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:c=>!!c||"Required.",min:c=>c>=1||"Minimum: 1",max:c=>parseInt(c)<=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(c){c.forEach(u=>{"buffer"in u&&(u.buffer=atob(u.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=u,this.paused||this.rebuildDisplayText()})},paused:function(c){c?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:Sg.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const c={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...c,...this.currentConfig}},methods:{rebuildDisplayText:function(){let c=this.paused?this.pausedHistory:this.history;const u=this.paused?this.pausedAt:this.historyPointer;if(c=c.filter(A=>A).slice(u+1,this.currentConfig.history).concat(c.slice(0,u+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const A=Math.max(c.length+this.pauseOffset,1);c=c.slice(0,A)}const t=Math.max(this.currentConfig.packetsToShow,1);c=c.slice(-t),this.currentConfig.newestAtTop&&(c=c.reverse());let s=`
|
|
1410
|
+
`;this.filterText!==null&&(s+=`
|
|
1411
|
+
`),this.displayText=c.join(s),this.rows=this.displayText.split(`
|
|
1412
|
+
`).length},matchesSearch:function(c){return this.filterText===null?c:c.split(`
|
|
1413
|
+
`).filter(u=>u.toLowerCase().includes(this.filterText.toLowerCase())).join(`
|
|
1414
|
+
`)},download:function(){const c=new Blob([this.displayText],{type:"text/plain"}),u=document.createElement("a");let t=URL.createObjectURL(c);u.href=t,u.setAttribute("download",`${px.format(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),u.click(),window.URL.revokeObjectURL(t)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},kS={class:"pa-2"},CS={class:"text-area-container"},AS={class:"floating-buttons"};function $S(c,u,t,s,A,w){const y=we.resolveComponent("v-text-field"),S=we.resolveComponent("v-col"),f=we.resolveComponent("v-slider"),p=we.resolveComponent("v-row"),o=we.resolveComponent("v-textarea"),a=we.resolveComponent("v-icon"),i=we.resolveComponent("v-btn"),r=we.resolveComponent("v-card-title"),n=we.resolveComponent("v-switch"),l=we.resolveComponent("v-radio"),d=we.resolveComponent("v-radio-group"),g=we.resolveComponent("v-card-text"),b=we.resolveComponent("v-card"),R=we.resolveComponent("v-menu");return we.openBlock(),we.createElementBlock("div",kS,[we.createVNode(p,{dense:"",class:"mb-2"},{default:we.withCtx(()=>[we.createVNode(S,{cols:"4"},{default:we.withCtx(()=>[we.createVNode(y,{modelValue:c.filterText,"onUpdate:modelValue":u[0]||(u[0]=$=>c.filterText=$),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}),we.createVNode(S,{cols:"8",class:"mt-1"},{default:we.withCtx(()=>[we.createVNode(f,{modelValue:c.pauseOffset,"onUpdate:modelValue":u[1]||(u[1]=$=>c.pauseOffset=$),onMousedown:w.pause,"onClick:prepend":w.stepBackward,"onClick:append":w.stepForward,"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-c.currentConfig.history,max:0,"hide-details":""},null,8,["modelValue","onMousedown","onClick:prepend","onClick:append","min"])]),_:1})]),_:1}),we.createVNode(p,{dense:"","no-gutters":""},{default:we.withCtx(()=>[we.createVNode(S,null,{default:we.withCtx(()=>[we.createElementVNode("div",CS,[we.createVNode(o,{"model-value":c.displayText,rows:c.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),we.createElementVNode("div",AS,[we.createVNode(R,{"close-on-content-click":!1,"min-width":700},{activator:we.withCtx(({props:$})=>[we.createVNode(i,we.mergeProps({class:"ml-2",color:"secondary"},$,{icon:"",size:"small","data-test":"history-component-open-settings"}),{default:we.withCtx(()=>[we.createVNode(a,null,{default:we.withCtx(()=>u[9]||(u[9]=[we.createTextVNode("astro:settings")])),_:1})]),_:2},1040)]),default:we.withCtx(()=>[we.createVNode(b,null,{default:we.withCtx(()=>[we.createVNode(r,{"data-test":"display-settings-card"},{default:we.withCtx(()=>u[10]||(u[10]=[we.createTextVNode(" Display settings ")])),_:1}),we.createVNode(g,null,{default:we.withCtx(()=>[we.createVNode(p,null,{default:we.withCtx(()=>[we.createVNode(S,null,{default:we.withCtx(()=>[we.createVNode(n,{modelValue:c.currentConfig.showTimestamp,"onUpdate:modelValue":u[2]||(u[2]=$=>c.currentConfig.showTimestamp=$),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),c.hasRaw?(we.openBlock(),we.createBlock(n,{key:0,modelValue:c.currentConfig.showAscii,"onUpdate:modelValue":u[3]||(u[3]=$=>c.currentConfig.showAscii=$),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):we.createCommentVNode("",!0),c.hasRaw?(we.openBlock(),we.createBlock(n,{key:1,modelValue:c.currentConfig.showLineAddress,"onUpdate:modelValue":u[4]||(u[4]=$=>c.currentConfig.showLineAddress=$),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):we.createCommentVNode("",!0)]),_:1}),we.createVNode(S,null,{default:we.withCtx(()=>[we.createVNode(d,{modelValue:c.currentConfig.newestAtTop,"onUpdate:modelValue":u[5]||(u[5]=$=>c.currentConfig.newestAtTop=$),label:"Print newest to the"},{default:we.withCtx(()=>[we.createVNode(l,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),we.createVNode(l,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),we.createVNode(S,null,{default:we.withCtx(()=>[we.createVNode(y,{modelValue:c.currentConfig.history,"onUpdate:modelValue":u[6]||(u[6]=$=>c.currentConfig.history=$),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[c.rules.required,c.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),c.hasRaw?(we.openBlock(),we.createBlock(y,{key:0,modelValue:c.currentConfig.bytesPerLine,"onUpdate:modelValue":u[7]||(u[7]=$=>c.currentConfig.bytesPerLine=$),label:"Bytes per line",type:"number",min:"1",rules:[c.rules.required,c.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):we.createCommentVNode("",!0),we.createVNode(y,{modelValue:c.currentConfig.packetsToShow,"onUpdate:modelValue":u[8]||(u[8]=$=>c.currentConfig.packetsToShow=$),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${c.currentConfig.history}`,"persistent-hint":"",rules:[c.rules.required,c.rules.min,c.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),we.createVNode(i,{class:"ml-2",onClick:w.download,color:"secondary",icon:"",size:"small","data-test":"history-component-download"},{default:we.withCtx(()=>[we.createVNode(a,null,{default:we.withCtx(()=>u[11]||(u[11]=[we.createTextVNode("mdi-file-download")])),_:1})]),_:1},8,["onClick"]),we.createVNode(i,{class:we.normalizeClass(["ml-2",{pulse:c.paused}]),onClick:w.togglePlayPause,color:"primary",icon:"","data-test":"history-component-play-pause"},{default:we.withCtx(()=>[c.paused?(we.openBlock(),we.createBlock(a,{key:0,size:"large"},{default:we.withCtx(()=>u[12]||(u[12]=[we.createTextVNode("mdi-play")])),_:1})):(we.openBlock(),we.createBlock(a,{key:1,size:"large"},{default:we.withCtx(()=>u[13]||(u[13]=[we.createTextVNode("mdi-pause")])),_:1}))]),_:1},8,["class","onClick"])])])]),_:1})]),_:1})])}const TS=fx._export_sfc(SS,[["render",$S],["__scopeId","data-v-90852ac7"]]);var _c={exports:{}},wf;function MS(){return wf||(wf=1,function(c,u){(function(){ace.require(["ace/mode/text"],function(t){c&&(c.exports=t)})})()}(_c)),_c.exports}MS();const LS=!0,sn="u-",ES="uplot",RS=sn+"hz",IS=sn+"vt",OS=sn+"title",DS=sn+"wrap",NS=sn+"under",FS=sn+"over",PS=sn+"axis",Ir=sn+"off",WS=sn+"select",BS=sn+"cursor-x",zS=sn+"cursor-y",HS=sn+"cursor-pt",US=sn+"legend",jS=sn+"live",VS=sn+"inline",GS=sn+"series",KS=sn+"marker",xf=sn+"label",qS=sn+"value",fs="width",ps="height",cs="top",_f="bottom",co="left",Sc="right",Fu="#000",Sf=Fu+"0",kf="mousemove",Cf="mousedown",kc="mouseup",Af="mouseenter",$f="mouseleave",Tf="dblclick",YS="resize",ZS="scroll",Mf="change",Wa="dppxchange",Pu="--",wo=typeof window<"u",vu=wo?document:null,ho=wo?window:null,QS=wo?navigator:null;let ft,La;function yu(){let c=devicePixelRatio;ft!=c&&(ft=c,La&&wu(Mf,La,yu),La=matchMedia(`(min-resolution: ${ft-.001}dppx) and (max-resolution: ${ft+.001}dppx)`),Nr(Mf,La,yu),ho.dispatchEvent(new CustomEvent(Wa)))}function Bn(c,u){if(u!=null){let t=c.classList;!t.contains(u)&&t.add(u)}}function bu(c,u){let t=c.classList;t.contains(u)&&t.remove(u)}function Lt(c,u,t){c.style[u]=t+"px"}function ai(c,u,t,s){let A=vu.createElement(c);return u!=null&&Bn(A,u),t!=null&&t.insertBefore(A,s),A}function Jn(c,u){return ai("div",c,u)}const Lf=new WeakMap;function Si(c,u,t,s,A){let w="translate("+u+"px,"+t+"px)",y=Lf.get(c);w!=y&&(c.style.transform=w,Lf.set(c,w),u<0||t<0||u>s||t>A?Bn(c,Ir):bu(c,Ir))}const Ef=new WeakMap;function Rf(c,u,t){let s=u+t,A=Ef.get(c);s!=A&&(Ef.set(c,s),c.style.background=u,c.style.borderColor=t)}const If=new WeakMap;function Of(c,u,t,s){let A=u+""+t,w=If.get(c);A!=w&&(If.set(c,A),c.style.height=t+"px",c.style.width=u+"px",c.style.marginLeft=s?-u/2+"px":0,c.style.marginTop=s?-t/2+"px":0)}const Wu={passive:!0},XS={...Wu,capture:!0};function Nr(c,u,t,s){u.addEventListener(c,t,s?XS:Wu)}function wu(c,u,t,s){u.removeEventListener(c,t,Wu)}wo&&yu();function ci(c,u,t,s){let A;t=t||0,s=s||u.length-1;let w=s<=2147483647;for(;s-t>1;)A=w?t+s>>1:Hn((t+s)/2),u[A]<c?t=A:s=A;return c-u[t]<=u[s]-c?t:s}function fo(c,u,t,s){for(let A=s==1?u:t;A>=u&&A<=t;A+=s)if(c[A]!=null)return A;return-1}function JS(c,u,t,s){let A=ut,w=-ut;if(s==1)A=c[u],w=c[t];else if(s==-1)A=c[t],w=c[u];else for(let y=u;y<=t;y++){let S=c[y];S!=null&&(S<A&&(A=S),S>w&&(w=S))}return[A,w]}function ek(c,u,t){let s=ut,A=-ut;for(let w=u;w<=t;w++){let y=c[w];y!=null&&y>0&&(y<s&&(s=y),y>A&&(A=y))}return[s,A]}function Qa(c,u,t,s){let A=Ff(c),w=Ff(u);c==u&&(A==-1?(c*=t,u/=t):(c/=t,u*=t));let y=t==10?zi:kg,S=A==1?Hn:ei,f=w==1?ei:Hn,p=S(y(on(c))),o=f(y(on(u))),a=po(t,p),i=po(t,o);return t==10&&(p<0&&(a=Ct(a,-p)),o<0&&(i=Ct(i,-o))),s||t==2?(c=a*A,u=i*w):(c=$g(c,a),u=Xa(u,i)),[c,u]}function Bu(c,u,t,s){let A=Qa(c,u,t,s);return c==0&&(A[0]=0),u==0&&(A[1]=0),A}const zu=.1,Df={mode:3,pad:zu},ms={pad:0,soft:null,mode:0},tk={min:ms,max:ms};function Ba(c,u,t,s){return Ja(t)?Nf(c,u,t):(ms.pad=t,ms.soft=s?0:null,ms.mode=s?3:0,Nf(c,u,tk))}function dt(c,u){return c??u}function nk(c,u,t){for(u=dt(u,0),t=dt(t,c.length-1);u<=t;){if(c[u]!=null)return!0;u++}return!1}function Nf(c,u,t){let s=t.min,A=t.max,w=dt(s.pad,0),y=dt(A.pad,0),S=dt(s.hard,-ut),f=dt(A.hard,ut),p=dt(s.soft,ut),o=dt(A.soft,-ut),a=dt(s.mode,0),i=dt(A.mode,0),r=u-c,n=zi(r),l=bn(on(c),on(u)),d=zi(l),g=on(d-n);(r<1e-24||g>10)&&(r=0,(c==0||u==0)&&(r=1e-24,a==2&&p!=ut&&(w=0),i==2&&o!=-ut&&(y=0)));let b=r||l||1e3,R=zi(b),$=po(10,Hn(R)),_=b*(r==0?c==0?.1:1:w),v=Ct($g(c-_,$/10),24),T=c>=p&&(a==1||a==3&&v<=p||a==2&&v>=p)?p:ut,E=bn(S,v<T&&c>=T?T:ti(T,v)),I=b*(r==0?u==0?.1:1:y),M=Ct(Xa(u+I,$/10),24),N=u<=o&&(i==1||i==3&&M>=o||i==2&&M<=o)?o:-ut,k=ti(f,M>N&&u<=N?N:bn(N,M));return E==k&&E==0&&(k=100),[E,k]}const ik=new Intl.NumberFormat(wo?QS.language:"en-US"),Hu=c=>ik.format(c),Un=Math,Na=Un.PI,on=Un.abs,Hn=Un.floor,rn=Un.round,ei=Un.ceil,ti=Un.min,bn=Un.max,po=Un.pow,Ff=Un.sign,zi=Un.log10,kg=Un.log2,rk=(c,u=1)=>Un.sinh(c)*u,Cc=(c,u=1)=>Un.asinh(c/u),ut=1/0;function Pf(c){return(zi((c^c>>31)-(c>>31))|0)+1}function xu(c,u,t){return ti(bn(c,u),t)}function ct(c){return typeof c=="function"?c:()=>c}const ok=()=>{},Cg=c=>c,Ag=(c,u)=>u,sk=c=>null,Wf=c=>!0,Bf=(c,u)=>c==u,ak=/\.\d*?(?=9{6,}|0{6,})/gm,Pr=c=>{if(Mg(c)||hr.has(c))return c;const u=`${c}`,t=u.match(ak);if(t==null)return c;let s=t[0].length-1;if(u.indexOf("e-")!=-1){let[A,w]=u.split("e");return+`${Pr(A)}e${w}`}return Ct(c,s)};function Er(c,u){return Pr(Ct(Pr(c/u))*u)}function Xa(c,u){return Pr(ei(Pr(c/u))*u)}function $g(c,u){return Pr(Hn(Pr(c/u))*u)}function Ct(c,u=0){if(Mg(c))return c;let t=10**u,s=c*t*(1+Number.EPSILON);return rn(s)/t}const hr=new Map;function Tg(c){return((""+c).split(".")[1]||"").length}function bs(c,u,t,s){let A=[],w=s.map(Tg);for(let y=u;y<t;y++){let S=on(y),f=Ct(po(c,y),S);for(let p=0;p<s.length;p++){let o=c==10?+`${s[p]}e${y}`:s[p]*f,a=(y>=0?0:S)+(y>=w[p]?0:w[p]),i=c==10?o:Ct(o,a);A.push(i),hr.set(i,a)}}return A}const vs={},Uu=[],go=[null,null],cr=Array.isArray,Mg=Number.isInteger,lk=c=>c===void 0;function zf(c){return typeof c=="string"}function Ja(c){let u=!1;if(c!=null){let t=c.constructor;u=t==null||t==Object}return u}function ck(c){return c!=null&&typeof c=="object"}const uk=Object.getPrototypeOf(Uint8Array),Lg="__proto__";function mo(c,u=Ja){let t;if(cr(c)){let s=c.find(A=>A!=null);if(cr(s)||u(s)){t=Array(c.length);for(let A=0;A<c.length;A++)t[A]=mo(c[A],u)}else t=c.slice()}else if(c instanceof uk)t=c.slice();else if(u(c)){t={};for(let s in c)s!=Lg&&(t[s]=mo(c[s],u))}else t=c;return t}function Yt(c){let u=arguments;for(let t=1;t<u.length;t++){let s=u[t];for(let A in s)A!=Lg&&(Ja(c[A])?Yt(c[A],mo(s[A])):c[A]=mo(s[A]))}return c}const hk=0,dk=1,fk=2;function pk(c,u,t){for(let s=0,A,w=-1;s<u.length;s++){let y=u[s];if(y>w){for(A=y-1;A>=0&&c[A]==null;)c[A--]=null;for(A=y+1;A<t&&c[A]==null;)c[w=A++]=null}}}function gk(c,u){if(yk(c)){let y=c[0].slice();for(let S=1;S<c.length;S++)y.push(...c[S].slice(1));return bk(y[0])||(y=vk(y)),y}let t=new Set;for(let y=0;y<c.length;y++){let f=c[y][0],p=f.length;for(let o=0;o<p;o++)t.add(f[o])}let s=[Array.from(t).sort((y,S)=>y-S)],A=s[0].length,w=new Map;for(let y=0;y<A;y++)w.set(s[0][y],y);for(let y=0;y<c.length;y++){let S=c[y],f=S[0];for(let p=1;p<S.length;p++){let o=S[p],a=Array(A).fill(void 0),i=u?u[y][p]:dk,r=[];for(let n=0;n<o.length;n++){let l=o[n],d=w.get(f[n]);l===null?i!=hk&&(a[d]=l,i==fk&&r.push(d)):a[d]=l}pk(a,r,A),s.push(a)}}return s}const mk=typeof queueMicrotask>"u"?c=>Promise.resolve().then(c):queueMicrotask;function vk(c){let u=c[0],t=u.length,s=Array(t);for(let w=0;w<s.length;w++)s[w]=w;s.sort((w,y)=>u[w]-u[y]);let A=[];for(let w=0;w<c.length;w++){let y=c[w],S=Array(t);for(let f=0;f<t;f++)S[f]=y[s[f]];A.push(S)}return A}function yk(c){let u=c[0][0],t=u.length;for(let s=1;s<c.length;s++){let A=c[s][0];if(A.length!=t)return!1;if(A!=u){for(let w=0;w<t;w++)if(A[w]!=u[w])return!1}}return!0}function bk(c,u=100){const t=c.length;if(t<=1)return!0;let s=0,A=t-1;for(;s<=A&&c[s]==null;)s++;for(;A>=s&&c[A]==null;)A--;if(A<=s)return!0;const w=bn(1,Hn((A-s+1)/u));for(let y=c[s],S=s+w;S<=A;S+=w){const f=c[S];if(f!=null){if(f<=y)return!1;y=f}}return!0}const Eg=["January","February","March","April","May","June","July","August","September","October","November","December"],Rg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Ig(c){return c.slice(0,3)}const wk=Rg.map(Ig),xk=Eg.map(Ig),_k={MMMM:Eg,MMM:xk,WWWW:Rg,WWW:wk};function us(c){return(c<10?"0":"")+c}function Sk(c){return(c<10?"00":c<100?"0":"")+c}const kk={YYYY:c=>c.getFullYear(),YY:c=>(c.getFullYear()+"").slice(2),MMMM:(c,u)=>u.MMMM[c.getMonth()],MMM:(c,u)=>u.MMM[c.getMonth()],MM:c=>us(c.getMonth()+1),M:c=>c.getMonth()+1,DD:c=>us(c.getDate()),D:c=>c.getDate(),WWWW:(c,u)=>u.WWWW[c.getDay()],WWW:(c,u)=>u.WWW[c.getDay()],HH:c=>us(c.getHours()),H:c=>c.getHours(),h:c=>{let u=c.getHours();return u==0?12:u>12?u-12:u},AA:c=>c.getHours()>=12?"PM":"AM",aa:c=>c.getHours()>=12?"pm":"am",a:c=>c.getHours()>=12?"p":"a",mm:c=>us(c.getMinutes()),m:c=>c.getMinutes(),ss:c=>us(c.getSeconds()),s:c=>c.getSeconds(),fff:c=>Sk(c.getMilliseconds())};function ju(c,u){u=u||_k;let t=[],s=/\{([a-z]+)\}|[^{]+/gi,A;for(;A=s.exec(c);)t.push(A[0][0]=="{"?kk[A[1]]:A[0]);return w=>{let y="";for(let S=0;S<t.length;S++)y+=typeof t[S]=="string"?t[S]:t[S](w,u);return y}}const Ck=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Ak(c,u){let t;return u=="UTC"||u=="Etc/UTC"?t=new Date(+c+c.getTimezoneOffset()*6e4):u==Ck?t=c:(t=new Date(c.toLocaleString("en-US",{timeZone:u})),t.setMilliseconds(c.getMilliseconds())),t}const Og=c=>c%1==0,za=[1,2,2.5,5],$k=bs(10,-32,0,za),Dg=bs(10,0,32,za),Tk=Dg.filter(Og),Rr=$k.concat(Dg),Vu=`
|
|
1415
|
+
`,Ng="{YYYY}",Hf=Vu+Ng,Fg="{M}/{D}",gs=Vu+Fg,Ea=gs+"/{YY}",Pg="{aa}",Mk="{h}:{mm}",uo=Mk+Pg,Uf=Vu+uo,jf=":{ss}",vt=null;function Wg(c){let u=c*1e3,t=u*60,s=t*60,A=s*24,w=A*30,y=A*365,f=(c==1?bs(10,0,3,za).filter(Og):bs(10,-3,0,za)).concat([u,u*5,u*10,u*15,u*30,t,t*5,t*10,t*15,t*30,s,s*2,s*3,s*4,s*6,s*8,s*12,A,A*2,A*3,A*4,A*5,A*6,A*7,A*8,A*9,A*10,A*15,w,w*2,w*3,w*4,w*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const p=[[y,Ng,vt,vt,vt,vt,vt,vt,1],[A*28,"{MMM}",Hf,vt,vt,vt,vt,vt,1],[A,Fg,Hf,vt,vt,vt,vt,vt,1],[s,"{h}"+Pg,Ea,vt,gs,vt,vt,vt,1],[t,uo,Ea,vt,gs,vt,vt,vt,1],[u,jf,Ea+" "+uo,vt,gs+" "+uo,vt,Uf,vt,1],[c,jf+".{fff}",Ea+" "+uo,vt,gs+" "+uo,vt,Uf,vt,1]];function o(a){return(i,r,n,l,d,g)=>{let b=[],R=d>=y,$=d>=w&&d<y,_=a(n),v=Ct(_*c,3),T=Ac(_.getFullYear(),R?0:_.getMonth(),$||R?1:_.getDate()),E=Ct(T*c,3);if($||R){let I=$?d/w:0,M=R?d/y:0,N=v==E?v:Ct(Ac(T.getFullYear()+M,T.getMonth()+I,1)*c,3),k=new Date(rn(N/c)),m=k.getFullYear(),x=k.getMonth();for(let L=0;N<=l;L++){let O=Ac(m+M*L,x+I*L,1),F=O-a(Ct(O*c,3));N=Ct((+O+F)*c,3),N<=l&&b.push(N)}}else{let I=d>=A?A:d,M=Hn(n)-Hn(v),N=E+M+Xa(v-E,I);b.push(N);let k=a(N),m=k.getHours()+k.getMinutes()/t+k.getSeconds()/s,x=d/s,L=i.axes[r]._space,O=g/L;for(;N=Ct(N+d,c==1?0:3),!(N>l);)if(x>1){let F=Hn(Ct(m+x,6))%24,V=a(N).getHours()-F;V>1&&(V=-1),N-=V*s,m=(m+x)%24;let G=b[b.length-1];Ct((N-G)/d,3)*O>=.7&&b.push(N)}else b.push(N)}return b}}return[f,p,o]}const[Lk,Ek,Rk]=Wg(1),[Ik,Ok,Dk]=Wg(.001);bs(2,-53,53,[1]);function Vf(c,u){return c.map(t=>t.map((s,A)=>A==0||A==8||s==null?s:u(A==1||t[8]==0?s:t[1]+s)))}function Gf(c,u){return(t,s,A,w,y)=>{let S=u.find(n=>y>=n[0])||u[u.length-1],f,p,o,a,i,r;return s.map(n=>{let l=c(n),d=l.getFullYear(),g=l.getMonth(),b=l.getDate(),R=l.getHours(),$=l.getMinutes(),_=l.getSeconds(),v=d!=f&&S[2]||g!=p&&S[3]||b!=o&&S[4]||R!=a&&S[5]||$!=i&&S[6]||_!=r&&S[7]||S[1];return f=d,p=g,o=b,a=R,i=$,r=_,v(l)})}}function Nk(c,u){let t=ju(u);return(s,A,w,y,S)=>A.map(f=>t(c(f)))}function Ac(c,u,t){return new Date(c,u,t)}function Kf(c,u){return u(c)}const Fk="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function qf(c,u){return(t,s,A,w)=>w==null?Pu:u(c(s))}function Pk(c,u){let t=c.series[u];return t.width?t.stroke(c,u):t.points.width?t.points.stroke(c,u):null}function Wk(c,u){return c.series[u].fill(c,u)}const Bk={show:!0,live:!0,isolate:!1,mount:ok,markers:{show:!0,width:2,stroke:Pk,fill:Wk,dash:"solid"},idx:null,idxs:null,values:[]};function zk(c,u){let t=c.cursor.points,s=Jn(),A=t.size(c,u);Lt(s,fs,A),Lt(s,ps,A);let w=A/-2;Lt(s,"marginLeft",w),Lt(s,"marginTop",w);let y=t.width(c,u,A);return y&&Lt(s,"borderWidth",y),s}function Hk(c,u){let t=c.series[u].points;return t._fill||t._stroke}function Uk(c,u){let t=c.series[u].points;return t._stroke||t._fill}function jk(c,u){return c.series[u].points.size}const $c=[0,0];function Vk(c,u,t){return $c[0]=u,$c[1]=t,$c}function Ra(c,u,t,s=!0){return A=>{A.button==0&&(!s||A.target==u)&&t(A)}}function Tc(c,u,t,s=!0){return A=>{(!s||A.target==u)&&t(A)}}const Gk={show:!0,x:!0,y:!0,lock:!1,move:Vk,points:{one:!1,show:zk,size:jk,width:0,stroke:Uk,fill:Hk},bind:{mousedown:Ra,mouseup:Ra,click:Ra,dblclick:Ra,mousemove:Tc,mouseleave:Tc,mouseenter:Tc},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(c,u)=>{u.stopPropagation(),u.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(c,u,t,s,A)=>s-A,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Bg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Gu=Yt({},Bg,{filter:Ag}),zg=Yt({},Gu,{size:10}),Hg=Yt({},Bg,{show:!1}),Ku='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"',Ug="bold "+Ku,jg=1.5,Yf={show:!0,scale:"x",stroke:Fu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ug,side:2,grid:Gu,ticks:zg,border:Hg,font:Ku,lineGap:jg,rotate:0},Kk="Value",qk="Time",Zf={show:!0,scale:"x",auto:!1,sorted:1,min:ut,max:-ut,idxs:[]};function Yk(c,u,t,s,A){return u.map(w=>w==null?"":Hu(w))}function Zk(c,u,t,s,A,w,y){let S=[],f=hr.get(A)||0;t=y?t:Ct(Xa(t,A),f);for(let p=t;p<=s;p=Ct(p+A,f))S.push(Object.is(p,-0)?0:p);return S}function _u(c,u,t,s,A,w,y){const S=[],f=c.scales[c.axes[u].scale].log,p=f==10?zi:kg,o=Hn(p(t));A=po(f,o),f==10&&(A=Rr[ci(A,Rr)]);let a=t,i=A*f;f==10&&(i=Rr[ci(i,Rr)]);do S.push(a),a=a+A,f==10&&!hr.has(a)&&(a=Ct(a,hr.get(A))),a>=i&&(A=a,i=A*f,f==10&&(i=Rr[ci(i,Rr)]));while(a<=s);return S}function Qk(c,u,t,s,A,w,y){let f=c.scales[c.axes[u].scale].asinh,p=s>f?_u(c,u,bn(f,t),s,A):[f],o=s>=0&&t<=0?[0]:[];return(t<-f?_u(c,u,bn(f,-s),-t,A):[f]).reverse().map(i=>-i).concat(o,p)}const Vg=/./,Xk=/[12357]/,Jk=/[125]/,Qf=/1/,Su=(c,u,t,s)=>c.map((A,w)=>u==4&&A==0||w%s==0&&t.test(A.toExponential()[A<0?1:0])?A:null);function eC(c,u,t,s,A){let w=c.axes[t],y=w.scale,S=c.scales[y],f=c.valToPos,p=w._space,o=f(10,y),a=f(9,y)-o>=p?Vg:f(7,y)-o>=p?Xk:f(5,y)-o>=p?Jk:Qf;if(a==Qf){let i=on(f(1,y)-o);if(i<p)return Su(u.slice().reverse(),S.distr,a,ei(p/i)).reverse()}return Su(u,S.distr,a,1)}function tC(c,u,t,s,A){let w=c.axes[t],y=w.scale,S=w._space,f=c.valToPos,p=on(f(1,y)-f(2,y));return p<S?Su(u.slice().reverse(),3,Vg,ei(S/p)).reverse():u}function nC(c,u,t,s){return s==null?Pu:u==null?"":Hu(u)}const Xf={show:!0,scale:"y",stroke:Fu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ug,side:3,grid:Gu,ticks:zg,border:Hg,font:Ku,lineGap:jg,rotate:0};function iC(c,u){let t=3+(c||1)*2;return Ct(t*u,3)}function rC(c,u){let{scale:t,idxs:s}=c.series[0],A=c._data[0],w=c.valToPos(A[s[0]],t,!0),y=c.valToPos(A[s[1]],t,!0),S=on(y-w),f=c.series[u],p=S/(f.points.space*ft);return s[1]-s[0]<=p}const Jf={scale:null,auto:!0,sorted:0,min:ut,max:-ut},Gg=(c,u,t,s,A)=>A,ep={show:!0,auto:!0,sorted:0,gaps:Gg,alpha:1,facets:[Yt({},Jf,{scale:"x"}),Yt({},Jf,{scale:"y"})]},tp={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Gg,alpha:1,points:{show:rC,filter:null},values:null,min:ut,max:-ut,idxs:[],path:null,clip:null};function oC(c,u,t,s,A){return t/10}const Kg={time:LS,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},sC=Yt({},Kg,{time:!1,ori:1}),np={};function qg(c,u){let t=np[c];return t||(t={key:c,plots:[],sub(s){t.plots.push(s)},unsub(s){t.plots=t.plots.filter(A=>A!=s)},pub(s,A,w,y,S,f,p){for(let o=0;o<t.plots.length;o++)t.plots[o]!=A&&t.plots[o].pub(s,A,w,y,S,f,p)}},c!=null&&(np[c]=t)),t}const vo=1,ku=2;function Wr(c,u,t){const s=c.mode,A=c.series[u],w=s==2?c._data[u]:c._data,y=c.scales,S=c.bbox;let f=w[0],p=s==2?w[1]:w[u],o=s==2?y[A.facets[0].scale]:y[c.series[0].scale],a=s==2?y[A.facets[1].scale]:y[A.scale],i=S.left,r=S.top,n=S.width,l=S.height,d=c.valToPosH,g=c.valToPosV;return o.ori==0?t(A,f,p,o,a,d,g,i,r,n,l,tl,xo,il,Zg,Xg):t(A,f,p,o,a,g,d,r,i,l,n,nl,_o,Zu,Qg,Jg)}function qu(c,u){let t=0,s=0,A=dt(c.bands,Uu);for(let w=0;w<A.length;w++){let y=A[w];y.series[0]==u?t=y.dir:y.series[1]==u&&(y.dir==1?s|=1:s|=2)}return[t,s==1?-1:s==2?1:s==3?2:0]}function aC(c,u,t,s,A){let w=c.mode,y=c.series[u],S=w==2?y.facets[1].scale:y.scale,f=c.scales[S];return A==-1?f.min:A==1?f.max:f.distr==3?f.dir==1?f.min:f.max:0}function Hi(c,u,t,s,A,w){return Wr(c,u,(y,S,f,p,o,a,i,r,n,l,d)=>{let g=y.pxRound;const b=p.dir*(p.ori==0?1:-1),R=p.ori==0?xo:_o;let $,_;b==1?($=t,_=s):($=s,_=t);let v=g(a(S[$],p,l,r)),T=g(i(f[$],o,d,n)),E=g(a(S[_],p,l,r)),I=g(i(w==1?o.max:o.min,o,d,n)),M=new Path2D(A);return R(M,E,I),R(M,v,I),R(M,v,T),M})}function el(c,u,t,s,A,w){let y=null;if(c.length>0){y=new Path2D;const S=u==0?il:Zu;let f=t;for(let a=0;a<c.length;a++){let i=c[a];if(i[1]>i[0]){let r=i[0]-f;r>0&&S(y,f,s,r,s+w),f=i[1]}}let p=t+A-f,o=10;p>0&&S(y,f,s-o/2,p,s+w+o)}return y}function lC(c,u,t){let s=c[c.length-1];s&&s[0]==u?s[1]=t:c.push([u,t])}function Yu(c,u,t,s,A,w,y){let S=[],f=c.length;for(let p=A==1?t:s;p>=t&&p<=s;p+=A)if(u[p]===null){let a=p,i=p;if(A==1)for(;++p<=s&&u[p]===null;)i=p;else for(;--p>=t&&u[p]===null;)i=p;let r=w(c[a]),n=i==a?r:w(c[i]),l=a-A;r=y<=0&&l>=0&&l<f?w(c[l]):r;let g=i+A;n=y>=0&&g>=0&&g<f?w(c[g]):n,n>=r&&S.push([r,n])}return S}function ip(c){return c==0?Cg:c==1?rn:u=>Er(u,c)}function Yg(c){let u=c==0?tl:nl,t=c==0?(A,w,y,S,f,p)=>{A.arcTo(w,y,S,f,p)}:(A,w,y,S,f,p)=>{A.arcTo(y,w,f,S,p)},s=c==0?(A,w,y,S,f)=>{A.rect(w,y,S,f)}:(A,w,y,S,f)=>{A.rect(y,w,f,S)};return(A,w,y,S,f,p=0,o=0)=>{p==0&&o==0?s(A,w,y,S,f):(p=ti(p,S/2,f/2),o=ti(o,S/2,f/2),u(A,w+p,y),t(A,w+S,y,w+S,y+f,p),t(A,w+S,y+f,w,y+f,o),t(A,w,y+f,w,y,o),t(A,w,y,w+S,y,p),A.closePath())}}const tl=(c,u,t)=>{c.moveTo(u,t)},nl=(c,u,t)=>{c.moveTo(t,u)},xo=(c,u,t)=>{c.lineTo(u,t)},_o=(c,u,t)=>{c.lineTo(t,u)},il=Yg(0),Zu=Yg(1),Zg=(c,u,t,s,A,w)=>{c.arc(u,t,s,A,w)},Qg=(c,u,t,s,A,w)=>{c.arc(t,u,s,A,w)},Xg=(c,u,t,s,A,w,y)=>{c.bezierCurveTo(u,t,s,A,w,y)},Jg=(c,u,t,s,A,w,y)=>{c.bezierCurveTo(t,u,A,s,y,w)};function em(c){return(u,t,s,A,w)=>Wr(u,t,(y,S,f,p,o,a,i,r,n,l,d)=>{let{pxRound:g,points:b}=y,R,$;p.ori==0?(R=tl,$=Zg):(R=nl,$=Qg);const _=Ct(b.width*ft,3);let v=(b.size-b.width)/2*ft,T=Ct(v*2,3),E=new Path2D,I=new Path2D,{left:M,top:N,width:k,height:m}=u.bbox;il(I,M-T,N-T,k+T*2,m+T*2);const x=L=>{if(f[L]!=null){let O=g(a(S[L],p,l,r)),F=g(i(f[L],o,d,n));R(E,O+v,F),$(E,O,F,v,0,Na*2)}};if(w)w.forEach(x);else for(let L=s;L<=A;L++)x(L);return{stroke:_>0?E:null,fill:E,clip:I,flags:vo|ku}})}function tm(c){return(u,t,s,A,w,y)=>{s!=A&&(w!=s&&y!=s&&c(u,t,s),w!=A&&y!=A&&c(u,t,A),c(u,t,y))}}const cC=tm(xo),uC=tm(_o);function nm(c){const u=dt(c==null?void 0:c.alignGaps,0);return(t,s,A,w)=>Wr(t,s,(y,S,f,p,o,a,i,r,n,l,d)=>{let g=y.pxRound,b=J=>g(a(J,p,l,r)),R=J=>g(i(J,o,d,n)),$,_;p.ori==0?($=xo,_=cC):($=_o,_=uC);const v=p.dir*(p.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},E=T.stroke;let I=ut,M=-ut,N,k,m,x=b(S[v==1?A:w]),L=fo(f,A,w,1*v),O=fo(f,A,w,-1*v),F=b(S[L]),W=b(S[O]),U=!1;for(let J=v==1?A:w;J>=A&&J<=w;J+=v){let K=b(S[J]),Q=f[J];K==x?Q!=null?(k=R(Q),I==ut&&($(E,K,k),N=k),I=ti(k,I),M=bn(k,M)):Q===null&&(U=!0):(I!=ut&&(_(E,x,I,M,N,k),m=x),Q!=null?(k=R(Q),$(E,K,k),I=M=N=k):(I=ut,M=-ut,Q===null&&(U=!0)),x=K)}I!=ut&&I!=M&&m!=x&&_(E,x,I,M,N,k);let[V,G]=qu(t,s);if(y.fill!=null||V!=0){let J=T.fill=new Path2D(E),K=y.fillTo(t,s,y.min,y.max,V),Q=R(K);$(J,W,Q),$(J,F,Q)}if(!y.spanGaps){let J=[];U&&J.push(...Yu(S,f,A,w,v,b,u)),T.gaps=J=y.gaps(t,s,A,w,J),T.clip=el(J,p.ori,r,n,l,d)}return G!=0&&(T.band=G==2?[Hi(t,s,A,w,E,-1),Hi(t,s,A,w,E,1)]:Hi(t,s,A,w,E,G)),T})}function hC(c){const u=dt(c.align,1),t=dt(c.ascDesc,!1),s=dt(c.alignGaps,0),A=dt(c.extend,!1);return(w,y,S,f)=>Wr(w,y,(p,o,a,i,r,n,l,d,g,b,R)=>{let $=p.pxRound,{left:_,width:v}=w.bbox,T=V=>$(n(V,i,b,d)),E=V=>$(l(V,r,R,g)),I=i.ori==0?xo:_o;const M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},N=M.stroke,k=i.dir*(i.ori==0?1:-1);S=fo(a,S,f,1),f=fo(a,S,f,-1);let m=E(a[k==1?S:f]),x=T(o[k==1?S:f]),L=x,O=x;A&&u==-1&&(O=_,I(N,O,m)),I(N,x,m);for(let V=k==1?S:f;V>=S&&V<=f;V+=k){let G=a[V];if(G==null)continue;let J=T(o[V]),K=E(G);u==1?I(N,J,m):I(N,L,K),I(N,J,K),m=K,L=J}let F=L;A&&u==1&&(F=_+v,I(N,F,m));let[W,U]=qu(w,y);if(p.fill!=null||W!=0){let V=M.fill=new Path2D(N),G=p.fillTo(w,y,p.min,p.max,W),J=E(G);I(V,F,J),I(V,O,J)}if(!p.spanGaps){let V=[];V.push(...Yu(o,a,S,f,k,T,s));let G=p.width*ft/2,J=t||u==1?G:-G,K=t||u==-1?-G:G;V.forEach(Q=>{Q[0]+=J,Q[1]+=K}),M.gaps=V=p.gaps(w,y,S,f,V),M.clip=el(V,i.ori,d,g,b,R)}return U!=0&&(M.band=U==2?[Hi(w,y,S,f,N,-1),Hi(w,y,S,f,N,1)]:Hi(w,y,S,f,N,U)),M})}function rp(c,u,t,s,A,w,y=ut){if(c.length>1){let S=null;for(let f=0,p=1/0;f<c.length;f++)if(u[f]!==void 0){if(S!=null){let o=on(c[f]-c[S]);o<p&&(p=o,y=on(t(c[f],s,A,w)-t(c[S],s,A,w)))}S=f}}return y}function dC(c){c=c||vs;const u=dt(c.size,[.6,ut,1]),t=c.align||0,s=c.gap||0;let A=c.radius;A=A==null?[0,0]:typeof A=="number"?[A,0]:A;const w=ct(A),y=1-u[0],S=dt(u[1],ut),f=dt(u[2],1),p=dt(c.disp,vs),o=dt(c.each,r=>{}),{fill:a,stroke:i}=p;return(r,n,l,d)=>Wr(r,n,(g,b,R,$,_,v,T,E,I,M,N)=>{let k=g.pxRound,m=t,x=s*ft,L=S*ft,O=f*ft,F,W;$.ori==0?[F,W]=w(r,n):[W,F]=w(r,n);const U=$.dir*($.ori==0?1:-1);let V=$.ori==0?il:Zu,G=$.ori==0?o:(Ne,ce,Ae,Te,Be,He,rt)=>{o(Ne,ce,Ae,Be,Te,rt,He)},J=dt(r.bands,Uu).find(Ne=>Ne.series[0]==n),K=J!=null?J.dir:0,Q=g.fillTo(r,n,g.min,g.max,K),ie=k(T(Q,_,N,I)),X,ae,ge,me=M,fe=k(g.width*ft),_e=!1,Xe=null,At=null,it=null,st=null;a!=null&&(fe==0||i!=null)&&(_e=!0,Xe=a.values(r,n,l,d),At=new Map,new Set(Xe).forEach(Ne=>{Ne!=null&&At.set(Ne,new Path2D)}),fe>0&&(it=i.values(r,n,l,d),st=new Map,new Set(it).forEach(Ne=>{Ne!=null&&st.set(Ne,new Path2D)})));let{x0:zt,size:xt}=p;if(zt!=null&&xt!=null){m=1,b=zt.values(r,n,l,d),zt.unit==2&&(b=b.map(Ae=>r.posToVal(E+Ae*M,$.key,!0)));let Ne=xt.values(r,n,l,d);xt.unit==2?ae=Ne[0]*M:ae=v(Ne[0],$,M,E)-v(0,$,M,E),me=rp(b,R,v,$,M,E,me),ge=me-ae+x}else me=rp(b,R,v,$,M,E,me),ge=me*y+x,ae=me-ge;ge<1&&(ge=0),fe>=ae/2&&(fe=0),ge<5&&(k=Cg);let It=ge>0,hi=me-ge-(It?fe:0);ae=k(xu(hi,O,L)),X=(m==0?ae/2:m==U?0:ae)-m*U*((m==0?x/2:0)+(It?fe/2:0));const Zt={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ft=_e?null:new Path2D;let Re=null;if(J!=null)Re=r.data[J.series[1]];else{let{y0:Ne,y1:ce}=p;Ne!=null&&ce!=null&&(R=ce.values(r,n,l,d),Re=Ne.values(r,n,l,d))}let De=F*ae,Pt=W*ae;for(let Ne=U==1?l:d;Ne>=l&&Ne<=d;Ne+=U){let ce=R[Ne];if(ce==null)continue;if(Re!=null){let tt=Re[Ne]??0;if(ce-tt==0)continue;ie=T(tt,_,N,I)}let Ae=$.distr!=2||p!=null?b[Ne]:Ne,Te=v(Ae,$,M,E),Be=T(dt(ce,Q),_,N,I),He=k(Te-X),rt=k(bn(Be,ie)),ot=k(ti(Be,ie)),et=rt-ot;if(ce!=null){let tt=ce<0?Pt:De,qe=ce<0?De:Pt;_e?(fe>0&&it[Ne]!=null&&V(st.get(it[Ne]),He,ot+Hn(fe/2),ae,bn(0,et-fe),tt,qe),Xe[Ne]!=null&&V(At.get(Xe[Ne]),He,ot+Hn(fe/2),ae,bn(0,et-fe),tt,qe)):V(Ft,He,ot+Hn(fe/2),ae,bn(0,et-fe),tt,qe),G(r,n,Ne,He-fe/2,ot,ae+fe,et)}}return fe>0?Zt.stroke=_e?st:Ft:_e||(Zt._fill=g.width==0?g._fill:g._stroke??g._fill,Zt.width=0),Zt.fill=_e?At:Ft,Zt})}function fC(c,u){const t=dt(u==null?void 0:u.alignGaps,0);return(s,A,w,y)=>Wr(s,A,(S,f,p,o,a,i,r,n,l,d,g)=>{let b=S.pxRound,R=F=>b(i(F,o,d,n)),$=F=>b(r(F,a,g,l)),_,v,T;o.ori==0?(_=tl,T=xo,v=Xg):(_=nl,T=_o,v=Jg);const E=o.dir*(o.ori==0?1:-1);w=fo(p,w,y,1),y=fo(p,w,y,-1);let I=R(f[E==1?w:y]),M=I,N=[],k=[];for(let F=E==1?w:y;F>=w&&F<=y;F+=E)if(p[F]!=null){let U=f[F],V=R(U);N.push(M=V),k.push($(p[F]))}const m={stroke:c(N,k,_,T,v,b),fill:null,clip:null,band:null,gaps:null,flags:vo},x=m.stroke;let[L,O]=qu(s,A);if(S.fill!=null||L!=0){let F=m.fill=new Path2D(x),W=S.fillTo(s,A,S.min,S.max,L),U=$(W);T(F,M,U),T(F,I,U)}if(!S.spanGaps){let F=[];F.push(...Yu(f,p,w,y,E,R,t)),m.gaps=F=S.gaps(s,A,w,y,F),m.clip=el(F,o.ori,n,l,d,g)}return O!=0&&(m.band=O==2?[Hi(s,A,w,y,x,-1),Hi(s,A,w,y,x,1)]:Hi(s,A,w,y,x,O)),m})}function pC(c){return fC(gC,c)}function gC(c,u,t,s,A,w){const y=c.length;if(y<2)return null;const S=new Path2D;if(t(S,c[0],u[0]),y==2)s(S,c[1],u[1]);else{let f=Array(y),p=Array(y-1),o=Array(y-1),a=Array(y-1);for(let i=0;i<y-1;i++)o[i]=u[i+1]-u[i],a[i]=c[i+1]-c[i],p[i]=o[i]/a[i];f[0]=p[0];for(let i=1;i<y-1;i++)p[i]===0||p[i-1]===0||p[i-1]>0!=p[i]>0?f[i]=0:(f[i]=3*(a[i-1]+a[i])/((2*a[i]+a[i-1])/p[i-1]+(a[i]+2*a[i-1])/p[i]),isFinite(f[i])||(f[i]=0));f[y-1]=p[y-2];for(let i=0;i<y-1;i++)A(S,c[i]+a[i]/3,u[i]+f[i]*a[i]/3,c[i+1]-a[i]/3,u[i+1]-f[i+1]*a[i]/3,c[i+1],u[i+1])}return S}const Cu=new Set;function op(){for(let c of Cu)c.syncRect(!0)}wo&&(Nr(YS,ho,op),Nr(ZS,ho,op,!0),Nr(Wa,ho,()=>{wn.pxRatio=ft}));const mC=nm(),vC=em();function sp(c,u,t,s){return(s?[c[0],c[1]].concat(c.slice(2)):[c[0]].concat(c.slice(1))).map((w,y)=>Au(w,y,u,t))}function yC(c,u){return c.map((t,s)=>s==0?{}:Yt({},u,t))}function Au(c,u,t,s){return Yt({},u==0?t:s,c)}function im(c,u,t){return u==null?go:[u,t]}const bC=im;function wC(c,u,t){return u==null?go:Ba(u,t,zu,!0)}function rm(c,u,t,s){return u==null?go:Qa(u,t,c.scales[s].log,!1)}const xC=rm;function om(c,u,t,s){return u==null?go:Bu(u,t,c.scales[s].log,!1)}const _C=om;function SC(c,u,t,s,A){let w=bn(Pf(c),Pf(u)),y=u-c,S=ci(A/s*y,t);do{let f=t[S],p=s*f/y;if(p>=A&&w+(f<5?hr.get(f):0)<=17)return[f,p]}while(++S<t.length);return[0,0]}function ap(c){let u,t;return c=c.replace(/(\d+)px/,(s,A)=>(u=rn((t=+A)*ft))+"px"),[c,u,t]}function kC(c){c.show&&[c.font,c.labelFont].forEach(u=>{let t=Ct(u[2]*ft,1);u[0]=u[0].replace(/[0-9.]+px/,t+"px"),u[1]=t})}function wn(c,u,t){const s={mode:dt(c.mode,1)},A=s.mode;function w(P,z){return((z.distr==3?zi(P>0?P:z.clamp(s,P,z.min,z.max,z.key)):z.distr==4?Cc(P,z.asinh):z.distr==100?z.fwd(P):P)-z._min)/(z._max-z._min)}function y(P,z,q,Y){let te=w(P,z);return Y+q*(z.dir==-1?1-te:te)}function S(P,z,q,Y){let te=w(P,z);return Y+q*(z.dir==-1?te:1-te)}function f(P,z,q,Y){return z.ori==0?y(P,z,q,Y):S(P,z,q,Y)}s.valToPosH=y,s.valToPosV=S;let p=!1;s.status=0;const o=s.root=Jn(ES);if(c.id!=null&&(o.id=c.id),Bn(o,c.class),c.title){let P=Jn(OS,o);P.textContent=c.title}const a=ai("canvas"),i=s.ctx=a.getContext("2d"),r=Jn(DS,o);Nr("click",r,P=>{P.target===l&&(Oe!=Xi||$t!=Ji)&&Xt.click(s,P)},!0);const n=s.under=Jn(NS,r);r.appendChild(a);const l=s.over=Jn(FS,r);c=mo(c);const d=+dt(c.pxAlign,1),g=ip(d);(c.plugins||[]).forEach(P=>{P.opts&&(c=P.opts(s,c)||c)});const b=c.ms||.001,R=s.series=A==1?sp(c.series||[],Zf,tp,!1):yC(c.series||[null],ep),$=s.axes=sp(c.axes||[],Yf,Xf,!0),_=s.scales={},v=s.bands=c.bands||[];v.forEach(P=>{P.fill=ct(P.fill||null),P.dir=dt(P.dir,-1)});const T=A==2?R[1].facets[0].scale:R[0].scale,E={axes:dl,series:Ls},I=(c.drawOrder||["axes","series"]).map(P=>E[P]);function M(P){let z=_[P];if(z==null){let q=(c.scales||vs)[P]||vs;if(q.from!=null)M(q.from),_[P]=Yt({},_[q.from],q,{key:P});else{z=_[P]=Yt({},P==T?Kg:sC,q),z.key=P;let Y=z.time,te=z.range,oe=cr(te);if((P!=T||A==2&&!Y)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Df:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Df:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Ja(te))){let he=te;te=(ye,be,xe)=>be==null?go:Ba(be,xe,he)}z.range=ct(te||(Y?bC:P==T?z.distr==3?xC:z.distr==4?_C:im:z.distr==3?rm:z.distr==4?om:wC)),z.auto=ct(oe?!1:z.auto),z.clamp=ct(z.clamp||oC),z._min=z._max=null}}}M("x"),M("y"),A==1&&R.forEach(P=>{M(P.scale)}),$.forEach(P=>{M(P.scale)});for(let P in c.scales)M(P);const N=_[T],k=N.distr;let m,x;N.ori==0?(Bn(o,RS),m=y,x=S):(Bn(o,IS),m=S,x=y);const L={};for(let P in _){let z=_[P];(z.min!=null||z.max!=null)&&(L[P]={min:z.min,max:z.max},z.min=z.max=null)}const O=c.tzDate||(P=>new Date(rn(P/b))),F=c.fmtDate||ju,W=b==1?Rk(O):Dk(O),U=Gf(O,Vf(b==1?Ek:Ok,F)),V=qf(O,Kf(Fk,F)),G=[],J=s.legend=Yt({},Bk,c.legend),K=J.show,Q=J.markers;J.idxs=G,Q.width=ct(Q.width),Q.dash=ct(Q.dash),Q.stroke=ct(Q.stroke),Q.fill=ct(Q.fill);let ie,X,ae,ge=[],me=[],fe,_e=!1,Xe={};if(J.live){const P=R[1]?R[1].values:null;_e=P!=null,fe=_e?P(s,1,0):{_:0};for(let z in fe)Xe[z]=Pu}if(K)if(ie=ai("table",US,o),ae=ai("tbody",null,ie),J.mount(s,ie),_e){X=ai("thead",null,ie,ae);let P=ai("tr",null,X);ai("th",null,P);for(var At in fe)ai("th",xf,P).textContent=At}else Bn(ie,VS),J.live&&Bn(ie,jS);const it={show:!0},st={show:!1};function zt(P,z){if(z==0&&(_e||!J.live||A==2))return go;let q=[],Y=ai("tr",GS,ae,ae.childNodes[z]);Bn(Y,P.class),P.show||Bn(Y,Ir);let te=ai("th",null,Y);if(Q.show){let ye=Jn(KS,te);if(z>0){let be=Q.width(s,z);be&&(ye.style.border=be+"px "+Q.dash(s,z)+" "+Q.stroke(s,z)),ye.style.background=Q.fill(s,z)}}let oe=Jn(xf,te);oe.textContent=P.label,z>0&&(Q.show||(oe.style.color=P.width>0?Q.stroke(s,z):Q.fill(s,z)),It("click",te,ye=>{if(Ie._lock)return;Ai(ye);let be=R.indexOf(P);if((ye.ctrlKey||ye.metaKey)!=J.isolate){let xe=R.some((ke,$e)=>$e>0&&$e!=be&&ke.show);R.forEach((ke,$e)=>{$e>0&&ln($e,xe?$e==be?it:st:it,!0,Ot.setSeries)})}else ln(be,{show:!P.show},!0,Ot.setSeries)},!1),fi&&It(Af,te,ye=>{Ie._lock||(Ai(ye),ln(R.indexOf(P),Li,!0,Ot.setSeries))},!1));for(var he in fe){let ye=ai("td",qS,Y);ye.textContent="--",q.push(ye)}return[Y,q]}const xt=new Map;function It(P,z,q,Y=!0){const te=xt.get(z)||{},oe=Ie.bind[P](s,z,q,Y);oe&&(Nr(P,z,te[P]=oe),xt.set(z,te))}function hi(P,z,q){const Y=xt.get(z)||{};for(let te in Y)(P==null||te==P)&&(wu(te,z,Y[te]),delete Y[te]);P==null&&xt.delete(z)}let Zt=0,Ft=0,Re=0,De=0,Pt=0,Ne=0,ce=Pt,Ae=Ne,Te=Re,Be=De,He=0,rt=0,ot=0,et=0;s.bbox={};let tt=!1,qe=!1,Mt=!1,un=!1,Ci=!1,An=!1;function So(P,z,q){(q||P!=s.width||z!=s.height)&&ko(P,z),Ti(!1),Mt=!0,qe=!0,Zi()}function ko(P,z){s.width=Zt=Re=P,s.height=Ft=De=z,Pt=Ne=0,al(),ll();let q=s.bbox;He=q.left=Er(Pt*ft,.5),rt=q.top=Er(Ne*ft,.5),ot=q.width=Er(Re*ft,.5),et=q.height=Er(De*ft,.5)}const ks=3;function ol(){let P=!1,z=0;for(;!P;){z++;let q=Is(z),Y=Os(z);P=z==ks||q&&Y,P||(ko(s.width,s.height),qe=!0)}}function sl({width:P,height:z}){So(P,z)}s.setSize=sl;function al(){let P=!1,z=!1,q=!1,Y=!1;$.forEach((te,oe)=>{if(te.show&&te._show){let{side:he,_size:ye}=te,be=he%2,xe=te.label!=null?te.labelSize:0,ke=ye+xe;ke>0&&(be?(Re-=ke,he==3?(Pt+=ke,Y=!0):q=!0):(De-=ke,he==0?(Ne+=ke,P=!0):z=!0))}}),$i[0]=P,$i[1]=q,$i[2]=z,$i[3]=Y,Re-=pi[1]+pi[3],Pt+=pi[3],De-=pi[2]+pi[0],Ne+=pi[0]}function ll(){let P=Pt+Re,z=Ne+De,q=Pt,Y=Ne;function te(oe,he){switch(oe){case 1:return P+=he,P-he;case 2:return z+=he,z-he;case 3:return q-=he,q+he;case 0:return Y-=he,Y+he}}$.forEach((oe,he)=>{if(oe.show&&oe._show){let ye=oe.side;oe._pos=te(ye,oe._size),oe.label!=null&&(oe._lpos=te(ye,oe.labelSize))}})}const Ie=s.cursor=Yt({},Gk,{drag:{y:A==2}},c.cursor);if(Ie.dataIdx==null){let P=Ie.hover,z=P.skip=new Set(P.skip??[]);z.add(void 0);let q=P.prox=ct(P.prox),Y=P.bias??(P.bias=0);Ie.dataIdx=(te,oe,he,ye)=>{if(oe==0)return he;let be=he,xe=q(te,oe,he,ye)??ut,ke=xe>=0&&xe<ut,$e=N.ori==0?Re:De,Ue=Ie.left,yt=u[0],Ye=u[oe];if(z.has(Ye[he])){be=null;let ze=null,Ve=null,Me;if(Y==0||Y==-1)for(Me=he;ze==null&&Me-- >0;)z.has(Ye[Me])||(ze=Me);if(Y==0||Y==1)for(Me=he;Ve==null&&Me++<Ye.length;)z.has(Ye[Me])||(Ve=Me);if(ze!=null||Ve!=null)if(ke){let pt=ze==null?-1/0:m(yt[ze],N,$e,0),Dt=Ve==null?1/0:m(yt[Ve],N,$e,0),Rt=Ue-pt,St=Dt-Ue;Rt<=St?Rt<=xe&&(be=ze):St<=xe&&(be=Ve)}else be=Ve==null?ze:ze==null?Ve:he-ze<=Ve-he?ze:Ve}else ke&&on(Ue-m(yt[he],N,$e,0))>xe&&(be=null);return be}}const Ai=P=>{Ie.event=P};Ie.idxs=G,Ie._lock=!1;let an=Ie.points;an.show=ct(an.show),an.size=ct(an.size),an.stroke=ct(an.stroke),an.width=ct(an.width),an.fill=ct(an.fill);const di=s.focus=Yt({},c.focus||{alpha:.3},Ie.focus),fi=di.prox>=0,Ui=fi&&an.one;let dn=[],ji=[],Vi=[];function Cs(P,z){let q=an.show(s,z);if(q)return Bn(q,HS),Bn(q,P.class),Si(q,-10,-10,Re,De),l.insertBefore(q,dn[z]),q}function As(P,z){if(A==1||z>0){let q=A==1&&_[P.scale].time,Y=P.value;P.value=q?zf(Y)?qf(O,Kf(Y,F)):Y||V:Y||nC,P.label=P.label||(q?qk:Kk)}if(Ui||z>0){P.width=P.width==null?1:P.width,P.paths=P.paths||mC||sk,P.fillTo=ct(P.fillTo||aC),P.pxAlign=+dt(P.pxAlign,d),P.pxRound=ip(P.pxAlign),P.stroke=ct(P.stroke||null),P.fill=ct(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let q=iC(bn(1,P.width),1),Y=P.points=Yt({},{size:q,width:bn(1,q*.2),stroke:P.stroke,space:q*2,paths:vC,_stroke:null,_fill:null},P.points);Y.show=ct(Y.show),Y.filter=ct(Y.filter),Y.fill=ct(Y.fill),Y.stroke=ct(Y.stroke),Y.paths=ct(Y.paths),Y.pxAlign=P.pxAlign}if(K){let q=zt(P,z);ge.splice(z,0,q[0]),me.splice(z,0,q[1]),J.values.push(null)}if(Ie.show){G.splice(z,0,null);let q=null;Ui?z==0&&(q=Cs(P,z)):z>0&&(q=Cs(P,z)),dn.splice(z,0,q),ji.splice(z,0,0),Vi.splice(z,0,0)}Wt("addSeries",z)}function cl(P,z){z=z??R.length,P=A==1?Au(P,z,Zf,tp):Au(P,z,{},ep),R.splice(z,0,P),As(R[z],z)}s.addSeries=cl;function ul(P){if(R.splice(P,1),K){J.values.splice(P,1),me.splice(P,1);let z=ge.splice(P,1)[0];hi(null,z.firstChild),z.remove()}Ie.show&&(G.splice(P,1),dn.splice(P,1)[0].remove(),ji.splice(P,1),Vi.splice(P,1)),Wt("delSeries",P)}s.delSeries=ul;const $i=[!1,!1,!1,!1];function hl(P,z){if(P._show=P.show,P.show){let q=P.side%2,Y=_[P.scale];Y==null&&(P.scale=q?R[1].scale:T,Y=_[P.scale]);let te=Y.time;P.size=ct(P.size),P.space=ct(P.space),P.rotate=ct(P.rotate),cr(P.incrs)&&P.incrs.forEach(he=>{!hr.has(he)&&hr.set(he,Tg(he))}),P.incrs=ct(P.incrs||(Y.distr==2?Tk:te?b==1?Lk:Ik:Rr)),P.splits=ct(P.splits||(te&&Y.distr==1?W:Y.distr==3?_u:Y.distr==4?Qk:Zk)),P.stroke=ct(P.stroke),P.grid.stroke=ct(P.grid.stroke),P.ticks.stroke=ct(P.ticks.stroke),P.border.stroke=ct(P.border.stroke);let oe=P.values;P.values=cr(oe)&&!cr(oe[0])?ct(oe):te?cr(oe)?Gf(O,Vf(oe,F)):zf(oe)?Nk(O,oe):oe||U:oe||Yk,P.filter=ct(P.filter||(Y.distr>=3&&Y.log==10?eC:Y.distr==3&&Y.log==2?tC:Ag)),P.font=ap(P.font),P.labelFont=ap(P.labelFont),P._size=P.size(s,null,z,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&($i[z]=!0,P._el=Jn(PS,r))}}function Gi(P,z,q,Y){let[te,oe,he,ye]=q,be=z%2,xe=0;return be==0&&(ye||oe)&&(xe=z==0&&!te||z==2&&!he?rn(Yf.size/3):0),be==1&&(te||he)&&(xe=z==1&&!oe||z==3&&!ye?rn(Xf.size/2):0),xe}const $s=s.padding=(c.padding||[Gi,Gi,Gi,Gi]).map(P=>ct(dt(P,Gi))),pi=s._padding=$s.map((P,z)=>P(s,z,$i,0));let Qt,Vt=null,Gt=null;const Br=A==1?R[0].idxs:null;let fn=null,dr=!1;function fr(P,z){if(u=P??[],s.data=s._data=u,A==2){Qt=0;for(let q=1;q<R.length;q++)Qt+=u[q][0].length}else{u.length==0&&(s.data=s._data=u=[[]]),fn=u[0],Qt=fn.length;let q=u;if(k==2){q=u.slice();let Y=q[0]=Array(Qt);for(let te=0;te<Qt;te++)Y[te]=te}s._data=u=q}if(Ti(!0),Wt("setData"),k==2&&(Mt=!0),z!==!1){let q=N;q.auto(s,dr)?Co():Vn(T,q.min,q.max),un=un||Ie.left>=0,An=!0,Zi()}}s.setData=fr;function Co(){dr=!0;let P,z;A==1&&(Qt>0?(Vt=Br[0]=0,Gt=Br[1]=Qt-1,P=u[0][Vt],z=u[0][Gt],k==2?(P=Vt,z=Gt):P==z&&(k==3?[P,z]=Qa(P,P,N.log,!1):k==4?[P,z]=Bu(P,P,N.log,!1):N.time?z=P+rn(86400/b):[P,z]=Ba(P,z,zu,!0))):(Vt=Br[0]=P=null,Gt=Br[1]=z=null)),Vn(T,P,z)}let zr,Ki,Hr,Ur,jr,Ao,$o,To,Mo,jn;function Lo(P,z,q,Y,te,oe){P??(P=Sf),q??(q=Uu),Y??(Y="butt"),te??(te=Sf),oe??(oe="round"),P!=zr&&(i.strokeStyle=zr=P),te!=Ki&&(i.fillStyle=Ki=te),z!=Hr&&(i.lineWidth=Hr=z),oe!=jr&&(i.lineJoin=jr=oe),Y!=Ao&&(i.lineCap=Ao=Y),q!=Ur&&i.setLineDash(Ur=q)}function Eo(P,z,q,Y){z!=Ki&&(i.fillStyle=Ki=z),P!=$o&&(i.font=$o=P),q!=To&&(i.textAlign=To=q),Y!=Mo&&(i.textBaseline=Mo=Y)}function pr(P,z,q,Y,te=0){if(Y.length>0&&P.auto(s,dr)&&(z==null||z.min==null)){let oe=dt(Vt,0),he=dt(Gt,Y.length-1),ye=q.min==null?P.distr==3?ek(Y,oe,he):JS(Y,oe,he,te):[q.min,q.max];P.min=ti(P.min,q.min=ye[0]),P.max=bn(P.max,q.max=ye[1])}}const Ts={min:null,max:null};function Ms(){for(let Y in _){let te=_[Y];L[Y]==null&&(te.min==null||L[T]!=null&&te.auto(s,dr))&&(L[Y]=Ts)}for(let Y in _){let te=_[Y];L[Y]==null&&te.from!=null&&L[te.from]!=null&&(L[Y]=Ts)}L[T]!=null&&Ti(!0);let P={};for(let Y in L){let te=L[Y];if(te!=null){let oe=P[Y]=mo(_[Y],ck);if(te.min!=null)Yt(oe,te);else if(Y!=T||A==2)if(Qt==0&&oe.from==null){let he=oe.range(s,null,null,Y);oe.min=he[0],oe.max=he[1]}else oe.min=ut,oe.max=-ut}}if(Qt>0){R.forEach((Y,te)=>{if(A==1){let oe=Y.scale,he=L[oe];if(he==null)return;let ye=P[oe];if(te==0){let be=ye.range(s,ye.min,ye.max,oe);ye.min=be[0],ye.max=be[1],Vt=ci(ye.min,u[0]),Gt=ci(ye.max,u[0]),Gt-Vt>1&&(u[0][Vt]<ye.min&&Vt++,u[0][Gt]>ye.max&&Gt--),Y.min=fn[Vt],Y.max=fn[Gt]}else Y.show&&Y.auto&&pr(ye,he,Y,u[te],Y.sorted);Y.idxs[0]=Vt,Y.idxs[1]=Gt}else if(te>0&&Y.show&&Y.auto){let[oe,he]=Y.facets,ye=oe.scale,be=he.scale,[xe,ke]=u[te],$e=P[ye],Ue=P[be];$e!=null&&pr($e,L[ye],oe,xe,oe.sorted),Ue!=null&&pr(Ue,L[be],he,ke,he.sorted),Y.min=he.min,Y.max=he.max}});for(let Y in P){let te=P[Y],oe=L[Y];if(te.from==null&&(oe==null||oe.min==null)){let he=te.range(s,te.min==ut?null:te.min,te.max==-ut?null:te.max,Y);te.min=he[0],te.max=he[1]}}}for(let Y in P){let te=P[Y];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let he=te.range(s,oe.min,oe.max,Y);te.min=he[0],te.max=he[1]}}}let z={},q=!1;for(let Y in P){let te=P[Y],oe=_[Y];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let he=oe.distr;oe._min=he==3?zi(oe.min):he==4?Cc(oe.min,oe.asinh):he==100?oe.fwd(oe.min):oe.min,oe._max=he==3?zi(oe.max):he==4?Cc(oe.max,oe.asinh):he==100?oe.fwd(oe.max):oe.max,z[Y]=q=!0}}if(q){R.forEach((Y,te)=>{A==2?te>0&&z.y&&(Y._paths=null):z[Y.scale]&&(Y._paths=null)});for(let Y in z)Mt=!0,Wt("setScale",Y);Ie.show&&Ie.left>=0&&(un=An=!0)}for(let Y in L)L[Y]=null}function Vr(P){let z=xu(Vt-1,0,Qt-1),q=xu(Gt+1,0,Qt-1);for(;P[z]==null&&z>0;)z--;for(;P[q]==null&&q<Qt-1;)q++;return[z,q]}function Ls(){Qt>0&&(R.forEach((P,z)=>{if(z>0&&P.show&&(Es(z,!1),Es(z,!0),P._paths==null)){jn!=P.alpha&&(i.globalAlpha=jn=P.alpha);let q=A==2?[0,u[z][0].length-1]:Vr(u[z]);P._paths=P.paths(s,z,q[0],q[1]),jn!=1&&(i.globalAlpha=jn=1)}}),R.forEach((P,z)=>{if(z>0&&P.show){jn!=P.alpha&&(i.globalAlpha=jn=P.alpha),P._paths!=null&&Ro(z,!1);{let q=P._paths!=null?P._paths.gaps:null,Y=P.points.show(s,z,Vt,Gt,q),te=P.points.filter(s,z,Y,q);(Y||te)&&(P.points._paths=P.points.paths(s,z,Vt,Gt,te),Ro(z,!0))}jn!=1&&(i.globalAlpha=jn=1),Wt("drawSeries",z)}}))}function Es(P,z){let q=z?R[P].points:R[P];q._stroke=q.stroke(s,P),q._fill=q.fill(s,P)}function Ro(P,z){let q=z?R[P].points:R[P],{stroke:Y,fill:te,clip:oe,flags:he,_stroke:ye=q._stroke,_fill:be=q._fill,_width:xe=q.width}=q._paths;xe=Ct(xe*ft,3);let ke=null,$e=xe%2/2;z&&be==null&&(be=xe>0?"#fff":ye);let Ue=q.pxAlign==1&&$e>0;if(Ue&&i.translate($e,$e),!z){let yt=He-xe/2,Ye=rt-xe/2,ze=ot+xe,Ve=et+xe;ke=new Path2D,ke.rect(yt,Ye,ze,Ve)}z?Io(ye,xe,q.dash,q.cap,be,Y,te,he,oe):Rs(P,ye,xe,q.dash,q.cap,be,Y,te,he,ke,oe),Ue&&i.translate(-$e,-$e)}function Rs(P,z,q,Y,te,oe,he,ye,be,xe,ke){let $e=!1;be!=0&&v.forEach((Ue,yt)=>{if(Ue.series[0]==P){let Ye=R[Ue.series[1]],ze=u[Ue.series[1]],Ve=(Ye._paths||vs).band;cr(Ve)&&(Ve=Ue.dir==1?Ve[0]:Ve[1]);let Me,pt=null;Ye.show&&Ve&&nk(ze,Vt,Gt)?(pt=Ue.fill(s,yt)||oe,Me=Ye._paths.clip):Ve=null,Io(z,q,Y,te,pt,he,ye,be,xe,ke,Me,Ve),$e=!0}}),$e||Io(z,q,Y,te,oe,he,ye,be,xe,ke)}const Gr=vo|ku;function Io(P,z,q,Y,te,oe,he,ye,be,xe,ke,$e){Lo(P,z,q,Y,te),(be||xe||$e)&&(i.save(),be&&i.clip(be),xe&&i.clip(xe)),$e?(ye&Gr)==Gr?(i.clip($e),ke&&i.clip(ke),qi(te,he),gr(P,oe,z)):ye&ku?(qi(te,he),i.clip($e),gr(P,oe,z)):ye&vo&&(i.save(),i.clip($e),ke&&i.clip(ke),qi(te,he),i.restore(),gr(P,oe,z)):(qi(te,he),gr(P,oe,z)),(be||xe||$e)&&i.restore()}function gr(P,z,q){q>0&&(z instanceof Map?z.forEach((Y,te)=>{i.strokeStyle=zr=te,i.stroke(Y)}):z!=null&&P&&i.stroke(z))}function qi(P,z){z instanceof Map?z.forEach((q,Y)=>{i.fillStyle=Ki=Y,i.fill(q)}):z!=null&&P&&i.fill(z)}function Oo(P,z,q,Y){let te=$[P],oe;if(Y<=0)oe=[0,0];else{let he=te._space=te.space(s,P,z,q,Y),ye=te._incrs=te.incrs(s,P,z,q,Y,he);oe=SC(z,q,ye,Y,he)}return te._found=oe}function gi(P,z,q,Y,te,oe,he,ye,be,xe){let ke=he%2/2;d==1&&i.translate(ke,ke),Lo(ye,he,be,xe,ye),i.beginPath();let $e,Ue,yt,Ye,ze=te+(Y==0||Y==3?-oe:oe);q==0?(Ue=te,Ye=ze):($e=te,yt=ze);for(let Ve=0;Ve<P.length;Ve++)z[Ve]!=null&&(q==0?$e=yt=P[Ve]:Ue=Ye=P[Ve],i.moveTo($e,Ue),i.lineTo(yt,Ye));i.stroke(),d==1&&i.translate(-ke,-ke)}function Is(P){let z=!0;return $.forEach((q,Y)=>{if(!q.show)return;let te=_[q.scale];if(te.min==null){q._show&&(z=!1,q._show=!1,Ti(!1));return}else q._show||(z=!1,q._show=!0,Ti(!1));let oe=q.side,he=oe%2,{min:ye,max:be}=te,[xe,ke]=Oo(Y,ye,be,he==0?Re:De);if(ke==0)return;let $e=te.distr==2,Ue=q._splits=q.splits(s,Y,ye,be,xe,ke,$e),yt=te.distr==2?Ue.map(Me=>fn[Me]):Ue,Ye=te.distr==2?fn[Ue[1]]-fn[Ue[0]]:xe,ze=q._values=q.values(s,q.filter(s,yt,Y,ke,Ye),Y,ke,Ye);q._rotate=oe==2?q.rotate(s,ze,Y,ke):0;let Ve=q._size;q._size=ei(q.size(s,ze,Y,P)),Ve!=null&&q._size!=Ve&&(z=!1)}),z}function Os(P){let z=!0;return $s.forEach((q,Y)=>{let te=q(s,Y,$i,P);te!=pi[Y]&&(z=!1),pi[Y]=te}),z}function dl(){for(let P=0;P<$.length;P++){let z=$[P];if(!z.show||!z._show)continue;let q=z.side,Y=q%2,te,oe,he=z.stroke(s,P),ye=q==0||q==3?-1:1;if(z.label){let en=z.labelGap*ye,_n=rn((z._lpos+en)*ft);Eo(z.labelFont[0],he,"center",q==2?cs:_f),i.save(),Y==1?(te=oe=0,i.translate(_n,rn(rt+et/2)),i.rotate((q==3?-Na:Na)/2)):(te=rn(He+ot/2),oe=_n),i.fillText(z.label,te,oe),i.restore()}let[be,xe]=z._found;if(xe==0)continue;let ke=_[z.scale],$e=Y==0?ot:et,Ue=Y==0?He:rt,yt=rn(z.gap*ft),Ye=z._splits,ze=ke.distr==2?Ye.map(en=>fn[en]):Ye,Ve=ke.distr==2?fn[Ye[1]]-fn[Ye[0]]:be,Me=z.ticks,pt=z.border,Dt=Me.show?rn(Me.size*ft):0,Rt=z._rotate*-Na/180,St=g(z._pos*ft),kt=(Dt+yt)*ye,ne=St+kt;oe=Y==0?ne:0,te=Y==1?ne:0;let le=z.font[0],se=z.align==1?co:z.align==2?Sc:Rt>0?co:Rt<0?Sc:Y==0?"center":q==3?Sc:co,Se=Rt||Y==1?"middle":q==2?cs:_f;Eo(le,he,se,Se);let Ee=z.font[1]*z.lineGap,je=Ye.map(en=>g(f(en,ke,$e,Ue))),gt=z._values;for(let en=0;en<gt.length;en++){let _n=gt[en];if(_n!=null){Y==0?te=je[en]:oe=je[en],_n=""+_n;let tn=_n.indexOf(`
|
|
1416
|
+
`)==-1?[_n]:_n.split(/\n/gm);for(let Dn=0;Dn<tn.length;Dn++){let Mn=tn[Dn];Rt?(i.save(),i.translate(te,oe+Dn*Ee),i.rotate(Rt),i.fillText(Mn,0,0),i.restore()):i.fillText(Mn,te,oe+Dn*Ee)}}}Me.show&&gi(je,Me.filter(s,ze,P,xe,Ve),Y,q,St,Dt,Ct(Me.width*ft,3),Me.stroke(s,P),Me.dash,Me.cap);let Ge=z.grid;Ge.show&&gi(je,Ge.filter(s,ze,P,xe,Ve),Y,Y==0?2:1,Y==0?rt:He,Y==0?et:ot,Ct(Ge.width*ft,3),Ge.stroke(s,P),Ge.dash,Ge.cap),pt.show&&gi([St],[1],Y==0?1:0,Y==0?1:2,Y==1?rt:He,Y==1?et:ot,Ct(pt.width*ft,3),pt.stroke(s,P),pt.dash,pt.cap)}Wt("drawAxes")}function Ti(P){R.forEach((z,q)=>{q>0&&(z._paths=null,P&&(A==1?(z.min=null,z.max=null):z.facets.forEach(Y=>{Y.min=null,Y.max=null})))})}let mr=!1,Kr=!1,Yi=[];function fl(){Kr=!1;for(let P=0;P<Yi.length;P++)Wt(...Yi[P]);Yi.length=0}function Zi(){mr||(mk(Do),mr=!0)}function pl(P,z=!1){mr=!0,Kr=z,P(s),Do(),z&&Yi.length>0&&queueMicrotask(fl)}s.batch=pl;function Do(){if(tt&&(Ms(),tt=!1),Mt&&(ol(),Mt=!1),qe){if(Lt(n,co,Pt),Lt(n,cs,Ne),Lt(n,fs,Re),Lt(n,ps,De),Lt(l,co,Pt),Lt(l,cs,Ne),Lt(l,fs,Re),Lt(l,ps,De),Lt(r,fs,Zt),Lt(r,ps,Ft),a.width=rn(Zt*ft),a.height=rn(Ft*ft),$.forEach(({_el:P,_show:z,_size:q,_pos:Y,side:te})=>{if(P!=null)if(z){let oe=te===3||te===0?q:0,he=te%2==1;Lt(P,he?"left":"top",Y-oe),Lt(P,he?"width":"height",q),Lt(P,he?"top":"left",he?Ne:Pt),Lt(P,he?"height":"width",he?De:Re),bu(P,Ir)}else Bn(P,Ir)}),zr=Ki=Hr=jr=Ao=$o=To=Mo=Ur=null,jn=1,yr(!0),Pt!=ce||Ne!=Ae||Re!=Te||De!=Be){Ti(!1);let P=Re/Te,z=De/Be;if(Ie.show&&!un&&Ie.left>=0){Ie.left*=P,Ie.top*=z,Qi&&Si(Qi,rn(Ie.left),0,Re,De),mi&&Si(mi,0,rn(Ie.top),Re,De);for(let q=0;q<dn.length;q++){let Y=dn[q];Y!=null&&(ji[q]*=P,Vi[q]*=z,Si(Y,ei(ji[q]),ei(Vi[q]),Re,De))}}if(_t.show&&!Ci&&_t.left>=0&&_t.width>0){_t.left*=P,_t.width*=P,_t.top*=z,_t.height*=z;for(let q in zo)Lt(Mi,q,_t[q])}ce=Pt,Ae=Ne,Te=Re,Be=De}Wt("setSize"),qe=!1}Zt>0&&Ft>0&&(i.clearRect(0,0,a.width,a.height),Wt("drawClear"),I.forEach(P=>P()),Wt("draw")),_t.show&&Ci&&(qr(_t),Ci=!1),Ie.show&&un&&(pn(null,!0,!1),un=!1),J.show&&J.live&&An&&(vr(),An=!1),p||(p=!0,s.status=1,Wt("ready")),dr=!1,mr=!1}s.redraw=(P,z)=>{Mt=z||!1,P!==!1?Vn(T,N.min,N.max):Zi()};function No(P,z){let q=_[P];if(q.from==null){if(Qt==0){let Y=q.range(s,z.min,z.max,P);z.min=Y[0],z.max=Y[1]}if(z.min>z.max){let Y=z.min;z.min=z.max,z.max=Y}if(Qt>1&&z.min!=null&&z.max!=null&&z.max-z.min<1e-16)return;P==T&&q.distr==2&&Qt>0&&(z.min=ci(z.min,u[0]),z.max=ci(z.max,u[0]),z.min==z.max&&z.max++),L[P]=z,tt=!0,Zi()}}s.setScale=No;let Fo,Po,Qi,mi,Ds,Ns,Xi,Ji,Fs,wt,Oe,$t,vi=!1;const Xt=Ie.drag;let Kt=Xt.x,qt=Xt.y;Ie.show&&(Ie.x&&(Fo=Jn(BS,l)),Ie.y&&(Po=Jn(zS,l)),N.ori==0?(Qi=Fo,mi=Po):(Qi=Po,mi=Fo),Oe=Ie.left,$t=Ie.top);const _t=s.select=Yt({show:!0,over:!0,left:0,width:0,top:0,height:0},c.select),Mi=_t.show?Jn(WS,_t.over?l:n):null;function qr(P,z){if(_t.show){for(let q in P)_t[q]=P[q],q in zo&&Lt(Mi,q,P[q]);z!==!1&&Wt("setSelect")}}s.setSelect=qr;function Jt(P,z){let q=R[P],Y=K?ge[P]:null;if(q.show)Y&&bu(Y,Ir);else{Y&&Bn(Y,Ir);let te=Ui?dn[0]:dn[P];Si(te,-10,-10,Re,De)}}function Vn(P,z,q){No(P,{min:z,max:q})}function ln(P,z,q,Y){z.focus!=null&&Bs(P),z.show!=null&&R.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=z.show,Jt(oe,z.show),A==2?(Vn(te.facets[0].scale,null,null),Vn(te.facets[1].scale,null,null)):Vn(te.scale,null,null),Zi())}),q!==!1&&Wt("setSeries",P,z),Y&&ii("setSeries",s,P,z)}s.setSeries=ln;function Ps(P,z){Yt(v[P],z)}function Wo(P,z){P.fill=ct(P.fill||null),P.dir=dt(P.dir,-1),z=z??v.length,v.splice(z,0,P)}function $n(P){P==null?v.length=0:v.splice(P,1)}s.addBand=Wo,s.setBand=Ps,s.delBand=$n;function Ws(P,z){R[P].alpha=z,Ie.show&&dn[P]&&(dn[P].style.opacity=z),K&&ge[P]&&(ge[P].style.opacity=z)}let Gn,ni,yi;const Li={focus:!0};function Bs(P){if(P!=yi){let z=P==null,q=di.alpha!=1;R.forEach((Y,te)=>{if(A==1||te>0){let oe=z||te==0||te==P;Y._focus=z?null:oe,q&&Ws(te,oe?1:di.alpha)}}),yi=P,q&&Zi()}}K&&fi&&It($f,ie,P=>{Ie._lock||(Ai(P),yi!=null&&ln(null,Li,!0,Ot.setSeries))});function Et(P,z,q){let Y=_[z];q&&(P=P/ft-(Y.ori==1?Ne:Pt));let te=Re;Y.ori==1&&(te=De,P=te-P),Y.dir==-1&&(P=te-P);let oe=Y._min,he=Y._max,ye=P/te,be=oe+(he-oe)*ye,xe=Y.distr;return xe==3?po(10,be):xe==4?rk(be,Y.asinh):xe==100?Y.bwd(be):be}function gl(P,z){let q=Et(P,T,z);return ci(q,u[0],Vt,Gt)}s.valToIdx=P=>ci(P,u[0]),s.posToIdx=gl,s.posToVal=Et,s.valToPos=(P,z,q)=>_[z].ori==0?y(P,_[z],q?ot:Re,q?He:0):S(P,_[z],q?et:De,q?rt:0),s.setCursor=(P,z,q)=>{Oe=P.left,$t=P.top,pn(null,z,q)};function xn(P,z){Lt(Mi,co,_t.left=P),Lt(Mi,fs,_t.width=z)}function zs(P,z){Lt(Mi,cs,_t.top=P),Lt(Mi,ps,_t.height=z)}let er=N.ori==0?xn:zs,Tn=N.ori==1?xn:zs;function Yr(){if(K&&J.live)for(let P=A==2?1:0;P<R.length;P++){if(P==0&&_e)continue;let z=J.values[P],q=0;for(let Y in z)me[P][q++].firstChild.nodeValue=z[Y]}}function vr(P,z){if(P!=null&&(P.idxs?P.idxs.forEach((q,Y)=>{G[Y]=q}):lk(P.idx)||G.fill(P.idx),J.idx=G[0]),K&&J.live){for(let q=0;q<R.length;q++)(q>0||A==1&&!_e)&&Tt(q,G[q]);Yr()}An=!1,z!==!1&&Wt("setLegend")}s.setLegend=vr;function Tt(P,z){let q=R[P],Y=P==0&&k==2?fn:u[P],te;_e?te=q.values(s,P,z)??Xe:(te=q.value(s,z==null?null:Y[z],P,z),te=te==null?Xe:{_:te}),J.values[P]=te}function pn(P,z,q){Fs=Oe,wt=$t,[Oe,$t]=Ie.move(s,Oe,$t),Ie.left=Oe,Ie.top=$t,Ie.show&&(Qi&&Si(Qi,rn(Oe),0,Re,De),mi&&Si(mi,0,rn($t),Re,De));let Y,te=Vt>Gt;Gn=ut,ni=null;let oe=N.ori==0?Re:De,he=N.ori==1?Re:De;if(Oe<0||Qt==0||te){Y=Ie.idx=null;for(let ye=0;ye<R.length;ye++){let be=dn[ye];be!=null&&Si(be,-10,-10,Re,De)}fi&&ln(null,Li,!0,P==null&&Ot.setSeries),J.live&&(G.fill(Y),An=!0)}else{let ye,be,xe;A==1&&(ye=N.ori==0?Oe:$t,be=Et(ye,T),Y=Ie.idx=ci(be,u[0],Vt,Gt),xe=m(u[0][Y],N,oe,0));let ke=-10,$e=-10,Ue=0,yt=0,Ye=!0,ze="",Ve="";for(let Me=A==2?1:0;Me<R.length;Me++){let pt=R[Me],Dt=G[Me],Rt=Dt==null?null:A==1?u[Me][Dt]:u[Me][1][Dt],St=Ie.dataIdx(s,Me,Y,be),kt=St==null?null:A==1?u[Me][St]:u[Me][1][St];An=An||kt!=Rt||St!=Dt,G[Me]=St;let ne=St==Y?xe:m(A==1?u[0][St]:u[Me][0][St],N,oe,0);if(Me>0&&pt.show){let le=kt==null?-10:x(kt,A==1?_[pt.scale]:_[pt.facets[1].scale],he,0);if(fi&&kt!=null){let se=N.ori==1?Oe:$t,Se=on(di.dist(s,Me,St,le,se));if(Se<Gn){let Ee=di.bias;if(Ee!=0){let je=Et(se,pt.scale),gt=kt>=0?1:-1,Ge=je>=0?1:-1;Ge==gt&&(Ge==1?Ee==1?kt>=je:kt<=je:Ee==1?kt<=je:kt>=je)&&(Gn=Se,ni=Me)}else Gn=Se,ni=Me}}if(An||Ui){let se,Se;N.ori==0?(se=ne,Se=le):(se=le,Se=ne);let Ee,je,gt,Ge,en,_n,tn=!0,Dn=an.bbox;if(Dn!=null){tn=!1;let Mn=Dn(s,Me);gt=Mn.left,Ge=Mn.top,Ee=Mn.width,je=Mn.height}else gt=se,Ge=Se,Ee=je=an.size(s,Me);if(_n=an.fill(s,Me),en=an.stroke(s,Me),Ui)Me==ni&&Gn<=di.prox&&(ke=gt,$e=Ge,Ue=Ee,yt=je,Ye=tn,ze=_n,Ve=en);else{let Mn=dn[Me];Mn!=null&&(ji[Me]=gt,Vi[Me]=Ge,Of(Mn,Ee,je,tn),Rf(Mn,_n,en),Si(Mn,ei(gt),ei(Ge),Re,De))}}}}if(Ui){let Me=di.prox,pt=yi==null?Gn<=Me:Gn>Me||ni!=yi;if(An||pt){let Dt=dn[0];ji[0]=ke,Vi[0]=$e,Of(Dt,Ue,yt,Ye),Rf(Dt,ze,Ve),Si(Dt,ei(ke),ei($e),Re,De)}}}if(_t.show&&vi)if(P!=null){let[ye,be]=Ot.scales,[xe,ke]=Ot.match,[$e,Ue]=P.cursor.sync.scales,yt=P.cursor.drag;if(Kt=yt._x,qt=yt._y,Kt||qt){let{left:Ye,top:ze,width:Ve,height:Me}=P.select,pt=P.scales[$e].ori,Dt=P.posToVal,Rt,St,kt,ne,le,se=ye!=null&&xe(ye,$e),Se=be!=null&&ke(be,Ue);se&&Kt?(pt==0?(Rt=Ye,St=Ve):(Rt=ze,St=Me),kt=_[ye],ne=m(Dt(Rt,$e),kt,oe,0),le=m(Dt(Rt+St,$e),kt,oe,0),er(ti(ne,le),on(le-ne))):er(0,oe),Se&&qt?(pt==1?(Rt=Ye,St=Ve):(Rt=ze,St=Me),kt=_[be],ne=x(Dt(Rt,Ue),kt,he,0),le=x(Dt(Rt+St,Ue),kt,he,0),Tn(ti(ne,le),on(le-ne))):Tn(0,he)}else Qr()}else{let ye=on(Fs-Ds),be=on(wt-Ns);if(N.ori==1){let Ue=ye;ye=be,be=Ue}Kt=Xt.x&&ye>=Xt.dist,qt=Xt.y&&be>=Xt.dist;let xe=Xt.uni;xe!=null?Kt&&qt&&(Kt=ye>=xe,qt=be>=xe,!Kt&&!qt&&(be>ye?qt=!0:Kt=!0)):Xt.x&&Xt.y&&(Kt||qt)&&(Kt=qt=!0);let ke,$e;Kt&&(N.ori==0?(ke=Xi,$e=Oe):(ke=Ji,$e=$t),er(ti(ke,$e),on($e-ke)),qt||Tn(0,he)),qt&&(N.ori==1?(ke=Xi,$e=Oe):(ke=Ji,$e=$t),Tn(ti(ke,$e),on($e-ke)),Kt||er(0,oe)),!Kt&&!qt&&(er(0,0),Tn(0,0))}if(Xt._x=Kt,Xt._y=qt,P==null){if(q){if(gn!=null){let[ye,be]=Ot.scales;Ot.values[0]=ye!=null?Et(N.ori==0?Oe:$t,ye):null,Ot.values[1]=be!=null?Et(N.ori==1?Oe:$t,be):null}ii(kf,s,Oe,$t,Re,De,Y)}if(fi){let ye=q&&Ot.setSeries,be=di.prox;yi==null?Gn<=be&&ln(ni,Li,!0,ye):Gn>be?ln(null,Li,!0,ye):ni!=yi&&ln(ni,Li,!0,ye)}}An&&(J.idx=Y,vr()),z!==!1&&Wt("setCursor")}let Kn=null;Object.defineProperty(s,"rect",{get(){return Kn==null&&yr(!1),Kn}});function yr(P=!1){P?Kn=null:(Kn=l.getBoundingClientRect(),Wt("syncRect",Kn))}function Zr(P,z,q,Y,te,oe,he){Ie._lock||vi&&P!=null&&P.movementX==0&&P.movementY==0||(Bo(P,z,q,Y,te,oe,he,!1,P!=null),P!=null?pn(null,!0,!0):pn(z,!0,!1))}function Bo(P,z,q,Y,te,oe,he,ye,be){if(Kn==null&&yr(!1),Ai(P),P!=null)q=P.clientX-Kn.left,Y=P.clientY-Kn.top;else{if(q<0||Y<0){Oe=-10,$t=-10;return}let[xe,ke]=Ot.scales,$e=z.cursor.sync,[Ue,yt]=$e.values,[Ye,ze]=$e.scales,[Ve,Me]=Ot.match,pt=z.axes[0].side%2==1,Dt=N.ori==0?Re:De,Rt=N.ori==1?Re:De,St=pt?oe:te,kt=pt?te:oe,ne=pt?Y:q,le=pt?q:Y;if(Ye!=null?q=Ve(xe,Ye)?f(Ue,_[xe],Dt,0):-10:q=Dt*(ne/St),ze!=null?Y=Me(ke,ze)?f(yt,_[ke],Rt,0):-10:Y=Rt*(le/kt),N.ori==1){let se=q;q=Y,Y=se}}be&&((q<=1||q>=Re-1)&&(q=Er(q,Re)),(Y<=1||Y>=De-1)&&(Y=Er(Y,De))),ye?(Ds=q,Ns=Y,[Xi,Ji]=Ie.move(s,q,Y)):(Oe=q,$t=Y)}const zo={width:0,height:0,left:0,top:0};function Qr(){qr(zo,!1)}let Ho,br,Ei,Hs;function Uo(P,z,q,Y,te,oe,he){vi=!0,Kt=qt=Xt._x=Xt._y=!1,Bo(P,z,q,Y,te,oe,he,!0,!1),P!=null&&(It(kc,vu,jo,!1),ii(Cf,s,Xi,Ji,Re,De,null));let{left:ye,top:be,width:xe,height:ke}=_t;Ho=ye,br=be,Ei=xe,Hs=ke,Qr()}function jo(P,z,q,Y,te,oe,he){vi=Xt._x=Xt._y=!1,Bo(P,z,q,Y,te,oe,he,!1,!0);let{left:ye,top:be,width:xe,height:ke}=_t,$e=xe>0||ke>0,Ue=Ho!=ye||br!=be||Ei!=xe||Hs!=ke;if($e&&Ue&&qr(_t),Xt.setScale&&$e&&Ue){let yt=ye,Ye=xe,ze=be,Ve=ke;if(N.ori==1&&(yt=be,Ye=ke,ze=ye,Ve=xe),Kt&&Vn(T,Et(yt,T),Et(yt+Ye,T)),qt)for(let Me in _){let pt=_[Me];Me!=T&&pt.from==null&&pt.min!=ut&&Vn(Me,Et(ze+Ve,Me),Et(ze,Me))}Qr()}else Ie.lock&&(Ie._lock=!Ie._lock,pn(null,!0,!1));P!=null&&(hi(kc,vu),ii(kc,s,Oe,$t,Re,De,null))}function Vo(P,z,q,Y,te,oe,he){if(Ie._lock)return;Ai(P);let ye=vi;if(vi){let be=!0,xe=!0,ke=10,$e,Ue;N.ori==0?($e=Kt,Ue=qt):($e=qt,Ue=Kt),$e&&Ue&&(be=Oe<=ke||Oe>=Re-ke,xe=$t<=ke||$t>=De-ke),$e&&be&&(Oe=Oe<Xi?0:Re),Ue&&xe&&($t=$t<Ji?0:De),pn(null,!0,!0),vi=!1}Oe=-10,$t=-10,pn(null,!0,!0),ye&&(vi=ye)}function Xr(P,z,q,Y,te,oe,he){Ie._lock||(Ai(P),Co(),Qr(),P!=null&&ii(Tf,s,Oe,$t,Re,De,null))}function Go(){$.forEach(kC),So(s.width,s.height,!0)}Nr(Wa,ho,Go);const tr={};tr.mousedown=Uo,tr.mousemove=Zr,tr.mouseup=jo,tr.dblclick=Xr,tr.setSeries=(P,z,q,Y)=>{let te=Ot.match[2];q=te(s,z,q),q!=-1&&ln(q,Y,!0,!1)},Ie.show&&(It(Cf,l,Uo),It(kf,l,Zr),It(Af,l,P=>{Ai(P),yr(!1)}),It($f,l,Vo),It(Tf,l,Xr),Cu.add(s),s.syncRect=yr);const nr=s.hooks=c.hooks||{};function Wt(P,z,q){Kr?Yi.push([P,z,q]):P in nr&&nr[P].forEach(Y=>{Y.call(null,s,z,q)})}(c.plugins||[]).forEach(P=>{for(let z in P.hooks)nr[z]=(nr[z]||[]).concat(P.hooks[z])});const Us=(P,z,q)=>q,Ot=Yt({key:null,setSeries:!1,filters:{pub:Wf,sub:Wf},scales:[T,R[1]?R[1].scale:null],match:[Bf,Bf,Us],values:[null,null]},Ie.sync);Ot.match.length==2&&Ot.match.push(Us),Ie.sync=Ot;const gn=Ot.key,wr=qg(gn);function ii(P,z,q,Y,te,oe,he){Ot.filters.pub(P,z,q,Y,te,oe,he)&&wr.pub(P,z,q,Y,te,oe,he)}wr.sub(s);function js(P,z,q,Y,te,oe,he){Ot.filters.sub(P,z,q,Y,te,oe,he)&&tr[P](null,z,q,Y,te,oe,he)}s.pub=js;function Vs(){wr.unsub(s),Cu.delete(s),xt.clear(),wu(Wa,ho,Go),o.remove(),ie==null||ie.remove(),Wt("destroy")}s.destroy=Vs;function Ko(){Wt("init",c,u),fr(u||c.data,!1),L[T]?No(T,L[T]):Co(),Ci=_t.show&&(_t.width>0||_t.height>0),un=An=!0,So(c.width,c.height)}return R.forEach(As),$.forEach(hl),t?t instanceof HTMLElement?(t.appendChild(o),Ko()):t(s,Ko):Ko(),s}wn.assign=Yt;wn.fmtNum=Hu;wn.rangeNum=Ba;wn.rangeLog=Qa;wn.rangeAsinh=Bu;wn.orient=Wr;wn.pxRatio=ft;wn.join=gk;wn.fmtDate=ju,wn.tzDate=Ak;wn.sync=qg;{wn.addGap=lC,wn.clipGaps=el;let c=wn.paths={points:em};c.linear=nm,c.stepped=hC,c.bars=dC,c.spline=pC}var Mc,lp;function CC(){return lp||(lp=1,Mc=function(c,u,t,s,A){var w,y;if(s===void 0)s=0;else if(s=s|0,s<0||s>=c.length)throw new RangeError("invalid lower bound");if(A===void 0)A=c.length-1;else if(A=A|0,A<s||A>=c.length)throw new RangeError("invalid upper bound");for(;s<=A;)if(w=s+(A-s>>>1),y=+t(c[w],u,w,c),y<0)s=w+1;else if(y>0)A=w-1;else return w;return~s}),Mc}var AC=CC();const $C=Ha(AC);var Lc,cp;function TC(){if(cp)return Lc;cp=1;function c(u,t,s){var A=-1,w=u.length;t<0&&(t=-t>w?0:w+t),s=s>w?w:s,s<0&&(s+=w),w=t>s?0:s-t>>>0,t>>>=0;for(var y=Array(w);++A<w;)y[A]=u[A+t];return y}return Lc=c,Lc}var Ec,up;function MC(){if(up)return Ec;up=1;var c=TC();function u(t,s,A){var w=t.length;return A=A===void 0?w:A,!s&&A>=w?t:c(t,s,A)}return Ec=u,Ec}var Rc,hp;function sm(){if(hp)return Rc;hp=1;var c="\\ud800-\\udfff",u="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",A=u+t+s,w="\\ufe0e\\ufe0f",y="\\u200d",S=RegExp("["+y+c+A+w+"]");function f(p){return S.test(p)}return Rc=f,Rc}var Ic,dp;function LC(){if(dp)return Ic;dp=1;function c(u){return u.split("")}return Ic=c,Ic}var Oc,fp;function EC(){if(fp)return Oc;fp=1;var c="\\ud800-\\udfff",u="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",A=u+t+s,w="\\ufe0e\\ufe0f",y="["+c+"]",S="["+A+"]",f="\\ud83c[\\udffb-\\udfff]",p="(?:"+S+"|"+f+")",o="[^"+c+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",n=p+"?",l="["+w+"]?",d="(?:"+r+"(?:"+[o,a,i].join("|")+")"+l+n+")*",g=l+n+d,b="(?:"+[o+S+"?",S,a,i,y].join("|")+")",R=RegExp(f+"(?="+f+")|"+b+g,"g");function $(_){return _.match(R)||[]}return Oc=$,Oc}var Dc,pp;function RC(){if(pp)return Dc;pp=1;var c=LC(),u=sm(),t=EC();function s(A){return u(A)?t(A):c(A)}return Dc=s,Dc}var Nc,gp;function IC(){if(gp)return Nc;gp=1;var c=typeof ur=="object"&&ur&&ur.Object===Object&&ur;return Nc=c,Nc}var Fc,mp;function OC(){if(mp)return Fc;mp=1;var c=IC(),u=typeof self=="object"&&self&&self.Object===Object&&self,t=c||u||Function("return this")();return Fc=t,Fc}var Pc,vp;function Qu(){if(vp)return Pc;vp=1;var c=OC(),u=c.Symbol;return Pc=u,Pc}var Wc,yp;function DC(){if(yp)return Wc;yp=1;function c(u,t){for(var s=-1,A=u==null?0:u.length,w=Array(A);++s<A;)w[s]=t(u[s],s,u);return w}return Wc=c,Wc}var Bc,bp;function NC(){if(bp)return Bc;bp=1;var c=Array.isArray;return Bc=c,Bc}var zc,wp;function FC(){if(wp)return zc;wp=1;var c=Qu(),u=Object.prototype,t=u.hasOwnProperty,s=u.toString,A=c?c.toStringTag:void 0;function w(y){var S=t.call(y,A),f=y[A];try{y[A]=void 0;var p=!0}catch{}var o=s.call(y);return p&&(S?y[A]=f:delete y[A]),o}return zc=w,zc}var Hc,xp;function PC(){if(xp)return Hc;xp=1;var c=Object.prototype,u=c.toString;function t(s){return u.call(s)}return Hc=t,Hc}var Uc,_p;function WC(){if(_p)return Uc;_p=1;var c=Qu(),u=FC(),t=PC(),s="[object Null]",A="[object Undefined]",w=c?c.toStringTag:void 0;function y(S){return S==null?S===void 0?A:s:w&&w in Object(S)?u(S):t(S)}return Uc=y,Uc}var jc,Sp;function BC(){if(Sp)return jc;Sp=1;function c(u){return u!=null&&typeof u=="object"}return jc=c,jc}var Vc,kp;function zC(){if(kp)return Vc;kp=1;var c=WC(),u=BC(),t="[object Symbol]";function s(A){return typeof A=="symbol"||u(A)&&c(A)==t}return Vc=s,Vc}var Gc,Cp;function HC(){if(Cp)return Gc;Cp=1;var c=Qu(),u=DC(),t=NC(),s=zC(),A=c?c.prototype:void 0,w=A?A.toString:void 0;function y(S){if(typeof S=="string")return S;if(t(S))return u(S,y)+"";if(s(S))return w?w.call(S):"";var f=S+"";return f=="0"&&1/S==-1/0?"-0":f}return Gc=y,Gc}var Kc,Ap;function rl(){if(Ap)return Kc;Ap=1;var c=HC();function u(t){return t==null?"":c(t)}return Kc=u,Kc}var qc,$p;function UC(){if($p)return qc;$p=1;var c=MC(),u=sm(),t=RC(),s=rl();function A(w){return function(y){y=s(y);var S=u(y)?t(y):void 0,f=S?S[0]:y.charAt(0),p=S?c(S,1).join(""):y.slice(1);return f[w]()+p}}return qc=A,qc}var Yc,Tp;function am(){if(Tp)return Yc;Tp=1;var c=UC(),u=c("toUpperCase");return Yc=u,Yc}var jC=am();const VC=Ha(jC);var Zc,Mp;function GC(){if(Mp)return Zc;Mp=1;var c=rl(),u=am();function t(s){return u(c(s).toLowerCase())}return Zc=t,Zc}var Qc,Lp;function KC(){if(Lp)return Qc;Lp=1;function c(u,t,s,A){var w=-1,y=u==null?0:u.length;for(A&&y&&(s=u[++w]);++w<y;)s=t(s,u[w],w,u);return s}return Qc=c,Qc}var Xc,Ep;function qC(){if(Ep)return Xc;Ep=1;function c(u){return function(t){return u==null?void 0:u[t]}}return Xc=c,Xc}var Jc,Rp;function YC(){if(Rp)return Jc;Rp=1;var c=qC(),u={À:"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"},t=c(u);return Jc=t,Jc}var eu,Ip;function ZC(){if(Ip)return eu;Ip=1;var c=YC(),u=rl(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\u0300-\\u036f",A="\\ufe20-\\ufe2f",w="\\u20d0-\\u20ff",y=s+A+w,S="["+y+"]",f=RegExp(S,"g");function p(o){return o=u(o),o&&o.replace(t,c).replace(f,"")}return eu=p,eu}var tu,Op;function QC(){if(Op)return tu;Op=1;var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function u(t){return t.match(c)||[]}return tu=u,tu}var nu,Dp;function XC(){if(Dp)return nu;Dp=1;var c=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function u(t){return c.test(t)}return nu=u,nu}var iu,Np;function JC(){if(Np)return iu;Np=1;var c="\\ud800-\\udfff",u="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",A=u+t+s,w="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",S="\\xac\\xb1\\xd7\\xf7",f="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\u2000-\\u206f",o=" \\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",a="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\ufe0e\\ufe0f",r=S+f+p+o,n="['’]",l="["+r+"]",d="["+A+"]",g="\\d+",b="["+w+"]",R="["+y+"]",$="[^"+c+r+g+w+y+a+"]",_="\\ud83c[\\udffb-\\udfff]",v="(?:"+d+"|"+_+")",T="[^"+c+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+a+"]",N="\\u200d",k="(?:"+R+"|"+$+")",m="(?:"+M+"|"+$+")",x="(?:"+n+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+n+"(?:D|LL|M|RE|S|T|VE))?",O=v+"?",F="["+i+"]?",W="(?:"+N+"(?:"+[T,E,I].join("|")+")"+F+O+")*",U="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G=F+O+W,J="(?:"+[b,E,I].join("|")+")"+G,K=RegExp([M+"?"+R+"+"+x+"(?="+[l,M,"$"].join("|")+")",m+"+"+L+"(?="+[l,M+k,"$"].join("|")+")",M+"?"+k+"+"+x,M+"+"+L,V,U,g,J].join("|"),"g");function Q(ie){return ie.match(K)||[]}return iu=Q,iu}var ru,Fp;function eA(){if(Fp)return ru;Fp=1;var c=QC(),u=XC(),t=rl(),s=JC();function A(w,y,S){return w=t(w),y=S?void 0:y,y===void 0?u(w)?s(w):c(w):w.match(y)||[]}return ru=A,ru}var ou,Pp;function tA(){if(Pp)return ou;Pp=1;var c=KC(),u=ZC(),t=eA(),s="['’]",A=RegExp(s,"g");function w(y){return function(S){return c(t(u(S).replace(A,"")),y,"")}}return ou=w,ou}var su,Wp;function nA(){if(Wp)return su;Wp=1;var c=GC(),u=tA(),t=u(function(s,A,w){return A=A.toLowerCase(),s+(w?c(A):A)});return su=t,su}var iA=nA();const rA=Ha(iA),oA=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayWidget-BIQi_bWC.cjs")),"./ArrayplotWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayplotWidget-Donxhd8_.cjs")),"./BlockWidget.vue":()=>Promise.resolve().then(()=>require("./BlockWidget-DPLN1jgj.cjs")),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>require("./ButtonWidget-DccYzIY3.cjs")),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasWidget-BzTU9rc9.cjs")),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasdotWidget-B7VTS1QI.cjs")),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimageWidget-BwYpfmDE.cjs")),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimagevalueWidget-E_NsZ82T.cjs")),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelWidget-BBDuXWfU.cjs")),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelvalueWidget-DAdu7ujn.cjs")),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslineWidget-Bv5da1Vy.cjs")),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslinevalueWidget-BVfUB96K.cjs")),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>require("./CheckbuttonWidget-BGqD-BGc.cjs")),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>require("./ComboboxWidget-DoHMlSAr.cjs")),"./DateWidget.vue":()=>Promise.resolve().then(()=>require("./DateWidget-DKZz1J9J.cjs")),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>require("./DynamicWidget-3wHr6Ng-.cjs")),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>require("./FormatvalueWidget-DFrbeKb9.cjs")),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalWidget-BBeB0eBI.cjs")),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalboxWidget-DsdzrCJx.cjs")),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontallineWidget-BCKOQase.cjs")),"./IframeWidget.vue":()=>Promise.resolve().then(()=>require("./IframeWidget-CZwsTgvX.cjs")),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>require("./ImageviewerWidget-DwRPFSLR.cjs")),"./LabelWidget.vue":()=>Promise.resolve().then(()=>require("./LabelWidget-C-s8OVmA.cjs")),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>require("./LabelledWidget-DUpHxc9z.cjs")),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelprogressbarWidget-D6cpayCR.cjs")),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>require("./LabelsparklineWidget-CJRnLETe.cjs")),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvalueWidget-owiMSCYl.cjs")),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluedescWidget-MRmZBUc0.cjs")),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitsbarWidget-BQ2XYPNE.cjs")),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitscolumnWidget-DNmVpU8J.cjs")),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluerangebarWidget-DL0U8cbw.cjs")),"./LedWidget.vue":()=>Promise.resolve().then(()=>require("./LedWidget-B8rjFe1b.cjs")),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LimitsbarWidget-CYIH8fdp.cjs")),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolorWidget-CS0wpX9A.cjs")),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolumnWidget-C_UW6xKq.cjs")),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>require("./LinegraphWidget-8td_PqgU.cjs")),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>require("./MatrixbycolumnsWidget-CGOeCNW2.cjs")),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>require("./ProgressbarWidget-CUIAYySg.cjs")),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>require("./RadiobuttonWidget-Cjk1JAP_.cjs")),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>require("./RadiogroupWidget-B4lkYWaC.cjs")),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>require("./RangebarWidget-nl0rzj93.cjs")),"./RollupWidget.vue":()=>Promise.resolve().then(()=>require("./RollupWidget-Bgudi_bt.cjs")),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>require("./ScrollwindowWidget-BIiV7xwi.cjs")),"./SignalWidget.vue":()=>Promise.resolve().then(()=>require("./SignalWidget-CvZkvejy.cjs")),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>require("./SpacerWidget-BBJR6HBQ.cjs")),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>require("./SparklineWidget-BxBLnjAO.cjs")),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>require("./TabbookWidget-DyFQnA10.cjs")),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>require("./TextboxWidget-D6lW_dsU.cjs")),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>require("./TextfieldWidget-iHN7-fyF.cjs")),"./TimeWidget.vue":()=>Promise.resolve().then(()=>require("./TimeWidget-C3NZqTEG.cjs")),"./TitleWidget.vue":()=>Promise.resolve().then(()=>require("./TitleWidget-CWZs33c4.cjs")),"./ValueWidget.vue":()=>Promise.resolve().then(()=>require("./ValueWidget-Do3Yn47P.cjs")),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitsbarWidget-DJuh7FOs.cjs")),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitscolumnWidget-BFpG-H7v.cjs")),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuerangebarWidget-BlZSaiXo.cjs")),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalWidget--8UErB4q.cjs")),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalboxWidget-cxHq1WKQ.cjs"))}),sA=Object.entries(oA).reduce((c,[u,t])=>{u=u.split("/").pop();const s=VC(rA(u.replace(/\.\w+$/,"")));return{...c,[s]:we.defineAsyncComponent(t)}},{}),aA={components:sA};exports.DataViewerComponent=xg;exports.DataViewerHistoryComponent=TS;exports.WidgetComponents=aA;exports._=Sg;exports.aceExports=mx;exports.bs=$C;exports.fi=D_;exports.lodashExports=_g;exports.mi=wS;exports.pi=N_;exports.uPlot=wn;exports.ui=n_;exports.ut=gu;
|
|
1417
|
+
//# sourceMappingURL=UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map
|