text: /**
   * skylark-ui-coder - The skylark coder widget
   * @author Hudaokeji, Inc.
   * @version v0.9.0
   * @link https://github.com/skylarkui/skylark-ui-coder/
   * @license MIT
   */
  define(["skylark-langx/klass","../util/browser","../util/dom","../CoderCtor"],function(e,r,t,i){var l,n=e({klassName:"Display",_construct:function(e,r,i){var l=this;this.input=i,l.scrollbarFiller=t.elt("div",null,"CodeMirror-scrollbar-filler"),l.scrollbarFiller.setAttribute("cm-not-content","true"),l.gutterFiller=t.elt("div",null,"CodeMirror-gutter-filler"),l.gutterFiller.setAttribute("cm-not-content","true"),l.lineDiv=t.elt("div",null,"CodeMirror-code"),l.selectionDiv=t.elt("div",null,null,"position: relative; z-index: 1"),l.cursorDiv=t.elt("div",null,"CodeMirror-cursors"),l.measure=t.elt("div",null,"CodeMirror-measure"),l.lineMeasure=t.elt("div",null,"CodeMirror-measure"),l.lineSpace=t.elt("div",[l.measure,l.lineMeasure,l.selectionDiv,l.cursorDiv,l.lineDiv],null,"position: relative; outline: none"),l.mover=t.elt("div",[t.elt("div",[l.lineSpace],"CodeMirror-lines")],null,"position: relative"),l.sizer=t.elt("div",[l.mover],"CodeMirror-sizer"),l.sizerWidth=null,l.heightForcer=t.elt("div",null,null,"position: absolute; height: "+scrollerGap+"px; width: 1px;"),l.gutters=t.elt("div",null,"CodeMirror-gutters"),l.lineGutter=null,l.scroller=t.elt("div",[l.sizer,l.heightForcer,l.gutters],"CodeMirror-scroll"),l.scroller.setAttribute("tabIndex","-1"),l.wrapper=t.elt("div",[l.scrollbarFiller,l.gutterFiller,l.scroller],"CodeMirror"),ie&&ie_version<8&&(l.gutters.style.zIndex=-1,l.scroller.style.paddingRight=0),webkit||gecko&&mobile||(l.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(l.wrapper):e(l.wrapper)),l.viewFrom=l.viewTo=r.first,l.reportedViewFrom=l.reportedViewTo=r.first,l.view=[],l.renderedView=null,l.externalMeasured=null,l.viewOffset=0,l.lastWrapHeight=l.lastWrapWidth=0,l.updateLineNumbers=null,l.nativeBarWidth=l.barHeight=l.barWidth=0,l.scrollbarsClipped=!1,l.lineNumWidth=l.lineNumInnerWidth=l.lineNumChars=null,l.alignWidgets=!1,l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.maxLine=null,l.maxLineLength=0,l.maxLineChanged=!1,l.wheelDX=l.wheelDY=l.wheelStartX=l.wheelStartY=null,l.shift=!1,l.selForContextMenu=null,l.activeTouch=null,i.init(l)},eventInWidget:function(e){for(var r=this,t=e_target(e);t!=r.wrapper;t=t.parentNode)if(!t||1==t.nodeType&&"true"==t.getAttribute("cm-ignore-events")||t.parentNode==r.sizer&&t!=r.mover)return!0},paddingTop:function(){var e=this;return e.lineSpace.offsetTop},paddingVert:function(){var e=this;return e.mover.offsetHeight-e.lineSpace.offsetHeight},paddingH:function(){var e=this;if(e.cachedPaddingH)return e.cachedPaddingH;var r=t.removeChildrenAndAdd(e.measure,t.elt("pre","x")),i=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,l={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(l.left)||isNaN(l.right)||(e.cachedPaddingH=l),l},textHeight:function(){var e=this;if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==l){l=t.elt("pre");for(var r=0;r<49;++r)l.appendChild(document.createTextNode("x")),l.appendChild(t.elt("br"));l.appendChild(document.createTextNode("x"))}t.removeChildrenAndAdd(e.measure,l);var i=l.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),removeChildren(e.measure),i||1},charWidth:function(){var e=this;if(null!=e.cachedCharWidth)return e.cachedCharWidth;var r=t.elt("span","xxxxxxxxxx"),i=t.elt("pre",[r]);t.removeChildrenAndAdd(e.measure,i);var l=r.getBoundingClientRect(),n=(l.right-l.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}});return n});
  //# sourceMappingURL=../../sourcemaps/primitives/display/Display.js.map
  