(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[27127],{27127:function(o,x,g){o=g.nmd(o),ace.define("ace/ext/rtl",["require","exports","module","ace/editor","ace/config"],function(a,$,w){"use strict";var c=[{name:"leftToRight",bindKey:{win:"Ctrl-Alt-Shift-L",mac:"Command-Alt-Shift-L"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!1)},readOnly:!0},{name:"rightToLeft",bindKey:{win:"Ctrl-Alt-Shift-R",mac:"Command-Alt-Shift-R"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!0)},readOnly:!0}],p=a("../editor").Editor;a("../config").defineOptions(p.prototype,"editor",{rtlText:{set:function(e){e?(this.on("change",h),this.on("changeSelection",d),this.renderer.on("afterRender",l),this.commands.on("exec",f),this.commands.addCommands(c)):(this.off("change",h),this.off("changeSelection",d),this.renderer.off("afterRender",l),this.commands.off("exec",f),this.commands.removeCommands(c),u(this.renderer)),this.renderer.updateFull()}},rtl:{set:function(e){this.session.$bidiHandler.$isRtl=e,e?(this.setOption("rtlText",!1),this.renderer.on("afterRender",l),this.session.$bidiHandler.seenBidi=!0):(this.renderer.off("afterRender",l),u(this.renderer)),this.renderer.updateFull()}}});function d(e,n){var i=n.getSelection().lead;n.session.$bidiHandler.isRtlLine(i.row)&&i.column===0&&(n.session.$bidiHandler.isMoveLeftOperation&&i.row>0?n.getSelection().moveCursorTo(i.row-1,n.session.getLine(i.row-1).length):n.getSelection().isEmpty()?i.column+=1:i.setPosition(i.row,i.column+1))}function f(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function h(e,n){var i=n.session;if(i.$bidiHandler.currentRow=null,i.$bidiHandler.isRtlLine(e.start.row)&&e.action==="insert"&&e.lines.length>1)for(var t=e.start.row;t