| | |
| | | |
| | | ========================================================================== |
| | | @license */ |
| | | "use strict";var i=e("./oop"),o=function(){var e,t,n={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",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.PRINTABLE_KEYS[173]="-",n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i,o=e("./keys"),r=e("./useragent"),s=null,a=0;function l(){i=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){i={passive:!1}}})}catch(e){}}function c(){return void 0==i&&l(),i}function d(e,t,n){this.elem=e,this.type=t,this.callback=n}d.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=t.addListener=function(e,t,n,i){e.addEventListener(t,n,c()),i&&i.$toDestroy.push(new d(e,t,n))},h=t.removeListener=function(e,t,n){e.removeEventListener(t,n,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var i=e&&e.ownerDocument||document;function o(e){t&&t(e),n&&n(e),h(i,"mousemove",t),h(i,"mouseup",o),h(i,"dragstart",o)}return u(i,"mousemove",t),u(i,"mouseup",o),u(i,"dragstart",o),o},t.addMouseWheelListener=function(e,t,n){u(e,"wheel",(function(e){var n=.15,i=e.deltaX||0,o=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=i*n,e.wheelY=o*n;break;case e.DOM_DELTA_LINE:var r=15;e.wheelX=i*r,e.wheelY=o*r;break;case e.DOM_DELTA_PAGE:var s=150;e.wheelX=i*s,e.wheelY=o*s;break}t(e)}),n)},t.addMultiMouseDownListener=function(e,n,i,o,s){var a,l,c,d=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(e){if(0!==t.getButton(e)?d=0:e.detail>1?(d++,d>4&&(d=1)):d=1,r.isIE){var s=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;c&&!s||(d=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[d-1]||600),1==d&&(a=e.clientX,l=e.clientY)}if(e._clicks=d,i[o]("mousedown",e),d>4)d=0;else if(d>1)return i[o](h[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){u(e,"mousedown",f,s)}))};var f=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function p(e,t,n){var i=f(t);if(!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),s.altGr){if(3==(3&i))return;s.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==s[n]&&(a=t.timeStamp);else if(18===n&&3===i&&2===l){var c=t.timeStamp-a;c<50&&(s.altGr=!0)}}}if(n in o.MODIFIER_KEYS&&(n=-1),!i&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,i,-n),t.defaultPrevented))return}if(r.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,i,n)}function g(){s=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[f(e)]},t.addCommandKeyListener=function(e,n,i){if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var o=null;u(e,"keydown",(function(e){o=e.keyCode}),i),u(e,"keypress",(function(e){return p(n,e,o)}),i)}else{var a=null;u(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return a=e.defaultPrevented,t}),i),u(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),i),u(e,"keyup",(function(e){s[e.keyCode]=null}),i),s||(g(),u(window,"focus",g))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var i="zero-timeout-message-"+m++,o=function(r){r.data==i&&(t.stopPropagation(r),h(n,"message",o),e())};u(n,"message",o),n.postMessage(i,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t){return e.row-t.row||e.column-t.column},o=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(i.row,i.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(i.row,i.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return o.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var r={row:e,column:t};return o.fromPoints(i||this.start,r||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new o(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(o.prototype),o.fromPoints=function(e,t){return new o(e.row,e.column,t.row,t.column)},o.comparePoints=i,o.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=o})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("../clipboard"),l=o.isChrome<18,c=o.isIE,d=o.isChrome>63,u=400,h=e("../lib/keys"),f=h.KEY_MODS,p=o.isIOS,g=p?/\s/:/\n/,m=o.isMobile,b=function(e,t){var n=r.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var b=!1,v=!1,y=!1,w=!1,x="";m||(n.style.fontSize="1px");var C=!1,_=!1,k="",S=0,O=0,E=0;try{var L=document.activeElement===n}catch(X){}this.setAriaOptions=function(e){e.activeDescendant?(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-autocomplete","list"),n.setAttribute("aria-activedescendant",e.activeDescendant)):(n.setAttribute("aria-haspopup","false"),n.setAttribute("aria-autocomplete","both"),n.removeAttribute("aria-activedescendant")),e.role&&n.setAttribute("role",e.role)},this.setAriaOptions({role:"textbox"}),i.addListener(n,"blur",(function(e){_||(t.onBlur(e),L=!1)}),t),i.addListener(n,"focus",(function(e){if(!_){if(L=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(A):A()}}),t),this.$focusScroll=!1,this.focus=function(){if(x||d||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(X){return}var i=[];if(t){var o=n.parentElement;while(o&&1==o.nodeType)i.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement}n.focus({preventScroll:!0}),t&&i.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return L},t.on("beforeEndOperation",(function(){var e=t.curOp,i=e&&e.command&&e.command.name;if("insertstring"!=i){var o=i&&(e.docChanged||e.selectionChanged);y&&o&&(k=n.value="",B()),A()}}));var A=p?function(e){if(L&&(!b||e)&&!w){e||(e="");var i="\n ab"+e+"cde fg\n";i!=n.value&&(n.value=k=i);var o=4,r=4+(e.length||(t.selection.isEmpty()?0:1));S==o&&O==r||n.setSelectionRange(o,r),S=o,O=r}}:function(){if(!y&&!w&&(L||R)){y=!0;var e=0,i=0,o="";if(t.session){var r=t.selection,s=r.getRange(),a=r.cursor.row;if(e=s.start.column,i=s.end.column,o=t.session.getLine(a),s.start.row!=a){var l=t.session.getLine(a-1);e=s.start.row<a-1?0:e,i+=l.length+1,o=l+"\n"+o}else if(s.end.row!=a){var c=t.session.getLine(a+1);i=s.end.row>a+1?c.length:i,i+=o.length+1,o=o+"\n"+c}else m&&a>0&&(o="\n"+o,i+=1,e+=1);o.length>u&&(e<u&&i<u?o=o.slice(0,u):(o="\n",e==i?e=i=0:(e=0,i=1)))}var d=o+"\n\n";if(d!=k&&(n.value=k=d,S=O=d.length),R&&(S=n.selectionStart,O=n.selectionEnd),O!=i||S!=e||n.selectionEnd!=O)try{n.setSelectionRange(e,i),S=e,O=i}catch(X){}y=!1}};this.resetSelection=A,L&&t.onFocus();var M=function(e){return 0===e.selectionStart&&e.selectionEnd>=k.length&&e.value===k&&k&&e.selectionEnd!==O},$=function(e){y||(b?b=!1:M(n)?(t.selectAll(),A()):m&&n.selectionStart!=S&&A())},T=null;this.setInputHandler=function(e){T=e},this.getInputHandler=function(){return T};var R=!1,F=function(e,i){if(R&&(R=!1),v)return A(),e&&t.onPaste(e),v=!1,"";var r=n.selectionStart,s=n.selectionEnd,a=S,l=k.length-O,c=e,d=e.length-r,u=e.length-s,h=0;while(a>0&&k[h]==e[h])h++,a--;c=c.slice(h),h=1;while(l>0&&k.length-h>S-1&&k[k.length-h]==e[e.length-h])h++,l--;d-=h-1,u-=h-1;var f=c.length-h+1;if(f<0&&(a=-f,f=0),c=c.slice(0,f),!i&&!c&&!d&&!a&&!l&&!u)return"";w=!0;var p=!1;return o.isAndroid&&". "==c&&(c=" ",p=!0),c&&!a&&!l&&!d&&!u||C?t.onTextInput(c):t.onTextInput(c,{extendLeft:a,extendRight:l,restoreStart:d,restoreEnd:u}),w=!1,k=e,S=r,O=s,E=u,p?"\n":c},j=function(e){if(y)return H();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var i=n.value,o=F(i,!0);(i.length>u+100||g.test(o)||m&&S<1&&S==O)&&A()},q=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!l){var o=c||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return q(e,t,!0)}}},I=function(e,o){var r=t.getCopyText();if(!r)return i.preventDefault(e);q(e,r)?(p&&(A(r),b=r,setTimeout((function(){b=!1}),10)),o?t.onCut():t.onCopy(),i.preventDefault(e)):(b=!0,n.value=r,n.select(),setTimeout((function(){b=!1,A(),o?t.onCut():t.onCopy()})))},N=function(e){I(e,!0)},P=function(e){I(e,!1)},D=function(e){var r=q(e);a.pasteCancelled()||("string"==typeof r?(r&&t.onPaste(r,e),o.isIE&&setTimeout(A),i.preventDefault(e)):(n.value="",v=!0))};i.addCommandKeyListener(n,t.onCommandKey.bind(t),t),i.addListener(n,"select",$,t),i.addListener(n,"input",j,t),i.addListener(n,"cut",N,t),i.addListener(n,"copy",P,t),i.addListener(n,"paste",D,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:P(e);break;case 86:D(e);break;case 88:N(e);break}}),t);var W=function(e){if(!y&&t.onCompositionStart&&!t.$readOnly&&(y={},!C)){e.data&&(y.useTextareaForIME=!1),setTimeout(H,0),t._signal("compositionStart"),t.on("mousedown",z);var i=t.getSelectionRange();i.end.row=i.start.row,i.end.column=i.start.column,y.markerRange=i,y.selectionStart=S,t.onCompositionStart(y),y.useTextareaForIME?(k=n.value="",S=0,O=0):(n.msGetInputContext&&(y.context=n.msGetInputContext()),n.getInputContext&&(y.context=n.getInputContext()))}},H=function(){if(y&&t.onCompositionUpdate&&!t.$readOnly){if(C)return z();if(y.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;F(e),y.markerRange&&(y.context&&(y.markerRange.start.column=y.selectionStart=y.context.compositionStartOffset),y.markerRange.end.column=y.markerRange.start.column+O-y.selectionStart+E)}}},B=function(e){t.onCompositionEnd&&!t.$readOnly&&(y=!1,t.onCompositionEnd(),t.off("mousedown",z),e&&j())};function z(){_=!0,n.blur(),n.focus(),_=!1}var V,U=s.delayedCall(H,50).schedule.bind(null,null);function G(e){27==e.keyCode&&n.value.length<n.selectionStart&&(y||(k=n.value),S=O=-1,A()),U()}function K(){clearTimeout(V),V=setTimeout((function(){x&&(n.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}i.addListener(n,"compositionstart",W,t),i.addListener(n,"compositionupdate",H,t),i.addListener(n,"keyup",G,t),i.addListener(n,"keydown",U,t),i.addListener(n,"compositionend",B,t),this.getElement=function(){return n},this.setCommandMode=function(e){C=e,n.readOnly=!1},this.setReadOnly=function(e){C||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){R=!0,A(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){x||(x=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+(o.isIE?"opacity:0.1;":"")+"text-indent: -"+(S+O)*t.renderer.characterWidth*.5+"px;";var a=t.container.getBoundingClientRect(),l=r.computedStyle(t.container),c=a.top+(parseInt(l.borderTopWidth)||0),d=a.left+(parseInt(a.borderLeftWidth)||0),u=a.bottom-c-n.clientHeight-2,h=function(e){r.translate(n,e.clientX-d-2,Math.min(e.clientY-c-2,u))};h(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(V),o.isWin&&i.capture(t.container,h,K))},this.onContextMenuClose=K;var Y=function(e){t.textInput.onContextMenu(e),K()};function J(e,t,n){var i=null,o=!1;n.addEventListener("keydown",(function(e){i&&clearTimeout(i),o=!0}),!0),n.addEventListener("keyup",(function(e){i=setTimeout((function(){o=!1}),100)}),!0);var r=function(e){if(document.activeElement===n&&!(o||y||t.$mouseHandler.isMousePressed)&&!b){var i=n.selectionStart,r=n.selectionEnd,s=null,a=0;if(0==i?s=h.up:1==i?s=h.home:r>O&&"\n"==k[r]?s=h.end:i<S&&" "==k[i-1]?(s=h.left,a=f.option):i<S||i==S&&O!=S&&i==r?s=h.left:r>O&&k.slice(0,r).split("\n").length>2?s=h.down:r>O&&" "==k[r-1]?(s=h.right,a=f.option):(r>O||r==O&&O!=S&&i==r)&&(s=h.right),i!==r&&(a|=f.shift),s){var l=t.onCommandKey({},a,s);if(!l&&t.commands){s=h.keyCodeToString(s);var c=t.commands.findKeyCommand(a,s);c&&t.execCommand(c)}S=i,O=r,A("")}}};document.addEventListener("selectionchange",r),t.on("destroy",(function(){document.removeEventListener("selectionchange",r)}))}i.addListener(n,"mouseup",Y,t),i.addListener(n,"mousedown",(function(e){e.preventDefault(),K()}),t),i.addListener(t.renderer.scroller,"contextmenu",Y,t),i.addListener(n,"contextmenu",Y,t),p&&J(e,t,n),this.destroy=function(){n.parentElement&&n.parentElement.removeChild(n)}};t.TextInput=b,t.$setUserAgentForTests=function(e,t){m=e,p=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/useragent"),o=0,r=550;function s(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function a(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,r=e.getButton();if(0!==r){var s=o.getSelectionRange(),a=s.isEmpty();return(a||1==r)&&o.selection.moveToPosition(n),void(2==r&&(o.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var o=l(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](i.row,i.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==r&&s<=0)t=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&r>=0)t=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==r&&1==s)i=o.end,t=o.start;else{var a=l(this.$clickSelection,i);i=a.cursor,t=a.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>o||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session,o=i.getBracketRange(t);o?(o.isEmpty()&&(o.start.column--,o.end.column++),this.setState("select")):(o=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=o,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,o=i-n.t,s=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<r&&(s=(s+n.vx)/2,a=(a+n.vy)/2);var l=Math.abs(s/a),c=!1;if(l>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=i;else if(i-n.allowed<r){var d=Math.abs(s)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy);d?(c=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=s,n.vy=a,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(s.prototype),t.DefaultHandlers=s})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom"),o="ace_tooltip";function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){var t,n,o,s=e.editor,a=s.renderer.$gutterLayer,c=new l(s.container);function d(){var t=n.getDocumentPosition().row,i=a.$annotations[t];if(!i)return u();var r=s.session.getLength();if(t==r){var l=s.renderer.pixelToScreenCoordinates(0,n.y).row,d=n.$pos;if(l>s.session.documentToScreenRow(d.row,d.column))return u()}if(o!=i){o=i.text.join("<br/>"),c.setHtml(o);var f=i.className;if(f&&c.setClassName(f.trim()),c.show(),s._signal("showGutterTooltip",c),s.on("mousewheel",u),e.$tooltipFollowsMouse)h(n);else{var p=n.domEvent.target,g=p.getBoundingClientRect(),m=c.getElement().style;m.left=g.right+"px",m.top=g.bottom+"px"}}}function u(){t&&(t=clearTimeout(t)),o&&(c.hide(),o=null,s._signal("hideGutterTooltip",c),s.off("mousewheel",u))}function h(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(s.isFocused()&&0==t.getButton()){var n=a.getRegion(t);if("foldWidgets"!=n){var i=t.getDocumentPosition().row,o=s.session.selection;if(t.getShiftKey())o.selectTo(i,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}})),e.editor.setDefaultHandler("guttermousemove",(function(r){var s=r.domEvent.target||r.domEvent.srcElement;if(i.hasCssClass(s,"ace_fold-widget"))return u();o&&e.$tooltipFollowsMouse&&h(r),n=r,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?d():u()}),50))})),r.addListener(s.renderer.$gutter,"mouseout",(function(e){n=null,o&&!t&&(t=setTimeout((function(){t=null,u()}),50))}),s),s.on("changeSession",u)}function l(e){s.call(this,e)}o.inherits(l,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();e+=15,t+=15,e+o>n&&(e-=e+o-n),t+r>i&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(l.prototype),t.GutterHandler=a})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(r.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/event"),r=e("../lib/useragent"),s=200,a=200,l=5;function c(e){var t=e.editor,n=i.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";var c=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];c.forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var u,h,f,p,g,m,b,v,y,w,x,C=t.container,_=0;function k(e,n){var i=Date.now(),o=!n||e.row!=n.row,r=!n||e.column!=n.column;if(!w||o||r)t.moveCursorToPosition(e),w=i,x={x:h,y:f};else{var s=d(x.x,x.y,h,f);s>l?w=null:i-w>=a&&(t.renderer.scrollCursorIntoView(),w=null)}}function S(e,n){var i=Date.now(),o=t.renderer.layerConfig.lineHeight,r=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),l={x:{left:h-a.left,right:a.right-h},y:{top:f-a.top,bottom:a.bottom-f}},c=Math.min(l.x.left,l.x.right),d=Math.min(l.y.top,l.y.bottom),u={row:e.row,column:e.column};c/r<=2&&(u.column+=l.x.left<l.x.right?-3:2),d/o<=1&&(u.row+=l.y.top<l.y.bottom?-1:1);var p=e.row!=u.row,g=e.column!=u.column,m=!n||e.row!=n.row;p||g&&!m?y?i-y>=s&&t.renderer.scrollCursorIntoView(u):y=i:y=null}function O(){var e=m;m=t.renderer.screenToTextCoordinates(h,f),k(m,e),S(m,e)}function E(){g=t.selection.toOrientedRange(),u=t.session.addMarker(g,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),O(),p=setInterval(O,20),_=0,o.addListener(document,"mousemove",M)}function L(){clearInterval(p),t.session.removeMarker(u),u=null,t.selection.fromOrientedRange(g),t.isFocused()&&!v&&t.$resetCursorStyle(),g=null,m=null,_=0,y=null,w=null,o.removeListener(document,"mousemove",M)}this.onDragStart=function(e){if(this.cancelDrag||!C.draggable){var i=this;return setTimeout((function(){i.startSelect(),i.captureMouse(e)}),0),e.preventDefault()}g=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),o.setDragImage&&o.setDragImage(n,0,0),setTimeout((function(){t.container.removeChild(n)})),o.clearData(),o.setData("Text",t.session.getTextRange()),v=!0,this.setState("drag")},this.onDragEnd=function(e){if(C.draggable=!1,v=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;b||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&$(e.dataTransfer))return h=e.clientX,f=e.clientY,u||E(),_++,e.dataTransfer.dropEffect=b=T(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&$(e.dataTransfer))return h=e.clientX,f=e.clientY,u||(E(),_++),null!==A&&(A=null),e.dataTransfer.dropEffect=b=T(e),o.preventDefault(e)},this.onDragLeave=function(e){if(_--,_<=0&&u)return L(),b=null,o.preventDefault(e)},this.onDrop=function(e){if(m){var n=e.dataTransfer;if(v)switch(b){case"move":g=g.contains(m.row,m.column)?{start:m,end:m}:t.moveText(g,m);break;case"copy":g=t.moveText(g,m,!0);break}else{var i=n.getData("Text");g={start:m,end:t.session.insert(m,i)},t.focus(),b=null}return L(),o.preventDefault(e)}},o.addListener(C,"dragstart",this.onDragStart.bind(e),t),o.addListener(C,"dragend",this.onDragEnd.bind(e),t),o.addListener(C,"dragenter",this.onDragEnter.bind(e),t),o.addListener(C,"dragover",this.onDragOver.bind(e),t),o.addListener(C,"dragleave",this.onDragLeave.bind(e),t),o.addListener(C,"drop",this.onDrop.bind(e),t);var A=null;function M(){null==A&&(A=setTimeout((function(){null!=A&&u&&L()}),20))}function $(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function T(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],i=r.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var s="none";return i&&t.indexOf(o)>=0?s="copy":n.indexOf(o)>=0?s="move":t.indexOf(o)>=0&&(s="copy"),s}}function d(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=r.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(r.isIE&&"dragReady"==this.state){var n=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton(),o=e.domEvent.detail||1;if(1===o&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var s=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in s&&(s.unselectable="on"),t.getDragDelay()){if(r.isWebKit){this.cancelDrag=!0;var a=t.container;a.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(c.prototype),t.DragdropHandler=c})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./mouse_event").MouseEvent,o=e("../lib/event"),r=e("../lib/dom");t.addTouchListeners=function(e,t){var n,s,a,l,c,d,u,h,f,p="scroll",g=0,m=0,b=0,v=0;function y(){var e=window.navigator&&window.navigator.clipboard,n=!1,i=function(){var i=t.getCopyText(),o=t.session.getUndoManager().hasUndo();f.replaceChild(r.buildDom(n?["span",!i&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],i&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],i&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],o&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),f.firstChild)},o=function(o){var r=o.target.getAttribute("action");if("more"==r||!n)return n=!n,i();"paste"==r?e.readText().then((function(e){t.execCommand(r,e)})):r&&("cut"!=r&&"copy"!=r||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(r)),f.firstChild.style.display="none",n=!1,"openCommandPallete"!=r&&t.focus()};f=r.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),o(e)},onclick:o},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){f||y();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),i=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,r=t.container.getBoundingClientRect();f.style.top=n.pageY-r.top-3+"px",n.pageX-r.left<r.width-70?(f.style.left="",f.style.right="10px"):(f.style.right="",f.style.left=i+o-r.left+"px"),f.style.display="",f.firstChild.style.display="none",t.on("input",x)}function x(e){f&&(f.style.display="none"),t.off("input",x)}function C(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(u.row,u.column);!e.isEmpty()&&n||(t.selection.moveToPosition(u),t.selection.selectWord()),p="wait",w()}function _(){c=null,clearTimeout(c),t.selection.moveToPosition(u);var e=m>=2?t.selection.getLineRange(u.row):t.session.getBracketRange(u);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}function k(){g+=60,d=setInterval((function(){g--<=0&&(clearInterval(d),d=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),g<20&&(b*=.9),g<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(g=0)}),10)}o.addListener(e,"contextmenu",(function(e){if(h){var n=t.textInput.getElement();n.focus()}}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(c||o.length>1)return clearTimeout(c),c=null,a=-1,void(p="zoom");h=t.$mouseHandler.isMousePressed=!0;var r=t.renderer.layerConfig.lineHeight,d=t.renderer.layerConfig.lineHeight,f=e.timeStamp;l=f;var y=o[0],w=y.clientX,x=y.clientY;Math.abs(n-w)+Math.abs(s-x)>r&&(a=-1),n=e.clientX=w,s=e.clientY=x,b=v=0;var k=new i(e,t);if(u=k.getDocumentPosition(),f-a<500&&1==o.length&&!g)m++,e.preventDefault(),e.button=0,_();else{m=0;var S=t.selection.cursor,O=t.selection.isEmpty()?S:t.selection.anchor,E=t.renderer.$cursorLayer.getPixelPosition(S,!0),L=t.renderer.$cursorLayer.getPixelPosition(O,!0),A=t.renderer.scroller.getBoundingClientRect(),M=t.renderer.layerConfig.offset,$=t.renderer.scrollLeft,T=function(e,t){return e/=d,t=t/r-.75,e*e+t*t};if(e.clientX<A.left)return void(p="zoom");var R=T(e.clientX-A.left-E.left+$,e.clientY-A.top-E.top+M),F=T(e.clientX-A.left-L.left+$,e.clientY-A.top-L.top+M);R<3.5&&F<3.5&&(p=R>F?"cursor":"anchor"),p=F<3.5?"anchor":R<3.5?"cursor":"scroll",c=setTimeout(C,450)}a=f}),t),o.addListener(e,"touchend",(function(e){h=t.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),"zoom"==p?(p="",g=0):c?(t.selection.moveToPosition(u),g=0,w()):"scroll"==p?(k(),x()):w(),clearTimeout(c),c=null}),t),o.addListener(e,"touchmove",(function(e){c&&(clearTimeout(c),c=null);var o=e.touches;if(!(o.length>1||"zoom"==p)){var r=o[0],a=n-r.clientX,d=s-r.clientY;if("wait"==p){if(!(a*a+d*d>4))return e.preventDefault();p="cursor"}n=r.clientX,s=r.clientY,e.clientX=r.clientX,e.clientY=r.clientY;var u=e.timeStamp,h=u-l;if(l=u,"scroll"==p){var f=new i(e,t);f.speed=1,f.wheelX=a,f.wheelY=d,10*Math.abs(a)<Math.abs(d)&&(a=0),10*Math.abs(d)<Math.abs(a)&&(d=0),0!=h&&(b=a/h,v=d/h),t._emit("mousewheel",f),f.propagationStopped||(b=v=0)}else{var g=new i(e,t),m=g.getDocumentPosition();"cursor"==p?t.selection.moveCursorToPosition(m):"anchor"==p&&t.selection.setSelectionAnchor(m.row,m.column),t.renderer.scrollCursorIntoView(m),e.preventDefault()}}}),t)}})),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(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,d=e("../config"),u=function(e){var t=this;this.editor=e,new r(this),new s(this),new l(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus(),setTimeout((function(){e.isFocused()||e.focus()}))},a=e.renderer.getMouseEventTarget();i.addListener(a,"click",this.onMouseEvent.bind(this,"click"),e),i.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),i.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),c(e.container,e);var d=e.renderer.$gutter;i.addListener(d,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),i.addListener(d,"click",this.onMouseEvent.bind(this,"gutterclick"),e),i.addListener(d,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),i.addListener(d,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),i.addListener(a,"mousedown",n,e),i.addListener(d,"mousedown",n,e),o.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),i.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),o=e.session.selection.getRange(),r=e.renderer;!o.isEmpty()&&o.insideStart(i.row,i.column)?r.setCursorStyle("default"):r.setCursorStyle("")}}),e)};(function(){this.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,r=this.editor.renderer;r.$isMousePressed=!0;var s=this,l=function(e){if(e){if(o.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new a(e,s.editor),s.$mouseMoved=!0}},c=function(e){n.off("beforeEndOperation",u),clearInterval(h),n.session&&d(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",s.isMousePressed=r.$isMousePressed=!1,r.$keepTextAreaAtCursor&&r.$moveTextAreaToCursor(),s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e),n.endOperation()},d=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1};if(o.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));var u=function(e){s.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(s[s.state+"End"]&&s[s.state+"End"](),s.state="",s.releaseMouse())};n.on("beforeEndOperation",u),n.startOperation({command:{name:"mouse"}}),s.$onCaptureMouseMove=l,s.releaseMouse=i.capture(this.editor.container,l,c);var h=setInterval(d,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(u.prototype),d.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom");function o(e){e.on("click",(function(t){var n=t.getDocumentPosition(),o=e.session,r=o.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?o.removeFold(r):o.expandFold(r),t.stop());var s=t.domEvent&&t.domEvent.target;s&&i.hasCssClass(s,"ace_inline_button")&&i.hasCssClass(s,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,o=e.session;o.foldWidgets&&o.foldWidgets[i]&&e.session.onFoldWidgetClick(i,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,o=e.session,r=o.getParentFoldRangeData(i,!0),s=r.range||r.firstRange;if(s){i=s.start.row;var a=o.getFoldAt(i,o.getLine(i).length,1);a?o.removeFold(a):(o.addFold("...",s),e.renderer.scrollCursorIntoView({row:s.start.row,column:0}))}t.stop()}}))}t.FoldHandler=o})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/event"),r=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var r,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--;)if(r=this.$handlers[l].handleKeyboard(this.$data,e,t,n,i),r&&r.command&&(s="null"==r.command||a.exec(r.command,this.$editor,r.args,i),s&&i&&-1!=e&&1!=r.passEvent&&1!=r.command.passEvent&&o.stopEvent(i),s))break;return s||-1!=e||(r={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),s},this.onCommandKey=function(e,t,n){var o=i.keyCodeToString(n);return this.$callKeyboardHandlers(t,o,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(r.prototype),t.KeyBinding=r})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var i=0,o=0,r=!1,s=!1,a=!1,l=[[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]],c=[[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]],d=0,u=1,h=0,f=1,p=2,g=3,m=4,b=5,v=6,y=7,w=8,x=9,C=10,_=11,k=12,S=13,O=14,E=15,L=16,A=17,M=18,$=[M,M,M,M,M,M,M,M,M,v,b,v,w,b,M,M,M,M,M,M,M,M,M,M,M,M,M,M,b,b,b,v,w,m,m,_,_,_,m,m,m,m,m,C,x,C,x,x,p,p,p,p,p,p,p,p,p,p,x,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,M,M,M,M,M,M,b,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,x,m,_,_,_,_,m,m,m,m,h,m,m,M,m,m,_,_,p,p,m,h,m,m,m,p,h,m,m,m,m,m],T=[w,w,w,w,w,w,w,w,w,w,w,M,M,M,h,f,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w,b,S,O,E,L,A,x,_,_,_,_,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,x,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w];function R(e,t,n,d){var u=i?c:l,h=null,f=null,p=null,g=0,m=null,y=null,x=-1,C=null,_=null,k=[];if(!d)for(C=0,d=[];C<n;C++)d[C]=q(e[C]);for(o=i,r=!1,!1,s=!1,a=!1,_=0;_<n;_++){if(h=g,k[_]=f=j(e,d,k,_),g=u[h][f],m=240&g,g&=15,t[_]=p=u[g][5],m>0)if(16==m){for(C=x;C<_;C++)t[C]=1;x=-1}else x=-1;if(y=u[g][6],y)-1==x&&(x=_);else if(x>-1){for(C=x;C<_;C++)t[C]=p;x=-1}d[_]==b&&(t[_]=0),o|=p}if(a)for(C=0;C<n;C++)if(d[C]==v){t[C]=i;for(var S=C-1;S>=0;S--){if(d[S]!=w)break;t[S]=i}}}function F(e,t,n){if(!(o<e))if(1!=e||i!=u||s){var r,a,l,c,d=n.length,h=0;while(h<d){if(t[h]>=e){r=h+1;while(r<d&&t[r]>=e)r++;for(a=h,l=r-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;h=r}h++}}else n.reverse()}function j(e,t,n,o){var l,c,d,u,$=t[o];switch($){case h:case f:r=!1;case m:case g:return $;case p:return r?g:p;case y:return r=!0,!0,f;case w:return m;case x:return o<1||o+1>=t.length||(l=n[o-1])!=p&&l!=g||(c=t[o+1])!=p&&c!=g?m:(r&&(c=g),c==l?c:m);case C:return l=o>0?n[o-1]:b,l==p&&o+1<t.length&&t[o+1]==p?p:m;case _:if(o>0&&n[o-1]==p)return p;if(r)return m;u=o+1,d=t.length;while(u<d&&t[u]==_)u++;return u<d&&t[u]==p?p:m;case k:d=t.length,u=o+1;while(u<d&&t[u]==k)u++;if(u<d){var T=e[o],R=T>=1425&&T<=2303||64286==T;if(l=t[u],R&&(l==f||l==y))return f}return o<1||(l=t[o-1])==b?m:n[o-1];case b:return r=!1,s=!0,i;case v:return a=!0,m;case S:case O:case L:case A:case E:r=!1;case M:return m}}function q(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?h:$[t]:5==n?/[\u0591-\u05f4]/.test(e)?f:h:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?k:/[\u0660-\u0669\u066b-\u066c]/.test(e)?g:1642==t?_:/[\u06f0-\u06f9]/.test(e)?p:y:32==n&&t<=8287?T[255&t]:254==n&&t>=65136?y:m}t.L=h,t.R=f,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,o){if(e.length<2)return{};var r=e.split(""),s=new Array(r.length),a=new Array(r.length),l=[];i=o?u:d,R(r,l,r.length,n);for(var c=0;c<s.length;s[c]=c,c++);F(2,l,s),F(1,l,s);for(c=0;c<s.length-1;c++)n[c]===g?l[c]=t.AN:l[c]===f&&(n[c]>y&&n[c]<S||n[c]===m||n[c]===M)?l[c]=t.ON_R:c>0&&"ل"===r[c-1]&&/\u0622|\u0623|\u0625|\u0627/.test(r[c])&&(l[c-1]=l[c]=t.R_H,c++);r[r.length-1]===t.DOT&&(l[r.length-1]=t.B),""===r[0]&&(l[0]=t.RLE);for(c=0;c<s.length;c++)a[c]=l[s[c]];return{logicalFromVisual:s,bidiLevels:a}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=q(e.charAt(i)),n||t[i]!=f&&t[i]!=y&&t[i]!=g||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("./lib/bidiutil"),o=e("./lib/lang"),r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,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=r.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&r.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,i=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==i)break;i=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,r=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var s=this.session.$wrapData[e];s&&(void 0===t&&(t=this.getSplitIndex()),t>0&&s.length?(this.wrapIndent=s.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=t<s.length?this.line.substring(s[t-1],s[t]):this.line.substring(s[s.length-1])):this.line=this.line.substring(0,s[t]),t==s.length&&(this.line+=this.showInvisibles?r:i.DOT))}else this.line+=this.showInvisibles?r:i.DOT;var a,l=this.session,c=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||l.isFullWidth(e.charCodeAt(0))?(a="\t"===e?l.getScreenTabSize(t+c):2,c+=a-1,o.stringRepeat(i.DOT,a)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==i.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];i.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=i.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=t,this.charWidths[i.R]=this.charWidths[i.AN]=n,this.charWidths[i.R_H]=.45*n,this.charWidths[i.B]=this.charWidths[i.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(void 0!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,o=i.getVisualFromLogicalIdx(n,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r[o]%2!==0&&o++;for(var a=0;a<o;a++)s+=this.charWidths[r[a]];return!this.session.getOverwrite()&&e>t&&r[o]%2===0&&(s+=this.charWidths[r[o]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,d=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,f=0;f<o.length;f++)h=i.logicalFromVisual[f],n=o[f],c=h>=a&&h<l,c&&!d?u=s:!c&&d&&r.push({left:u,width:s-u}),s+=this.charWidths[n],d=c;if(c&&f===o.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var p=0;p<r.length;p++)r[p].left+=this.rtlLineOffset;return r},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);while(e>n+r/2){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return i>0&&o[i-1]%2!==0&&o[i]%2===0?(e<n&&i--,t=this.bidiMap.logicalFromVisual[i]):i>0&&o[i-1]%2===0&&o[i]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2===0||!this.isRtlDir&&0===i&&o[i]%2!==0?t=1+this.bidiMap.logicalFromVisual[i]:(i>0&&o[i-1]%2!==0&&0!==r&&i--,t=this.bidiMap.logicalFromVisual[i]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(s.prototype),t.BidiHandler=s})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){i.implement(this,r),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,i=t?e.start:e.end;this.$setSelection(n.row,n.column,i.row,i.column)},this.$setSelection=function(e,t,n,i){if(!this.$silent){var o=this.$isEmpty,r=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(i);return o?(i=o.start.row,n=o.end.row):n=i,!0===t?new s(i,0,n,this.session.getLine(n).length):new s(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.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 n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,i.row,i.column),r=o.match(/^\s*/);r[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=r[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var r=o.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(r)&&(n-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(r)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&i.test(t))n++;if(n<1){o.lastIndex=0;while((t=e[n])&&!o.test(t))if(o.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}while((t=e[n])&&i.test(t))n++;if(n>2)break}}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var r=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<r&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){do{t--,i=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var r=o.stringReverse(i),s=this.$shortWordEndIndex(r);return this.moveCursorTo(t,n-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(i){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var i=e("./config"),o=2e3,r=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&-1===s.indexOf("i")&&(s+="i"),c.unicode&&-1===s.indexOf("u")&&(s+="u"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),r[o]=l,o+=u,i.push(d),c.onMatch||(c.onMatch=null)}}i.length||(r[0]=0,i.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}));return t},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,i=!1,o={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,r,s,a,l){return i?i="]"!=a:a?i=!0:s?(n==o.stack&&(o.end=l+1,o.stack=-1),n--):r&&(n++,1!=r.length&&(o.stack=n,o.start=l)),e})),null!=o.end&&/^\)*$/.test(e.substr(o.end))&&(e=e.substring(0,o.start)+e.substr(o.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);t=n[0],"#tmp"===t&&(n.shift(),t=n.shift())}else n=[];var i=t||"start",r=this.states[i];r||(i="start",r=this.states[i]);var s=this.matchMappings[i],a=this.regExps[i];a.lastIndex=0;var l,c=[],d=0,u=0,h={type:null,value:""};while(l=a.exec(e)){var f=s.defaultToken,p=null,g=l[0],m=a.lastIndex;if(m-g.length>d){var b=e.substring(d,m-g.length);h.type==f?h.value+=b:(h.type&&c.push(h),h={type:f,value:b})}for(var v=0;v<l.length-2;v++)if(void 0!==l[v+1]){p=r[s[v]],f=p.onMatch?p.onMatch(g,i,n,e):p.token,p.next&&(i="string"==typeof p.next?p.next:p.next(i,n),r=this.states[i],r||(this.reportError("state doesn't exist",i),i="start",r=this.states[i]),s=this.matchMappings[i],d=m,a=this.regExps[i],a.lastIndex=m),p.consumeLineEnd&&(d=m);break}if(g)if("string"===typeof f)p&&!1===p.merge||h.type!==f?(h.type&&c.push(h),h={type:f,value:g}):h.value+=g;else if(f){h.type&&c.push(h),h={type:null,value:""};for(v=0;v<f.length;v++)c.push(f[v])}if(d==e.length)break;if(d=m,u++>o){u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(d<e.length)h.type&&c.push(h),h={value:e.substring(d,d+=500),type:"overflow"};i="start",n=[];break}}return h.type&&c.push(h),n.length>1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:c,state:n.length?n:i}},this.reportError=i.reportError}).call(r.prototype),t.Tokenizer=r})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,o,r){var s="function"==typeof e?(new e).getRules():e;if(o)for(var a=0;a<o.length;a++)o[a]=t+o[a];else for(var l in o=[],s)o.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype[r?"push":"unshift"];for(a=0;a<o.length;a++)c.apply(this.$rules[o[a]],i.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,i=this.$rules;function o(r){var s=i[r];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null;Array.isArray(l)&&(c=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 d=l.next||l.push;if(d&&Array.isArray(d)){var u=l.stateName;u||(u=l.token,"string"!=typeof u&&(u=u[0]||""),i[u]&&(u+=n++)),i[u]=d,l.next=u,o(u)}else"pop"==d&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)i[h]?i[h].push&&i[h].push.apply(i[h],l.rules[h]):i[h]=l.rules[h];var f="string"==typeof l?l:l.include;if(f&&(c=Array.isArray(f)?f.map((function(e){return i[e]})):i[f]),c){var p=[a,1].concat(c);l.noEscape&&(p=p.filter((function(e){return!e.next}))),s.splice.apply(s,p),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(i).forEach(o,this)},this.createKeywordMapper=function(e,t,n,i){var o=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var r=e[t],s=r.split(i||"|"),a=s.length;a--;){var l=s[a];this.$keywordList.push(l),n&&(l=l.toLowerCase()),o[l]=t}}),this),e=null,n?function(e){return o[e.toLowerCase()]||t}:function(e){return o[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(o.prototype),t.TextHighlightRules=o})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,o=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(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]},this.stepForward=function(){var e;this.$tokenIndex+=1;while(this.$tokenIndex>=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var i,o=e("../../lib/oop"),r=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d={},u={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,d.rangeCount!=e.multiSelect.rangeCount&&(d={rangeCount:e.multiSelect.rangeCount})),d[t])return i=d[t];i=d[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,o,r,s){var l=o.getCursorPosition(),c=r.doc.getLine(l.row);if("{"==s){h(o);var d=o.getSelectionRange(),u=r.doc.getTextRange(d);if(""!==u&&"{"!==u&&o.getWrapBehavioursEnabled())return f(d,u,"{","}");if(p.isSaneInsertion(o,r))return/[\]\}\)]/.test(c[l.column])||o.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(o,r,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(o,r,"{"),{text:"{",selection:[1,1]})}else if("}"==s){h(o);var g=c.substring(l.column,l.column+1);if("}"==g){var m=r.$findOpeningBracket("}",{column:l.column+1,row:l.row});if(null!==m&&p.isAutoInsertedClosing(l,c,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==s||"\r\n"==s){h(o);var b="";p.isMaybeInsertedClosing(l,c)&&(b=a.stringRepeat("}",i.maybeInsertedBrackets),p.clearMaybeInsertedClosing());g=c.substring(l.column,l.column+1);if("}"===g){var v=r.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!v)return null;var y=this.$getIndent(r.getLine(v.row))}else{if(!b)return void p.clearMaybeInsertedClosing();y=this.$getIndent(c)}var w=y+r.getTabString();return{text:"\n"+w+"\n"+y+b,selection:[1,w.length,1,w.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,r){var s=o.doc.getTextRange(r);if(!r.isMultiLine()&&"{"==s){h(n);var a=o.doc.getLine(r.start.row),l=a.substring(r.end.column,r.end.column+1);if("}"==l)return r.end.column++,r;i.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,i,o){if("("==o){h(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return f(r,s,"(",")");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){h(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row),c=l.substring(a.column,a.column+1);if(")"==c){var d=i.$findOpeningBracket(")",{column:a.column+1,row:a.row});if(null!==d&&p.isAutoInsertedClosing(a,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("parens","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==r){h(n);var s=i.doc.getLine(o.start.row),a=s.substring(o.start.column+1,o.start.column+2);if(")"==a)return o.end.column++,o}})),this.add("brackets","insertion",(function(e,t,n,i,o){if("["==o){h(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return f(r,s,"[","]");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){h(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row),c=l.substring(a.column,a.column+1);if("]"==c){var d=i.$findOpeningBracket("]",{column:a.column+1,row:a.row});if(null!==d&&p.isAutoInsertedClosing(a,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("brackets","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==r){h(n);var s=i.doc.getLine(o.start.row),a=s.substring(o.start.column+1,o.start.column+2);if("]"==a)return o.end.column++,o}})),this.add("string_dquotes","insertion",(function(e,t,n,i,o){var r=i.$mode.$quotes||u;if(1==o.length&&r[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;h(n);var s=o,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(!(""===l||1==l.length&&r[l])&&n.getWrapBehavioursEnabled())return f(a,l,s,s);if(!l){var c=n.getCursorPosition(),d=i.doc.getLine(c.row),p=d.substring(c.column-1,c.column),g=d.substring(c.column,c.column+1),m=i.getTokenAt(c.row,c.column),b=i.getTokenAt(c.row,c.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var v,y=m&&/string|escape/.test(m.type),w=!b||/string|escape/.test(b.type);if(g==s)v=y!==w,v&&/string\.end/.test(b.type)&&(v=!1);else{if(y&&!w)return null;if(y&&w)return null;var x=i.$mode.tokenRe;x.lastIndex=0;var C=x.test(p);x.lastIndex=0;var _=x.test(p);if(C||_)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var k=d[c.column-2];if(p==s&&(k==s||x.test(k)))return null;v=!0}return{text:v?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,o){var r=i.$mode.$quotes||u,s=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(s)){h(n);var a=i.doc.getLine(o.start.row),l=a.substring(o.start.column+1,o.start.column+2);if(l==s)return o.end.column++,o}}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new s(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new s(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",l))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,r,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=o.row,i.autoInsertedLineEnd=n+r.substr(o.column),i.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,r)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=o.row,i.maybeInsertedLineStart=r.substr(0,o.column)+n,i.maybeInsertedLineEnd=r.substr(o.column),i.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},o.inherits(p,r),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var i=[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],o=0,r=[],s=0;s<i.length;s+=2)r.push(o+=i[s]),i[s+1]&&r.push(45,o+=i[s+1]);t.wordChars=String.fromCharCode.apply(null,r)})),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(e,t,n){"use strict";var i=e("../config"),o=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),l=e("../lib/lang"),c=e("../token_iterator").TokenIterator,d=e("../range").Range,u=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+a.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var o=t.doc,r=!0,s=!0,a=1/0,c=t.getTabSize(),d=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(l.escapeRegExp).join("|"),f=this.lineCommentStart[0];else g=l.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),d=t.getUseSoftTabs();v=function(e,t){var n=e.match(g);if(n){var i=n[1].length,r=n[0].length;h(e,i,r)||" "!=n[0][r-1]||r--,o.removeInLine(t,i,r)}};var u=f+" ",h=(b=function(e,t){r&&!/\S/.test(e)||(h(e,a,a)?o.insertInLine({row:t,column:a},u):o.insertInLine({row:t,column:a},f))},y=function(e,t){return g.test(e)},function(e,t,n){var i=0;while(t--&&" "==e.charAt(t))i++;if(i%c!=0)return!1;i=0;while(" "==e.charAt(n++))i++;return c>2?i%c!=c-1:i%c==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+l.escapeRegExp(f)+")"),m=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),b=function(e,t){y(e,t)||r&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},p),o.insertInLine({row:t,column:a},f))},v=function(e,t){var n;(n=e.match(m))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&o.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(g.test(e))return!0;for(var i=t.getTokens(n),o=0;o<i.length;o++)if("comment"===i[o].type)return!0}}function w(e){for(var t=n;t<=i;t++)e(o.getLine(t),t)}var x=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!y(e,t)&&(s=!1)):x>e.length&&(x=e.length)})),a==1/0&&(a=x,r=!1,s=!1),d&&a%c!=0&&(a=Math.floor(a/c)*c),w(s?v:b)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,s,a=new c(t,i.row,i.column),l=a.getCurrentToken(),u=(t.selection,t.selection.toOrientedRange());if(l&&/comment/.test(l.type)){var h,f;while(l&&/comment/.test(l.type)){var p=l.value.indexOf(o.start);if(-1!=p){var g=a.getCurrentTokenRow(),m=a.getCurrentTokenColumn()+p;h=new d(g,m,g,m+o.start.length);break}l=a.stepBackward()}a=new c(t,i.row,i.column),l=a.getCurrentToken();while(l&&/comment/.test(l.type)){p=l.value.indexOf(o.end);if(-1!=p){g=a.getCurrentTokenRow(),m=a.getCurrentTokenColumn()+p;f=new d(g,m,g,m+o.end.length);break}l=a.stepForward()}f&&t.remove(f),h&&(t.remove(h),r=h.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);u.start.row==r&&(u.start.column+=s),u.end.row==r&&(u.end.column+=s),t.selection.fromOrientedRange(u)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,r=i.$modes[o];r||(i.$modes[o]=r=new n),i.$modes[t]||(i.$modes[t]=r),this.$embeds.push(t),this.$modes[t]=r}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<s.length;t++)(function(e){var n=s[t],i=e[n];e[s[t]]=function(){return this.$delegator(n,arguments,i)}})(this)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1],r=this.$modes[o];if(r)return r[e].apply(r,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var s=0;s<this.$embeds.length;s++)if(this.$modes[this.$embeds[s]]){var a=i.split(this.$embeds[s]);if(!a[0]&&a[1]){t[0]=a[1];r=this.$modes[this.$embeds[s]];return r[e].apply(r,t)}}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],r=0,s=o.length;r<s;r++)if("string"===typeof o[r].token)/keyword|support|storage/.test(o[r].token)&&n.push(o[r].regex);else if("object"===typeof o[r].token)for(var a=0,l=o[r].token.length;a<l;a++)if(/keyword|support|storage/.test(o[r].token[a])){i=o[r].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){var o=this.$keywordList||this.$createKeywordList();return o.map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(u.prototype),t.Mode=u})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,o=t.start.column,r=e[i]||"";switch(t.action){case"insert":var s=t.lines;if(1===s.length)e[i]=r.substring(0,o)+t.lines[0]+r.substring(o);else{var a=[i,1].concat(t.lines);e.splice.apply(e,a),e[i]=r.substring(0,o)+e[i],e[i+t.lines.length-1]+=r.substring(o)}break;case"remove":var l=t.end.column,c=t.end.row;i===c?e[i]=r.substring(0,o)+r.substring(l):e.splice(i,c-i+1,r.substring(0,o)+e[c].substring(l));break}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function t(t,n,i){var o="insert"==t.action,r=(o?1:-1)*(t.end.row-t.start.row),s=(o?1:-1)*(t.end.column-t.start.column),a=t.start,l=o?a:t.end;return e(n,a,i)?{row:n.row,column:n.column}:e(l,n,!i)?{row:n.row+r,column:n.column+(n.row==l.row?s:0)}:{row:a.row,column:a.column}}i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var o={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:o,value:i})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(r.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return void 0==t&&(t=i.length),t=Math.min(Math.max(t,0),i.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:i,end:o,action:"remove",lines:this.getLinesForRange({start:i,end:o})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,i=t<this.getLength()-1,o=n?e-1:e,r=n?this.getLine(o).length:0,a=i?t+1:t,l=i?0:this.getLine(a).length,c=new s(o,r,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if(e-=n[o].length+i,e<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n[s].length+i;return o+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){var e=new Date,t=n.currentLine,i=-1,o=n.doc,r=t;while(n.lines[t])t++;var s=o.getLength(),a=0;n.running=!1;while(t<s){n.$tokenizeRow(t),i=t;do{t++}while(n.lines[t]);if(a++,a%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),r<=i&&n.fireUpdateEvent(r,i)}}};(function(){i.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||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)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(r.prototype),t.BackgroundTokenizer=r})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),r=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,r){if(this.regExp)for(var s=r.firstRow,a=r.lastRow,l={},c=s;c<=a;c++){var d=this.cache[c];null==d&&(d=i.getMatchOffsets(n.getLine(c),this.regExp),d.length>this.MAX_RANGES&&(d=d.slice(0,this.MAX_RANGES)),d=d.map((function(e){return new o(c,e.offset,c,e.offset+e.length)})),this.cache[c]=d.length?d:"");for(var u=d.length;u--;){var h=d[u].toScreenRange(n),f=h.toString();l[f]||(l[f]=!0,t.drawSingleLineMarker(e,h,this.clazz,r))}}}}).call(r.prototype),t.SearchHighlight=r})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,o,r,s=0,a=this.folds,l=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c<a.length;c++){if(i=a[c],o=i.range.compareStart(t,n),-1==o)return void e(null,t,n,s,l);if(r=e(null,i.start.row,i.start.column,s,l),r=!r&&e(i.placeholder,i.start.row,i.start.column,s),r||0===o)return;l=!i.sameRow,s=i.end.column}e(null,t,n,s,l)},this.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(n=this.folds[o],i=n.range.compareEnd(e,t),-1==i)return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,o,r=this.getNextFoldTo(e,t);if(r)if(i=r.fold,"inside"==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){o=this.folds;var s=o.indexOf(i);for(0===s&&(this.start.column+=n),s;s<o.length;s++){if(i=o[s],i.start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,r=this.folds,s=this.foldData,a=r.indexOf(i),l=r[a-1];this.end.row=l.end.row,this.end.column=l.end.column,r=r.splice(a,r.length-a);var c=new o(s,r);return s.splice(s.indexOf(this)+1,0,c),c},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if(e-=i.start.column-t,e<0)return{row:i.start.row,column:i.start.column+e};if(e-=i.placeholder.length,e<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(o.prototype),t.FoldLine=o})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,o=i.comparePoints,r=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=o,this.pointIndex=function(e,t,n){for(var i=this.ranges,r=n||0;r<i.length;r++){var s=i[r],a=o(e,s.end);if(!(a>0)){var l=o(e,s.start);return 0===a?t&&0!==l?-r-2:r:l>0||0===l&&!t?r:-r-1}}return-r-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort((function(e,t){return o(e.start,t.start)}));for(var n,i=t[0],r=1;r<t.length;r++){n=i,i=t[r];var s=o(n.end,i.start);s<0||(0!=s||n.isEmpty()||i.isEmpty())&&(o(n.end,i.end)<0&&(n.end.row=i.end.row,n.end.column=i.end.column),t.splice(r,1),e.push(i),i=n,r--)}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:t,column:0},i);o<0&&(o=-o-1);for(var r=[],s=i;s<o;s++)r.push(n[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a;s++){var l=r[s];if(l.end.row>=i)break}if("insert"==e.action)for(var c=o-i,d=-t.column+n.column;s<a;s++){l=r[s];if(l.start.row>i)break;if(l.start.row==i&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=d,l.start.row+=c)),l.end.row==i&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&d>0&&s<a-1&&l.end.column>l.start.column&&l.end.column==r[s+1].start.column&&(l.end.column-=d),l.end.column+=d,l.end.row+=c}}else for(c=i-o,d=t.column-n.column;s<a;s++){l=r[s];if(l.start.row>o)break;l.end.row<o&&(i<l.end.row||i==l.end.row&&t.column<l.end.column)?(l.end.row=i,l.end.column=t.column):l.end.row==o?l.end.column<=n.column?(c||l.end.column>t.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=d,l.end.row+=c):l.end.row>o&&(l.end.row+=c),l.start.row<o&&(i<l.start.row||i==l.start.row&&t.column<l.start.column)?(l.start.row=i,l.start.column=t.column):l.start.row==o?l.start.column<=n.column?(c||l.start.column>t.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=d,l.start.row+=c):l.start.row>o&&(l.start.row+=c)}if(0!=c&&s<a)for(;s<a;s++){l=r[s];l.start.row+=c,l.end.row+=c}}}).call(r.prototype),t.RangeList=r})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("../range_list").RangeList,o=e("../lib/oop"),r=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){s(e.start,t),s(e.end,t)}function l(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function c(e,t){l(e.start,t),l(e.end,t)}o.inherits(r,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new r(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){a(e,this.start);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length;i++)if(o=this.subFolds[i].range.compare(t,n),1!=o)break;var r=this.subFolds[i],s=0;if(0==o){if(r.range.containsRange(e))return r.addSubFold(e);s=1}t=e.range.end.row,n=e.range.end.column;var l=i;for(o=-1;l<this.subFolds.length;l++)if(o=this.subFolds[l].range.compare(t,n),1!=o)break;0==o&&l++;for(var c=this.subFolds.splice(i,l-i,e),d=0==o?c.length-1:c.length,u=s;u<d;u++)e.addSubFold(c[u]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return c(e,this.start)}}.call(r.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("./fold_line").FoldLine,r=e("./fold").Fold,s=e("../token_iterator").TokenIterator;function a(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o[r].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return o[r]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,n.column-=1;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(s=c.range.compareRange(e),-2==s)break;if(2!=s){if(42==s)break;o.push(c)}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(i=i||this.getFoldLine(e),!i)return null;for(var o,r,s={end:{column:0}},a=0;a<i.folds.length;a++){r=i.folds[a];var l=r.range.compareEnd(e,t);if(-1==l){o=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return o||(o=this.getLine(r.start.row).substring(s.end.column)),-1==n?o.substring(0,t-s.end.column):1==n?o.substring(t-s.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n[o],s=r.end.row,a=r.start.row;if(s>=t){a<t&&(a>=e?i-=t-a:i=0);break}s>=e&&(i-=a>=e?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,s=!1;e instanceof r?n=e:(n=new r(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,d=n.end.column,u=this.getFoldAt(a,l,1),h=this.getFoldAt(c,d,-1);if(u&&h==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),h&&!h.range.isEnd(c,d)&&this.removeFold(h);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),n.collapseChildren||f.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<i.length;p++){var g=i[p];if(c==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=i[p+1];if(m&&m.start.row==c){g.merge(m);break}}break}if(c<=g.start.row)break}return s||(g=this.$addFoldLine(new o(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;if(1==r.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);r=s.folds,r.shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e)n=new i(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new i(e,0,e,this.getLine(e).length);else if("row"in e)n=i.fromPoints(e,e);else{if(Array.isArray(e))return o=[],e.forEach((function(e){o=o.concat(this.unfold(e))}),this),o;n=e}o=this.getFoldsInRangeList(n);var r=o;while(1==o.length&&i.comparePoints(o[0].start,n.start)<0&&i.comparePoints(o[0].end,n.end)>0)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(o):this.expandFolds(o),r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,o){null==i&&(i=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var r=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<i)){if(t==i){if(n<o)return;a=Math.max(o,a)}s+=null!=e?e:r.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,i){var o,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,i):(o=this.doc.getLine(e),o.substring(i||0,t||o.length))},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new o(e,n)})),e},this.toggleFold=function(e){var t,n,i=this.selection,o=i.getRange();if(o.isEmpty()){var r=o.start;if(t=this.getFoldAt(r.row,r.column),t)return void this.expandFold(t);(n=this.findMatchingBracket(r))?1==o.comparePoint(n)?o.end=n:(o.start=n,o.start.column++,o.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==o.comparePoint(n)?o.end=n:o.start=n,o.start.column++):o=this.getCommentFoldRange(r.row,r.column)||o}else{var s=this.getFoldsInRange(o);if(e&&s.length)return void this.expandFolds(s);1==s.length&&(t=s[0])}if(t||(t=this.getFoldAt(o.start.row,o.start.column)),t&&t.range.toString()==o.toString())this.expandFold(t);else{var a="...";if(!o.isMultiLine()){if(a=this.getTextRange(o),a.length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,o)}},this.getCommentFoldRange=function(e,t,n){var o=new s(this,e,t),r=o.getCurrentToken(),a=r&&r.type;if(r&&/^comment|string/.test(a)){a=a.match(/comment|string/)[0],"comment"==a&&(a+="|doc-start");var l=new RegExp(a),c=new i;if(1!=n){do{r=o.stepBackward()}while(r&&l.test(r.type)&&!/^comment.end/.test(r.type));r=o.stepForward()}if(c.start.row=o.getCurrentTokenRow(),c.start.column=o.getCurrentTokenColumn()+(/^comment.start/.test(r.type)?r.value.length:2),o=new s(this,e,t),-1!=n){var d=-1;do{if(r=o.stepForward(),-1==d){var u=this.getState(o.$row);l.test(u)||(d=o.$row)}else if(o.$row>d)break}while(r&&l.test(r.type)&&!/^comment.start/.test(r.type));r=o.stepBackward()}else r=o.getCurrentToken();return c.end.row=o.getCurrentTokenRow(),c.end.column=o.getCurrentTokenColumn(),/^comment.end/.test(r.type)||(c.end.column+=r.value.length-2),c}},this.foldAll=function(e,t,n,i){void 0==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength(),e=e||0;for(var r=e;r<t;r++)if(null==o[r]&&(o[r]=this.getFoldWidget(r)),"start"==o[r]&&(!i||i(r))){var s=this.getFoldWidgetRange(r);s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(r=s.end.row,s.collapseChildren=n,this.addFold("...",s))}}},this.foldToLevel=function(e){this.foldAll();while(e-- >0)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),i=0;i<n.length;i++){var o=n[i];if("text"!=o.type||!/^\s+$/.test(o.value))return!!/comment/.test(o.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,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.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var i,o=e-1;while(o>=0){var r=n[o];if(null==r&&(r=n[o]=this.getFoldWidget(o)),"start"==r){var s=this.getFoldWidgetRange(o);if(i||(i=s),s&&s.end.row>=e)break}o--}return{range:-1!==o&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},i=this.$toggleFoldWidget(e,n);if(!i){var o=t.target||t.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),o="end"===n?-1:1,r=this.getFoldAt(e,-1===o?0:i.length,o);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1),r&&s.isEqual(r.range)))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange,n){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=a})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,o=e("../range").Range;function r(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,r=n.charAt(e.column-1),s=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(s||(r=n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(/([\(\[\{])|([\)\]\}])/),i=!1),!s)return null;if(s[1]){var a=this.$findClosingBracket(s[1],e);if(!a)return null;t=o.fromPoints(e,a),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{a=this.$findOpeningBracket(s[2],e);if(!a)return null;t=o.fromPoints(a,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),i=/([\(\[\{])|([\)\]\}])/,r=!t&&n.charAt(e.column-1),s=r&&r.match(i);if(s||(r=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(i)),!s)return null;var a=new o(e.row,e.column-1,e.row,e.column),l=s[1]?this.$findClosingBracket(s[1],e):this.$findOpeningBracket(s[2],e);if(!l)return[a];var c=new o(l.row,l.column,l.row,l.column+1);return[a,c]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;while(1){while(l>=0){var d=c.charAt(l);if(d==o){if(r-=1,0==r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(r+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;c=a.value,l=c.length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var l=t.column-s.getCurrentTokenColumn();while(1){var c=a.value,d=c.length;while(l<d){var u=c.charAt(l);if(u==o){if(r-=1,0==r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(r+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}},this.getMatchingTags=function(e){var t=new i(this,e.row,e.column),n=this.$findTagName(t);if(n){var o=t.stepBackward();return"<"===o.value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)}},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,i=!1;if(t&&-1===t.type.indexOf("tag-name"))do{t=i?e.stepBackward():e.stepForward(),t&&("/>"===t.value?i=!0:-1!==t.type.indexOf("tag-name")&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,i=t.value,r=t.value,s=0,a=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),c=!1;do{if(n=t,t=e.stepForward(),t){if(">"===t.value&&!c){var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);c=!0}if(-1!==t.type.indexOf("tag-name")){if(i=t.value,r===i)if("<"===n.value)s++;else if("</"===n.value&&(s--,s<0)){e.stepBackward();var u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var h=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(t=e.stepForward(),!t||">"!==t.value)return;var f=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else if(r===i&&"/>"===t.value&&(s--,s<0))u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),h=u,f=h,d=new o(l.end.row,l.end.column,l.end.row,l.end.column+1)}}while(t&&s>=0);if(a&&d&&u&&f&&l&&h)return{openTag:new o(a.start.row,a.start.column,d.end.row,d.end.column),closeTag:new o(u.start.row,u.start.column,f.end.row,f.end.column),openTagName:l,closeTagName:h}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),i=t.value,r=0,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+2,c=new o(s,a,s,l);e.stepForward();var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(t=e.stepForward(),t&&">"===t.value){var u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(i===t.value)if("<"===n.value){if(r++,r>0){var h=new o(s,a,s,l),f=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&">"!==t.value);var p=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&r--}else if("/>"===t.value){var g=0,m=n;while(m){if(-1!==m.type.indexOf("tag-name")&&m.value===i){r--;break}if("<"===m.value)break;m=e.stepBackward(),g++}for(var b=0;b<g;b++)e.stepForward()}}while(n&&r<=0);return f&&p&&c&&u&&h&&d?{openTag:new o(f.start.row,f.start.column,p.end.row,p.end.column),closeTag:new o(c.start.row,c.start.column,u.end.row,u.end.column),openTagName:h,closeTagName:d}:void 0}}}t.BracketMatch=r})),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/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./document").Document,h=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new h((new c).getTokenizer(),this);var n=this;this.bgTokenizer.on("update",(function(e){n._signal("tokenizerUpdate",e)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new u(e)),this.setDocument(e),this.selection=new l(this),this.$bidiHandler=new r(this),s.resetOptions(this),this.setMode(t),s._signal("session",this),this.destroyed=!1};p.$uid=0,function(){i.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,i=e.length-1;while(n<=i){var o=n+i>>1,r=e[o];if(t>r)n=o+1;else{if(!(t<r))return o;i=o-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),o=0;if(null==t){var r=i.length-1;o=this.getLine(e).length}else for(r=0;r<i.length;r++)if(o+=i[r].value.length,o>=t)break;return n=i[r],n?(n.index=r,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var o=this.$markerId++,r={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=r,this._signal("changeFrontMarker")):(this.$backMarkers[o]=r,this._signal("changeBackMarker")),o},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var o=new d(e,0,t,1/0);return o.id=this.addMarker(o,n,"fullLine",i),o},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var r=t;if(r>0){do{r--}while(r>=0&&n.charAt(r).match(o));r++}var s=t;while(s<n.length&&n.charAt(s).match(o))s++;return new d(e,r,e,s)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),i=this.getLine(n.end.row);while(i.charAt(n.end.column).match(/[ \t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=s.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,s.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=e.getTokenizer();if(void 0!==i.on){var o=this.onReloadTokenizer.bind(this);i.on("update",o)}this.bgTokenizer.setTokenizer(i),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if(l=r.end.row+1,l>=a)break;r=this.$foldData[o++],s=r?r.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];"insert"!=i.action&&"remove"!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var s=e[r];s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=d.fromPoints(s.start,s.start))):i=n(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start))}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),o=this.getFoldsInRange(e),r=d.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row,a=s?-e.end.column:e.start.column-e.end.column;a&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=a),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=a)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),o.length){var l=e.start,c=r.start;s=c.row-l.row,a=c.column-l.column;this.addFolds(o.map((function(e){return e=e.clone(),e.start.row==l.row&&(e.start.column+=a),e.end.row==l.row&&(e.end.column+=a),e.start.row+=s,e.end.row+=s,e})))}return r},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i;++s)if(" "!=r.charAt(s))break;s<i&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){var i=this.getRowFoldStart(e+n);if(i<0)return 0;var o=i-e}else if(n>0){i=this.getRowFoldEnd(t+n);if(i>this.doc.getLength()-1)return 0;o=i-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);o=t-e+1}var r=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map((function(e){return e=e.clone(),e.start.row+=o,e.end.row+=o,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+o,a),s.length&&this.addFolds(s),o},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=this.getFoldLine(o.row),u=0;if(d){d.addRemoveChars(o.row,o.column,i.column-o.column),d.shiftRow(-a);var h=this.getFoldLine(r);h&&h!==d&&(h.merge(d),d=h),u=c.indexOf(d)+1}for(u;u<c.length;u++){d=c[u];d.start.row>=o.row&&d.shiftRow(-a)}s=r}else{var f=Array(a);f.unshift(r,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,f);c=this.$foldData,d=this.getFoldLine(r),u=0;if(d){var g=d.range.compareInside(i.row,i.column);0==g?(d=d.split(i.row,i.column),d&&(d.shiftRow(a),d.addRemoveChars(s,0,o.column-i.column))):-1==g&&(d.addRemoveChars(r,0,o.column-i.column),d.shiftRow(a)),u=c.indexOf(d)+1}for(u;u<c.length;u++){d=c[u];d.start.row>=r&&d.shiftRow(a)}}else{a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a);d=this.getFoldLine(r);d&&d.addRemoveChars(r,i.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var i,o,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,d=e;t=Math.min(t,s.length-1);while(d<=t)o=this.getFoldLine(d,o),o?(i=[],o.walk(function(e,t,o,a){var l;if(null!=e){l=this.$getDisplayTokens(e,i.length),l[0]=n;for(var c=1;c<l.length;c++)l[c]=r}else l=this.$getDisplayTokens(s[t].substring(a,o),i.length);i=i.concat(l)}.bind(this),o.end.row,s[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(i,c,a),d=o.end.row+1):(i=this.$getDisplayTokens(s[d]),l[d]=this.$computeWrapSplits(i,c,a),d++)};var e=1,t=2,n=3,r=4,l=9,u=10,h=11,p=12;function g(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,i,o){if(0==e.length)return[];var s=[],a=e.length,c=0,d=0,f=this.$wrapAsCode,g=this.$indentedSoftWrap,m=i<=Math.max(2*o,8)||!1===g?0:Math.floor(i/2);function b(){var t=0;if(0===m)return t;if(g)for(var n=0;n<e.length;n++){var i=e[n];if(i==u)t+=1;else{if(i!=h){if(i==p)continue;break}t+=o}}return f&&!1!==g&&(t+=o),Math.min(t,m)}function v(t){for(var n=t-c,i=c;i<t;i++){var o=e[i];12!==o&&2!==o||(n-=1)}s.length||(y=b(),s.indent=y),d+=n,s.push(d),c=t}var y=0;while(a-c>i-y){var w=c+i-y;if(e[w-1]>=u&&e[w]>=u)v(w);else if(e[w]!=n&&e[w]!=r){var x=Math.max(w-(i-(i>>2)),c-1);while(w>x&&e[w]<n)w--;if(f){while(w>x&&e[w]<n)w--;while(w>x&&e[w]==l)w--}else while(w>x&&e[w]<u)w--;w>x?v(++w):(w=c+i,e[w]==t&&w--,v(w-y))}else{for(w;w!=c-1;w--)if(e[w]==n)break;if(w>c){v(w);continue}for(w=c+i,w;w<e.length;w++)if(e[w]!=r)break;if(w==e.length)break;v(w)}}return s},this.$getDisplayTokens=function(n,i){var o,r=[];i=i||0;for(var s=0;s<n.length;s++){var a=n.charCodeAt(s);if(9==a){o=this.getScreenTabSize(r.length+i),r.push(h);for(var c=1;c<o;c++)r.push(p)}else 32==a?r.push(u):a>39&&a<48||a>57&&a<64?r.push(l):a>=4352&&g(a)?r.push(e,t):r.push(e)}return r},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),n=n||0,o=0;o<e.length;o++)if(i=e.charCodeAt(o),9==i?n+=this.getScreenTabSize(n):i>=4352&&g(i)?n+=2:n+=1,n>t)break;return[n,o]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,o,r=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&d>=0){a=c[d],r=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;var f=this.getLength()-1,p=this.getNextFoldLine(r),g=p?p.start.row:1/0;while(a<=e){if(l=this.getRowLength(r),a+l>e||r>=f)break;a+=l,r++,r>g&&(r=p.end.row+1,p=this.getNextFoldLine(r,p),g=p?p.start.row:1/0),h&&(this.$docRowCache.push(r),this.$screenRowCache.push(a))}if(p&&p.start.row<=r)i=this.getFoldDisplayLine(p),r=p.start.row;else{if(a+l<=e||r>f)return{row:f,column:this.getLine(f).length};i=this.getLine(r),p=null}var m=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[r];v&&(o=v[b],b>0&&v.length&&(m=v.indent,s=v[b-1]||v[v.length-1],i=i.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+b,r,b)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&s>=o&&(s=o-1),p?p.idxToPosition(s):{row:r,column:s}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,o=null,r=null;r=this.getFoldAt(e,t,1),r&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&c>=0){a=l[c],i=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;var h=this.getNextFoldLine(a),f=h?h.start.row:1/0;while(a<e){if(a>=f){if(s=h.end.row+1,s>e)break;h=this.getNextFoldLine(s,h),f=h?h.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var p="";h&&a>=f?(p=this.getFoldDisplayLine(h,e,t),o=h.start.row):(p=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){var b=0;while(p.length>=m[b])i++,b++;p=p.substring(m[b-1]||0,p.length),g=b>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,i=0,o=(a=0,t=this.$foldData[a++],t?t.start.row:1/0);while(i<n){var r=this.$wrapData[i];e+=r?r.length+1:1,i++,i>o&&(i=t.end.row+1,t=this.$foldData[a++],o=t?t.start.row:1/0)}}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)t=s[a],e-=t.end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var o,r;for(n||(n=1/0),i=i||0,r=0;r<t.length;r++)if(o=t.charAt(r),i+="\t"===o?this.getScreenTabSize(i):e.getCharacterWidth(o),i>n)break;return[i,r]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=g}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),s.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,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(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),o=e("./lib/oop"),r=e("./range").Range,s=function(){this.$options={}};function a(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,o,s){return i=new r(e,n,o,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,d=o.length-c;e:for(var u=a.offset||0;u<=d;u++){for(var h=0;h<c;h++)if(-1==o[u+h].search(a[h]))continue e;var f=o[u],p=o[u+c-1],g=f.length-f.match(a[0])[0].length,m=p.match(a[c-1])[0].length;l&&l.end.row===u&&l.end.column>g||(s.push(l=new r(u,g,u+c-1,m)),c>2&&(u=u+c-2))}}else for(var b=0;b<o.length;b++){var v=i.getMatchOffsets(o[b],a);for(h=0;h<v.length;h++){var y=v[h];s.push(new r(b,y.offset,b,y.offset+y.length))}}if(n){var w=n.start.column,x=n.end.column;b=0,h=s.length-1;while(b<h&&s[b].start.column<w&&0==s[b].start.row)b++;var C=n.end.row-n.start.row;while(b<h&&s[h].end.column>x&&s[h].end.row==C)h--;for(s=s.slice(b,h+1),b=0,h=s.length;b<h;b++)s[b].start.row+=n.start.row,s[b].end.row+=n.start.row}return s},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=i.escapeRegExp(n)),e.wholeWord&&(n=a(n,e));var o=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,o);try{var r=new RegExp(n,o)}catch(s){r=!1}return e.re=r},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(r){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=1==t.backwards,o=0!=t.skipCurrent,r=t.range,s=t.start;s||(s=r?r[i?"end":"start"]:e.selection.getRange()),s.start&&(s=s[o!=i?"end":"start"]);var a=r?r.start.row:0,l=r?r.end.row:e.getLength()-1;if(i)var c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n--;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,a=s.row;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n+=1;n<=l;n++)if(u(n,0,e))return;if(0!=t.wrap)for(n=a,l=s.row;n<=l;n++)if(u(n,0,e))return}};if(t.$isMultiLine)var d=n.length,u=function(t,o,r){var s=i?t-d+1:t;if(!(s<0||s+d>e.getLength())){var a=e.getLine(s),l=a.search(n[0]);if(!(!i&&l<o||-1===l)){for(var c=1;c<d;c++)if(a=e.getLine(s+c),-1==a.search(n[c]))return;var u=a.match(n[d-1])[0].length;if(!(i&&u>o))return!!r(s,l,s+d-1,u)||void 0}}};else if(i)u=function(t,i,o){var r,s=e.getLine(t),a=[],l=0;n.lastIndex=0;while(r=n.exec(s)){var c=r[0].length;if(l=r.index,!c){if(l>=s.length)break;n.lastIndex=l+=1}if(r.index+c>i)break;a.push(r.index,c)}for(var d=a.length-1;d>=0;d-=2){var u=a[d-1];c=a[d];if(o(t,u,t,u+c))return!0}};else u=function(t,i,o){var r,s,a=e.getLine(t);n.lastIndex=i;while(s=n.exec(a)){var l=s[0].length;if(r=s.index,o(t,r,t,r+l))return!0;if(!l&&(n.lastIndex=r+=1,r>=a.length))return!1}};return{forEach:c}}}).call(s.prototype),t.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/useragent"),r=i.KEY_MODS;function s(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){s.call(this,e,t),this.$singleCommand=!1}a.prototype=s.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var o in i){var r=i[o];if(r==e)delete i[o];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i[o]=r[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=r[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var s=this.parseKeys(e),a=r[s.hashId]+s.key;this._addCommandToBinding(i+a,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var o,r=this.commandKeyBinding;if(n)if(!r[t]||this.$singleCommand)r[t]=n;else{Array.isArray(r[t])?-1!=(o=r[t].indexOf(n))&&r[t].splice(o,1):r[t]=[r[t]],"number"!=typeof i&&(i=e(n));var s=r[t];for(o=0;o<s.length;o++){var a=s[o],l=e(a);if(l>i)break}s.splice(o,0,n)}else delete r[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),o=i[n];if(i.FUNCTION_KEYS[o])n=i.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var r=0,s=t.length;s--;){var a=i.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;r|=a}return{key:n,hashId:r}},this.findKeyCommand=function(e,t){var n=r[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=r[t]+n,s=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:s}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,r=e("../lib/event_emitter").EventEmitter,s=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)}))};i.inherits(s,o),function(){i.implement(this,r),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._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(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(s.prototype),t.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=e("../config"),r=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!==typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()),l=a.replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),d=n.row+1;d<=o.row+1;d++){var u=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(d)));0!==u.length&&(u=" "+u),c+=u}o.row+1<e.session.doc.getLength()-1&&(c+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new r(n.row,0,o.row+2,0),c),l>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+l)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var s=0;s<i.length;s++)s==i.length-1&&(i[s].end.row===t&&i[s].end.column===n||o.push(new r(i[s].end.row,i[s].end.column,t,n))),0===s?0===i[s].start.row&&0===i[s].start.column||o.push(new r(0,0,i[s].start.row,i[s].start.column)):o.push(new r(i[s-1].end.row,i[s-1].end.column,i[s].start.row,i[s].start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<o.length;s++)e.selection.addRange(o[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),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/clipboard"],(function(e,t,n){"use strict";var i=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,d=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,f=e("./search").Search,p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,b=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,w=e("./clipboard"),x=function(e,t,n){this.$toDestroy=[];var i=e.getContainerElement();this.container=i,this.renderer=e,this.id="editor"+ ++x.$uid,this.commands=new m(a.isMac?"mac":"win",b),"object"==typeof document&&(this.textInput=new l(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new d(this)),this.keyBinding=new u(this),this.$search=(new f).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||n&&n.session||new h("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)};x.$uid=0,function(){o.implement(this,g),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var r=this.selection.toJSON();this.curOp.selectionAfter=r,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(r),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){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);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.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=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),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(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),i=e.getKeyboardHandler(),o=i&&i.$getDirectionForHighlight&&i.$getDirectionForHighlight(e),r=t.getMatchingBracketRanges(n,o);if(!r){var s=new y(t,n.row,n.column),a=s.getCurrentToken();if(a&&/\b(?:tag-open|tag-name)/.test(a.type)){var l=t.getMatchingTags(n);l&&(r=[l.openTagName,l.closeTagName])}}if(!r&&t.$mode.getMatching&&(r=t.$mode.getMatching(e.session)),r){var c="ace_bracket";Array.isArray(r)?1==r.length&&(c="ace_error_bracket"):r=[r],2==r.length&&(0==p.comparePoints(r[0].end,r[1].start)?r=[p.fromPoints(r[0].start,r[1].end)]:0==p.comparePoints(r[0].start,r[1].end)&&(r=[p.fromPoints(r[1].start,r[0].end)])),t.$bracketHighlight={ranges:r,markerIds:r.map((function(e){return t.addMarker(e,c,"text")}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),r=o.substring(n,i);if(!(r.length>5e3)&&/[\w\d]/.test(r)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=o.substring(n-1,i+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),w.lineMode=!!n&&s.text,s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===w.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){i.insert({row:e.start.row,column:0},t)}));else{var o=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,s=2==o.length&&(!o[0]||!o[1]);if(o.length!=r.length||s)return this.commands.exec("insertstring",this,t);for(var a=r.length;a--;){var l=r[a];l.isEmpty()||i.remove(l),i.insert(l.start,o[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(n.getState(o.row),"insertion",this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){s=new p.fromPoints(o,o);s.end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();o=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(o.row);if(o.column>a.search(/\S|$/)){var l=a.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,d=n.getState(o.row),u=(a=n.getLine(o.row),i.checkOutdent(d,a,e));if(n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new p(o.row,c+r.selection[0],o.row,c+r.selection[1])):this.selection.setSelectionRange(new p(o.row+r.selection[0],r.selection[1],o.row+r.selection[2],r.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var h=i.getNextLineIndent(d,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},h)}u&&i.autoOutdent(d,n,o.row)}},this.autoIndent=function(){var e,t,n=this.session,i=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var r,s,a,l="",c="",d="",u=n.getTabString(),h=e;h<=t;h++)h>0&&(l=n.getState(h-1),c=n.getLine(h-1),d=i.getNextLineIndent(l,c,u)),r=n.getLine(h),s=i.$getIndent(r),d!==s&&(s.length>0&&(a=new p(h,0,h,s.length),n.remove(a)),d.length>0&&n.insert({row:h,column:0},d)),i.autoOutdent(l,n,h)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()}if(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd){n=this.selection.getRange();n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n)}},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if("\n"==r[r.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),i=new p(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),i=new p(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){d=this.$getSelectedRows();return void e.indentRows(d.first,d.last,"\t")}}var i=e.getLine(t.start.row),o=t.start,r=e.getTabSize(),a=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var l=r-a%r,c=s.stringRepeat(" ",l);else{l=a%r;while(" "==i[t.start.column-1]&&l)t.start.column--,l--;this.selection.setSelectionRange(t),c="\t"}return this.insert(c)}var d=this.$getSelectedRows();e.indentRows(d.first,d.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var o=new p(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var i=this.session.getLine(e);while(n.lastIndex<t){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t){var r={value:o[0],start:o.index,end:o.index+o[0].length};return r}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new p(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var r=this.getNumberAt(t,n);if(r){var s=r.value.indexOf(".")>=0?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e,l/=Math.pow(10,a);var c=l.toFixed(a),d=new p(t,r.start,t,r.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},this.$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"],["&&","||"],["==","!="]],this.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),r=t-i-1;r<0&&(r=0);var a=0,l=0,c=this;n.match(/[A-Za-z0-9_]+/)&&o.forEach((function(t,o){l=a+t.length,r>=a&&r<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+i),c.selection.selectTo(e,l+i)),a=l}));for(var d,u=this.$toggleWordPairs,h=0;h<u.length;h++)for(var f=u[h],p=0;p<=1;p++){var g=+!p,m=n.match(new RegExp("^\\s?_?("+s.escapeRegExp(f[p])+")\\s?$","i"));if(m){var b=n.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(m[1])+")($|\\s)","g"));b&&(d=n.replace(new RegExp(s.escapeRegExp(f[p]),"i"),(function(e){var t=f[g];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+f[g].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(d),d="")}}},this.findLinkAt=function(e,t){var n,o,r=this.session.getLine(e),s=r.split(/((?:https?|ftp):\/\/[\S]+)/),a=t;a<0&&(a=0);var l,c=0,d=0;try{for(var u=i(s),h=u.next();!h.done;h=u.next()){var f=h.value;if(d=c+f.length,a>=c&&a<=d&&f.match(/((?:https?|ftp):\/\/[\S]+)/)){l=f.replace(/[\s:.,'";}\]]+$/,"");break}c=d}}catch(p){n={error:p}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return l},this.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var r=i?n.start:n.end,s=t.insert(r,t.getTextRange(n),!1);n.start=r,n.end=s,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var r=o.toOrientedRange();n=this.$getSelectedRows(r),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),o.fromOrientedRange(r)}else{var s=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0),n=this.$getSelectedRows(s[d]);var h=n.first,f=n.last;while(++d<c){l&&s[d].moveBy(l,0);var p=this.$getSelectedRows(s[d]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}d--,a=this.session.$moveLines(h,f,t?0:e),t&&-1==e&&(u=d+1);while(u<=d)s[u].moveBy(a,0),u++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),o=i.getCurrentToken(),r=0;o&&-1!==o.type.indexOf("tag-name")&&(o=i.stepBackward());var s=o||i.stepForward();if(s){var a,l,c=!1,d={},u=n.column-s.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;u<s.value.length&&!c;u++)if(h[s.value[u]])switch(l=h[s.value[u]]+"."+s.type.replace("rparen","lparen"),isNaN(d[l])&&(d[l]=0),s.value[u]){case"(":case"[":case"{":d[l]++;break;case")":case"]":case"}":d[l]--,-1===d[l]&&(a="bracket",c=!0);break}}else-1!==s.type.indexOf("tag-name")&&(isNaN(d[s.value])&&(d[s.value]=0),"<"===o.value&&r>1?d[s.value]++:"</"===o.value&&d[s.value]--,-1===d[s.value]&&(a="tag",c=!0));c||(o=s,r++,s=i.stepForward(),u=0)}while(s&&!c);if(a){var f,g;if("bracket"===a)f=this.session.getBracketRange(n),f||(f=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1),g=f.start,(t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(f=this.session.getBracketRange(g)));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;if(f=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2),0===f.compare(n.row,n.column)){var m=this.session.getMatchingTags(n);m&&(m.openTag.contains(n.row,n.column)?(f=m.closeTag,g=f.start):(f=m.openTag,g=m.closeTag.start.row===n.row&&m.closeTag.start.column===n.column?f.end:f.start))}g=g||f.start}g=f&&f.cursor||g,g&&(e?f&&t?this.selection.setRange(f):f&&f.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorLeft()}else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorRight()}else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),i):i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;r>=0;--r)this.$tryReplace(n[r],e)&&i++;return this.selection.setSelectionRange(o),i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var i=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var r=this.$search.find(this.session);return t.preventScroll?r:r?(this.revealRange(r,n),r):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.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()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var r=this.on("changeSelection",(function(){i=!0})),s=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,r=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=r.top-s.offset;i=r.top>=0&&a+t.top<0||!(r.top<s.height&&r.top+t.top+s.lineHeight>window.innerHeight)&&null,null!=i&&(o.style.top=a+"px",o.style.left=r.left+"px",o.style.height=s.lineHeight+"px",o.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",r),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var i=this;v.loadModule("./ext/prompt",(function(o){o.prompt(i,e,t,n)}))}}.call(x.prototype),v.defineOptions(x.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){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(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?C.attach(this):C.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?C.attach(this):C.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder");var t=r.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},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",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 C={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=x})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};function o(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){while(n<t-1){var o=h(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return!0}}}(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!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),e.id=this.$rev=++this.$maxRev}"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return t&&(o=n[i+1]),o}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(o(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var i=n.pop(),r=null;return i&&(r=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,r}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);v(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var i=this.$redoStack.pop(),o=null;return i&&(o=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?c(e):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(i.prototype);var r=e("./range").Range,s=r.comparePoints;r.comparePoints;function a(e){return{row:e.row,column:e.column}}function l(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}function c(e){if(e=e||this,Array.isArray(e))return e.map(c).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(d).join("\n"):d(e.value)),e.start&&(t+=d(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function d(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function u(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(s(t.start,e.end)>=0)p(t,e,-1);else{if(!(s(t.start,e.start)<=0))return null;p(e,t,1)}else if(n&&!i)if(s(t.start,e.end)>=0)p(t,e,-1);else{if(!(s(t.end,e.start)<=0))return null;p(e,t,-1)}else if(!n&&i)if(s(t.start,e.start)>=0)p(t,e,1);else{if(!(s(t.start,e.start)<=0))return null;p(e,t,1)}else if(!n&&!i)if(s(t.start,e.start)>=0)p(t,e,1);else{if(!(s(t.end,e.start)<=0))return null;p(e,t,-1)}return[t,e]}function h(e,t){for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!u(e[n],t[i])){while(n<e.length){while(i--)u(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function f(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)s(e.start,t.start)<0?p(t,e,1):p(e,t,1);else if(n&&!i)s(e.start,t.end)>=0?p(e,t,-1):(s(e.start,t.start)<=0||p(e,r.fromPoints(t.start,e.start),-1),p(t,e,1));else if(!n&&i)s(t.start,e.end)>=0?p(t,e,-1):(s(t.start,e.start)<=0||p(t,r.fromPoints(e.start,t.start),-1),p(e,t,1));else if(!n&&!i)if(s(t.start,e.end)>=0)p(t,e,-1);else{var o,a;if(!(s(t.end,e.start)<=0))return s(e.start,t.start)<0&&(o=e,e=m(e,t.start)),s(e.end,t.end)>0&&(a=m(e,t.end)),g(t.end,e.start,e.end,-1),a&&!o&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,o,a].filter(Boolean);p(e,t,-1)}return[t,e]}function p(e,t,n){g(e.start,t.start,t.end,n),g(e.end,t.start,t.end,n)}function g(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function m(e,t){var n=e.lines,i=e.end;e.end=a(t);var o=e.end.row-e.start.row,r=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;n.push(r[0].substring(0,s)),r[0]=r[0].substr(s);var l={start:a(t),end:i,lines:r,action:e.action};return l}function b(e,t){t=l(t);for(var n=e.length;n--;){for(var i=e[n],o=0;o<i.length;o++){var r=i[o],s=f(r,t);t=s[0],2!=s.length&&(s[2]?(i.splice(o+1,1,s[1],s[2]),o++):s[1]||(i.splice(o,1),o--))}i.length||e.splice(n,1)}return e}function v(e,t){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)b(e,i[o])}t.UndoManager=i})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){i.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight),r=n.documentToScreenRow(e,0)*t.lineHeight;return r-o*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,o){var r=this.cellCache.pop();if(!r){var s=i.createElement("div");o&&o(s),this.element.appendChild(s),r={element:s,text:"",row:e}}return r.row=e,r}}).call(o.prototype),t.Lines=o})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=e("./lines").Lines,l=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1};function c(e){var t=document.createTextNode("");e.appendChild(t);var n=i.createElement("span");return e.appendChild(n),e}(function(){o.implement(this,s),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=this.$annotations[i];o||(o=this.$annotations[i]={text:[]});var s=n.text;s=s?r.escapeHTML(s):n.html||"",-1===o.text.indexOf(s)&&o.text.push(s);var a=n.type,l=n.className;l?o.className=l:"error"==a?o.className=" ace_error":"warning"==a&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=a||o.className||(o.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();var o=t.getNextFoldLine(n),r=o?o.start.row:1/0,s=null,a=-1,l=n;while(1){if(l>r&&(l=o.end.row+1,o=t.getNextFoldLine(l,o),r=o?o.start.row:1/0),l>i){while(this.$lines.getLength()>a+1)this.$lines.pop();break}s=this.$lines.get(++a),s?s.row=l:(s=this.$lines.createCell(l,e,this.session,c),this.$lines.push(s)),this.$renderCell(s,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var r=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();r+=s.left+s.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))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(i>n)for(o=this.session.getFoldedRowCount(n+1,i);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>i&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:1/0;while(1){if(o>s&&(o=r.end.row+1,r=this.session.getNextFoldLine(o,r),s=r?r.start.row:1/0),o>n)break;var a=this.$lines.createCell(o,e,this.session,c);this.$renderCell(a,e,r,o),i.push(a),o++}return i},this.$renderCell=function(e,t,n,o){var r=e.element,s=this.session,a=r.childNodes[0],l=r.childNodes[1],c=s.$firstLineNumber,d=s.$breakpoints,u=s.$decorations,h=s.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&s.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,g="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o<this.$cursorRow&&o>=p&&this.$cursorRow<=n.end.row)&&(g+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),d[o]&&(g+=d[o]),u[o]&&(g+=u[o]),this.$annotations[o]&&(g+=this.$annotations[o].className),r.className!=g&&(r.className=g),f){var m=f[o];null==m&&(m=f[o]=s.getFoldWidget(o))}if(m){g="ace_fold-widget ace_"+m;"start"==m&&o==p&&o<n.end.row?g+=" ace_closed":g+=" ace_open",l.className!=g&&(l.className=g);var b=t.lineHeight+"px";i.setStyle(l.style,"height",b),i.setStyle(l.style,"display","inline-block")}else l&&i.setStyle(l.style,"display","none");var v=(h?h.getText(s,o):o+c).toString();return v!==a.data&&(a.data=v),i.setStyle(e.element.style,"height",this.$lines.computeLineHeight(o,t,s)+"px"),i.setStyle(e.element.style,"top",this.$lines.computeLineTop(o,t,s)+"px"),e.text=v,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("../lib/dom"),r=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers[n];if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var r=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,s,r,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,o,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?"text"==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}if(-1!=this.i)while(this.i<this.element.childElementCount)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,o,r,s){for(var a=this.session,l=n.start.row,c=n.end.row,d=l,u=0,h=0,f=a.getScreenLastRowColumn(d),p=new i(d,n.start.column,d,h);d<=c;d++)p.start.row=p.end.row=d,p.start.column=d==l?n.start.column:a.getRowWrapIndent(d),p.end.column=f,u=h,h=f,f=d+1<c?a.getScreenLastRowColumn(d+1):d==c?0:n.end.column,this.drawSingleLineMarker(t,p,o+(d==l?" ace_start":"")+" ace_br"+e(d==l||d==l+1&&n.start.column,u<h,h>f,d==c),r,d==c?0:1,s)},this.drawMultiLineMarker=function(e,t,n,i,o){var r=this.$padding,s=i.lineHeight,a=this.$getTop(t.start.row,i),l=r+t.start.column*i.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var c=t.clone();c.end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",i,null,o)}else this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){c=t.clone();c.start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",i,null,o)}else{a=this.$getTop(t.end.row,i);var d=t.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+d+"px;top:"+a+"px;left:"+r+"px;"+(o||""))}if(s=(t.end.row-t.start.row-1)*i.lineHeight,!(s<=0)){a=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+r+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var s=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(r||""))},this.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding,c=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);c.forEach((function(e){this.elt(n,"height:"+s+"px;width:"+(e.width+(o||0))+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))}),this)},this.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))}}).call(r.prototype),t.Marker=r})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)};(function(){i.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.MAX_CHUNK_LENGTH=250,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode(),n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)if(this.showTabs){var i=this.dom.createElement("span");i.className="ace_invisible ace_invisible_tab",i.textContent=r.stringRepeat(this.TAB_CHAR,n),t.push(i)}else t.push(this.dom.createTextNode(r.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o="ace_indent-guide",s=this.showSpaces?" ace_invisible ace_invisible_space":"",a=this.showSpaces?r.stringRepeat(this.SPACE_CHAR,this.tabSize):r.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",c=this.showTabs?r.stringRepeat(this.TAB_CHAR,this.tabSize):a;i=this.dom.createElement("span");i.className=o+s,i.textContent=a,this.$tabStrings[" "]=i;i=this.dom.createElement("span");i.className=o+l,i.textContent=c,this.$tabStrings["\t"]=i}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){var l=this.session.getFoldLine(a);if(l){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}var c=!1,d=(a=i,l=this.session.getNextFoldLine(a),l?l.start.row:1/0);while(1){if(a>d&&(a=l.end.row+1,l=this.session.getNextFoldLine(a,l),d=l?l.start.row:1/0),a>o)break;var u=r[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==d&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var h=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=h&&(c=!0,u.style.height=h)}a++}if(c)while(s<this.$lines.cells.length){var f=this.$lines.cells[s++];f.element.style.top=this.$lines.computeLineTop(f.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(e,t,n){var i=[],r=t,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;while(1){if(r>a&&(r=s.end.row+1,s=this.session.getNextFoldLine(r,s),a=s?s.start.row:1/0),r>n)break;var l=this.$lines.createCell(r,e,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(r,e,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(r,e,this.session)+"px"),this.$renderLine(c,r,r==a&&s),this.$useLineGroups()?c.className="ace_line_group":(c.className="ace_line",c.setAttribute("role","option")),i.push(l),r++}return i},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,i=this.$lines;while(i.getLength())i.pop();i.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderTokenInChunks=function(e,t,n,i){for(var o,r=0;r<i.length;r+=this.MAX_CHUNK_LENGTH){var s=i.substring(r,r+this.MAX_CHUNK_LENGTH),a={type:n.type,value:s};o=this.$renderToken(e,t+r,a,s)}return o},this.$renderToken=function(e,t,n,i){var o,s=this,a=/(\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]+)|(\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,l=this.dom.createFragment(this.element),c=0;while(o=a.exec(i)){var d=o[1],u=o[2],h=o[3],f=o[4],p=o[5];if(s.showSpaces||!u){var g=c!=o.index?i.slice(c,o.index):"";if(c=o.index+o[0].length,g&&l.appendChild(this.dom.createTextNode(g,this.element)),d){var m=s.session.getScreenTabSize(t+o.index);l.appendChild(s.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(u)if(s.showSpaces){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space",b.textContent=r.stringRepeat(s.SPACE_CHAR,u.length),l.appendChild(b)}else l.appendChild(this.com.createTextNode(u,this.element));else if(h){b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space ace_invalid",b.textContent=r.stringRepeat(s.SPACE_CHAR,h.length),l.appendChild(b)}else if(f){t+=1;b=this.dom.createElement("span");b.style.width=2*s.config.characterWidth+"px",b.className=s.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=s.showSpaces?s.SPACE_CHAR:f,l.appendChild(b)}else if(p){t+=1;b=this.dom.createElement("span");b.style.width=2*s.config.characterWidth+"px",b.className="ace_cjk",b.textContent=p,l.appendChild(b)}}}l.appendChild(this.dom.createTextNode(c?i.slice(c):i,this.element));b=this.dom.createElement("span");if(!this.$textToken[n.type]){var v="ace_"+n.type.replace(/\./g," ace_");"fold"==n.type&&(b.style.width=n.value.length*this.config.characterWidth+"px"),b.className=v}return b.appendChild(l),e.appendChild(b),t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||i>=n)return t;if(" "==t[0]){i-=i%this.tabSize;for(var o=i/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(i)}if("\t"==t[0]){for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(i)}return this.$highlightIndentGuide(),t},this.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,i=Math.floor(n/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:i,start:t.row};var o=this.session.$bracketHighlight;if(o)for(var r=this.session.$bracketHighlight.ranges,s=0;s<r.length;s++)if(t.row!==r[s].start.row){this.$highlightIndentGuideMarker.end=r[s].start.row,t.row>r[s].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(s=t.row+1;s<e.length;s++){var a=e[s],l=/^\s*/.exec(a)[0].length;if(""!==a&&(this.$highlightIndentGuideMarker.end=s,l<=n))break}}this.$renderHighlightIndentGuide()}}},this.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,t=0;t<e.length;t++){var n=e[t],i=n.element.childNodes;if(i.length>0)for(var o=0;o<i.length;o++)if(i[o].classList&&i[o].classList.contains("ace_indent-guide-active")){i[o].classList.remove("ace_indent-guide-active");break}}},this.$setIndentGuideActive=function(e,t){var n=this.session.doc.getLine(e.row);if(""!==n){var i=e.element.childNodes;if(i){var o=i[t-1];o&&o.classList&&o.classList.contains("ace_indent-guide")&&o.classList.add("ace_indent-guide-active")}}},this.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var i=e[n];if(this.$highlightIndentGuideMarker.end&&i.row>=this.$highlightIndentGuideMarker.start+1){if(i.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}else for(n=e.length-1;n>=0;n--){i=e[n];if(this.$highlightIndentGuideMarker.end&&i.row<this.$highlightIndentGuideMarker.start){if(i.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}}},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,n){var i=0,o=0,s=n[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var d=t[c],u=d.value;if(0==c&&this.displayIndentGuides){if(i=u.length,u=this.renderIndentGuide(l,u,s),!u)continue;i-=u.length}if(i+u.length<s)a=this.$renderTokenInChunks(l,a,d,u),i+=u.length;else{while(i+u.length>=s)a=this.$renderTokenInChunks(l,a,d,u.substring(0,s-i)),u=u.substring(s-i),i=s,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(r.stringRepeat(" ",n.indent),this.element)),o++,a=0,s=n[o]||Number.MAX_VALUE;0!=u.length&&(i+=u.length,a=this.$renderTokenInChunks(l,a,d,u))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},this.$renderSimpleLine=function(e,t){for(var n=0,i=0;i<t.length;i++){var o=t[i],r=o.value;if(0!=i||!this.displayIndentGuides||(r=this.renderIndentGuide(e,r),r)){if(n+r.length>this.MAX_LINE_LENGTH)return void this.$renderOverflowMessage(e,n,o,r);n=this.$renderTokenInChunks(e,n,o,r)}}},this.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderTokenInChunks(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement("span");r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"<hide>":"<click to see more...>",e.appendChild(r)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var r=this.session.getRowSplitData(t);if(r&&r.length){this.$renderWrappedLine(e,i,r);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s)}},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];function o(e,t,n){var o=0,r=0;while(r+e[o].value.length<t)if(r+=e[o].value.length,o++,o==e.length)return;if(r!=t){var s=e[o].value.substring(t-r);s.length>n-t&&(s=s.substring(0,n-t)),i.push({type:e[o].type,value:s}),r=t+s.length,o+=1}while(r<n&&o<e.length){s=e[o].value;s.length+r>n?i.push({type:e[o].type,value:s.substring(0,n-r)}):i.push(e[o]),r+=s.length,o+=1}}var r=n.getTokens(e);return t.walk((function(e,t,s,a,l){null!=e?i.push({type:"fold",value:e}):(l&&(r=n.getTokens(t)),r.length&&o(r,a,s))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)i.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),i=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),o=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:o}},this.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,o=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var a=this.cursors[o++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,e,t[n],this.session):this.isCursorInView(s,e)?(i.setStyle(l,"display","block"),i.translate(a,s.left,s.top),i.setStyle(l,"width",Math.round(e.characterWidth)+"px"),i.setStyle(l,"height",e.lineHeight+"px")):i.setStyle(l,"display","none")}}while(this.cursors.length>o)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=32768,l=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addListener(this.element,"scroll",this.onScroll.bind(this)),r.addListener(this.element,"mousedown",r.preventDefault)};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>a?(this.coeff=a/e,e=a):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var d=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(d,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(d.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=d,t.VScrollBar=c,t.HScrollBar=d})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter;o.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var a=function(e){this.element=o.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,this.parent=e,this.width=this.VScrollWidth,this.renderer=t,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};i.inherits(l,a),function(){this.classSuffix="-v",i.implement(this,s),this.onMouseDown=function(e,t){if("mousedown"===e&&0===r.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientY,o=function(e){i=e.clientY},s=function(){clearInterval(d)},a=t.clientY,l=this.thumbTop,c=function(){if(void 0!==i){var e=n.scrollTopFromThumbTop(l+i-a);e!==n.scrollTop&&n._emit("scroll",{data:e})}};r.capture(this.inner,o,s);var d=setInterval(c,20);return r.preventDefault(t)}var u=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(u)}),r.preventDefault(t)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return t>>=0,t<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,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})))},this.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(l.prototype);var c=function(e,t){a.call(this,e),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=t};i.inherits(c,a),function(){this.classSuffix="-h",i.implement(this,s),this.onMouseDown=function(e,t){if("mousedown"===e&&0===r.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientX,o=function(e){i=e.clientX},s=function(){clearInterval(d)},a=t.clientX,l=this.thumbLeft,c=function(){if(void 0!==i){var e=n.scrollLeftFromThumbLeft(l+i-a);e!==n.scrollLeft&&n._emit("scroll",{data:e})}};r.capture(this.inner,o,s);var d=setInterval(c,20);return r.preventDefault(t)}var u=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(u)}),r.preventDefault(t)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return t>>=0,t<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},this.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,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})))},this.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(i.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),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(e,t,n){var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=250,d="function"==typeof ResizeObserver,u=200,h=t.FontMetrics=function(e,t){this.charCount=t||c,this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=r.stringRepeat("X",this.charCount),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()};(function(){i.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=s.onIdle((function t(){e.checkForSizeChanges(),s.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e=e||this.$measureNode;var t=e.getBoundingClientRect(),n={height:t.height,width:t.width/this.charCount};return 0===n.width||0===n.height?null:n},this.$measureCharWidth=function(e){this.$main.textContent=r.stringRepeat(e,this.charCount);var t=this.$main.getBoundingClientRect();return t.width/this.charCount},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},this.transformCoordinates=function(e,t){if(e){var n=this.$getZoom(this.el);e=s(1/n,e)}function i(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function r(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var l=a(this.els[0]),c=a(this.els[1]),d=a(this.els[2]),h=a(this.els[3]),f=i(o(h,c),o(h,d),o(r(c,d),r(h,l))),p=s(1+f[0],o(c,l)),g=s(1+f[1],o(d,l));if(t){var m=t,b=f[0]*m[0]/u+f[1]*m[1]/u+1,v=r(s(m[0],p),s(m[1],g));return r(s(1/b/u,v),l)}var y=o(e,l),w=i(o(p,s(f[0],y)),o(g,s(f[1],y)),y);return s(u,w)}}).call(h.prototype)})),ace.define("ace/css/editor.css",["require","exports","module"],(function(e,t,n){n.exports='/*\nstyles = []\nfor (var i = 1; i < 16; i++) {\n styles.push(".ace_br" + i + "{" + (\n ["top-left", "top-right", "bottom-right", "bottom-left"]\n ).map(function(x, j) {\n return i & (1<<j) ? "border-" + x + "-radius: 3px;" : "" \n }).filter(Boolean).join(" ") + "}")\n}\nstyles.join("\\n")\n*/\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left {\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n}\n\n.ace_gutter-cell {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell.ace_error {\n 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==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning {\n 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==");\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n will-change: transform;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #FFF;\n background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_folding-enabled > .ace_gutter-cell {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/event_emitter").EventEmitter,s=function(e,t){this.canvas=i.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.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)"},e.element.appendChild(this.canvas)};(function(){o.implement(this,r),this.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;if(e){this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height;var n=(e.lastRow+1)*this.lineHeight;n<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var i=this.canvas.getContext("2d");function o(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}var r=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),r){var s={info:1,warning:2,error:3};r.forEach((function(e){e.priority=s[e.type]||null})),r=r.sort(o);for(var a=this.renderer.session.$foldData,l=0;l<r.length;l++){var c=r[l].row,d=this.compensateFoldRows(c,a),u=Math.round((c-d)*this.lineHeight*this.heightRatio),h=Math.round((c-d)*this.lineHeight*this.heightRatio),f=Math.round(((c-d)*this.lineHeight+this.lineHeight)*this.heightRatio),p=f-h;if(p<this.minDecorationHeight){var g=(h+f)/2|0;g<this.halfMinDecorationHeight?g=this.halfMinDecorationHeight:g+this.halfMinDecorationHeight>this.canvasHeight&&(g=this.canvasHeight-this.halfMinDecorationHeight),h=Math.round(g-this.halfMinDecorationHeight),f=Math.round(g+this.halfMinDecorationHeight)}i.fillStyle=t[r[l].type]||null,i.fillRect(0,u,this.canvasWidth,f-h)}}var m=this.renderer.session.selection.getCursor();if(m){d=this.compensateFoldRows(m.row,a),u=Math.round((m.row-d)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,u,this.canvasWidth,2)}},this.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var i=0;i<t.length;i++)e>t[i].start.row&&e<t[i].end.row?n+=e-t[i].start.row:e>=t[i].end.row&&(n+=t[i].end.row-t[i].start.row);return n}}).call(s.prototype),t.Decorator=s})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","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"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./config"),s=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,h=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,p=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,m=e("./lib/event_emitter").EventEmitter,b=e("./css/editor.css"),v=e("./layer/decorators").Decorator,y=e("./lib/useragent"),w=y.isIE;o.importCssString(b,"ace_editor.css",!1);var x=function(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==r.get("useStrictCSP")&&r.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container,this.$textLayer.MAX_CHUNK_LENGTH),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),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=!y.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),r.resetOptions(this),r._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,m),this.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(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(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))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var r=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(i&&(e||s.height!=i)&&(s.height=i,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)){r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)}return s.$dirty=!n||!i,r&&this._signal("resize",a),r},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var i=this.layerConfig,r=n.top,s=n.left;r-=i.offset;var a=t&&t.useTextareaForIME?this.lineHeight:w?0:1;if(r<0||r>i.height-a)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var d=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(d)[0]}else r+=this.lineHeight+2;else r+=this.lineHeight;s-=this.scrollLeft,s>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",a+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(r,c))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var r=n.width+2*this.$padding+"px",s=n.minHeight+"px";o.setStyle(this.content.style,"width",r),o.setStyle(this.content.style,"height",s)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=n<=2*this.lineHeight,o=!i&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||o!=this.$vScroll){o!=this.$vScroll&&(this.$vScroll=o,this.scrollBarV.setVisible(o));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength(),o=i*this.lineHeight,r=this.$getLongestLine(),s=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),a=this.$horizScroll!==s;a&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var l=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;o+=d;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,o-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+u.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-o+d<0||this.scrollTop>u.top),f=l!==h;f&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var p,g,m=this.scrollTop%this.lineHeight,b=Math.ceil(c/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),y=v+b,w=this.lineHeight;v=e.screenToDocumentRow(v,0);var x=e.getFoldLine(v);x&&(v=x.start.row),p=e.documentToScreenRow(v,0),g=e.getRowLength(v)*w,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(y)*w+g,m=this.scrollTop-p*w;var C=0;return(this.layerConfig.width!=r||a)&&(C=this.CHANGE_H_SCROLL),(a||f)&&(C|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:y,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:o,offset:m,gutterOffset:w?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),C},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,r=i.top,s=n&&n.top||0,a=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>r?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft,d=2*this.layerConfig.characterWidth;o-d<c?(o-=d,o<this.$padding+d&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):(o+=d,c+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&o-c<this.characterWidth&&this.session.setScrollLeft(0))}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,o=n.top-i*(t||0);return this.session.setScrollTop(o),o},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,i=this.STEPS,o=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)o.push(r(n/this.STEPS,e,t-e));return o},this.scrollToLine=function(e,t,n,i){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}),r=o.top;t&&(r-=this.$size.scrollerHeight/2);var s=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(s,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0],e==n))return}var r=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){if(!i.$stopAnimation)return i.session?void(r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):s()):clearInterval(i.$timer);s()}),10)}}function s(){i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,i.$stopAnimation=!1,t&&t()}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(r):Math.round(r);return{row:s,column:a,side:r-a>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=this.$blockCursor?Math.floor(r):Math.round(r),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+r-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines[n]=null;var r={type:t,value:e},s=o.getTokens(n);if(null==i)s.push(r);else for(var a=0,l=0;l<s.length;l++){var c=s[l];if(a+=c.value.length,i<=a){var d=c.value.length-(a-i),u=c.value.slice(0,d),h=c.value.slice(d);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:h});break}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)s(e);else{var i=e||this.$options.theme.initialValue;r.loadModule(["theme",i],s)}function s(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");i.$id&&(n.$themeId=i.$id),o.importCssString(i.cssText,i.cssClass,n.container),n.theme&&o.removeCssClass(n.container,n.theme.cssClass);var r="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&r!=n.$padding&&n.setPadding(r),n.$theme=i.cssClass,n.theme=i,o.addCssClass(n.container,i.cssClass),o.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){o.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){o.removeCssClass(this.container,e)},this.setCursorStyle=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){o.importCssString(b,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})),this.$scrollDecorator=new v(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new u(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})))}}).call(x.prototype),r.defineOptions(x.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&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(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!y.isMobile&&!y.isIE}}),t.VirtualRenderer=x})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/net"),r=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){var t="importScripts('"+o.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(r){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,i=new n;return i.append(t),i.getBlob("application/javascript")}}function l(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var t=a(e),n=window.URL||window.webkitURL,i=n.createObjectURL(t);return new Worker(i)}return new Worker(e)}var c=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,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(){i.implement(this,r),this.$createWorkerFromOldConfig=function(t,n,i,o,r){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)o=o||s.moduleUrl(n,"worker");else{var a=this.$normalizePath;o=o||a(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach((function(t){c[t]=a(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=l(o),r&&this.send("importScripts",r),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:i}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return o.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var d=function(e,t,n){var i=null,o=!1,a=Object.create(r),l=[],d=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),i&&(o?setTimeout(u):u())}});d.setEmitSync=function(e){o=e};var u=function(){var e=l.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){d.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){i=new e[n](a);while(l.length)u()})),d};t.UIWorkerClient=d,t.WorkerClient=c,t.createWorker=l})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,r=e("./lib/oop"),s=function(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){r.implement(this,o),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new i(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,o=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a=this.others[s],l={row:a.row,column:a.column+r};this.doc.insertMergedLines(l,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){a=this.others[s],l={row:a.row,column:a.column+r};this.doc.remove(new i(l.row,l.column,l.row,l.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.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},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(s.prototype),t.PlaceHolder=s})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),o=e("../lib/useragent");function r(e,t){return e.row==t.row&&e.column==t.column}function s(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&o.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var d,u=e.editor,h=u.selection,f=u.inMultiSelectMode,p=e.getDocumentPosition(),g=h.getCursor(),m=e.inSelection()||h.isEmpty()&&r(p,g),b=e.x,v=e.y,y=function(e){b=e.clientX,v=e.clientY},w=u.session,x=u.renderer.pixelToScreenCoordinates(b,v),C=x;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?d=s?"block":"add":n&&u.$blockSelectEnabled&&(d="block");else if(l&&!n){if(d="add",!f&&s)return}else n&&u.$blockSelectEnabled&&(d="block");if(d&&o.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==d){if(!f&&m)return;if(!f){var _=h.toOrientedRange();u.addSelectionMarker(_)}var k=h.rangeList.rangeAtPoint(p);u.inVirtualSelectionMode=!0,s&&(k=null,_=h.ranges[0]||_,u.removeSelectionMarker(_)),u.once("mouseup",(function(){var e=h.toOrientedRange();k&&e.isEmpty()&&r(k.cursor,e.cursor)?h.substractPoint(e.cursor):(s?h.substractPoint(_.cursor):_&&(u.removeSelectionMarker(_),h.addRange(_)),h.addRange(e)),u.inVirtualSelectionMode=!1}))}else if("block"==d){var S;e.stop(),u.inVirtualSelectionMode=!0;var O=[],E=function(){var e=u.renderer.pixelToScreenCoordinates(b,v),t=w.screenToDocumentPosition(e.row,e.column,e.offsetX);r(C,e)&&r(t,h.lead)||(C=e,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(O),O=h.rectangularRangeBlock(C,x),u.$mouseHandler.$clickSelection&&1==O.length&&O[0].isEmpty()&&(O[0]=u.$mouseHandler.$clickSelection.clone()),O.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers())};f&&!l?h.toSingleRange():!f&&l&&(S=h.toOrientedRange(),u.addSelectionMarker(S)),s?x=w.documentToScreenPosition(h.lead):h.moveToPosition(p),C={row:-1,column:-1};var L=function(e){E(),clearInterval(M),u.removeSelectionMarkers(O),O.length||(O=[h.toOrientedRange()]),S&&(u.removeSelectionMarker(S),h.toSingleRange(S));for(var t=0;t<O.length;t++)h.addRange(O[t]);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null},A=E;i.capture(u.container,y,L);var M=setInterval((function(){A()}),20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}t.onMouseDown=s})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.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(e){e.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(e){e.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(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.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(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.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(e,t,n){var i=e("./range_list").RangeList,o=e("./range").Range,r=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=e("./search").Search,u=new d;function h(e,t,n){return u.$options.wrap=!0,u.$options.needle=t,u.$options.backwards=-1==n,u.find(e)}var f=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var i=e[n],r=i.start.row,s=i.end.row;if(r===s)t.push(i.clone());else{t.push(new o(r,i.start.column,r,this.session.getLine(r).length));while(++r<s)t.push(this.getLineRange(r,!0));t.push(new o(s,0,s,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),r=this.session.documentToScreenPosition(this.anchor),s=this.rectangularRangeBlock(i,r);s.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],r=e.column<t.column;if(r)var s=e.column,a=t.column,l=e.offsetX,c=t.offsetX;else s=t.column,a=e.column,l=t.offsetX,c=e.offsetX;var d,u=e.row<t.row;if(u)var h=e.row,f=t.row;else h=t.row,f=e.row;s<0&&(s=0),h<0&&(h=0),h==f&&(n=!0);for(var p=h;p<=f;p++){var m=o.fromPoints(this.session.screenToDocumentPosition(p,s,l),this.session.screenToDocumentPosition(p,a,c));if(m.isEmpty()){if(d&&g(m.end,d))break;d=m.end}m.cursor=r?m.start:m.end,i.push(m)}if(u&&i.reverse(),!n){var b=i.length-1;while(i[b].isEmpty()&&b>0)b--;if(b>0){var v=0;while(i[v].isEmpty())v++}for(var y=b;y>=v;y--)i[y].isEmpty()&&i.splice(y,1)}return i}}.call(r.prototype);var p=e("./editor").Editor;function g(e,t){return e.row==t.row&&e.column==t.column}function m(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),b(e))}function b(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;a.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()}),e),a.addListener(t,"keyup",i,e),a.addListener(t,"blur",i,e)}function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(o?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var h=new r(a);this.inVirtualSelectionMode=!0;for(var f=d.length;f--;){if(s)while(f>0&&d[f].start.row==d[f-1].end.row)f--;h.fromOrientedRange(d[f]),h.index=f,this.selection=a.selection=h;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),h.toOrientedRange(d[f])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();e=n.join(o),e.length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if(t=t||{},t.needle=e||t.needle,void 0==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var s=o.length;s--;)r.addRange(o[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,r=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var s=this.session.screenToDocumentPosition(r.row+e,r.column);if(n.isEmpty())l=s;else var a=this.session.documentToScreenPosition(i?n.end:n.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);if(i){var c=o.fromPoints(s,l);c.cursor=c.start}else{c=o.fromPoints(l,s);c.cursor=c.end}if(c.desiredColumn=r.column,this.selection.inMultiSelectMode){if(t)var d=n.cursor}else this.selection.addRange(n);this.selection.addRange(c),d&&this.selection.substractPoint(d)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o--;){var r=i[o];if(r.isEmpty()){var s=t.getWordRange(r.start.row,r.start.column);r.start.row=s.start.row,r.start.column=s.start.column,r.end.row=s.end.row,r.end.column=s.end.column}}n.mergeOverlappingRanges();var a=[];for(o=i.length;o--;){r=i[o];a.unshift(t.getTextRange(r))}e<0?a.unshift(a.pop()):a.push(a.shift());for(o=i.length;o--;){r=i[o],s=r.clone();t.replace(r,a[o]),r.start.row=s.start.row,r.start.column=s.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var i=this.session,o=i.multiSelect,r=o.toOrientedRange();if(!r.isEmpty()||(r=i.getWordRange(r.start.row,r.start.column),r.cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),!n)){var s=i.getTextRange(r),a=h(i,s,e);a&&(a.cursor=-1==e?a.start:a.end,this.session.unfold(a),this.multiSelect.addRange(a),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,r=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&r.length!=n.length-1){r.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,c=n.map((function(t){var n=t.cursor,i=e.getLine(n.row),o=i.substr(n.column).search(/\S/g);return-1==o&&(o=0),n.column>s&&(s=n.column),o<a&&(a=o),o}));n.forEach((function(t,n){var i=t.cursor,r=s-i.column,d=c[n]-a;r>d?e.insert(i,l.stringRepeat(" ",r-d)):e.remove(new o(i.row,i.column,i.row,i.column-r+d)),t.start.column=t.end.column=s,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),u=d.start.row,h=d.end.row,f=u==h;if(f){var p,g=this.session.getLength();do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&++h<g);do{p=this.session.getLine(u)}while(/[=:]/.test(p)&&--u>0);u<0&&(u=0),h>=g&&(h=g-1)}var m=this.session.removeFullLines(u,h);m=this.$reAlignText(m,f),this.session.insert({row:u,column:0},m.join("\n")+"\n"),f||(d.start.column=0,d.end.column=m[m.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,i,o,r=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,o=t[3].length,t):(n+i+o!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(r=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),o>t[3].length&&(o=t[3].length),t):[e]})).map(t?c:r?s?d:c:u);function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(i-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function d(e){return e[2]?a(n+i-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?a(n)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){m(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,r=e.getLine(t),s=r.search(o);if(-1!=s){var a=n||r.length,l=e.getLength(),c=t,d=t;while(++t<l){var u=e.getLine(t).search(o);if(-1!=u){if(u<=s){var h=e.getTokenAt(t,0);if(!h||"string"!==h.type)break}d=t}}if(d>c){var f=e.getLine(d).length;return new i(c,a,d,f)}}},this.openingBracketBlock=function(e,t,n,o,r){var s={row:n,column:o+1},a=e.$findClosingBracket(t,s,r);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,o,r){var s={row:n,column:o},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,i.fromPoints(a,s)}}).call(o.prototype)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./lib/dom");function o(e){this.session=e,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)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,o=i.start.row,r=i.end.row,s="add"==e.action,a=o+1;a<r;a++)n[a]&&(n[a].hidden=s);n[r]&&(s?n[o]?n[r].hidden=s:n[o]=n[r]:(n[o]==n[r]&&(n[o]=void 0),n[r].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){var o=t.splice(n+1,i);!t[n]&&o[o.length-1]&&(t[n]=o.pop()),o.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var r=new Array(i);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],i=[];while(n)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row),a<0&&(a=0)),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);while(o>0&&!i[o])o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,o=e("../lib/dom"),r=e("../range").Range;function s(e,t,n){var i=0,o=e.length-1;while(i<=o){var r=i+o>>1,s=n(t,e[r]);if(s>0)i=r+1;else{if(!(s<0))return r;o=r-1}}return-(i+1)}function a(e,t,n){var i=e.getAnnotations().sort(r.comparePoints);if(i.length){var o=s(i,{row:t,column:-1},r.comparePoints);o<0&&(o=-o-1),o>=i.length?o=n>0?0:i.length-1:0===o&&n<0&&(o=i.length-1);var a=i[o];if(a&&n){if(a.row===t){do{a=i[o+=n]}while(a&&a.row===t);if(!a)return i.slice()}var l=[];t=a.row;do{l[n<0?"unshift":"push"](a),a=i[o+=n]}while(a&&a.row==t);return l.length&&l}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var r=e.getCursorPosition(),s=r.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var c,d=a(n,s,t);if(d){var u=d[0];r.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,r.row=u.row,c=e.renderer.$gutterLayer.$annotations[r.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(r.row),e.selection.moveToPosition(r);var h={row:r.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},f=h.el.appendChild(o.createElement("div")),p=h.el.appendChild(o.createElement("div"));p.className="error_widget_arrow "+c.className;var g=e.renderer.$cursorLayer.getPixelPosition(r).left;p.style.left=g+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",f.className="error_widget "+c.className,f.innerHTML=c.text.join("<br>"),f.appendChild(o.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},o.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","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(e,t,n){"use strict";e("./loader_build")(t);var i=e("./lib/dom"),o=e("./lib/event"),r=e("./range").Range,s=e("./editor").Editor,a=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,c=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=i.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var d=t.createEditSession(a),u=new s(new c(e),d,n),h={document:d,editor:u,onResize:u.resize.bind(u,null)};return l&&(h.textarea=l),o.addListener(window,"resize",h.onResize),u.on("destroy",(function(){o.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new l),n},t.Range=r,t.Editor=s,t.EditSession=a,t.UndoManager=l,t.VirtualRenderer=c,t.version=t.config.version})),function(){ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace["default"]=window.ace,e&&(e.exports=window.ace)}))}()}).call(this,n("62e4")(e))},"6e5c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"display-style":e.field.options.displayStyle,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-button",{ref:"fieldEditor",attrs:{type:e.field.options.type,size:e.field.options.size,plain:e.field.options.plain,round:e.field.options.round,circle:e.field.options.circle,icon:e.field.options.icon,disabled:e.field.options.disabled},nativeOn:{click:function(t){return e.handleButtonWidgetClick.apply(null,arguments)}}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"button-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("d719"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"1293f105",null);t["default"]=h.exports},"6f49":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.circle")}},[t("el-switch",{model:{value:e.optionModel.circle,callback:function(t){e.$set(e.optionModel,"circle",t)},expression:"optionModel.circle"}})],1)},o=[],r=n("79fa"),s={name:"circle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"46cbc20e",null);t["default"]=c.exports},7007:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slider-field",use:"icon-slider-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slider-field"><defs><style type="text/css"></style></defs><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" p-id="53484" /></symbol>'});s.a.add(a);t["default"]=a},"700c":function(e,t,n){},7156:function(e,t,n){var i=n("1626"),o=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var s,a;return r&&i(s=t.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&r(e,a),e}},"71bc":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return buildDefaultValueListFn})),__webpack_require__.d(__webpack_exports__,"d",(function(){return buildRulesListFn})),__webpack_require__.d(__webpack_exports__,"c",(function(){return buildFieldOptionsFn})),__webpack_require__.d(__webpack_exports__,"e",(function(){return buildUploadDataFn})),__webpack_require__.d(__webpack_exports__,"a",(function(){return buildActiveTabs})),__webpack_require__.d(__webpack_exports__,"f",(function(){return genVue2JS}));var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),_utils_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("ca00"),_utils_i18n__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("79fa"),_utils_validators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("a00a");function buildDefaultValueListFn(e,t,n){return function(e){const t=e.options,i=t.defaultValue;Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__["m"])(i)?n.push(`${t.name}: ${JSON.stringify(i)},`):n.push(t.name+": null,")}}function buildRulesListFn(formConfig,widgetList,resultList){return function(fieldWidget){const fop=fieldWidget.options;let fieldRules=[];if(fop.required&&fieldRules.push(`{\n required: true,\n message: '${Object(_utils_i18n__WEBPACK_IMPORTED_MODULE_2__["c"])("render.hint.fieldRequired")}',\n }`),fop.validation){let vldName=fop.validation;_utils_validators__WEBPACK_IMPORTED_MODULE_3__["a"][vldName]?fieldRules.push(`{\n pattern: ${eval(Object(_utils_validators__WEBPACK_IMPORTED_MODULE_3__["b"])(vldName))},\n trigger: ['blur', 'change'],\n message: '${fop.validationHint}'\n }`):fieldRules.push(`{\n pattern: '${eval(vldName)}',\n trigger: ['blur', 'change'],\n message: '${fop.validationHint}'\n }`)}fieldRules.length>0&&resultList.push(`${fop.name}: [${fieldRules.join(",")}],`)}}function buildFieldOptionsFn(e,t,n){return function(e){const t=e.options,i=e.type;"radio"!==i&&"checkbox"!==i&&"select"!==i&&"cascader"!==i||n.push(`${t.name}Options: ${JSON.stringify(t.optionItems)},`)}}function buildUploadDataFn(e,t,n){return function(e){const t=e.options,i=e.type;"picture-upload"!==i&&"file-upload"!==i||(n.push(t.name+"FileList: [],"),n.push(t.name+"UploadHeaders: {},"),n.push(t.name+"UploadData: {},"))}}function buildActiveTabs(e,t){let n=[];const i=function(e){const t=e.options,i=e.type;"tab"===i&&e.tabs.length>0&&n.push(`'${t.name}ActiveTab': '${e.tabs[0].options.name}',`)};return Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__["r"])(t,i),n}const genVue2JS=function(e,t){let n=[],i=[],o=[],r=[];Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__["s"])(t,s=>{buildDefaultValueListFn(e,t,n)(s),buildRulesListFn(e,t,i)(s),buildFieldOptionsFn(e,t,o)(s),buildUploadDataFn(e,t,r)(s)});const s=buildActiveTabs(e,t),a=` export default {\n components: {},\n props: {},\n data() {\n return {\n ${e.modelName}: {\n ${n.join("\n")}\n },\n \n ${e.rulesName}: {\n ${i.join("\n")}\n },\n \n ${s.join("\n")}\n \n ${o.join("\n")}\n \n ${r.join("\n")}\n }\n },\n computed: {},\n watch: {},\n created() {\n },\n mounted() {\n },\n methods: {\n submitForm() {\n this.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n },\n \n resetForm() {\n this.$refs['vForm'].resetFields()\n }\n }\n }`;return a}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},"732a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{"label-width":"0"}},[t("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.customLabelIcon")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelIconClass")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelIconClass,callback:function(t){e.$set(e.optionModel,"labelIconClass",t)},expression:"optionModel.labelIconClass"}})],1)],1)},o=[],r=n("79fa"),s={name:"labelIconClass-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"64edb29a",null);t["default"]=c.exports},7331:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onUploadSuccess","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onUploadSuccess",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onUploadSuccess-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["result","file","fileList"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"40a94791",null);t["default"]=d.exports},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"756c":function(e,t,n){},"767a":function(e,t,n){"use strict";n("dea5")},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7899:function(e,t,n){var i={"./button-widget.vue":"6e5c","./cascader-widget.vue":"c077","./checkbox-widget.vue":"6d04","./color-widget.vue":"3ad3","./date-range-widget.vue":"ba08","./date-widget.vue":"da4e","./divider-widget.vue":"de19","./file-upload-widget.vue":"4a70","./form-item-wrapper.vue":"9eeb","./html-text-widget.vue":"090f","./input-widget.vue":"d67b","./number-widget.vue":"cf32","./picture-upload-widget.vue":"7ede","./radio-widget.vue":"b87d","./rate-widget.vue":"2faa","./rich-editor-widget.vue":"f4c1","./select-widget.vue":"8a3e","./slider-widget.vue":"826c","./slot-widget.vue":"b8e9","./static-content-wrapper.vue":"828b","./static-text-widget.vue":"851c","./switch-widget.vue":"ecaa","./textarea-widget.vue":"84b5","./time-range-widget.vue":"cab0","./time-widget.vue":"20c0"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="7899"},"791d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.minLength")}},[t("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.minLength,callback:function(t){e.minLength=t},expression:"minLength"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"minLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{minLength:{get(){return this.optionModel["minLength"]},set(e){!e||isNaN(e)?this.optionModel.minLength=null:this.optionModel.minLength=Number(e)}}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"78aca82c",null);t["default"]=d.exports},"79ad":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:e.optionModel.type,format:e.optionModel.format,"value-format":e.optionModel.valueFormat},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"date-range-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"9f2a9a06",null);t["default"]=d.exports},"79fa":function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"c",(function(){return M}));var i=n("8bbf"),o=n.n(i);function r(e){return void 0!==e&&null!==e}function s(e,t){const n=t.split(".");let i=e;return n.forEach(e=>{i=r(i)&&r(i[e])?i[e]:null}),i}function a(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}const{hasOwnProperty:l}=Object.prototype;function c(e,t,n){const i=t[n];r(i)&&(l.call(e,n)&&a(i)?e[n]=d(Object(e[n]),t[n]):e[n]=i)}function d(e,t){return Object.keys(t).forEach(n=>{c(e,t,n)}),e}const u=(e,t)=>{const n=e.prototype;n.$si18n=n.$si18n||{},d(n.$si18n,t);const i=new e({data:t});Object.defineProperty(e.prototype.$si18n,"lang",{get(){return i.lang}}),n.$st=(e,...t)=>{let o=i.messages[i.lang];if(!n.$si18n.messages)return()=>e;const r=s(o,e);return"function"===typeof r?r(...t):null!==r?r:e},n.$st2=(e,t)=>{let n=i.messages[i.lang];const o=s(n,e);return null!==o?o:s(n,t)},n.$si18n.add=(e={})=>{d(n.$si18n.messages,e)},n.$si18n.setLang=e=>{i.lang=e},e.mixin({beforeCreate(){this.$options.i18n&&this.$si18n.add(this.$options.i18n)}})};var h={install:u},f=n("b2d6"),p=n.n(f),g=n("f0d9"),m=n.n(g),b=n("4897"),v=n.n(b),y={application:{"zh-CN":"简体中文","en-US":"English",productTitle:"Online Form Designer",github:"GitHub",document:"Docs",qqGroup:"WeChat Group",deployment:"Deployment",subscription:"Subscription"},designer:{componentLib:"Components",formLib:"Templates",containerTitle:"Container",dragHandlerHint:"drag container or field to layout center",dragAction:"drag",basicFieldTitle:"Basic Field",advancedFieldTitle:"Advanced Field",customFieldTitle:"Customized Field",noWidgetHint:"Please select a widget from the left list, drag and drop to this container.",widgetLabel:{grid:"Grid",table:"Table",tab:"Tab",section:"Section","sub-form":"SubForm","grid-col":"GridCol","table-cell":"TableCell","tab-pane":"TabPane","data-table":"DataTable",input:"Input",textarea:"Textarea",number:"InputNumber",radio:"Radio",checkbox:"Checkbox",select:"Select",time:"Time","time-range":"Time range",date:"Date","date-range":"Date range",switch:"Switch",rate:"Rate",color:"ColorPicker",slider:"Slider","static-text":"Text","html-text":"HTML",button:"Button",divider:"Divider","picture-upload":"Picture","file-upload":"File","rich-editor":"Rich Editor",cascader:"Cascader",slot:"Slot",custom:"Custom Component"},hint:{selectParentWidget:"Select parent of this widget",moveUpWidget:"Move up this widget",moveDownWidget:"Move down this widget",cloneWidget:"Clone this widget",insertRow:"Insert new row",insertColumn:"Insert new column",remove:"Remove this widget",cellSetting:"Cell setting",dragHandler:"Drag handler",copyField:"Copy field widget",onlyFieldWidgetAcceptable:"Only field widget can be dragged into sub-form",moveUpFirstChildHint:"First child can not be move up",moveDownLastChildHint:"Last child can not be move down",closePreview:"Close",copyJson:"Copy",saveFormJson:"Save As File",copyVueCode:"Copy Vue Code",copyHtmlCode:"Copy HTML Code",copyJsonSuccess:"Copy succeed",importJsonSuccess:"Import succeed",copyJsonFail:"Copy failed",copyVueCodeSuccess:"Copy succeed",copyVueCodeFail:"Copy failed",copyHtmlCodeSuccess:"Copy succeed",copyHtmlCodeFail:"Copy failed",saveVueCode:"Save Vue File",saveHtmlCode:"Save Html File",getFormData:"Get Data",resetForm:"Reset",disableForm:"Disable",enableForm:"Enable",exportFormData:"Form Data",copyFormData:"Copy",saveFormData:"Save As File",copyVue2SFC:"Copy Vue2",copyVue3SFC:"Copy Vue3",copySFCFail:"Copy failed",copySFCSuccess:"Copy succeed",saveVue2SFC:"Save As Vue2",saveVue3SFC:"Save As Vue3",fileNameForSave:"File name:",saveFileTitle:"Save as File",fileNameInputPlaceholder:"Enter the file name",sampleLoadedSuccess:"Example loaded successfully",sampleLoadedFail:"Sample load failed",loadFormTemplate:"Load This",loadFormTemplateHint:"Are you sure to load this template?",loadFormTemplateSuccess:"Load form template success!",loadFormTemplateFailed:"Load form template failed.",currentNodeCannotBeSelected:"The current node cannot be selected.",widgetSetting:"Widget Config",formSetting:"Form Config",prompt:"Prompt",confirm:"OK",cancel:"Cancel",import:"Import",importJsonHint:"The code to be imported should have the following JSON format.",invalidOptionsData:"Invalid data of options:",lastPaneCannotBeDeleted:"The last pane cannot be deleted.",duplicateName:"Duplicate name: ",nameRequired:"Name required.",numberValidator:"Number",letterValidator:"Letter",letterAndNumberValidator:"LetterAndNumber",mobilePhoneValidator:"MobilePhone",emailValidator:"Email",urlValidator:"URL",noChineseValidator:"Non-Chinese",chineseValidator:"Chinese",rowspanNotConsistentForMergeEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForMergeEntireColumn:"Cells in this column don't have the same colspan, operation failed.",rowspanNotConsistentForDeleteEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForDeleteEntireColumn:"Cells in this column don't have the same colspan, operation failed.",lastColCannotBeDeleted:"The last col cannot be deleted.",lastRowCannotBeDeleted:"The last row cannot be deleted."},toolbar:{undoHint:"Undo",redoHint:"Redo",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"Tree View Of Component Hierarchy",nodeTreeTitle:"Tree View Of Component Hierarchy",clear:"Clear",preview:"Preview",importJson:"Import",exportJson:"Export",exportCode:"Codes",generateCode:"Generate Code",generateSFC:"Generate SFC"},setting:{basicSetting:"Basic Setting",attributeSetting:"Attribute Setting",commonSetting:"Common Setting",advancedSetting:"Advanced Setting",eventSetting:"Event Setting",uniqueName:"Unique Name",editNameHelp:"Press enter to confirm the modification",label:"Label",displayType:"Type",defaultValue:"Default Value",placeholder:"Placeholder",startPlaceholder:"Start Placeholder",endPlaceholder:"End Placeholder",widgetColumnWidth:"Width",widgetSize:"Size",fontSize:"Font Size",showStops:"Show Stops",displayStyle:"Display Style",inlineLayout:"inline",blockLayout:"block",buttonStyle:"Show As Button",border:"Show Border",labelWidth:"Width Of Label",rows:"Rows",labelHidden:"Hide Label",required:"Required",requiredHint:"Failure Hint",validation:"Validation",validationHelp:"Regular expressions supported",validationHint:"Validation Hint",readonly:"Readonly",disabled:"Disabled",hidden:"Hidden",textContent:"Text",htmlContent:"HTML",clearable:"Clearable",editable:"Editable",format:"Format",valueFormat:"Value Format",showPassword:"Show Reveal",filterable:"Filterable",allowCreate:"Allow Create",remote:"Remote Query",automaticDropdown:"Automatic Dropdown",multiple:"Multiple",multipleLimit:"Multiple Limit",checkStrictly:"Any Level Selectable",showAllLevels:"Show All Levels",contentPosition:"Content Position",plain:"Plain",round:"Round",circle:"Circle",icon:"Icon",optionsSetting:"Options Setting",addOption:"Add Option",importOptions:"Import Options",resetDefault:"Reset Default",uploadSetting:"Upload Setting",uploadURL:"Upload URL",uploadTip:"Tip Content",withCredentials:"Send Cookie",multipleSelect:"File Multi-select",showFileList:"Show File List",limit:"Max Upload Number",fileMaxSize:"Max Size(MB)",fileTypes:"Upload File Types",fileTypesHelp:"Allows to add more file types",headers:"Request Headers",cellWidth:"Width",cellHeight:"Height",gridColHeight:"Height Of Col(px)",gutter:"Gutter(px)",columnSetting:"Cols Setting",colsOfGrid:"Cols Of Grid:",colSpanTitle:"Spans Of Col",colOffsetTitle:"Offset Of Col",colPushTitle:"Push Of Col",colPullTitle:"Pull Of Col",addColumn:"Add Column",responsive:"Responsive",tabPaneSetting:"Tab Panes",addTabPane:"Add Tab Pane",paneActive:"Active",customLabelIcon:"Custom Label",labelIconClass:"Label Icon Class",labelIconPosition:"Label Icon Position",labelTooltip:"Label Tooltip",minValue:"Min Value",maxValue:"Max Value",precision:"Precision",step:"Step",controlsPosition:"Controls Position",minLength:"Min Length",maxLength:"Max Length",showWordLimit:"Show Word Limit",prefixIcon:"Prefix Icon",suffixIcon:"Suffix Icon",inputButton:"Input Button Setting",appendButton:"Append Button",appendButtonDisabled:"Button Disabled",appendButtonIcon:"Append Button Icon",prependText:"Prepend Text",appendText:"Append Text",buttonIcon:"Button Icon",switchWidth:"Width of Switch(px)",activeText:"Active Text",inactiveText:"Inactive Text",activeColor:"Active Color",inactiveColor:"Inactive Color",maxStars:"Stars Max Number",lowThreshold:"Low Threshold",highThreshold:"High Threshold",allowHalf:"Allow Half",showText:"Show Text",showScore:"Show Score",range:"Range",vertical:"Vertical",showBlankRow:"Show Blank Row",showRowNumber:"Show Row Number",insertColumnToLeft:"insert column to left",insertColumnToRight:"insert column to right",insertRowAbove:"insert row above",insertRowBelow:"insert row below",mergeLeftColumn:"merge left cell",mergeRightColumn:"merge right cell",mergeEntireRow:"merge entire row",mergeRowAbove:"merge cell above",mergeRowBelow:"merge cell below",mergeEntireColumn:"merge entire column",undoMergeCol:"undo merge column",undoMergeRow:"undo merge row",deleteEntireCol:"delete entire column",deleteEntireRow:"delete entire row",widgetName:"Unique Name",formSize:"Size",labelPosition:"Position Of Label",topPosition:"Top",leftPosition:"Left",labelAlign:"Label Align",leftAlign:"Left",centerAlign:"Center",rightAlign:"Right",formCss:"Form CSS",addCss:"Edit",customClass:"Custom Class",globalFunctions:"Global Functions",addEventHandler:"Edit",editWidgetEventHandler:"Edit Widget Event Handler",editFormEventHandler:"Edit Form Event Handler",formSFCSetting:"SFC Setting",formModelName:"Model Name",formRefName:"Ref Name",formRulesName:"Rules Name",syntaxCheckWarning:"Syntax error in the javascript codes, please check again!",tableWidth:"Width(px/%)",tableHeight:"Height(px/%)",showCheckBox:"Show CheckBox",showIndex:"Show Row Number",showPagination:"Show Pagination",smallPagination:"Small Pagination",tableColEdit:"Edit Cols",tableDataEdit:"Edit Data",stripe:"Stripe",showSummary:"Show Summary",rowSpacing:"Row Spacing(px)",editAction:"Edit...",columnName:"Name",columnLabel:"Label",columnWidth:"Width(px/%)",visibleColumn:"Visible",sortableColumn:"Sortable",fixedColumn:"Fixed",alignTypeOfColumn:"Align",formatOfColumn:"Format",actionColumn:"Action",addTableColumn:"Add New Column",deleteTableColumn:"Delete This Column",OnlyOneColumnCannotBeDeleted:"The last column cannot be deleted."}}},w={application:{"zh-CN":"简体中文","en-US":"English",productTitle:"表单设计器",github:"GitHub",document:"文档",qqGroup:"技术WX群",deployment:"私有部署",subscription:"订阅Pro"},designer:{componentLib:"组件库",formLib:"表单模板",containerTitle:"容器",dragHandlerHint:"鼠标拖拽容器组件或字段组件并放置于表单中",dragAction:"拖动",basicFieldTitle:"基础字段",advancedFieldTitle:"高级字段",customFieldTitle:"自定义扩展字段",noWidgetHint:"请从左侧列表中选择一个组件, 然后用鼠标拖动组件放置于此处.",widgetLabel:{grid:"栅格",table:"表格",tab:"标签页",section:"区块","sub-form":"子表单","grid-col":"栅格列","table-cell":"单元格","tab-pane":"选项卡页","data-table":"数据表格",input:"单行输入",textarea:"多行输入",number:"计数器",radio:"单选项",checkbox:"多选项",select:"下拉选项",time:"时间","time-range":"时间范围",date:"日期","date-range":"日期范围",switch:"开关",rate:"评分",color:"颜色选择器",slider:"滑块","static-text":"静态文字","html-text":"HTML",button:"按钮",divider:"分隔线","picture-upload":"图片","file-upload":"文件","rich-editor":"富文本",cascader:"级联选择",slot:"插槽",custom:"Custom Component"},hint:{selectParentWidget:"选中父组件",moveUpWidget:"上移组件",moveDownWidget:"下移组件",cloneWidget:"复制组件",insertRow:"插入新行",insertColumn:"插入新列",remove:"移除组件",cellSetting:"单元格操作",dragHandler:"拖拽手柄",copyField:"复制字段组件",onlyFieldWidgetAcceptable:"子表单只能接收字段组件",moveUpFirstChildHint:"已经移动到最上面",moveDownLastChildHint:"已经移动到最下面",closePreview:"关闭",copyJson:"复制JSON",saveFormJson:"保存为文件",copyVueCode:"复制Vue代码",copyHtmlCode:"复制HTML代码",copyJsonSuccess:"复制JSON成功",importJsonSuccess:"导入JSON成功",copyJsonFail:"复制JSON失败",copyVueCodeSuccess:"复制Vue代码成功",copyVueCodeFail:"复制Vue代码失败",copyHtmlCodeSuccess:"复制HTML代码成功",copyHtmlCodeFail:"复制HTML代码失败",saveVueCode:"保存Vue文件",saveHtmlCode:"保存Html文件",getFormData:"获取数据",resetForm:"重置表单",disableForm:"禁用编辑",enableForm:"恢复编辑",exportFormData:"表单数据",copyFormData:"复制JSON",saveFormData:"保存为文件",copyVue2SFC:"复制Vue2代码",copyVue3SFC:"复制Vue3代码",copySFCFail:"复制SFC代码失败",copySFCSuccess:"复制SFC代码成功",saveVue2SFC:"保存为Vue2组件",saveVue3SFC:"保存为Vue3组件",fileNameForSave:"文件名:",saveFileTitle:"保存为文件",fileNameInputPlaceholder:"请输入文件名",sampleLoadedSuccess:"表单示例加载成功",sampleLoadedFail:"表单示例加载失败",loadFormTemplate:"加载此模板",loadFormTemplateHint:"是否加载这个模板?加载后会覆盖设计器当前表单,你可以使用“撤销”功能恢复。",loadFormTemplateSuccess:"表单模板加载成功",loadFormTemplateFailed:"表单模板加载失败",currentNodeCannotBeSelected:"当前组件节点不可选择",widgetSetting:"组件设置",formSetting:"表单设置",prompt:"提示",confirm:"确定",cancel:"取消",import:"导入",importJsonHint:"导入的JSON内容须符合下述格式,以保证顺利导入.",invalidOptionsData:"无效的选项数据:",lastPaneCannotBeDeleted:"仅剩一个选项卡页不可删除.",duplicateName:"组件名称已存在: ",nameRequired:"组件名称不可为空",numberValidator:"数字",letterValidator:"字母",letterAndNumberValidator:"数字字母",mobilePhoneValidator:"手机号码",emailValidator:"邮箱",urlValidator:"网址",noChineseValidator:"非中文字符",chineseValidator:"仅中文字符",rowspanNotConsistentForMergeEntireRow:"存在行高不一致的单元格, 无法合并整行.",colspanNotConsistentForMergeEntireColumn:"存在列宽不一致的单元格, 无法合并整列.",rowspanNotConsistentForDeleteEntireRow:"存在行高不一致的单元格, 不可删除整行.",colspanNotConsistentForDeleteEntireColumn:"存在列宽不一致的单元格, 不可删除整列.",lastColCannotBeDeleted:"最后一列不可删除.",lastRowCannotBeDeleted:"最后一行不可删除."},toolbar:{undoHint:"撤销",redoHint:"重做",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"组件层次结构树",nodeTreeTitle:"组件层次结构树",clear:"清空",preview:"预览",importJson:"导入JSON",exportJson:"导出JSON",exportCode:"导出代码",generateCode:"生成代码",generateSFC:"生成SFC"},setting:{basicSetting:"基本属性",attributeSetting:"属性设置",commonSetting:"常见属性",advancedSetting:"高级属性",eventSetting:"事件属性",uniqueName:"唯一名称",editNameHelp:"修改名称后需按回车确认",label:"标签",displayType:"显示类型",defaultValue:"默认值",placeholder:"占位内容",startPlaceholder:"起始占位内容",endPlaceholder:"截止占位内容",widgetColumnWidth:"组件列宽",widgetSize:"组件大小",fontSize:"字体大小",showStops:"显示间断点",displayStyle:"显示样式",inlineLayout:"行内",blockLayout:"块",buttonStyle:"显示为按钮",border:"带有边框",labelWidth:"标签宽度",rows:"行数",labelHidden:"隐藏字段标签",required:"必填字段",validation:"字段校验",requiredHint:"必填校验提示",validationHelp:"支持输入正则表达式",validationHint:"校验失败提示",readonly:"只读",disabled:"禁用",hidden:"隐藏",textContent:"静态文字",htmlContent:"HTML",clearable:"可清除",prependText:"前置元素",appendText:"后置元素",editable:"可输入",format:"显示格式",valueFormat:"绑定值格式",showPassword:"可显示密码",filterable:"可搜索选项",allowCreate:"允许创建选项",remote:"可远程搜索",automaticDropdown:"自动弹出选项",multiple:"选项可多选",multipleLimit:"多选数量限制",checkStrictly:"任意级节点可选",showAllLevels:"显示完整路径",contentPosition:"文字位置",plain:"朴素按钮",round:"圆角按钮",circle:"圆形按钮",icon:"图标",optionsSetting:"选项设置",addOption:"增加选项",importOptions:"导入选项",resetDefault:"重设选中项",uploadSetting:"上传参数设置",uploadURL:"上传地址",uploadTip:"上传提示内容",withCredentials:"发送cookie凭证",multipleSelect:"文件可多选",showFileList:"显示文件列表",limit:"最大上传数量",fileMaxSize:"文件大小限制(MB)",fileTypes:"上传文件类型",fileTypesHelp:"支持添加其他文件类型",headers:"上传请求头",cellWidth:"宽度",cellHeight:"高度",gridColHeight:"栅格列统一高度(px)",gutter:"栅格间隔(px)",columnSetting:"栅格属性设置",colsOfGrid:"当前栅格列:",colSpanTitle:"栅格宽度",colOffsetTitle:"左侧间隔格数",colPushTitle:"右移栅格数",colPullTitle:"左移栅格数",addColumn:"增加栅格",responsive:"响应式布局",tabPaneSetting:"选项卡设置",addTabPane:"增加选项卡页",paneActive:"激活",customLabelIcon:"定制字段标签",labelIconClass:"标签Icon样式",labelIconPosition:"标签Icon位置",labelTooltip:"标签文字提示",minValue:"最小值",maxValue:"最大值",precision:"精度",step:"增减步长",controlsPosition:"控制按钮位置",minLength:"最小长度",maxLength:"最大长度",showWordLimit:"显示字数统计",prefixIcon:"头部Icon",suffixIcon:"尾部Icon",inputButton:"输入框按钮设置",appendButton:"添加后置按钮",appendButtonDisabled:"后置按钮禁用",appendButtonIcon:"后置按钮Icon",buttonIcon:"按钮Icon",switchWidth:"开关宽度(像素)",activeText:"开启时文字描述",inactiveText:"关闭时文字描述",activeColor:"开启时背景色",inactiveColor:"关闭时背景色",maxStars:"最大评分值",lowThreshold:"低分界限值",highThreshold:"高分界限值",allowHalf:"允许半选",showText:"显示辅助文字",showScore:"显示当前分数",range:"是否为范围选择",vertical:"是否竖向显示",showBlankRow:"默认显示新行",showRowNumber:"显示行号",insertColumnToLeft:"插入左侧列",insertColumnToRight:"插入右侧列",insertRowAbove:"插入上方行",insertRowBelow:"插入下方行",mergeLeftColumn:"合并左侧单元格",mergeRightColumn:"合并右侧单元格",mergeEntireRow:"合并整行",mergeRowAbove:"合并上方单元格",mergeRowBelow:"合并下方单元格",mergeEntireColumn:"合并整列",undoMergeCol:"撤销列合并",undoMergeRow:"撤销行合并",deleteEntireCol:"删除整列",deleteEntireRow:"删除整行",widgetName:"组件唯一名称",formSize:"全局组件大小",labelPosition:"字段标签位置",topPosition:"顶部",leftPosition:"左边",labelAlign:"标签对齐",leftAlign:"居左",centerAlign:"居中",rightAlign:"居右",formCss:"表单全局CSS",addCss:"编写CSS",customClass:"自定义CSS样式",globalFunctions:"表单全局函数",addEventHandler:"编写代码",editWidgetEventHandler:"组件事件处理",editFormEventHandler:"表单事件处理",formSFCSetting:"生成SFC设置",formModelName:"数据对象名称",formRefName:"引用名称",formRulesName:"验证规则名称",syntaxCheckWarning:"JS代码存在语法错误,请仔细检查!",tableWidth:"宽度(px/%)",tableHeight:"高度(px/%)",showCheckBox:"是否显示复选框列",showIndex:"是否显示行号",showPagination:"是否显示分页",smallPagination:"小型分页",tableColEdit:"表格列编辑",tableDataEdit:"表格数据编辑",showSummary:"是否合计",stripe:"是否斑马线",rowSpacing:"行距(px)",editAction:"编辑...",columnName:"字段名称",columnLabel:"显示名称",columnWidth:"列宽(px/%)",visibleColumn:"是否显示",sortableColumn:"是否排序",fixedColumn:"是否固定",alignTypeOfColumn:"对齐方式",formatOfColumn:"格式化",actionColumn:"操作",addTableColumn:"增加列",deleteTableColumn:"删除列",OnlyOneColumnCannotBeDeleted:"表格只有一列时不可删除."}}},x={render:{hint:{prompt:"Prompt",confirm:"OK",cancel:"Cancel",selectPlaceholder:"Pick some item",timePlaceholder:"Select time",startTimePlaceholder:"Start time",endTimePlaceholder:"End time",datePlaceholder:"Select date",startDatePlaceholder:"Start date",endDatePlaceholder:"End date",blankCellContent:"--",uploadError:"Upload error: ",uploadExceed:"The maximum number(${uploadLimit}) of file uploads has been exceeded.",unsupportedFileType:"Unsupported format: ",fileSizeExceed:"File size out of limit: ",refNotFound:"Ref not found: ",fieldRequired:"Input value should be not null.",invalidNumber:"Invalid number format",selectFile:" File...",downloadFile:"Download",removeFile:"Remove",validationFailed:"Form validation failed",subFormAction:"Action",subFormAddAction:"Add",subFormAddActionHint:"add new row",insertSubFormRow:"insert new row",deleteSubFormRow:"delete this row",nonSubFormType:"The type of widget don't match sub-form"}}},C={render:{hint:{prompt:"提示",confirm:"确定",cancel:"取消",selectPlaceholder:"请选择",timePlaceholder:"选择时间",startTimePlaceholder:"起始时间",endTimePlaceholder:"截止时间",datePlaceholder:"选择日期",startDatePlaceholder:"起始日期",endDatePlaceholder:"截止日期",blankCellContent:"--",uploadError:"上传错误: ",uploadExceed:"最大上传数量(${uploadLimit})已超出.",unsupportedFileType:"不支持格式: ",fileSizeExceed:"文件大小已超出: ",refNotFound:"组件未找到: ",fieldRequired:"字段值不可为空",invalidNumber:"数据格式错误",selectFile:" 选择文件",downloadFile:"下载",removeFile:"移除",validationFailed:"表单数据校验失败",subFormAction:"操作",subFormAddAction:"新增",subFormAddActionHint:"新增行",insertSubFormRow:"插入行",deleteSubFormRow:"删除行",nonSubFormType:"组件类型不是子表单"}}},_={extension:{widgetLabel:{card:"Card",alert:"Alert"},setting:{cardFolded:"Folded",cardShowFold:"Show Fold",cardWidth:"Width Of Card",cardShadow:"Shadow",alertTitle:"Title",alertType:"Type",description:"Description",closable:"Closable",closeText:"Text On Close Btn",center:"Center",showIcon:"Show Icon",effect:"Effect"}}},k={extension:{widgetLabel:{card:"卡片",alert:"提示"},setting:{cardFolded:"是否收起",cardShowFold:"显示折叠按钮",cardWidth:"卡片宽度",cardShadow:"显示阴影",alertTitle:"标题",alertType:"类型",description:"辅助性文字",closable:"是否可关闭",closeText:"关闭按钮文字",center:"文字居中",showIcon:"显示图标",effect:"显示效果"}}};const S={"en-US":{something:{},...p.a,...y,...x,..._},"zh-CN":{something:{},...m.a,...w,...C,...k}},O=/(%|)\{([0-9a-zA-Z_]+)\}/g;function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const L=function(e,t){return e.replace(O,(n,i,o,r)=>{let s;return"{"===e[r-1]&&"}"===e[r+n.length]?o:(s=E(t,o)?t[o]:null,null===s||void 0===s?"":s)})};o.a.use(h,{lang:localStorage.getItem("v_form_locale")||"zh-CN",messages:S}),v.a.i18n((e,t)=>{let n=o.a.prototype.$st(e);return L(n,t)});const A=function(e){o.a.prototype.$si18n.setLang(e),localStorage.setItem("v_form_locale",e)},M=function(e){return o.a.prototype.$st(e)};t["b"]={methods:{i18nt(e){return this.$st(e)},i18n2t(e,t){return this.$st2(e,t)}}}},"7a70":function(e,t,n){},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var i=n("1d80"),o=Object;e.exports=function(e){return o(i(e))}},"7c77":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayStyle")}},[t("el-radio-group",{model:{value:e.optionModel.displayStyle,callback:function(t){e.$set(e.optionModel,"displayStyle",t)},expression:"optionModel.displayStyle"}},[t("el-radio",{attrs:{label:"inline"}},[e._v(e._s(e.i18nt("designer.setting.inlineLayout")))]),t("el-radio",{attrs:{label:"block"}},[e._v(e._s(e.i18nt("designer.setting.blockLayout")))])],1)],1)},o=[],r=n("79fa"),s={name:"displayStyle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"e0557052",null);t["default"]=c.exports},"7cad":function(e,t,n){"use strict";n("b8b3")},"7ceb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonIcon")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.buttonIcon,callback:function(t){e.$set(e.optionModel,"buttonIcon",t)},expression:"optionModel.buttonIcon"}})],1)},o=[],r=n("79fa"),s={name:"buttonIcon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6661828a",null);t["default"]=c.exports},"7cf2":function(e,t,n){},"7d16":function(e,t,n){},"7d6c":function(e,t,n){"use strict";var i=n("c6e3");t["a"]={mixins:[i["a"]],created(){},methods:{editEventHandler(e,t){this.dispatch("SettingPanel","editEventHandler",[e,[...t]])}}}},"7de6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.format")}},[t("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.format,callback:function(t){e.$set(e.optionModel,"format",t)},expression:"optionModel.format"}},[t("el-option",{attrs:{label:"HH:mm:ss",value:"HH:mm:ss"}}),t("el-option",{attrs:{label:"HH时mm分ss秒",value:"HH时mm分ss秒"}}),t("el-option",{attrs:{label:"hh:mm:ss",value:"hh:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"time-format-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"48147b42",null);t["default"]=c.exports},"7ede":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-upload",{ref:"fieldEditor",class:{hideUploadDiv:e.uploadBtnHidden},attrs:{disabled:e.field.options.disabled,action:e.field.options.uploadURL,headers:e.uploadHeaders,data:e.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":e.fileList,"show-file-list":e.field.options.showFileList,"list-type":"picture-card",limit:e.field.options.limit,"on-exceed":e.handlePictureExceed,"on-preview":e.handlePicturePreview,"before-upload":e.beforePictureUpload,"on-success":e.handlePictureUpload,"on-error":e.handleUploadError,"on-remove":e.handlePictureRemove}},[e.field.options.uploadTip?t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.field.options.uploadTip))]):e._e(),t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e.showPreviewDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],attrs:{title:"",visible:e.showPreviewDialogFlag,"append-to-body":!0,width:"60%","show-close":!0,"custom-class":"drag-dialog small-padding-dialog","close-on-click-modal":!0,"close-on-press-escape":!0,"destroy-on-close":!0},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[t("img",{attrs:{src:e.previewUrl,width:"100%",alt:""}})]):e._e()],1)},o=[],r=(n("14d9"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("ca00"),c=n("2d11"),d={name:"picture-upload-widget",componentName:"FieldWidget",mixins:[s["a"],c["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:[],rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1,previewUrl:"",showPreviewDialogFlag:!1}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{handlePictureExceed(){let e=this.field.options.limit;this.$message.warning(this.i18nt("render.hint.uploadExceed").replace("${uploadLimit}",e))},handlePicturePreview(e){this.previewUrl=e.url,this.showPreviewDialogFlag=!0},beforePictureUpload(e){let t=!1;if(this.field.options&&this.field.options.fileTypes){let n=this.field.options.fileTypes;n.length>0&&(t=n.some(t=>e.type==="image/"+t))}if(!t)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+e.type),!1;let n=!1,i=5;return this.field.options&&this.field.options.fileMaxSize&&(i=this.field.options.fileMaxSize),n=e.size/1024/1024<=i,n?(this.uploadData.key=e.name,this.handleOnBeforeUpload(e)):(this.$message.error(this.i18nt("render.hint.fileSizeExceed")+i+"MB"),!1)},handleOnBeforeUpload(e){if(this.field.options.onBeforeUpload){let t=new Function("file",this.field.options.onBeforeUpload),n=t.call(this,e);return"boolean"!==typeof n||n}return!0},updateFieldModelAndEmitDataChangeForUpload(e,t,n){let i=Object(l["d"])(this.fieldModel);t&&t.name&&t.url?this.fieldModel.push({name:t.name,url:t.url}):n&&n.name&&n.url?this.fieldModel.push({name:n.name,url:n.url}):this.fieldModel=Object(l["d"])(e),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,i)},handlePictureUpload(e,t,n){if("success"===t.status){let i=null;if(this.field.options.onUploadSuccess){let o=new Function("result","file","fileList",this.field.options.onUploadSuccess);i=o.call(this,e,t,n)}this.updateFieldModelAndEmitDataChangeForUpload(n,i,e),this.fileList=Object(l["d"])(n),this.uploadBtnHidden=n.length>=this.field.options.limit}},updateFieldModelAndEmitDataChangeForRemove(e,t){let n=Object(l["d"])(this.fieldModel),i=-1;this.fileList.map((t,n)=>{t.name===e.name&&(t.url===e.url||t.uid&&t.uid===e.uid)&&(i=n)}),i>-1&&this.fieldModel.splice(i,1),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,n)},handlePictureRemove(e,t){if(this.updateFieldModelAndEmitDataChangeForRemove(e,t),this.fileList=Object(l["d"])(t),this.uploadBtnHidden=t.length>=this.field.options.limit,this.field.options.onFileRemove){let n=new Function("file","fileList",this.field.options.onFileRemove);n.call(this,e,t)}},handleUploadError(e,t,n){if(this.field.options.onUploadError){let i=new Function("error","file","fileList",this.field.options.onUploadError);i.call(this,e,t,n)}else this.$message({message:this.i18nt("render.hint.uploadError")+e,duration:3e3,type:"error"})}}},u=d,h=(n("bb4f"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"2afec1d2",null);t["default"]=f.exports},8029:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onInput","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onInput",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onInput-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["value"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"6178f9e2",null);t["default"]=d.exports},"803d":function(e,t,n){(function(e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.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",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.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",l=t.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",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.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",f=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"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:d},{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:"("+d+")(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:d},{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:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{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()};i.inherits(f,o),t.CssHighlightRules=f})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var i={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}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));i.hasOwnProperty(n)||(i[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column),r=/\([^)]*$/.test(o);return r&&(o=o.substr(o.lastIndexOf("(")+1)),/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i,r)}return[]},this.getPropertyCompletions=function(e,t,n,o,r){r=r||!1;var s=Object.keys(i);return s.map((function(e){return{caption:e,snippet:e+": $0"+(r?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,o){var r=t.getLine(n.row).substr(0,n.column),s=(/([\w\-]+):[^:]*$/.exec(r)||{})[1];if(!s)return[];var a=[];return s in i&&"object"==typeof i[s]&&(a=Object.keys(i[s])),a.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(o.prototype),t.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=i.doc.getLine(s.row),d=c.substring(s.column,s.column+1);if(":"===d)return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type){var d=i.doc.getLine(o.start.row),u=d.substring(o.end.column,o.end.column+1);if(";"===u)return o.end.column++,o}}})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row),a=s.substring(r.column,r.column+1);if(";"===a)return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}}))};i.inherits(s,o),t.CssBehaviour=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),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(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.prototype)})),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(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};i.inherits(u,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return i;var r=t.match(/^.*\{\s*$/);return r&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u})),function(){ace.require(["ace/mode/css"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"80c6":function(e,t,n){"use strict";n("03bf")},"80e0":function(e,t,n){"use strict";n("a445")},8122:function(e,t,n){"use strict";n("d9e2"),t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=c,t.hasOwn=d,t.toObject=h,t.getPropByPath=f,t.rafThrottle=v,t.objToArray=y;var o=n("8bbf"),r=a(o),s=n("a742");function a(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function c(){}function d(e,t){return l.call(e,t)}function u(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&u(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,o=null,r=0,s=n.length;r<s;r++){var a=n[r];if(!i)break;if(r===s-1){o=i[a];break}i=i[a]}return o};function f(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var o=t.split("."),r=0,s=o.length;r<s-1;++r){if(!i&&!n)break;var a=o[r];if(!(a in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[a]}return{o:i,k:o[r],v:i?i[o[r]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},g=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!r.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!r.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!r.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),i=(0,s.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),m=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!g(e[n],t[n]))return!1;return!0},b=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?m(e,t):g(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function v(e){var t=!1;return function(){for(var n=this,i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,o),t=!1})))}}function y(e){return Array.isArray(e)?e:b(e)?[]:[e]}},"825a":function(e,t,n){var i=n("861d"),o=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw r(o(e)+" is not an object")}},"826c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-slider",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"show-stops":e.field.options.showStops,min:e.field.options.min,max:e.field.options.max,step:e.field.options.step,range:e.field.options.range,vertical:e.field.options.vertical},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"slider-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("e6b8"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"ddcdb608",null);t["default"]=h.exports},"827a":function(e,t,n){},"828b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"field-wrapper",class:{"design-time-bottom-margin":!!this.designer},style:{display:e.displayStyle}},[e.field.options.hidden&&!0!==e.designState?e._e():t("div",{staticClass:"static-content-item",class:[e.selected?"selected":"",e.customClass],style:{display:e.displayStyle},on:{click:function(t){return t.stopPropagation(),e.selectField(e.field)}}},[e._t("default")],2),this.designer?[e.designer.selectedId===e.field.id?t("div",{staticClass:"field-action"},[t("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.field)}}}),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget(e.field)}}}):e._e(),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget(e.field)}}}):e._e(),t("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeFieldWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.field.id?t("div",{staticClass:"drag-handler background-opacity"},[t("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),t("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.field.type,"extension.widgetLabel."+e.field.type)))]),!0===e.field.options.hidden?t("i",{staticClass:"iconfont icon-hide"}):e._e()]):e._e()]:e._e()],2)},o=[],r=n("79fa"),s={name:"static-content-wrapper",mixins:[r["b"]],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},displayStyle:{type:String,default:"block"},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},computed:{selected(){return!!this.designer&&this.field.id===this.designer.selectedId},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""}},methods:{selectField(e){this.designer&&(this.designer.setSelected(e),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){let e=null;1===this.parentList.length?this.parentWidget&&(e=this.parentWidget):e=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(e),this.designer.emitHistoryChange()})}}}},a=s,l=(n("4bc9"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"489caa18",null);t["default"]=c.exports},8299:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.plain")}},[t("el-switch",{model:{value:e.optionModel.plain,callback:function(t){e.$set(e.optionModel,"plain",t)},expression:"optionModel.plain"}})],1)},o=[],r=n("79fa"),s={name:"plain-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3e3f86f2",null);t["default"]=c.exports},"835d":function(e,t,n){"use strict";n("ba30")},"839e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onBeforeUpload","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onBeforeUpload",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onBeforeUpload-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["file"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"6985c67c",null);t["default"]=d.exports},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),o=n("e683");e.exports=function(e,t){return e&&!i(t)?o(e,t):t}},"83bf":function(e,t,n){"use strict";n("dc77")},"848b":function(e,t,n){"use strict";var i=n("4a0c"),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var r={},s=i.version.split(".");function a(e,t){for(var n=t?t.split("."):s,i=e.split("."),o=0;o<3;o++){if(n[o]>i[o])return!0;if(n[o]<i[o])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),o=i.length;while(o-- >0){var r=i[o],s=t[r];if(s){var a=e[r],l=void 0===a||s(a,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+r)}}o.transitional=function(e,t,n){var o=t&&a(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(s(i," has been removed in "+t));return o&&!r[i]&&(r[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={isOlderVersion:a,assertOptions:l,validators:o}},"84b5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-input",{ref:"fieldEditor",attrs:{type:"textarea",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,placeholder:e.field.options.placeholder,rows:e.field.options.rows,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"textarea-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("e646"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"90e01c78",null);t["default"]=h.exports},"851c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("div",{ref:"fieldEditor",style:e.field.options.fontSize?`font-size: ${e.field.options.fontSize};`:""},[e._v(" "+e._s(e.field.options.textContent))])])},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"static-text-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("80c6"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"15a81133",null);t["default"]=h.exports},"861d":function(e,t,n){var i=n("1626"),o=n("8ea1"),r=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===r}:function(e){return"object"==typeof e?null!==e:i(e)}},8740:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-vue-sfc",use:"icon-vue-sfc-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-vue-sfc"><defs><style type="text/css"></style></defs><path d="M454.137642 11.17578L54.066443 174.091899c-72.088591 29.490787-72.088591 120.523113 0 150.0139l400.275996 162.916119c36.45389 14.950191 78.846896 14.950191 115.505583 0l400.071199-162.813721c72.190989-29.593186 72.088591-120.830308-0.307196-150.116298L569.745624 11.278178A155.338625 155.338625 0 0 0 454.137642 11.073381z m469.190231 237.871869L532.370147 408.584616l-7.88469 2.457565a55.090429 55.090429 0 0 1-32.562744-2.457565L100.350595 249.047649 491.615517 89.817879a55.090429 55.090429 0 0 1 40.447434 0l391.162524 159.22977z" fill="#1890FF" p-id="1211" /><path d="M498.681018 729.911317c-20.274916 0-40.652231-3.788747-59.391168-11.673436L53.759247 561.260878C20.479713 547.846666 0 519.891858 0 488.557896c0-31.43636 20.582112-59.391169 53.861646-72.702982l36.556288-15.052589c21.4013-8.806277 47.103341-1.023986 57.240799 17.407756 10.239857 18.226945 1.023986 40.140238-20.479714 48.946515l-36.453889 14.950191c-3.071957 1.228783-4.710334 3.58395-4.710334 6.451109 0 3.071957 1.535978 5.119928 4.710334 6.45111l385.325805 156.874604c14.335799 5.939117 30.924367 5.939117 45.362565 0l385.325806-156.874604c3.071957-1.228783 4.915131-3.58395 4.915131-6.45111 0-3.071957-1.535978-5.222327-4.607936-6.451109L862.195929 463.879842c-21.4013-8.806277-30.412374-30.71957-20.377314-48.946515 10.342255-18.329343 35.839498-26.214033 57.240798-17.407756l44.850572 18.431742c33.177136 13.516611 53.759247 41.266622 53.759248 72.702982 0 31.333961-20.479713 59.391169-53.759248 72.702982L558.481781 718.237881a161.584938 161.584938 0 0 1-59.800763 11.673436z" fill="#5DE1C8" p-id="1212" /><path d="M498.681018 966.247209c-20.274916 0-40.652231-3.891146-59.391168-11.673437L53.759247 797.59677C20.479713 784.080159 0 756.227749 0 724.996186c0-31.43636 20.582112-59.493567 53.861646-72.805381l36.556288-14.95019c21.4013-8.806277 47.103341-1.023986 57.240799 17.407756 10.239857 18.226945 1.023986 40.140238-20.479714 48.946515l-36.453889 14.95019c-3.071957 1.126384-4.710334 3.58395-4.710334 6.45111 0 3.071957 1.535978 5.119928 4.710334 6.348711l385.325805 156.977002c14.335799 5.939117 30.924367 5.939117 45.362565 0L906.739306 731.1401c3.071957-1.126384 4.915131-3.58395 4.915131-6.348711 0-3.071957-1.535978-5.324725-4.607936-6.45111l-44.850572-18.329343c-21.4013-8.806277-30.412374-30.71957-20.377314-48.946515 10.342255-18.431742 35.839498-26.214033 57.240798-17.407756l44.850572 18.329343c33.177136 13.516611 53.759247 41.369021 53.759248 72.702982 0 31.43636-20.479713 59.493567-53.759248 72.805381L558.481781 954.573772a161.584938 161.584938 0 0 1-59.800763 11.673437z" fill="#FF7272" p-id="1213" /></symbol>'});s.a.add(a);t["default"]=a},8745:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.fontSize")}},[t("el-input",{model:{value:e.optionModel.fontSize,callback:function(t){e.$set(e.optionModel,"fontSize",t)},expression:"optionModel.fontSize"}})],1)},o=[],r=n("79fa"),s={name:"fontSize-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"27111335",null);t["default"]=c.exports},"87ca":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.disabled")}},[t("el-switch",{model:{value:e.optionModel.disabled,callback:function(t){e.$set(e.optionModel,"disabled",t)},expression:"optionModel.disabled"}})],1)},o=[],r=n("79fa"),s={name:"disabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"481194aa",null);t["default"]=c.exports},"88dd":function(e,t,n){"use strict";n("919d")},8921:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"table-container"},[t("table",{ref:e.widget.id,staticClass:"table-layout",class:[e.customClass]},[t("tbody",e._l(e.widget.rows,(function(n,i){return t("tr",{key:n.id},[e._l(n.cols,(function(n,o){return[n.merged?e._e():t("table-cell-item",{key:o,attrs:{widget:n,"parent-list":e.widget.cols,"row-index":i,"col-index":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2)})),0)])])])},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("6a79"),d=n("34f0"),u={name:"table-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],d["a"]],components:{ContainerItemWrapper:l["default"],TableCellItem:c["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeDestroy(){this.unregisterFromRefList()},methods:{}},h=u,f=(n("80e0"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"5a8d7072",null);t["default"]=p.exports},8923:function(e,t,n){},8925:function(e,t,n){var i=n("e330"),o=n("1626"),r=n("c6cd"),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return s(e)}),e.exports=r.inspectSource},"89bc":function(e,t,n){"use strict";n("fb95")},"89ef":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-html-text",use:"icon-html-text-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-html-text"><defs><style type="text/css"></style></defs><path d="M137.6 512l204.8-204.8c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L70.4 489.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4l227.2 227.2c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L137.6 512z m464-339.2c-16-3.2-35.2 6.4-38.4 22.4L396.8 812.8c-3.2 16 6.4 35.2 22.4 38.4 16 3.2 35.2-6.4 38.4-22.4L624 211.2c6.4-16-3.2-35.2-22.4-38.4z m352 316.8L726.4 262.4c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L886.4 512 681.6 716.8c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l227.2-227.2c6.4-6.4 9.6-16 9.6-22.4 0-9.6-3.2-16-9.6-22.4z" p-id="56264" /></symbol>'});s.a.add(a);t["default"]=a},"8a3e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-select",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"allow-create":e.field.options.allowCreate,"default-first-option":e.allowDefaultFirstOption,"automatic-dropdown":e.field.options.automaticDropdown,multiple:e.field.options.multiple,"multiple-limit":e.field.options.multipleLimit,placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder"),remote:e.field.options.remote,"remote-method":e.remoteQuery},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},e._l(e.field.options.optionItems,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"select-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{allowDefaultFirstOption(){return!!this.field.options.filterable&&!!this.field.options.allowCreate}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("41c5"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"19724718",null);t["default"]=h.exports},"8aa9":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.noLabelSetting||"button"===e.selectedWidget.type?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[t("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.optionModel.labelAlign,callback:function(t){e.$set(e.optionModel,"labelAlign",t)},expression:"optionModel.labelAlign"}},[t("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.leftAlign")))]),t("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.centerAlign")))]),t("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1)},o=[],r=n("79fa"),s={name:"labelAlign-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=(n("4345"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"3312ca7f",null);t["default"]=c.exports},"8b30":function(e,t,n){var i={"./container-wrapper.vue":"cd36","./grid-col-widget.vue":"f772","./grid-widget.vue":"e11b","./tab-widget.vue":"5835","./table-cell-widget.vue":"1516","./table-widget.vue":"f6e6"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="8b30"},"8b48":function(e,t,n){"use strict";n("ce0e")},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8df4":function(e,t,n){"use strict";var i=n("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8ea1":function(e,t){var n="object"==typeof document&&document.all,i="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:i}},"8f6d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showWordLimit")}},[t("el-switch",{model:{value:e.optionModel.showWordLimit,callback:function(t){e.$set(e.optionModel,"showWordLimit",t)},expression:"optionModel.showWordLimit"}})],1)},o=[],r=n("79fa"),s={name:"showWordLimit-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"b6bf0f48",null);t["default"]=c.exports},"8fb7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-tab"><defs><style type="text/css"></style></defs><path d="M908.8 1005.44H115.2a101.76 101.76 0 0 1-101.12-101.76V110.72A101.76 101.76 0 0 1 115.2 8.96h296.96a32.64 32.64 0 0 1 32 32V262.4a32 32 0 0 1-32 32 32 32 0 0 1-32-32v-192H115.2a37.76 37.76 0 0 0-37.12 37.76v795.52a37.76 37.76 0 0 0 37.12 37.76h793.6a37.76 37.76 0 0 0 37.12-37.76V267.52a32 32 0 0 1 32-32 32 32 0 0 1 32 32v636.16a101.76 101.76 0 0 1-101.12 101.76z" p-id="9210" /><path d="M977.92 299.52a32.64 32.64 0 0 1-32-32V180.48a37.12 37.12 0 0 0-37.12-37.76H421.12a32 32 0 0 1-32-32 32 32 0 0 1 32-32h487.68a101.76 101.76 0 0 1 101.12 101.76v87.04a32 32 0 0 1-32 32z" p-id="9211" /><path d="M977.92 299.52H64a32 32 0 0 1-32-32 32 32 0 0 1 32-32h913.92a32 32 0 0 1 32 32 32 32 0 0 1-32 32z" p-id="9212" /><path d="M699.52 299.52a32 32 0 0 1-32-32V110.72a32 32 0 0 1 64 0v156.8a32 32 0 0 1-32 32z" p-id="9213" /></symbol>'});s.a.add(a);t["default"]=a},9e3:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelIconPosition")}},[t("el-select",{model:{value:e.optionModel.labelIconPosition,callback:function(t){e.$set(e.optionModel,"labelIconPosition",t)},expression:"optionModel.labelIconPosition"}},e._l(e.labelIconPosition,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"labelIconPosition-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{labelIconPosition:[{label:"front",value:"front"},{label:"rear",value:"rear"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7d90012c",null);t["default"]=c.exports},9041:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendText")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.appendText,callback:function(t){e.$set(e.optionModel,"appendText",t)},expression:"optionModel.appendText"}})],1)},o=[],r=n("79fa"),s={name:"appendText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6cbe2ec1",null);t["default"]=c.exports},"907a":function(e,t,n){"use strict";var i=n("ebb5"),o=n("07fa"),r=n("5926"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("at",(function(e){var t=s(this),n=o(t),i=r(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}))},"90c2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default")],2)},o=[],r={name:"container-item-wrapper",props:{widget:{type:Object,required:!0}},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},s=r,a=n("2877"),l=Object(a["a"])(s,i,o,!1,null,"4277aed9",null);t["default"]=l.exports},"90e3":function(e,t,n){var i=n("e330"),o=0,r=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+r,36)}},9112:function(e,t,n){var i=n("83ab"),o=n("9bf2"),r=n("5c6c");e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"913f":function(e,t,n){"use strict";n("d834")},9152:function(e,t){ |
| | | "use strict";var i=e("./oop"),o=function(){var e,t,n={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",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.PRINTABLE_KEYS[173]="-",n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i,o=e("./keys"),r=e("./useragent"),s=null,a=0;function l(){i=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){i={passive:!1}}})}catch(e){}}function c(){return void 0==i&&l(),i}function d(e,t,n){this.elem=e,this.type=t,this.callback=n}d.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=t.addListener=function(e,t,n,i){e.addEventListener(t,n,c()),i&&i.$toDestroy.push(new d(e,t,n))},h=t.removeListener=function(e,t,n){e.removeEventListener(t,n,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var i=e&&e.ownerDocument||document;function o(e){t&&t(e),n&&n(e),h(i,"mousemove",t),h(i,"mouseup",o),h(i,"dragstart",o)}return u(i,"mousemove",t),u(i,"mouseup",o),u(i,"dragstart",o),o},t.addMouseWheelListener=function(e,t,n){u(e,"wheel",(function(e){var n=.15,i=e.deltaX||0,o=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=i*n,e.wheelY=o*n;break;case e.DOM_DELTA_LINE:var r=15;e.wheelX=i*r,e.wheelY=o*r;break;case e.DOM_DELTA_PAGE:var s=150;e.wheelX=i*s,e.wheelY=o*s;break}t(e)}),n)},t.addMultiMouseDownListener=function(e,n,i,o,s){var a,l,c,d=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(e){if(0!==t.getButton(e)?d=0:e.detail>1?(d++,d>4&&(d=1)):d=1,r.isIE){var s=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;c&&!s||(d=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[d-1]||600),1==d&&(a=e.clientX,l=e.clientY)}if(e._clicks=d,i[o]("mousedown",e),d>4)d=0;else if(d>1)return i[o](h[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){u(e,"mousedown",f,s)}))};var f=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function p(e,t,n){var i=f(t);if(!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),s.altGr){if(3==(3&i))return;s.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==s[n]&&(a=t.timeStamp);else if(18===n&&3===i&&2===l){var c=t.timeStamp-a;c<50&&(s.altGr=!0)}}}if(n in o.MODIFIER_KEYS&&(n=-1),!i&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,i,-n),t.defaultPrevented))return}if(r.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,i,n)}function g(){s=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[f(e)]},t.addCommandKeyListener=function(e,n,i){if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var o=null;u(e,"keydown",(function(e){o=e.keyCode}),i),u(e,"keypress",(function(e){return p(n,e,o)}),i)}else{var a=null;u(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return a=e.defaultPrevented,t}),i),u(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),i),u(e,"keyup",(function(e){s[e.keyCode]=null}),i),s||(g(),u(window,"focus",g))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var i="zero-timeout-message-"+m++,o=function(r){r.data==i&&(t.stopPropagation(r),h(n,"message",o),e())};u(n,"message",o),n.postMessage(i,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t){return e.row-t.row||e.column-t.column},o=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(i.row,i.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(i.row,i.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return o.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var r={row:e,column:t};return o.fromPoints(i||this.start,r||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new o(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(o.prototype),o.fromPoints=function(e,t){return new o(e.row,e.column,t.row,t.column)},o.comparePoints=i,o.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=o})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("../clipboard"),l=o.isChrome<18,c=o.isIE,d=o.isChrome>63,u=400,h=e("../lib/keys"),f=h.KEY_MODS,p=o.isIOS,g=p?/\s/:/\n/,m=o.isMobile,b=function(e,t){var n=r.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var b=!1,v=!1,y=!1,w=!1,x="";m||(n.style.fontSize="1px");var C=!1,_=!1,k="",S=0,O=0,E=0;try{var L=document.activeElement===n}catch(X){}this.setAriaOptions=function(e){e.activeDescendant?(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-autocomplete","list"),n.setAttribute("aria-activedescendant",e.activeDescendant)):(n.setAttribute("aria-haspopup","false"),n.setAttribute("aria-autocomplete","both"),n.removeAttribute("aria-activedescendant")),e.role&&n.setAttribute("role",e.role)},this.setAriaOptions({role:"textbox"}),i.addListener(n,"blur",(function(e){_||(t.onBlur(e),L=!1)}),t),i.addListener(n,"focus",(function(e){if(!_){if(L=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(A):A()}}),t),this.$focusScroll=!1,this.focus=function(){if(x||d||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(X){return}var i=[];if(t){var o=n.parentElement;while(o&&1==o.nodeType)i.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement}n.focus({preventScroll:!0}),t&&i.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return L},t.on("beforeEndOperation",(function(){var e=t.curOp,i=e&&e.command&&e.command.name;if("insertstring"!=i){var o=i&&(e.docChanged||e.selectionChanged);y&&o&&(k=n.value="",B()),A()}}));var A=p?function(e){if(L&&(!b||e)&&!w){e||(e="");var i="\n ab"+e+"cde fg\n";i!=n.value&&(n.value=k=i);var o=4,r=4+(e.length||(t.selection.isEmpty()?0:1));S==o&&O==r||n.setSelectionRange(o,r),S=o,O=r}}:function(){if(!y&&!w&&(L||R)){y=!0;var e=0,i=0,o="";if(t.session){var r=t.selection,s=r.getRange(),a=r.cursor.row;if(e=s.start.column,i=s.end.column,o=t.session.getLine(a),s.start.row!=a){var l=t.session.getLine(a-1);e=s.start.row<a-1?0:e,i+=l.length+1,o=l+"\n"+o}else if(s.end.row!=a){var c=t.session.getLine(a+1);i=s.end.row>a+1?c.length:i,i+=o.length+1,o=o+"\n"+c}else m&&a>0&&(o="\n"+o,i+=1,e+=1);o.length>u&&(e<u&&i<u?o=o.slice(0,u):(o="\n",e==i?e=i=0:(e=0,i=1)))}var d=o+"\n\n";if(d!=k&&(n.value=k=d,S=O=d.length),R&&(S=n.selectionStart,O=n.selectionEnd),O!=i||S!=e||n.selectionEnd!=O)try{n.setSelectionRange(e,i),S=e,O=i}catch(X){}y=!1}};this.resetSelection=A,L&&t.onFocus();var M=function(e){return 0===e.selectionStart&&e.selectionEnd>=k.length&&e.value===k&&k&&e.selectionEnd!==O},$=function(e){y||(b?b=!1:M(n)?(t.selectAll(),A()):m&&n.selectionStart!=S&&A())},T=null;this.setInputHandler=function(e){T=e},this.getInputHandler=function(){return T};var R=!1,F=function(e,i){if(R&&(R=!1),v)return A(),e&&t.onPaste(e),v=!1,"";var r=n.selectionStart,s=n.selectionEnd,a=S,l=k.length-O,c=e,d=e.length-r,u=e.length-s,h=0;while(a>0&&k[h]==e[h])h++,a--;c=c.slice(h),h=1;while(l>0&&k.length-h>S-1&&k[k.length-h]==e[e.length-h])h++,l--;d-=h-1,u-=h-1;var f=c.length-h+1;if(f<0&&(a=-f,f=0),c=c.slice(0,f),!i&&!c&&!d&&!a&&!l&&!u)return"";w=!0;var p=!1;return o.isAndroid&&". "==c&&(c=" ",p=!0),c&&!a&&!l&&!d&&!u||C?t.onTextInput(c):t.onTextInput(c,{extendLeft:a,extendRight:l,restoreStart:d,restoreEnd:u}),w=!1,k=e,S=r,O=s,E=u,p?"\n":c},j=function(e){if(y)return H();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var i=n.value,o=F(i,!0);(i.length>u+100||g.test(o)||m&&S<1&&S==O)&&A()},q=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!l){var o=c||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return q(e,t,!0)}}},I=function(e,o){var r=t.getCopyText();if(!r)return i.preventDefault(e);q(e,r)?(p&&(A(r),b=r,setTimeout((function(){b=!1}),10)),o?t.onCut():t.onCopy(),i.preventDefault(e)):(b=!0,n.value=r,n.select(),setTimeout((function(){b=!1,A(),o?t.onCut():t.onCopy()})))},N=function(e){I(e,!0)},P=function(e){I(e,!1)},D=function(e){var r=q(e);a.pasteCancelled()||("string"==typeof r?(r&&t.onPaste(r,e),o.isIE&&setTimeout(A),i.preventDefault(e)):(n.value="",v=!0))};i.addCommandKeyListener(n,t.onCommandKey.bind(t),t),i.addListener(n,"select",$,t),i.addListener(n,"input",j,t),i.addListener(n,"cut",N,t),i.addListener(n,"copy",P,t),i.addListener(n,"paste",D,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:P(e);break;case 86:D(e);break;case 88:N(e);break}}),t);var W=function(e){if(!y&&t.onCompositionStart&&!t.$readOnly&&(y={},!C)){e.data&&(y.useTextareaForIME=!1),setTimeout(H,0),t._signal("compositionStart"),t.on("mousedown",z);var i=t.getSelectionRange();i.end.row=i.start.row,i.end.column=i.start.column,y.markerRange=i,y.selectionStart=S,t.onCompositionStart(y),y.useTextareaForIME?(k=n.value="",S=0,O=0):(n.msGetInputContext&&(y.context=n.msGetInputContext()),n.getInputContext&&(y.context=n.getInputContext()))}},H=function(){if(y&&t.onCompositionUpdate&&!t.$readOnly){if(C)return z();if(y.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;F(e),y.markerRange&&(y.context&&(y.markerRange.start.column=y.selectionStart=y.context.compositionStartOffset),y.markerRange.end.column=y.markerRange.start.column+O-y.selectionStart+E)}}},B=function(e){t.onCompositionEnd&&!t.$readOnly&&(y=!1,t.onCompositionEnd(),t.off("mousedown",z),e&&j())};function z(){_=!0,n.blur(),n.focus(),_=!1}var V,U=s.delayedCall(H,50).schedule.bind(null,null);function G(e){27==e.keyCode&&n.value.length<n.selectionStart&&(y||(k=n.value),S=O=-1,A()),U()}function K(){clearTimeout(V),V=setTimeout((function(){x&&(n.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}i.addListener(n,"compositionstart",W,t),i.addListener(n,"compositionupdate",H,t),i.addListener(n,"keyup",G,t),i.addListener(n,"keydown",U,t),i.addListener(n,"compositionend",B,t),this.getElement=function(){return n},this.setCommandMode=function(e){C=e,n.readOnly=!1},this.setReadOnly=function(e){C||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){R=!0,A(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){x||(x=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+(o.isIE?"opacity:0.1;":"")+"text-indent: -"+(S+O)*t.renderer.characterWidth*.5+"px;";var a=t.container.getBoundingClientRect(),l=r.computedStyle(t.container),c=a.top+(parseInt(l.borderTopWidth)||0),d=a.left+(parseInt(a.borderLeftWidth)||0),u=a.bottom-c-n.clientHeight-2,h=function(e){r.translate(n,e.clientX-d-2,Math.min(e.clientY-c-2,u))};h(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(V),o.isWin&&i.capture(t.container,h,K))},this.onContextMenuClose=K;var Y=function(e){t.textInput.onContextMenu(e),K()};function J(e,t,n){var i=null,o=!1;n.addEventListener("keydown",(function(e){i&&clearTimeout(i),o=!0}),!0),n.addEventListener("keyup",(function(e){i=setTimeout((function(){o=!1}),100)}),!0);var r=function(e){if(document.activeElement===n&&!(o||y||t.$mouseHandler.isMousePressed)&&!b){var i=n.selectionStart,r=n.selectionEnd,s=null,a=0;if(0==i?s=h.up:1==i?s=h.home:r>O&&"\n"==k[r]?s=h.end:i<S&&" "==k[i-1]?(s=h.left,a=f.option):i<S||i==S&&O!=S&&i==r?s=h.left:r>O&&k.slice(0,r).split("\n").length>2?s=h.down:r>O&&" "==k[r-1]?(s=h.right,a=f.option):(r>O||r==O&&O!=S&&i==r)&&(s=h.right),i!==r&&(a|=f.shift),s){var l=t.onCommandKey({},a,s);if(!l&&t.commands){s=h.keyCodeToString(s);var c=t.commands.findKeyCommand(a,s);c&&t.execCommand(c)}S=i,O=r,A("")}}};document.addEventListener("selectionchange",r),t.on("destroy",(function(){document.removeEventListener("selectionchange",r)}))}i.addListener(n,"mouseup",Y,t),i.addListener(n,"mousedown",(function(e){e.preventDefault(),K()}),t),i.addListener(t.renderer.scroller,"contextmenu",Y,t),i.addListener(n,"contextmenu",Y,t),p&&J(e,t,n),this.destroy=function(){n.parentElement&&n.parentElement.removeChild(n)}};t.TextInput=b,t.$setUserAgentForTests=function(e,t){m=e,p=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/useragent"),o=0,r=550;function s(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function a(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,r=e.getButton();if(0!==r){var s=o.getSelectionRange(),a=s.isEmpty();return(a||1==r)&&o.selection.moveToPosition(n),void(2==r&&(o.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var o=l(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](i.row,i.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==r&&s<=0)t=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&r>=0)t=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==r&&1==s)i=o.end,t=o.start;else{var a=l(this.$clickSelection,i);i=a.cursor,t=a.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>o||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session,o=i.getBracketRange(t);o?(o.isEmpty()&&(o.start.column--,o.end.column++),this.setState("select")):(o=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=o,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,o=i-n.t,s=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<r&&(s=(s+n.vx)/2,a=(a+n.vy)/2);var l=Math.abs(s/a),c=!1;if(l>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=i;else if(i-n.allowed<r){var d=Math.abs(s)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy);d?(c=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=s,n.vy=a,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(s.prototype),t.DefaultHandlers=s})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom"),o="ace_tooltip";function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){var t,n,o,s=e.editor,a=s.renderer.$gutterLayer,c=new l(s.container);function d(){var t=n.getDocumentPosition().row,i=a.$annotations[t];if(!i)return u();var r=s.session.getLength();if(t==r){var l=s.renderer.pixelToScreenCoordinates(0,n.y).row,d=n.$pos;if(l>s.session.documentToScreenRow(d.row,d.column))return u()}if(o!=i){o=i.text.join("<br/>"),c.setHtml(o);var f=i.className;if(f&&c.setClassName(f.trim()),c.show(),s._signal("showGutterTooltip",c),s.on("mousewheel",u),e.$tooltipFollowsMouse)h(n);else{var p=n.domEvent.target,g=p.getBoundingClientRect(),m=c.getElement().style;m.left=g.right+"px",m.top=g.bottom+"px"}}}function u(){t&&(t=clearTimeout(t)),o&&(c.hide(),o=null,s._signal("hideGutterTooltip",c),s.off("mousewheel",u))}function h(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(s.isFocused()&&0==t.getButton()){var n=a.getRegion(t);if("foldWidgets"!=n){var i=t.getDocumentPosition().row,o=s.session.selection;if(t.getShiftKey())o.selectTo(i,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}})),e.editor.setDefaultHandler("guttermousemove",(function(r){var s=r.domEvent.target||r.domEvent.srcElement;if(i.hasCssClass(s,"ace_fold-widget"))return u();o&&e.$tooltipFollowsMouse&&h(r),n=r,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?d():u()}),50))})),r.addListener(s.renderer.$gutter,"mouseout",(function(e){n=null,o&&!t&&(t=setTimeout((function(){t=null,u()}),50))}),s),s.on("changeSession",u)}function l(e){s.call(this,e)}o.inherits(l,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();e+=15,t+=15,e+o>n&&(e-=e+o-n),t+r>i&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(l.prototype),t.GutterHandler=a})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(r.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/event"),r=e("../lib/useragent"),s=200,a=200,l=5;function c(e){var t=e.editor,n=i.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";var c=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];c.forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var u,h,f,p,g,m,b,v,y,w,x,C=t.container,_=0;function k(e,n){var i=Date.now(),o=!n||e.row!=n.row,r=!n||e.column!=n.column;if(!w||o||r)t.moveCursorToPosition(e),w=i,x={x:h,y:f};else{var s=d(x.x,x.y,h,f);s>l?w=null:i-w>=a&&(t.renderer.scrollCursorIntoView(),w=null)}}function S(e,n){var i=Date.now(),o=t.renderer.layerConfig.lineHeight,r=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),l={x:{left:h-a.left,right:a.right-h},y:{top:f-a.top,bottom:a.bottom-f}},c=Math.min(l.x.left,l.x.right),d=Math.min(l.y.top,l.y.bottom),u={row:e.row,column:e.column};c/r<=2&&(u.column+=l.x.left<l.x.right?-3:2),d/o<=1&&(u.row+=l.y.top<l.y.bottom?-1:1);var p=e.row!=u.row,g=e.column!=u.column,m=!n||e.row!=n.row;p||g&&!m?y?i-y>=s&&t.renderer.scrollCursorIntoView(u):y=i:y=null}function O(){var e=m;m=t.renderer.screenToTextCoordinates(h,f),k(m,e),S(m,e)}function E(){g=t.selection.toOrientedRange(),u=t.session.addMarker(g,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),O(),p=setInterval(O,20),_=0,o.addListener(document,"mousemove",M)}function L(){clearInterval(p),t.session.removeMarker(u),u=null,t.selection.fromOrientedRange(g),t.isFocused()&&!v&&t.$resetCursorStyle(),g=null,m=null,_=0,y=null,w=null,o.removeListener(document,"mousemove",M)}this.onDragStart=function(e){if(this.cancelDrag||!C.draggable){var i=this;return setTimeout((function(){i.startSelect(),i.captureMouse(e)}),0),e.preventDefault()}g=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),o.setDragImage&&o.setDragImage(n,0,0),setTimeout((function(){t.container.removeChild(n)})),o.clearData(),o.setData("Text",t.session.getTextRange()),v=!0,this.setState("drag")},this.onDragEnd=function(e){if(C.draggable=!1,v=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;b||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&$(e.dataTransfer))return h=e.clientX,f=e.clientY,u||E(),_++,e.dataTransfer.dropEffect=b=T(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&$(e.dataTransfer))return h=e.clientX,f=e.clientY,u||(E(),_++),null!==A&&(A=null),e.dataTransfer.dropEffect=b=T(e),o.preventDefault(e)},this.onDragLeave=function(e){if(_--,_<=0&&u)return L(),b=null,o.preventDefault(e)},this.onDrop=function(e){if(m){var n=e.dataTransfer;if(v)switch(b){case"move":g=g.contains(m.row,m.column)?{start:m,end:m}:t.moveText(g,m);break;case"copy":g=t.moveText(g,m,!0);break}else{var i=n.getData("Text");g={start:m,end:t.session.insert(m,i)},t.focus(),b=null}return L(),o.preventDefault(e)}},o.addListener(C,"dragstart",this.onDragStart.bind(e),t),o.addListener(C,"dragend",this.onDragEnd.bind(e),t),o.addListener(C,"dragenter",this.onDragEnter.bind(e),t),o.addListener(C,"dragover",this.onDragOver.bind(e),t),o.addListener(C,"dragleave",this.onDragLeave.bind(e),t),o.addListener(C,"drop",this.onDrop.bind(e),t);var A=null;function M(){null==A&&(A=setTimeout((function(){null!=A&&u&&L()}),20))}function $(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function T(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],i=r.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var s="none";return i&&t.indexOf(o)>=0?s="copy":n.indexOf(o)>=0?s="move":t.indexOf(o)>=0&&(s="copy"),s}}function d(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=r.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(r.isIE&&"dragReady"==this.state){var n=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton(),o=e.domEvent.detail||1;if(1===o&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var s=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in s&&(s.unselectable="on"),t.getDragDelay()){if(r.isWebKit){this.cancelDrag=!0;var a=t.container;a.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(c.prototype),t.DragdropHandler=c})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./mouse_event").MouseEvent,o=e("../lib/event"),r=e("../lib/dom");t.addTouchListeners=function(e,t){var n,s,a,l,c,d,u,h,f,p="scroll",g=0,m=0,b=0,v=0;function y(){var e=window.navigator&&window.navigator.clipboard,n=!1,i=function(){var i=t.getCopyText(),o=t.session.getUndoManager().hasUndo();f.replaceChild(r.buildDom(n?["span",!i&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],i&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],i&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],o&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),f.firstChild)},o=function(o){var r=o.target.getAttribute("action");if("more"==r||!n)return n=!n,i();"paste"==r?e.readText().then((function(e){t.execCommand(r,e)})):r&&("cut"!=r&&"copy"!=r||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(r)),f.firstChild.style.display="none",n=!1,"openCommandPallete"!=r&&t.focus()};f=r.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),o(e)},onclick:o},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){f||y();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),i=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,r=t.container.getBoundingClientRect();f.style.top=n.pageY-r.top-3+"px",n.pageX-r.left<r.width-70?(f.style.left="",f.style.right="10px"):(f.style.right="",f.style.left=i+o-r.left+"px"),f.style.display="",f.firstChild.style.display="none",t.on("input",x)}function x(e){f&&(f.style.display="none"),t.off("input",x)}function C(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(u.row,u.column);!e.isEmpty()&&n||(t.selection.moveToPosition(u),t.selection.selectWord()),p="wait",w()}function _(){c=null,clearTimeout(c),t.selection.moveToPosition(u);var e=m>=2?t.selection.getLineRange(u.row):t.session.getBracketRange(u);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}function k(){g+=60,d=setInterval((function(){g--<=0&&(clearInterval(d),d=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),g<20&&(b*=.9),g<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(g=0)}),10)}o.addListener(e,"contextmenu",(function(e){if(h){var n=t.textInput.getElement();n.focus()}}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(c||o.length>1)return clearTimeout(c),c=null,a=-1,void(p="zoom");h=t.$mouseHandler.isMousePressed=!0;var r=t.renderer.layerConfig.lineHeight,d=t.renderer.layerConfig.lineHeight,f=e.timeStamp;l=f;var y=o[0],w=y.clientX,x=y.clientY;Math.abs(n-w)+Math.abs(s-x)>r&&(a=-1),n=e.clientX=w,s=e.clientY=x,b=v=0;var k=new i(e,t);if(u=k.getDocumentPosition(),f-a<500&&1==o.length&&!g)m++,e.preventDefault(),e.button=0,_();else{m=0;var S=t.selection.cursor,O=t.selection.isEmpty()?S:t.selection.anchor,E=t.renderer.$cursorLayer.getPixelPosition(S,!0),L=t.renderer.$cursorLayer.getPixelPosition(O,!0),A=t.renderer.scroller.getBoundingClientRect(),M=t.renderer.layerConfig.offset,$=t.renderer.scrollLeft,T=function(e,t){return e/=d,t=t/r-.75,e*e+t*t};if(e.clientX<A.left)return void(p="zoom");var R=T(e.clientX-A.left-E.left+$,e.clientY-A.top-E.top+M),F=T(e.clientX-A.left-L.left+$,e.clientY-A.top-L.top+M);R<3.5&&F<3.5&&(p=R>F?"cursor":"anchor"),p=F<3.5?"anchor":R<3.5?"cursor":"scroll",c=setTimeout(C,450)}a=f}),t),o.addListener(e,"touchend",(function(e){h=t.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),"zoom"==p?(p="",g=0):c?(t.selection.moveToPosition(u),g=0,w()):"scroll"==p?(k(),x()):w(),clearTimeout(c),c=null}),t),o.addListener(e,"touchmove",(function(e){c&&(clearTimeout(c),c=null);var o=e.touches;if(!(o.length>1||"zoom"==p)){var r=o[0],a=n-r.clientX,d=s-r.clientY;if("wait"==p){if(!(a*a+d*d>4))return e.preventDefault();p="cursor"}n=r.clientX,s=r.clientY,e.clientX=r.clientX,e.clientY=r.clientY;var u=e.timeStamp,h=u-l;if(l=u,"scroll"==p){var f=new i(e,t);f.speed=1,f.wheelX=a,f.wheelY=d,10*Math.abs(a)<Math.abs(d)&&(a=0),10*Math.abs(d)<Math.abs(a)&&(d=0),0!=h&&(b=a/h,v=d/h),t._emit("mousewheel",f),f.propagationStopped||(b=v=0)}else{var g=new i(e,t),m=g.getDocumentPosition();"cursor"==p?t.selection.moveCursorToPosition(m):"anchor"==p&&t.selection.setSelectionAnchor(m.row,m.column),t.renderer.scrollCursorIntoView(m),e.preventDefault()}}}),t)}})),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(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,d=e("../config"),u=function(e){var t=this;this.editor=e,new r(this),new s(this),new l(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus(),setTimeout((function(){e.isFocused()||e.focus()}))},a=e.renderer.getMouseEventTarget();i.addListener(a,"click",this.onMouseEvent.bind(this,"click"),e),i.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),i.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),c(e.container,e);var d=e.renderer.$gutter;i.addListener(d,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),i.addListener(d,"click",this.onMouseEvent.bind(this,"gutterclick"),e),i.addListener(d,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),i.addListener(d,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),i.addListener(a,"mousedown",n,e),i.addListener(d,"mousedown",n,e),o.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),i.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),o=e.session.selection.getRange(),r=e.renderer;!o.isEmpty()&&o.insideStart(i.row,i.column)?r.setCursorStyle("default"):r.setCursorStyle("")}}),e)};(function(){this.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,r=this.editor.renderer;r.$isMousePressed=!0;var s=this,l=function(e){if(e){if(o.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new a(e,s.editor),s.$mouseMoved=!0}},c=function(e){n.off("beforeEndOperation",u),clearInterval(h),n.session&&d(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",s.isMousePressed=r.$isMousePressed=!1,r.$keepTextAreaAtCursor&&r.$moveTextAreaToCursor(),s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e),n.endOperation()},d=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1};if(o.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));var u=function(e){s.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(s[s.state+"End"]&&s[s.state+"End"](),s.state="",s.releaseMouse())};n.on("beforeEndOperation",u),n.startOperation({command:{name:"mouse"}}),s.$onCaptureMouseMove=l,s.releaseMouse=i.capture(this.editor.container,l,c);var h=setInterval(d,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(u.prototype),d.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom");function o(e){e.on("click",(function(t){var n=t.getDocumentPosition(),o=e.session,r=o.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?o.removeFold(r):o.expandFold(r),t.stop());var s=t.domEvent&&t.domEvent.target;s&&i.hasCssClass(s,"ace_inline_button")&&i.hasCssClass(s,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,o=e.session;o.foldWidgets&&o.foldWidgets[i]&&e.session.onFoldWidgetClick(i,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,o=e.session,r=o.getParentFoldRangeData(i,!0),s=r.range||r.firstRange;if(s){i=s.start.row;var a=o.getFoldAt(i,o.getLine(i).length,1);a?o.removeFold(a):(o.addFold("...",s),e.renderer.scrollCursorIntoView({row:s.start.row,column:0}))}t.stop()}}))}t.FoldHandler=o})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/event"),r=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var r,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--;)if(r=this.$handlers[l].handleKeyboard(this.$data,e,t,n,i),r&&r.command&&(s="null"==r.command||a.exec(r.command,this.$editor,r.args,i),s&&i&&-1!=e&&1!=r.passEvent&&1!=r.command.passEvent&&o.stopEvent(i),s))break;return s||-1!=e||(r={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),s},this.onCommandKey=function(e,t,n){var o=i.keyCodeToString(n);return this.$callKeyboardHandlers(t,o,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(r.prototype),t.KeyBinding=r})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var i=0,o=0,r=!1,s=!1,a=!1,l=[[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]],c=[[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]],d=0,u=1,h=0,f=1,p=2,g=3,m=4,b=5,v=6,y=7,w=8,x=9,C=10,_=11,k=12,S=13,O=14,E=15,L=16,A=17,M=18,$=[M,M,M,M,M,M,M,M,M,v,b,v,w,b,M,M,M,M,M,M,M,M,M,M,M,M,M,M,b,b,b,v,w,m,m,_,_,_,m,m,m,m,m,C,x,C,x,x,p,p,p,p,p,p,p,p,p,p,x,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,M,M,M,M,M,M,b,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,x,m,_,_,_,_,m,m,m,m,h,m,m,M,m,m,_,_,p,p,m,h,m,m,m,p,h,m,m,m,m,m],T=[w,w,w,w,w,w,w,w,w,w,w,M,M,M,h,f,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w,b,S,O,E,L,A,x,_,_,_,_,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,x,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w];function R(e,t,n,d){var u=i?c:l,h=null,f=null,p=null,g=0,m=null,y=null,x=-1,C=null,_=null,k=[];if(!d)for(C=0,d=[];C<n;C++)d[C]=q(e[C]);for(o=i,r=!1,!1,s=!1,a=!1,_=0;_<n;_++){if(h=g,k[_]=f=j(e,d,k,_),g=u[h][f],m=240&g,g&=15,t[_]=p=u[g][5],m>0)if(16==m){for(C=x;C<_;C++)t[C]=1;x=-1}else x=-1;if(y=u[g][6],y)-1==x&&(x=_);else if(x>-1){for(C=x;C<_;C++)t[C]=p;x=-1}d[_]==b&&(t[_]=0),o|=p}if(a)for(C=0;C<n;C++)if(d[C]==v){t[C]=i;for(var S=C-1;S>=0;S--){if(d[S]!=w)break;t[S]=i}}}function F(e,t,n){if(!(o<e))if(1!=e||i!=u||s){var r,a,l,c,d=n.length,h=0;while(h<d){if(t[h]>=e){r=h+1;while(r<d&&t[r]>=e)r++;for(a=h,l=r-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;h=r}h++}}else n.reverse()}function j(e,t,n,o){var l,c,d,u,$=t[o];switch($){case h:case f:r=!1;case m:case g:return $;case p:return r?g:p;case y:return r=!0,!0,f;case w:return m;case x:return o<1||o+1>=t.length||(l=n[o-1])!=p&&l!=g||(c=t[o+1])!=p&&c!=g?m:(r&&(c=g),c==l?c:m);case C:return l=o>0?n[o-1]:b,l==p&&o+1<t.length&&t[o+1]==p?p:m;case _:if(o>0&&n[o-1]==p)return p;if(r)return m;u=o+1,d=t.length;while(u<d&&t[u]==_)u++;return u<d&&t[u]==p?p:m;case k:d=t.length,u=o+1;while(u<d&&t[u]==k)u++;if(u<d){var T=e[o],R=T>=1425&&T<=2303||64286==T;if(l=t[u],R&&(l==f||l==y))return f}return o<1||(l=t[o-1])==b?m:n[o-1];case b:return r=!1,s=!0,i;case v:return a=!0,m;case S:case O:case L:case A:case E:r=!1;case M:return m}}function q(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?h:$[t]:5==n?/[\u0591-\u05f4]/.test(e)?f:h:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?k:/[\u0660-\u0669\u066b-\u066c]/.test(e)?g:1642==t?_:/[\u06f0-\u06f9]/.test(e)?p:y:32==n&&t<=8287?T[255&t]:254==n&&t>=65136?y:m}t.L=h,t.R=f,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,o){if(e.length<2)return{};var r=e.split(""),s=new Array(r.length),a=new Array(r.length),l=[];i=o?u:d,R(r,l,r.length,n);for(var c=0;c<s.length;s[c]=c,c++);F(2,l,s),F(1,l,s);for(c=0;c<s.length-1;c++)n[c]===g?l[c]=t.AN:l[c]===f&&(n[c]>y&&n[c]<S||n[c]===m||n[c]===M)?l[c]=t.ON_R:c>0&&"ل"===r[c-1]&&/\u0622|\u0623|\u0625|\u0627/.test(r[c])&&(l[c-1]=l[c]=t.R_H,c++);r[r.length-1]===t.DOT&&(l[r.length-1]=t.B),""===r[0]&&(l[0]=t.RLE);for(c=0;c<s.length;c++)a[c]=l[s[c]];return{logicalFromVisual:s,bidiLevels:a}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=q(e.charAt(i)),n||t[i]!=f&&t[i]!=y&&t[i]!=g||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("./lib/bidiutil"),o=e("./lib/lang"),r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,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=r.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&r.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,i=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==i)break;i=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,r=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var s=this.session.$wrapData[e];s&&(void 0===t&&(t=this.getSplitIndex()),t>0&&s.length?(this.wrapIndent=s.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=t<s.length?this.line.substring(s[t-1],s[t]):this.line.substring(s[s.length-1])):this.line=this.line.substring(0,s[t]),t==s.length&&(this.line+=this.showInvisibles?r:i.DOT))}else this.line+=this.showInvisibles?r:i.DOT;var a,l=this.session,c=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||l.isFullWidth(e.charCodeAt(0))?(a="\t"===e?l.getScreenTabSize(t+c):2,c+=a-1,o.stringRepeat(i.DOT,a)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==i.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];i.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=i.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=t,this.charWidths[i.R]=this.charWidths[i.AN]=n,this.charWidths[i.R_H]=.45*n,this.charWidths[i.B]=this.charWidths[i.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(void 0!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,o=i.getVisualFromLogicalIdx(n,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r[o]%2!==0&&o++;for(var a=0;a<o;a++)s+=this.charWidths[r[a]];return!this.session.getOverwrite()&&e>t&&r[o]%2===0&&(s+=this.charWidths[r[o]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,d=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,f=0;f<o.length;f++)h=i.logicalFromVisual[f],n=o[f],c=h>=a&&h<l,c&&!d?u=s:!c&&d&&r.push({left:u,width:s-u}),s+=this.charWidths[n],d=c;if(c&&f===o.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var p=0;p<r.length;p++)r[p].left+=this.rtlLineOffset;return r},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);while(e>n+r/2){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return i>0&&o[i-1]%2!==0&&o[i]%2===0?(e<n&&i--,t=this.bidiMap.logicalFromVisual[i]):i>0&&o[i-1]%2===0&&o[i]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2===0||!this.isRtlDir&&0===i&&o[i]%2!==0?t=1+this.bidiMap.logicalFromVisual[i]:(i>0&&o[i-1]%2!==0&&0!==r&&i--,t=this.bidiMap.logicalFromVisual[i]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(s.prototype),t.BidiHandler=s})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){i.implement(this,r),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,i=t?e.start:e.end;this.$setSelection(n.row,n.column,i.row,i.column)},this.$setSelection=function(e,t,n,i){if(!this.$silent){var o=this.$isEmpty,r=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(i);return o?(i=o.start.row,n=o.end.row):n=i,!0===t?new s(i,0,n,this.session.getLine(n).length):new s(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.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 n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,i.row,i.column),r=o.match(/^\s*/);r[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=r[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var r=o.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(r)&&(n-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(r)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&i.test(t))n++;if(n<1){o.lastIndex=0;while((t=e[n])&&!o.test(t))if(o.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}while((t=e[n])&&i.test(t))n++;if(n>2)break}}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var r=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<r&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){do{t--,i=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var r=o.stringReverse(i),s=this.$shortWordEndIndex(r);return this.moveCursorTo(t,n-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(i){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var i=e("./config"),o=2e3,r=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&-1===s.indexOf("i")&&(s+="i"),c.unicode&&-1===s.indexOf("u")&&(s+="u"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),r[o]=l,o+=u,i.push(d),c.onMatch||(c.onMatch=null)}}i.length||(r[0]=0,i.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}));return t},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,i=!1,o={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,r,s,a,l){return i?i="]"!=a:a?i=!0:s?(n==o.stack&&(o.end=l+1,o.stack=-1),n--):r&&(n++,1!=r.length&&(o.stack=n,o.start=l)),e})),null!=o.end&&/^\)*$/.test(e.substr(o.end))&&(e=e.substring(0,o.start)+e.substr(o.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);t=n[0],"#tmp"===t&&(n.shift(),t=n.shift())}else n=[];var i=t||"start",r=this.states[i];r||(i="start",r=this.states[i]);var s=this.matchMappings[i],a=this.regExps[i];a.lastIndex=0;var l,c=[],d=0,u=0,h={type:null,value:""};while(l=a.exec(e)){var f=s.defaultToken,p=null,g=l[0],m=a.lastIndex;if(m-g.length>d){var b=e.substring(d,m-g.length);h.type==f?h.value+=b:(h.type&&c.push(h),h={type:f,value:b})}for(var v=0;v<l.length-2;v++)if(void 0!==l[v+1]){p=r[s[v]],f=p.onMatch?p.onMatch(g,i,n,e):p.token,p.next&&(i="string"==typeof p.next?p.next:p.next(i,n),r=this.states[i],r||(this.reportError("state doesn't exist",i),i="start",r=this.states[i]),s=this.matchMappings[i],d=m,a=this.regExps[i],a.lastIndex=m),p.consumeLineEnd&&(d=m);break}if(g)if("string"===typeof f)p&&!1===p.merge||h.type!==f?(h.type&&c.push(h),h={type:f,value:g}):h.value+=g;else if(f){h.type&&c.push(h),h={type:null,value:""};for(v=0;v<f.length;v++)c.push(f[v])}if(d==e.length)break;if(d=m,u++>o){u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(d<e.length)h.type&&c.push(h),h={value:e.substring(d,d+=500),type:"overflow"};i="start",n=[];break}}return h.type&&c.push(h),n.length>1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:c,state:n.length?n:i}},this.reportError=i.reportError}).call(r.prototype),t.Tokenizer=r})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,o,r){var s="function"==typeof e?(new e).getRules():e;if(o)for(var a=0;a<o.length;a++)o[a]=t+o[a];else for(var l in o=[],s)o.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype[r?"push":"unshift"];for(a=0;a<o.length;a++)c.apply(this.$rules[o[a]],i.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,i=this.$rules;function o(r){var s=i[r];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null;Array.isArray(l)&&(c=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 d=l.next||l.push;if(d&&Array.isArray(d)){var u=l.stateName;u||(u=l.token,"string"!=typeof u&&(u=u[0]||""),i[u]&&(u+=n++)),i[u]=d,l.next=u,o(u)}else"pop"==d&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)i[h]?i[h].push&&i[h].push.apply(i[h],l.rules[h]):i[h]=l.rules[h];var f="string"==typeof l?l:l.include;if(f&&(c=Array.isArray(f)?f.map((function(e){return i[e]})):i[f]),c){var p=[a,1].concat(c);l.noEscape&&(p=p.filter((function(e){return!e.next}))),s.splice.apply(s,p),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(i).forEach(o,this)},this.createKeywordMapper=function(e,t,n,i){var o=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var r=e[t],s=r.split(i||"|"),a=s.length;a--;){var l=s[a];this.$keywordList.push(l),n&&(l=l.toLowerCase()),o[l]=t}}),this),e=null,n?function(e){return o[e.toLowerCase()]||t}:function(e){return o[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(o.prototype),t.TextHighlightRules=o})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,o=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(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]},this.stepForward=function(){var e;this.$tokenIndex+=1;while(this.$tokenIndex>=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var i,o=e("../../lib/oop"),r=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d={},u={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,d.rangeCount!=e.multiSelect.rangeCount&&(d={rangeCount:e.multiSelect.rangeCount})),d[t])return i=d[t];i=d[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,o,r,s){var l=o.getCursorPosition(),c=r.doc.getLine(l.row);if("{"==s){h(o);var d=o.getSelectionRange(),u=r.doc.getTextRange(d);if(""!==u&&"{"!==u&&o.getWrapBehavioursEnabled())return f(d,u,"{","}");if(p.isSaneInsertion(o,r))return/[\]\}\)]/.test(c[l.column])||o.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(o,r,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(o,r,"{"),{text:"{",selection:[1,1]})}else if("}"==s){h(o);var g=c.substring(l.column,l.column+1);if("}"==g){var m=r.$findOpeningBracket("}",{column:l.column+1,row:l.row});if(null!==m&&p.isAutoInsertedClosing(l,c,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==s||"\r\n"==s){h(o);var b="";p.isMaybeInsertedClosing(l,c)&&(b=a.stringRepeat("}",i.maybeInsertedBrackets),p.clearMaybeInsertedClosing());g=c.substring(l.column,l.column+1);if("}"===g){var v=r.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!v)return null;var y=this.$getIndent(r.getLine(v.row))}else{if(!b)return void p.clearMaybeInsertedClosing();y=this.$getIndent(c)}var w=y+r.getTabString();return{text:"\n"+w+"\n"+y+b,selection:[1,w.length,1,w.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,r){var s=o.doc.getTextRange(r);if(!r.isMultiLine()&&"{"==s){h(n);var a=o.doc.getLine(r.start.row),l=a.substring(r.end.column,r.end.column+1);if("}"==l)return r.end.column++,r;i.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,i,o){if("("==o){h(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return f(r,s,"(",")");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){h(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row),c=l.substring(a.column,a.column+1);if(")"==c){var d=i.$findOpeningBracket(")",{column:a.column+1,row:a.row});if(null!==d&&p.isAutoInsertedClosing(a,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("parens","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==r){h(n);var s=i.doc.getLine(o.start.row),a=s.substring(o.start.column+1,o.start.column+2);if(")"==a)return o.end.column++,o}})),this.add("brackets","insertion",(function(e,t,n,i,o){if("["==o){h(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return f(r,s,"[","]");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){h(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row),c=l.substring(a.column,a.column+1);if("]"==c){var d=i.$findOpeningBracket("]",{column:a.column+1,row:a.row});if(null!==d&&p.isAutoInsertedClosing(a,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("brackets","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==r){h(n);var s=i.doc.getLine(o.start.row),a=s.substring(o.start.column+1,o.start.column+2);if("]"==a)return o.end.column++,o}})),this.add("string_dquotes","insertion",(function(e,t,n,i,o){var r=i.$mode.$quotes||u;if(1==o.length&&r[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;h(n);var s=o,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(!(""===l||1==l.length&&r[l])&&n.getWrapBehavioursEnabled())return f(a,l,s,s);if(!l){var c=n.getCursorPosition(),d=i.doc.getLine(c.row),p=d.substring(c.column-1,c.column),g=d.substring(c.column,c.column+1),m=i.getTokenAt(c.row,c.column),b=i.getTokenAt(c.row,c.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var v,y=m&&/string|escape/.test(m.type),w=!b||/string|escape/.test(b.type);if(g==s)v=y!==w,v&&/string\.end/.test(b.type)&&(v=!1);else{if(y&&!w)return null;if(y&&w)return null;var x=i.$mode.tokenRe;x.lastIndex=0;var C=x.test(p);x.lastIndex=0;var _=x.test(p);if(C||_)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var k=d[c.column-2];if(p==s&&(k==s||x.test(k)))return null;v=!0}return{text:v?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,o){var r=i.$mode.$quotes||u,s=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(s)){h(n);var a=i.doc.getLine(o.start.row),l=a.substring(o.start.column+1,o.start.column+2);if(l==s)return o.end.column++,o}}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new s(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new s(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",l))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,r,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=o.row,i.autoInsertedLineEnd=n+r.substr(o.column),i.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,r)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=o.row,i.maybeInsertedLineStart=r.substr(0,o.column)+n,i.maybeInsertedLineEnd=r.substr(o.column),i.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},o.inherits(p,r),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var i=[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],o=0,r=[],s=0;s<i.length;s+=2)r.push(o+=i[s]),i[s+1]&&r.push(45,o+=i[s+1]);t.wordChars=String.fromCharCode.apply(null,r)})),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(e,t,n){"use strict";var i=e("../config"),o=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),l=e("../lib/lang"),c=e("../token_iterator").TokenIterator,d=e("../range").Range,u=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+a.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var o=t.doc,r=!0,s=!0,a=1/0,c=t.getTabSize(),d=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(l.escapeRegExp).join("|"),f=this.lineCommentStart[0];else g=l.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),d=t.getUseSoftTabs();v=function(e,t){var n=e.match(g);if(n){var i=n[1].length,r=n[0].length;h(e,i,r)||" "!=n[0][r-1]||r--,o.removeInLine(t,i,r)}};var u=f+" ",h=(b=function(e,t){r&&!/\S/.test(e)||(h(e,a,a)?o.insertInLine({row:t,column:a},u):o.insertInLine({row:t,column:a},f))},y=function(e,t){return g.test(e)},function(e,t,n){var i=0;while(t--&&" "==e.charAt(t))i++;if(i%c!=0)return!1;i=0;while(" "==e.charAt(n++))i++;return c>2?i%c!=c-1:i%c==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+l.escapeRegExp(f)+")"),m=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),b=function(e,t){y(e,t)||r&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},p),o.insertInLine({row:t,column:a},f))},v=function(e,t){var n;(n=e.match(m))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&o.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(g.test(e))return!0;for(var i=t.getTokens(n),o=0;o<i.length;o++)if("comment"===i[o].type)return!0}}function w(e){for(var t=n;t<=i;t++)e(o.getLine(t),t)}var x=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!y(e,t)&&(s=!1)):x>e.length&&(x=e.length)})),a==1/0&&(a=x,r=!1,s=!1),d&&a%c!=0&&(a=Math.floor(a/c)*c),w(s?v:b)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,s,a=new c(t,i.row,i.column),l=a.getCurrentToken(),u=(t.selection,t.selection.toOrientedRange());if(l&&/comment/.test(l.type)){var h,f;while(l&&/comment/.test(l.type)){var p=l.value.indexOf(o.start);if(-1!=p){var g=a.getCurrentTokenRow(),m=a.getCurrentTokenColumn()+p;h=new d(g,m,g,m+o.start.length);break}l=a.stepBackward()}a=new c(t,i.row,i.column),l=a.getCurrentToken();while(l&&/comment/.test(l.type)){p=l.value.indexOf(o.end);if(-1!=p){g=a.getCurrentTokenRow(),m=a.getCurrentTokenColumn()+p;f=new d(g,m,g,m+o.end.length);break}l=a.stepForward()}f&&t.remove(f),h&&(t.remove(h),r=h.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);u.start.row==r&&(u.start.column+=s),u.end.row==r&&(u.end.column+=s),t.selection.fromOrientedRange(u)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,r=i.$modes[o];r||(i.$modes[o]=r=new n),i.$modes[t]||(i.$modes[t]=r),this.$embeds.push(t),this.$modes[t]=r}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<s.length;t++)(function(e){var n=s[t],i=e[n];e[s[t]]=function(){return this.$delegator(n,arguments,i)}})(this)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1],r=this.$modes[o];if(r)return r[e].apply(r,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var s=0;s<this.$embeds.length;s++)if(this.$modes[this.$embeds[s]]){var a=i.split(this.$embeds[s]);if(!a[0]&&a[1]){t[0]=a[1];r=this.$modes[this.$embeds[s]];return r[e].apply(r,t)}}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],r=0,s=o.length;r<s;r++)if("string"===typeof o[r].token)/keyword|support|storage/.test(o[r].token)&&n.push(o[r].regex);else if("object"===typeof o[r].token)for(var a=0,l=o[r].token.length;a<l;a++)if(/keyword|support|storage/.test(o[r].token[a])){i=o[r].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){var o=this.$keywordList||this.$createKeywordList();return o.map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(u.prototype),t.Mode=u})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,o=t.start.column,r=e[i]||"";switch(t.action){case"insert":var s=t.lines;if(1===s.length)e[i]=r.substring(0,o)+t.lines[0]+r.substring(o);else{var a=[i,1].concat(t.lines);e.splice.apply(e,a),e[i]=r.substring(0,o)+e[i],e[i+t.lines.length-1]+=r.substring(o)}break;case"remove":var l=t.end.column,c=t.end.row;i===c?e[i]=r.substring(0,o)+r.substring(l):e.splice(i,c-i+1,r.substring(0,o)+e[c].substring(l));break}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function t(t,n,i){var o="insert"==t.action,r=(o?1:-1)*(t.end.row-t.start.row),s=(o?1:-1)*(t.end.column-t.start.column),a=t.start,l=o?a:t.end;return e(n,a,i)?{row:n.row,column:n.column}:e(l,n,!i)?{row:n.row+r,column:n.column+(n.row==l.row?s:0)}:{row:a.row,column:a.column}}i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var o={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:o,value:i})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(r.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return void 0==t&&(t=i.length),t=Math.min(Math.max(t,0),i.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:i,end:o,action:"remove",lines:this.getLinesForRange({start:i,end:o})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,i=t<this.getLength()-1,o=n?e-1:e,r=n?this.getLine(o).length:0,a=i?t+1:t,l=i?0:this.getLine(a).length,c=new s(o,r,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if(e-=n[o].length+i,e<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n[s].length+i;return o+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){var e=new Date,t=n.currentLine,i=-1,o=n.doc,r=t;while(n.lines[t])t++;var s=o.getLength(),a=0;n.running=!1;while(t<s){n.$tokenizeRow(t),i=t;do{t++}while(n.lines[t]);if(a++,a%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),r<=i&&n.fireUpdateEvent(r,i)}}};(function(){i.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||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)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(r.prototype),t.BackgroundTokenizer=r})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),r=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,r){if(this.regExp)for(var s=r.firstRow,a=r.lastRow,l={},c=s;c<=a;c++){var d=this.cache[c];null==d&&(d=i.getMatchOffsets(n.getLine(c),this.regExp),d.length>this.MAX_RANGES&&(d=d.slice(0,this.MAX_RANGES)),d=d.map((function(e){return new o(c,e.offset,c,e.offset+e.length)})),this.cache[c]=d.length?d:"");for(var u=d.length;u--;){var h=d[u].toScreenRange(n),f=h.toString();l[f]||(l[f]=!0,t.drawSingleLineMarker(e,h,this.clazz,r))}}}}).call(r.prototype),t.SearchHighlight=r})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,o,r,s=0,a=this.folds,l=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c<a.length;c++){if(i=a[c],o=i.range.compareStart(t,n),-1==o)return void e(null,t,n,s,l);if(r=e(null,i.start.row,i.start.column,s,l),r=!r&&e(i.placeholder,i.start.row,i.start.column,s),r||0===o)return;l=!i.sameRow,s=i.end.column}e(null,t,n,s,l)},this.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(n=this.folds[o],i=n.range.compareEnd(e,t),-1==i)return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,o,r=this.getNextFoldTo(e,t);if(r)if(i=r.fold,"inside"==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){o=this.folds;var s=o.indexOf(i);for(0===s&&(this.start.column+=n),s;s<o.length;s++){if(i=o[s],i.start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,r=this.folds,s=this.foldData,a=r.indexOf(i),l=r[a-1];this.end.row=l.end.row,this.end.column=l.end.column,r=r.splice(a,r.length-a);var c=new o(s,r);return s.splice(s.indexOf(this)+1,0,c),c},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if(e-=i.start.column-t,e<0)return{row:i.start.row,column:i.start.column+e};if(e-=i.placeholder.length,e<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(o.prototype),t.FoldLine=o})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,o=i.comparePoints,r=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=o,this.pointIndex=function(e,t,n){for(var i=this.ranges,r=n||0;r<i.length;r++){var s=i[r],a=o(e,s.end);if(!(a>0)){var l=o(e,s.start);return 0===a?t&&0!==l?-r-2:r:l>0||0===l&&!t?r:-r-1}}return-r-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort((function(e,t){return o(e.start,t.start)}));for(var n,i=t[0],r=1;r<t.length;r++){n=i,i=t[r];var s=o(n.end,i.start);s<0||(0!=s||n.isEmpty()||i.isEmpty())&&(o(n.end,i.end)<0&&(n.end.row=i.end.row,n.end.column=i.end.column),t.splice(r,1),e.push(i),i=n,r--)}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:t,column:0},i);o<0&&(o=-o-1);for(var r=[],s=i;s<o;s++)r.push(n[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a;s++){var l=r[s];if(l.end.row>=i)break}if("insert"==e.action)for(var c=o-i,d=-t.column+n.column;s<a;s++){l=r[s];if(l.start.row>i)break;if(l.start.row==i&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=d,l.start.row+=c)),l.end.row==i&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&d>0&&s<a-1&&l.end.column>l.start.column&&l.end.column==r[s+1].start.column&&(l.end.column-=d),l.end.column+=d,l.end.row+=c}}else for(c=i-o,d=t.column-n.column;s<a;s++){l=r[s];if(l.start.row>o)break;l.end.row<o&&(i<l.end.row||i==l.end.row&&t.column<l.end.column)?(l.end.row=i,l.end.column=t.column):l.end.row==o?l.end.column<=n.column?(c||l.end.column>t.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=d,l.end.row+=c):l.end.row>o&&(l.end.row+=c),l.start.row<o&&(i<l.start.row||i==l.start.row&&t.column<l.start.column)?(l.start.row=i,l.start.column=t.column):l.start.row==o?l.start.column<=n.column?(c||l.start.column>t.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=d,l.start.row+=c):l.start.row>o&&(l.start.row+=c)}if(0!=c&&s<a)for(;s<a;s++){l=r[s];l.start.row+=c,l.end.row+=c}}}).call(r.prototype),t.RangeList=r})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("../range_list").RangeList,o=e("../lib/oop"),r=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){s(e.start,t),s(e.end,t)}function l(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function c(e,t){l(e.start,t),l(e.end,t)}o.inherits(r,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new r(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){a(e,this.start);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length;i++)if(o=this.subFolds[i].range.compare(t,n),1!=o)break;var r=this.subFolds[i],s=0;if(0==o){if(r.range.containsRange(e))return r.addSubFold(e);s=1}t=e.range.end.row,n=e.range.end.column;var l=i;for(o=-1;l<this.subFolds.length;l++)if(o=this.subFolds[l].range.compare(t,n),1!=o)break;0==o&&l++;for(var c=this.subFolds.splice(i,l-i,e),d=0==o?c.length-1:c.length,u=s;u<d;u++)e.addSubFold(c[u]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return c(e,this.start)}}.call(r.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("./fold_line").FoldLine,r=e("./fold").Fold,s=e("../token_iterator").TokenIterator;function a(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o[r].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return o[r]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,n.column-=1;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(s=c.range.compareRange(e),-2==s)break;if(2!=s){if(42==s)break;o.push(c)}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(i=i||this.getFoldLine(e),!i)return null;for(var o,r,s={end:{column:0}},a=0;a<i.folds.length;a++){r=i.folds[a];var l=r.range.compareEnd(e,t);if(-1==l){o=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return o||(o=this.getLine(r.start.row).substring(s.end.column)),-1==n?o.substring(0,t-s.end.column):1==n?o.substring(t-s.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n[o],s=r.end.row,a=r.start.row;if(s>=t){a<t&&(a>=e?i-=t-a:i=0);break}s>=e&&(i-=a>=e?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,s=!1;e instanceof r?n=e:(n=new r(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,d=n.end.column,u=this.getFoldAt(a,l,1),h=this.getFoldAt(c,d,-1);if(u&&h==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),h&&!h.range.isEnd(c,d)&&this.removeFold(h);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),n.collapseChildren||f.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<i.length;p++){var g=i[p];if(c==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=i[p+1];if(m&&m.start.row==c){g.merge(m);break}}break}if(c<=g.start.row)break}return s||(g=this.$addFoldLine(new o(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;if(1==r.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);r=s.folds,r.shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e)n=new i(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new i(e,0,e,this.getLine(e).length);else if("row"in e)n=i.fromPoints(e,e);else{if(Array.isArray(e))return o=[],e.forEach((function(e){o=o.concat(this.unfold(e))}),this),o;n=e}o=this.getFoldsInRangeList(n);var r=o;while(1==o.length&&i.comparePoints(o[0].start,n.start)<0&&i.comparePoints(o[0].end,n.end)>0)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(o):this.expandFolds(o),r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,o){null==i&&(i=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var r=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<i)){if(t==i){if(n<o)return;a=Math.max(o,a)}s+=null!=e?e:r.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,i){var o,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,i):(o=this.doc.getLine(e),o.substring(i||0,t||o.length))},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new o(e,n)})),e},this.toggleFold=function(e){var t,n,i=this.selection,o=i.getRange();if(o.isEmpty()){var r=o.start;if(t=this.getFoldAt(r.row,r.column),t)return void this.expandFold(t);(n=this.findMatchingBracket(r))?1==o.comparePoint(n)?o.end=n:(o.start=n,o.start.column++,o.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==o.comparePoint(n)?o.end=n:o.start=n,o.start.column++):o=this.getCommentFoldRange(r.row,r.column)||o}else{var s=this.getFoldsInRange(o);if(e&&s.length)return void this.expandFolds(s);1==s.length&&(t=s[0])}if(t||(t=this.getFoldAt(o.start.row,o.start.column)),t&&t.range.toString()==o.toString())this.expandFold(t);else{var a="...";if(!o.isMultiLine()){if(a=this.getTextRange(o),a.length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,o)}},this.getCommentFoldRange=function(e,t,n){var o=new s(this,e,t),r=o.getCurrentToken(),a=r&&r.type;if(r&&/^comment|string/.test(a)){a=a.match(/comment|string/)[0],"comment"==a&&(a+="|doc-start");var l=new RegExp(a),c=new i;if(1!=n){do{r=o.stepBackward()}while(r&&l.test(r.type)&&!/^comment.end/.test(r.type));r=o.stepForward()}if(c.start.row=o.getCurrentTokenRow(),c.start.column=o.getCurrentTokenColumn()+(/^comment.start/.test(r.type)?r.value.length:2),o=new s(this,e,t),-1!=n){var d=-1;do{if(r=o.stepForward(),-1==d){var u=this.getState(o.$row);l.test(u)||(d=o.$row)}else if(o.$row>d)break}while(r&&l.test(r.type)&&!/^comment.start/.test(r.type));r=o.stepBackward()}else r=o.getCurrentToken();return c.end.row=o.getCurrentTokenRow(),c.end.column=o.getCurrentTokenColumn(),/^comment.end/.test(r.type)||(c.end.column+=r.value.length-2),c}},this.foldAll=function(e,t,n,i){void 0==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength(),e=e||0;for(var r=e;r<t;r++)if(null==o[r]&&(o[r]=this.getFoldWidget(r)),"start"==o[r]&&(!i||i(r))){var s=this.getFoldWidgetRange(r);s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(r=s.end.row,s.collapseChildren=n,this.addFold("...",s))}}},this.foldToLevel=function(e){this.foldAll();while(e-- >0)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),i=0;i<n.length;i++){var o=n[i];if("text"!=o.type||!/^\s+$/.test(o.value))return!!/comment/.test(o.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,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.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var i,o=e-1;while(o>=0){var r=n[o];if(null==r&&(r=n[o]=this.getFoldWidget(o)),"start"==r){var s=this.getFoldWidgetRange(o);if(i||(i=s),s&&s.end.row>=e)break}o--}return{range:-1!==o&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},i=this.$toggleFoldWidget(e,n);if(!i){var o=t.target||t.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),o="end"===n?-1:1,r=this.getFoldAt(e,-1===o?0:i.length,o);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1),r&&s.isEqual(r.range)))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange,n){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=a})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,o=e("../range").Range;function r(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,r=n.charAt(e.column-1),s=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(s||(r=n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(/([\(\[\{])|([\)\]\}])/),i=!1),!s)return null;if(s[1]){var a=this.$findClosingBracket(s[1],e);if(!a)return null;t=o.fromPoints(e,a),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{a=this.$findOpeningBracket(s[2],e);if(!a)return null;t=o.fromPoints(a,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),i=/([\(\[\{])|([\)\]\}])/,r=!t&&n.charAt(e.column-1),s=r&&r.match(i);if(s||(r=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(i)),!s)return null;var a=new o(e.row,e.column-1,e.row,e.column),l=s[1]?this.$findClosingBracket(s[1],e):this.$findOpeningBracket(s[2],e);if(!l)return[a];var c=new o(l.row,l.column,l.row,l.column+1);return[a,c]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;while(1){while(l>=0){var d=c.charAt(l);if(d==o){if(r-=1,0==r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(r+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;c=a.value,l=c.length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var l=t.column-s.getCurrentTokenColumn();while(1){var c=a.value,d=c.length;while(l<d){var u=c.charAt(l);if(u==o){if(r-=1,0==r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(r+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}},this.getMatchingTags=function(e){var t=new i(this,e.row,e.column),n=this.$findTagName(t);if(n){var o=t.stepBackward();return"<"===o.value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)}},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,i=!1;if(t&&-1===t.type.indexOf("tag-name"))do{t=i?e.stepBackward():e.stepForward(),t&&("/>"===t.value?i=!0:-1!==t.type.indexOf("tag-name")&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,i=t.value,r=t.value,s=0,a=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),c=!1;do{if(n=t,t=e.stepForward(),t){if(">"===t.value&&!c){var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);c=!0}if(-1!==t.type.indexOf("tag-name")){if(i=t.value,r===i)if("<"===n.value)s++;else if("</"===n.value&&(s--,s<0)){e.stepBackward();var u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var h=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(t=e.stepForward(),!t||">"!==t.value)return;var f=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else if(r===i&&"/>"===t.value&&(s--,s<0))u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),h=u,f=h,d=new o(l.end.row,l.end.column,l.end.row,l.end.column+1)}}while(t&&s>=0);if(a&&d&&u&&f&&l&&h)return{openTag:new o(a.start.row,a.start.column,d.end.row,d.end.column),closeTag:new o(u.start.row,u.start.column,f.end.row,f.end.column),openTagName:l,closeTagName:h}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),i=t.value,r=0,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+2,c=new o(s,a,s,l);e.stepForward();var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(t=e.stepForward(),t&&">"===t.value){var u=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(i===t.value)if("<"===n.value){if(r++,r>0){var h=new o(s,a,s,l),f=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&">"!==t.value);var p=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&r--}else if("/>"===t.value){var g=0,m=n;while(m){if(-1!==m.type.indexOf("tag-name")&&m.value===i){r--;break}if("<"===m.value)break;m=e.stepBackward(),g++}for(var b=0;b<g;b++)e.stepForward()}}while(n&&r<=0);return f&&p&&c&&u&&h&&d?{openTag:new o(f.start.row,f.start.column,p.end.row,p.end.column),closeTag:new o(c.start.row,c.start.column,u.end.row,u.end.column),openTagName:h,closeTagName:d}:void 0}}}t.BracketMatch=r})),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/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./document").Document,h=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new h((new c).getTokenizer(),this);var n=this;this.bgTokenizer.on("update",(function(e){n._signal("tokenizerUpdate",e)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new u(e)),this.setDocument(e),this.selection=new l(this),this.$bidiHandler=new r(this),s.resetOptions(this),this.setMode(t),s._signal("session",this),this.destroyed=!1};p.$uid=0,function(){i.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,i=e.length-1;while(n<=i){var o=n+i>>1,r=e[o];if(t>r)n=o+1;else{if(!(t<r))return o;i=o-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),o=0;if(null==t){var r=i.length-1;o=this.getLine(e).length}else for(r=0;r<i.length;r++)if(o+=i[r].value.length,o>=t)break;return n=i[r],n?(n.index=r,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var o=this.$markerId++,r={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=r,this._signal("changeFrontMarker")):(this.$backMarkers[o]=r,this._signal("changeBackMarker")),o},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var o=new d(e,0,t,1/0);return o.id=this.addMarker(o,n,"fullLine",i),o},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var r=t;if(r>0){do{r--}while(r>=0&&n.charAt(r).match(o));r++}var s=t;while(s<n.length&&n.charAt(s).match(o))s++;return new d(e,r,e,s)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),i=this.getLine(n.end.row);while(i.charAt(n.end.column).match(/[ \t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=s.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,s.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=e.getTokenizer();if(void 0!==i.on){var o=this.onReloadTokenizer.bind(this);i.on("update",o)}this.bgTokenizer.setTokenizer(i),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if(l=r.end.row+1,l>=a)break;r=this.$foldData[o++],s=r?r.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];"insert"!=i.action&&"remove"!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var s=e[r];s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=d.fromPoints(s.start,s.start))):i=n(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start))}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),o=this.getFoldsInRange(e),r=d.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row,a=s?-e.end.column:e.start.column-e.end.column;a&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=a),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=a)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),o.length){var l=e.start,c=r.start;s=c.row-l.row,a=c.column-l.column;this.addFolds(o.map((function(e){return e=e.clone(),e.start.row==l.row&&(e.start.column+=a),e.end.row==l.row&&(e.end.column+=a),e.start.row+=s,e.end.row+=s,e})))}return r},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i;++s)if(" "!=r.charAt(s))break;s<i&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){var i=this.getRowFoldStart(e+n);if(i<0)return 0;var o=i-e}else if(n>0){i=this.getRowFoldEnd(t+n);if(i>this.doc.getLength()-1)return 0;o=i-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);o=t-e+1}var r=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map((function(e){return e=e.clone(),e.start.row+=o,e.end.row+=o,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+o,a),s.length&&this.addFolds(s),o},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=this.getFoldLine(o.row),u=0;if(d){d.addRemoveChars(o.row,o.column,i.column-o.column),d.shiftRow(-a);var h=this.getFoldLine(r);h&&h!==d&&(h.merge(d),d=h),u=c.indexOf(d)+1}for(u;u<c.length;u++){d=c[u];d.start.row>=o.row&&d.shiftRow(-a)}s=r}else{var f=Array(a);f.unshift(r,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,f);c=this.$foldData,d=this.getFoldLine(r),u=0;if(d){var g=d.range.compareInside(i.row,i.column);0==g?(d=d.split(i.row,i.column),d&&(d.shiftRow(a),d.addRemoveChars(s,0,o.column-i.column))):-1==g&&(d.addRemoveChars(r,0,o.column-i.column),d.shiftRow(a)),u=c.indexOf(d)+1}for(u;u<c.length;u++){d=c[u];d.start.row>=r&&d.shiftRow(a)}}else{a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a);d=this.getFoldLine(r);d&&d.addRemoveChars(r,i.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var i,o,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,d=e;t=Math.min(t,s.length-1);while(d<=t)o=this.getFoldLine(d,o),o?(i=[],o.walk(function(e,t,o,a){var l;if(null!=e){l=this.$getDisplayTokens(e,i.length),l[0]=n;for(var c=1;c<l.length;c++)l[c]=r}else l=this.$getDisplayTokens(s[t].substring(a,o),i.length);i=i.concat(l)}.bind(this),o.end.row,s[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(i,c,a),d=o.end.row+1):(i=this.$getDisplayTokens(s[d]),l[d]=this.$computeWrapSplits(i,c,a),d++)};var e=1,t=2,n=3,r=4,l=9,u=10,h=11,p=12;function g(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,i,o){if(0==e.length)return[];var s=[],a=e.length,c=0,d=0,f=this.$wrapAsCode,g=this.$indentedSoftWrap,m=i<=Math.max(2*o,8)||!1===g?0:Math.floor(i/2);function b(){var t=0;if(0===m)return t;if(g)for(var n=0;n<e.length;n++){var i=e[n];if(i==u)t+=1;else{if(i!=h){if(i==p)continue;break}t+=o}}return f&&!1!==g&&(t+=o),Math.min(t,m)}function v(t){for(var n=t-c,i=c;i<t;i++){var o=e[i];12!==o&&2!==o||(n-=1)}s.length||(y=b(),s.indent=y),d+=n,s.push(d),c=t}var y=0;while(a-c>i-y){var w=c+i-y;if(e[w-1]>=u&&e[w]>=u)v(w);else if(e[w]!=n&&e[w]!=r){var x=Math.max(w-(i-(i>>2)),c-1);while(w>x&&e[w]<n)w--;if(f){while(w>x&&e[w]<n)w--;while(w>x&&e[w]==l)w--}else while(w>x&&e[w]<u)w--;w>x?v(++w):(w=c+i,e[w]==t&&w--,v(w-y))}else{for(w;w!=c-1;w--)if(e[w]==n)break;if(w>c){v(w);continue}for(w=c+i,w;w<e.length;w++)if(e[w]!=r)break;if(w==e.length)break;v(w)}}return s},this.$getDisplayTokens=function(n,i){var o,r=[];i=i||0;for(var s=0;s<n.length;s++){var a=n.charCodeAt(s);if(9==a){o=this.getScreenTabSize(r.length+i),r.push(h);for(var c=1;c<o;c++)r.push(p)}else 32==a?r.push(u):a>39&&a<48||a>57&&a<64?r.push(l):a>=4352&&g(a)?r.push(e,t):r.push(e)}return r},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),n=n||0,o=0;o<e.length;o++)if(i=e.charCodeAt(o),9==i?n+=this.getScreenTabSize(n):i>=4352&&g(i)?n+=2:n+=1,n>t)break;return[n,o]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,o,r=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&d>=0){a=c[d],r=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;var f=this.getLength()-1,p=this.getNextFoldLine(r),g=p?p.start.row:1/0;while(a<=e){if(l=this.getRowLength(r),a+l>e||r>=f)break;a+=l,r++,r>g&&(r=p.end.row+1,p=this.getNextFoldLine(r,p),g=p?p.start.row:1/0),h&&(this.$docRowCache.push(r),this.$screenRowCache.push(a))}if(p&&p.start.row<=r)i=this.getFoldDisplayLine(p),r=p.start.row;else{if(a+l<=e||r>f)return{row:f,column:this.getLine(f).length};i=this.getLine(r),p=null}var m=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[r];v&&(o=v[b],b>0&&v.length&&(m=v.indent,s=v[b-1]||v[v.length-1],i=i.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+b,r,b)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&s>=o&&(s=o-1),p?p.idxToPosition(s):{row:r,column:s}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,o=null,r=null;r=this.getFoldAt(e,t,1),r&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&c>=0){a=l[c],i=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;var h=this.getNextFoldLine(a),f=h?h.start.row:1/0;while(a<e){if(a>=f){if(s=h.end.row+1,s>e)break;h=this.getNextFoldLine(s,h),f=h?h.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var p="";h&&a>=f?(p=this.getFoldDisplayLine(h,e,t),o=h.start.row):(p=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){var b=0;while(p.length>=m[b])i++,b++;p=p.substring(m[b-1]||0,p.length),g=b>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,i=0,o=(a=0,t=this.$foldData[a++],t?t.start.row:1/0);while(i<n){var r=this.$wrapData[i];e+=r?r.length+1:1,i++,i>o&&(i=t.end.row+1,t=this.$foldData[a++],o=t?t.start.row:1/0)}}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)t=s[a],e-=t.end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var o,r;for(n||(n=1/0),i=i||0,r=0;r<t.length;r++)if(o=t.charAt(r),i+="\t"===o?this.getScreenTabSize(i):e.getCharacterWidth(o),i>n)break;return[i,r]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=g}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),s.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,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(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),o=e("./lib/oop"),r=e("./range").Range,s=function(){this.$options={}};function a(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,o,s){return i=new r(e,n,o,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,d=o.length-c;e:for(var u=a.offset||0;u<=d;u++){for(var h=0;h<c;h++)if(-1==o[u+h].search(a[h]))continue e;var f=o[u],p=o[u+c-1],g=f.length-f.match(a[0])[0].length,m=p.match(a[c-1])[0].length;l&&l.end.row===u&&l.end.column>g||(s.push(l=new r(u,g,u+c-1,m)),c>2&&(u=u+c-2))}}else for(var b=0;b<o.length;b++){var v=i.getMatchOffsets(o[b],a);for(h=0;h<v.length;h++){var y=v[h];s.push(new r(b,y.offset,b,y.offset+y.length))}}if(n){var w=n.start.column,x=n.end.column;b=0,h=s.length-1;while(b<h&&s[b].start.column<w&&0==s[b].start.row)b++;var C=n.end.row-n.start.row;while(b<h&&s[h].end.column>x&&s[h].end.row==C)h--;for(s=s.slice(b,h+1),b=0,h=s.length;b<h;b++)s[b].start.row+=n.start.row,s[b].end.row+=n.start.row}return s},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=i.escapeRegExp(n)),e.wholeWord&&(n=a(n,e));var o=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,o);try{var r=new RegExp(n,o)}catch(s){r=!1}return e.re=r},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(r){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=1==t.backwards,o=0!=t.skipCurrent,r=t.range,s=t.start;s||(s=r?r[i?"end":"start"]:e.selection.getRange()),s.start&&(s=s[o!=i?"end":"start"]);var a=r?r.start.row:0,l=r?r.end.row:e.getLength()-1;if(i)var c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n--;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,a=s.row;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n+=1;n<=l;n++)if(u(n,0,e))return;if(0!=t.wrap)for(n=a,l=s.row;n<=l;n++)if(u(n,0,e))return}};if(t.$isMultiLine)var d=n.length,u=function(t,o,r){var s=i?t-d+1:t;if(!(s<0||s+d>e.getLength())){var a=e.getLine(s),l=a.search(n[0]);if(!(!i&&l<o||-1===l)){for(var c=1;c<d;c++)if(a=e.getLine(s+c),-1==a.search(n[c]))return;var u=a.match(n[d-1])[0].length;if(!(i&&u>o))return!!r(s,l,s+d-1,u)||void 0}}};else if(i)u=function(t,i,o){var r,s=e.getLine(t),a=[],l=0;n.lastIndex=0;while(r=n.exec(s)){var c=r[0].length;if(l=r.index,!c){if(l>=s.length)break;n.lastIndex=l+=1}if(r.index+c>i)break;a.push(r.index,c)}for(var d=a.length-1;d>=0;d-=2){var u=a[d-1];c=a[d];if(o(t,u,t,u+c))return!0}};else u=function(t,i,o){var r,s,a=e.getLine(t);n.lastIndex=i;while(s=n.exec(a)){var l=s[0].length;if(r=s.index,o(t,r,t,r+l))return!0;if(!l&&(n.lastIndex=r+=1,r>=a.length))return!1}};return{forEach:c}}}).call(s.prototype),t.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/useragent"),r=i.KEY_MODS;function s(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){s.call(this,e,t),this.$singleCommand=!1}a.prototype=s.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var o in i){var r=i[o];if(r==e)delete i[o];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i[o]=r[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=r[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var s=this.parseKeys(e),a=r[s.hashId]+s.key;this._addCommandToBinding(i+a,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var o,r=this.commandKeyBinding;if(n)if(!r[t]||this.$singleCommand)r[t]=n;else{Array.isArray(r[t])?-1!=(o=r[t].indexOf(n))&&r[t].splice(o,1):r[t]=[r[t]],"number"!=typeof i&&(i=e(n));var s=r[t];for(o=0;o<s.length;o++){var a=s[o],l=e(a);if(l>i)break}s.splice(o,0,n)}else delete r[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),o=i[n];if(i.FUNCTION_KEYS[o])n=i.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var r=0,s=t.length;s--;){var a=i.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;r|=a}return{key:n,hashId:r}},this.findKeyCommand=function(e,t){var n=r[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=r[t]+n,s=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:s}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,r=e("../lib/event_emitter").EventEmitter,s=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)}))};i.inherits(s,o),function(){i.implement(this,r),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._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(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(s.prototype),t.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=e("../config"),r=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!==typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()),l=a.replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),d=n.row+1;d<=o.row+1;d++){var u=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(d)));0!==u.length&&(u=" "+u),c+=u}o.row+1<e.session.doc.getLength()-1&&(c+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new r(n.row,0,o.row+2,0),c),l>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+l)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var s=0;s<i.length;s++)s==i.length-1&&(i[s].end.row===t&&i[s].end.column===n||o.push(new r(i[s].end.row,i[s].end.column,t,n))),0===s?0===i[s].start.row&&0===i[s].start.column||o.push(new r(0,0,i[s].start.row,i[s].start.column)):o.push(new r(i[s-1].end.row,i[s-1].end.column,i[s].start.row,i[s].start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<o.length;s++)e.selection.addRange(o[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),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/clipboard"],(function(e,t,n){"use strict";var i=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,d=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,f=e("./search").Search,p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,b=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,w=e("./clipboard"),x=function(e,t,n){this.$toDestroy=[];var i=e.getContainerElement();this.container=i,this.renderer=e,this.id="editor"+ ++x.$uid,this.commands=new m(a.isMac?"mac":"win",b),"object"==typeof document&&(this.textInput=new l(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new d(this)),this.keyBinding=new u(this),this.$search=(new f).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||n&&n.session||new h("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)};x.$uid=0,function(){o.implement(this,g),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var r=this.selection.toJSON();this.curOp.selectionAfter=r,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(r),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){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);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.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=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),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(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),i=e.getKeyboardHandler(),o=i&&i.$getDirectionForHighlight&&i.$getDirectionForHighlight(e),r=t.getMatchingBracketRanges(n,o);if(!r){var s=new y(t,n.row,n.column),a=s.getCurrentToken();if(a&&/\b(?:tag-open|tag-name)/.test(a.type)){var l=t.getMatchingTags(n);l&&(r=[l.openTagName,l.closeTagName])}}if(!r&&t.$mode.getMatching&&(r=t.$mode.getMatching(e.session)),r){var c="ace_bracket";Array.isArray(r)?1==r.length&&(c="ace_error_bracket"):r=[r],2==r.length&&(0==p.comparePoints(r[0].end,r[1].start)?r=[p.fromPoints(r[0].start,r[1].end)]:0==p.comparePoints(r[0].start,r[1].end)&&(r=[p.fromPoints(r[1].start,r[0].end)])),t.$bracketHighlight={ranges:r,markerIds:r.map((function(e){return t.addMarker(e,c,"text")}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),r=o.substring(n,i);if(!(r.length>5e3)&&/[\w\d]/.test(r)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=o.substring(n-1,i+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),w.lineMode=!!n&&s.text,s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===w.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){i.insert({row:e.start.row,column:0},t)}));else{var o=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,s=2==o.length&&(!o[0]||!o[1]);if(o.length!=r.length||s)return this.commands.exec("insertstring",this,t);for(var a=r.length;a--;){var l=r[a];l.isEmpty()||i.remove(l),i.insert(l.start,o[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(n.getState(o.row),"insertion",this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){s=new p.fromPoints(o,o);s.end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();o=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(o.row);if(o.column>a.search(/\S|$/)){var l=a.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,d=n.getState(o.row),u=(a=n.getLine(o.row),i.checkOutdent(d,a,e));if(n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new p(o.row,c+r.selection[0],o.row,c+r.selection[1])):this.selection.setSelectionRange(new p(o.row+r.selection[0],r.selection[1],o.row+r.selection[2],r.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var h=i.getNextLineIndent(d,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},h)}u&&i.autoOutdent(d,n,o.row)}},this.autoIndent=function(){var e,t,n=this.session,i=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var r,s,a,l="",c="",d="",u=n.getTabString(),h=e;h<=t;h++)h>0&&(l=n.getState(h-1),c=n.getLine(h-1),d=i.getNextLineIndent(l,c,u)),r=n.getLine(h),s=i.$getIndent(r),d!==s&&(s.length>0&&(a=new p(h,0,h,s.length),n.remove(a)),d.length>0&&n.insert({row:h,column:0},d)),i.autoOutdent(l,n,h)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()}if(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd){n=this.selection.getRange();n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n)}},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if("\n"==r[r.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),i=new p(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),i=new p(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){d=this.$getSelectedRows();return void e.indentRows(d.first,d.last,"\t")}}var i=e.getLine(t.start.row),o=t.start,r=e.getTabSize(),a=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var l=r-a%r,c=s.stringRepeat(" ",l);else{l=a%r;while(" "==i[t.start.column-1]&&l)t.start.column--,l--;this.selection.setSelectionRange(t),c="\t"}return this.insert(c)}var d=this.$getSelectedRows();e.indentRows(d.first,d.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var o=new p(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var i=this.session.getLine(e);while(n.lastIndex<t){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t){var r={value:o[0],start:o.index,end:o.index+o[0].length};return r}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new p(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var r=this.getNumberAt(t,n);if(r){var s=r.value.indexOf(".")>=0?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e,l/=Math.pow(10,a);var c=l.toFixed(a),d=new p(t,r.start,t,r.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},this.$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"],["&&","||"],["==","!="]],this.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),r=t-i-1;r<0&&(r=0);var a=0,l=0,c=this;n.match(/[A-Za-z0-9_]+/)&&o.forEach((function(t,o){l=a+t.length,r>=a&&r<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+i),c.selection.selectTo(e,l+i)),a=l}));for(var d,u=this.$toggleWordPairs,h=0;h<u.length;h++)for(var f=u[h],p=0;p<=1;p++){var g=+!p,m=n.match(new RegExp("^\\s?_?("+s.escapeRegExp(f[p])+")\\s?$","i"));if(m){var b=n.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(m[1])+")($|\\s)","g"));b&&(d=n.replace(new RegExp(s.escapeRegExp(f[p]),"i"),(function(e){var t=f[g];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+f[g].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(d),d="")}}},this.findLinkAt=function(e,t){var n,o,r=this.session.getLine(e),s=r.split(/((?:https?|ftp):\/\/[\S]+)/),a=t;a<0&&(a=0);var l,c=0,d=0;try{for(var u=i(s),h=u.next();!h.done;h=u.next()){var f=h.value;if(d=c+f.length,a>=c&&a<=d&&f.match(/((?:https?|ftp):\/\/[\S]+)/)){l=f.replace(/[\s:.,'";}\]]+$/,"");break}c=d}}catch(p){n={error:p}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return l},this.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var r=i?n.start:n.end,s=t.insert(r,t.getTextRange(n),!1);n.start=r,n.end=s,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var r=o.toOrientedRange();n=this.$getSelectedRows(r),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),o.fromOrientedRange(r)}else{var s=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0),n=this.$getSelectedRows(s[d]);var h=n.first,f=n.last;while(++d<c){l&&s[d].moveBy(l,0);var p=this.$getSelectedRows(s[d]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}d--,a=this.session.$moveLines(h,f,t?0:e),t&&-1==e&&(u=d+1);while(u<=d)s[u].moveBy(a,0),u++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),o=i.getCurrentToken(),r=0;o&&-1!==o.type.indexOf("tag-name")&&(o=i.stepBackward());var s=o||i.stepForward();if(s){var a,l,c=!1,d={},u=n.column-s.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;u<s.value.length&&!c;u++)if(h[s.value[u]])switch(l=h[s.value[u]]+"."+s.type.replace("rparen","lparen"),isNaN(d[l])&&(d[l]=0),s.value[u]){case"(":case"[":case"{":d[l]++;break;case")":case"]":case"}":d[l]--,-1===d[l]&&(a="bracket",c=!0);break}}else-1!==s.type.indexOf("tag-name")&&(isNaN(d[s.value])&&(d[s.value]=0),"<"===o.value&&r>1?d[s.value]++:"</"===o.value&&d[s.value]--,-1===d[s.value]&&(a="tag",c=!0));c||(o=s,r++,s=i.stepForward(),u=0)}while(s&&!c);if(a){var f,g;if("bracket"===a)f=this.session.getBracketRange(n),f||(f=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1),g=f.start,(t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(f=this.session.getBracketRange(g)));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;if(f=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2),0===f.compare(n.row,n.column)){var m=this.session.getMatchingTags(n);m&&(m.openTag.contains(n.row,n.column)?(f=m.closeTag,g=f.start):(f=m.openTag,g=m.closeTag.start.row===n.row&&m.closeTag.start.column===n.column?f.end:f.start))}g=g||f.start}g=f&&f.cursor||g,g&&(e?f&&t?this.selection.setRange(f):f&&f.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorLeft()}else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorRight()}else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),i):i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;r>=0;--r)this.$tryReplace(n[r],e)&&i++;return this.selection.setSelectionRange(o),i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var i=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var r=this.$search.find(this.session);return t.preventScroll?r:r?(this.revealRange(r,n),r):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.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()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var r=this.on("changeSelection",(function(){i=!0})),s=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,r=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=r.top-s.offset;i=r.top>=0&&a+t.top<0||!(r.top<s.height&&r.top+t.top+s.lineHeight>window.innerHeight)&&null,null!=i&&(o.style.top=a+"px",o.style.left=r.left+"px",o.style.height=s.lineHeight+"px",o.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",r),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var i=this;v.loadModule("./ext/prompt",(function(o){o.prompt(i,e,t,n)}))}}.call(x.prototype),v.defineOptions(x.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){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(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?C.attach(this):C.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?C.attach(this):C.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder");var t=r.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},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",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 C={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=x})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};function o(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){while(n<t-1){var o=h(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return!0}}}(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!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),e.id=this.$rev=++this.$maxRev}"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return t&&(o=n[i+1]),o}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(o(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var i=n.pop(),r=null;return i&&(r=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,r}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);v(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var i=this.$redoStack.pop(),o=null;return i&&(o=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?c(e):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(i.prototype);var r=e("./range").Range,s=r.comparePoints;r.comparePoints;function a(e){return{row:e.row,column:e.column}}function l(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}function c(e){if(e=e||this,Array.isArray(e))return e.map(c).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(d).join("\n"):d(e.value)),e.start&&(t+=d(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function d(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function u(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(s(t.start,e.end)>=0)p(t,e,-1);else{if(!(s(t.start,e.start)<=0))return null;p(e,t,1)}else if(n&&!i)if(s(t.start,e.end)>=0)p(t,e,-1);else{if(!(s(t.end,e.start)<=0))return null;p(e,t,-1)}else if(!n&&i)if(s(t.start,e.start)>=0)p(t,e,1);else{if(!(s(t.start,e.start)<=0))return null;p(e,t,1)}else if(!n&&!i)if(s(t.start,e.start)>=0)p(t,e,1);else{if(!(s(t.end,e.start)<=0))return null;p(e,t,-1)}return[t,e]}function h(e,t){for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!u(e[n],t[i])){while(n<e.length){while(i--)u(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function f(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)s(e.start,t.start)<0?p(t,e,1):p(e,t,1);else if(n&&!i)s(e.start,t.end)>=0?p(e,t,-1):(s(e.start,t.start)<=0||p(e,r.fromPoints(t.start,e.start),-1),p(t,e,1));else if(!n&&i)s(t.start,e.end)>=0?p(t,e,-1):(s(t.start,e.start)<=0||p(t,r.fromPoints(e.start,t.start),-1),p(e,t,1));else if(!n&&!i)if(s(t.start,e.end)>=0)p(t,e,-1);else{var o,a;if(!(s(t.end,e.start)<=0))return s(e.start,t.start)<0&&(o=e,e=m(e,t.start)),s(e.end,t.end)>0&&(a=m(e,t.end)),g(t.end,e.start,e.end,-1),a&&!o&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,o,a].filter(Boolean);p(e,t,-1)}return[t,e]}function p(e,t,n){g(e.start,t.start,t.end,n),g(e.end,t.start,t.end,n)}function g(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function m(e,t){var n=e.lines,i=e.end;e.end=a(t);var o=e.end.row-e.start.row,r=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;n.push(r[0].substring(0,s)),r[0]=r[0].substr(s);var l={start:a(t),end:i,lines:r,action:e.action};return l}function b(e,t){t=l(t);for(var n=e.length;n--;){for(var i=e[n],o=0;o<i.length;o++){var r=i[o],s=f(r,t);t=s[0],2!=s.length&&(s[2]?(i.splice(o+1,1,s[1],s[2]),o++):s[1]||(i.splice(o,1),o--))}i.length||e.splice(n,1)}return e}function v(e,t){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)b(e,i[o])}t.UndoManager=i})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){i.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight),r=n.documentToScreenRow(e,0)*t.lineHeight;return r-o*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,o){var r=this.cellCache.pop();if(!r){var s=i.createElement("div");o&&o(s),this.element.appendChild(s),r={element:s,text:"",row:e}}return r.row=e,r}}).call(o.prototype),t.Lines=o})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=e("./lines").Lines,l=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1};function c(e){var t=document.createTextNode("");e.appendChild(t);var n=i.createElement("span");return e.appendChild(n),e}(function(){o.implement(this,s),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=this.$annotations[i];o||(o=this.$annotations[i]={text:[]});var s=n.text;s=s?r.escapeHTML(s):n.html||"",-1===o.text.indexOf(s)&&o.text.push(s);var a=n.type,l=n.className;l?o.className=l:"error"==a?o.className=" ace_error":"warning"==a&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=a||o.className||(o.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();var o=t.getNextFoldLine(n),r=o?o.start.row:1/0,s=null,a=-1,l=n;while(1){if(l>r&&(l=o.end.row+1,o=t.getNextFoldLine(l,o),r=o?o.start.row:1/0),l>i){while(this.$lines.getLength()>a+1)this.$lines.pop();break}s=this.$lines.get(++a),s?s.row=l:(s=this.$lines.createCell(l,e,this.session,c),this.$lines.push(s)),this.$renderCell(s,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var r=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();r+=s.left+s.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))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(i>n)for(o=this.session.getFoldedRowCount(n+1,i);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>i&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:1/0;while(1){if(o>s&&(o=r.end.row+1,r=this.session.getNextFoldLine(o,r),s=r?r.start.row:1/0),o>n)break;var a=this.$lines.createCell(o,e,this.session,c);this.$renderCell(a,e,r,o),i.push(a),o++}return i},this.$renderCell=function(e,t,n,o){var r=e.element,s=this.session,a=r.childNodes[0],l=r.childNodes[1],c=s.$firstLineNumber,d=s.$breakpoints,u=s.$decorations,h=s.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&s.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,g="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o<this.$cursorRow&&o>=p&&this.$cursorRow<=n.end.row)&&(g+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),d[o]&&(g+=d[o]),u[o]&&(g+=u[o]),this.$annotations[o]&&(g+=this.$annotations[o].className),r.className!=g&&(r.className=g),f){var m=f[o];null==m&&(m=f[o]=s.getFoldWidget(o))}if(m){g="ace_fold-widget ace_"+m;"start"==m&&o==p&&o<n.end.row?g+=" ace_closed":g+=" ace_open",l.className!=g&&(l.className=g);var b=t.lineHeight+"px";i.setStyle(l.style,"height",b),i.setStyle(l.style,"display","inline-block")}else l&&i.setStyle(l.style,"display","none");var v=(h?h.getText(s,o):o+c).toString();return v!==a.data&&(a.data=v),i.setStyle(e.element.style,"height",this.$lines.computeLineHeight(o,t,s)+"px"),i.setStyle(e.element.style,"top",this.$lines.computeLineTop(o,t,s)+"px"),e.text=v,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("../lib/dom"),r=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers[n];if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var r=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,s,r,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,o,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?"text"==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}if(-1!=this.i)while(this.i<this.element.childElementCount)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,o,r,s){for(var a=this.session,l=n.start.row,c=n.end.row,d=l,u=0,h=0,f=a.getScreenLastRowColumn(d),p=new i(d,n.start.column,d,h);d<=c;d++)p.start.row=p.end.row=d,p.start.column=d==l?n.start.column:a.getRowWrapIndent(d),p.end.column=f,u=h,h=f,f=d+1<c?a.getScreenLastRowColumn(d+1):d==c?0:n.end.column,this.drawSingleLineMarker(t,p,o+(d==l?" ace_start":"")+" ace_br"+e(d==l||d==l+1&&n.start.column,u<h,h>f,d==c),r,d==c?0:1,s)},this.drawMultiLineMarker=function(e,t,n,i,o){var r=this.$padding,s=i.lineHeight,a=this.$getTop(t.start.row,i),l=r+t.start.column*i.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var c=t.clone();c.end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",i,null,o)}else this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){c=t.clone();c.start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",i,null,o)}else{a=this.$getTop(t.end.row,i);var d=t.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+d+"px;top:"+a+"px;left:"+r+"px;"+(o||""))}if(s=(t.end.row-t.start.row-1)*i.lineHeight,!(s<=0)){a=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+r+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var s=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(r||""))},this.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding,c=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);c.forEach((function(e){this.elt(n,"height:"+s+"px;width:"+(e.width+(o||0))+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))}),this)},this.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))}}).call(r.prototype),t.Marker=r})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)};(function(){i.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.MAX_CHUNK_LENGTH=250,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode(),n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)if(this.showTabs){var i=this.dom.createElement("span");i.className="ace_invisible ace_invisible_tab",i.textContent=r.stringRepeat(this.TAB_CHAR,n),t.push(i)}else t.push(this.dom.createTextNode(r.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o="ace_indent-guide",s=this.showSpaces?" ace_invisible ace_invisible_space":"",a=this.showSpaces?r.stringRepeat(this.SPACE_CHAR,this.tabSize):r.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",c=this.showTabs?r.stringRepeat(this.TAB_CHAR,this.tabSize):a;i=this.dom.createElement("span");i.className=o+s,i.textContent=a,this.$tabStrings[" "]=i;i=this.dom.createElement("span");i.className=o+l,i.textContent=c,this.$tabStrings["\t"]=i}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){var l=this.session.getFoldLine(a);if(l){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}var c=!1,d=(a=i,l=this.session.getNextFoldLine(a),l?l.start.row:1/0);while(1){if(a>d&&(a=l.end.row+1,l=this.session.getNextFoldLine(a,l),d=l?l.start.row:1/0),a>o)break;var u=r[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==d&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var h=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=h&&(c=!0,u.style.height=h)}a++}if(c)while(s<this.$lines.cells.length){var f=this.$lines.cells[s++];f.element.style.top=this.$lines.computeLineTop(f.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(e,t,n){var i=[],r=t,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;while(1){if(r>a&&(r=s.end.row+1,s=this.session.getNextFoldLine(r,s),a=s?s.start.row:1/0),r>n)break;var l=this.$lines.createCell(r,e,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(r,e,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(r,e,this.session)+"px"),this.$renderLine(c,r,r==a&&s),this.$useLineGroups()?c.className="ace_line_group":(c.className="ace_line",c.setAttribute("role","option")),i.push(l),r++}return i},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,i=this.$lines;while(i.getLength())i.pop();i.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderTokenInChunks=function(e,t,n,i){for(var o,r=0;r<i.length;r+=this.MAX_CHUNK_LENGTH){var s=i.substring(r,r+this.MAX_CHUNK_LENGTH),a={type:n.type,value:s};o=this.$renderToken(e,t+r,a,s)}return o},this.$renderToken=function(e,t,n,i){var o,s=this,a=/(\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]+)|(\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,l=this.dom.createFragment(this.element),c=0;while(o=a.exec(i)){var d=o[1],u=o[2],h=o[3],f=o[4],p=o[5];if(s.showSpaces||!u){var g=c!=o.index?i.slice(c,o.index):"";if(c=o.index+o[0].length,g&&l.appendChild(this.dom.createTextNode(g,this.element)),d){var m=s.session.getScreenTabSize(t+o.index);l.appendChild(s.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(u)if(s.showSpaces){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space",b.textContent=r.stringRepeat(s.SPACE_CHAR,u.length),l.appendChild(b)}else l.appendChild(this.com.createTextNode(u,this.element));else if(h){b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space ace_invalid",b.textContent=r.stringRepeat(s.SPACE_CHAR,h.length),l.appendChild(b)}else if(f){t+=1;b=this.dom.createElement("span");b.style.width=2*s.config.characterWidth+"px",b.className=s.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=s.showSpaces?s.SPACE_CHAR:f,l.appendChild(b)}else if(p){t+=1;b=this.dom.createElement("span");b.style.width=2*s.config.characterWidth+"px",b.className="ace_cjk",b.textContent=p,l.appendChild(b)}}}l.appendChild(this.dom.createTextNode(c?i.slice(c):i,this.element));b=this.dom.createElement("span");if(!this.$textToken[n.type]){var v="ace_"+n.type.replace(/\./g," ace_");"fold"==n.type&&(b.style.width=n.value.length*this.config.characterWidth+"px"),b.className=v}return b.appendChild(l),e.appendChild(b),t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||i>=n)return t;if(" "==t[0]){i-=i%this.tabSize;for(var o=i/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(i)}if("\t"==t[0]){for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(i)}return this.$highlightIndentGuide(),t},this.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,i=Math.floor(n/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:i,start:t.row};var o=this.session.$bracketHighlight;if(o)for(var r=this.session.$bracketHighlight.ranges,s=0;s<r.length;s++)if(t.row!==r[s].start.row){this.$highlightIndentGuideMarker.end=r[s].start.row,t.row>r[s].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(s=t.row+1;s<e.length;s++){var a=e[s],l=/^\s*/.exec(a)[0].length;if(""!==a&&(this.$highlightIndentGuideMarker.end=s,l<=n))break}}this.$renderHighlightIndentGuide()}}},this.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,t=0;t<e.length;t++){var n=e[t],i=n.element.childNodes;if(i.length>0)for(var o=0;o<i.length;o++)if(i[o].classList&&i[o].classList.contains("ace_indent-guide-active")){i[o].classList.remove("ace_indent-guide-active");break}}},this.$setIndentGuideActive=function(e,t){var n=this.session.doc.getLine(e.row);if(""!==n){var i=e.element.childNodes;if(i){var o=i[t-1];o&&o.classList&&o.classList.contains("ace_indent-guide")&&o.classList.add("ace_indent-guide-active")}}},this.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var i=e[n];if(this.$highlightIndentGuideMarker.end&&i.row>=this.$highlightIndentGuideMarker.start+1){if(i.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}else for(n=e.length-1;n>=0;n--){i=e[n];if(this.$highlightIndentGuideMarker.end&&i.row<this.$highlightIndentGuideMarker.start){if(i.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}}},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,n){var i=0,o=0,s=n[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var d=t[c],u=d.value;if(0==c&&this.displayIndentGuides){if(i=u.length,u=this.renderIndentGuide(l,u,s),!u)continue;i-=u.length}if(i+u.length<s)a=this.$renderTokenInChunks(l,a,d,u),i+=u.length;else{while(i+u.length>=s)a=this.$renderTokenInChunks(l,a,d,u.substring(0,s-i)),u=u.substring(s-i),i=s,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(r.stringRepeat(" ",n.indent),this.element)),o++,a=0,s=n[o]||Number.MAX_VALUE;0!=u.length&&(i+=u.length,a=this.$renderTokenInChunks(l,a,d,u))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},this.$renderSimpleLine=function(e,t){for(var n=0,i=0;i<t.length;i++){var o=t[i],r=o.value;if(0!=i||!this.displayIndentGuides||(r=this.renderIndentGuide(e,r),r)){if(n+r.length>this.MAX_LINE_LENGTH)return void this.$renderOverflowMessage(e,n,o,r);n=this.$renderTokenInChunks(e,n,o,r)}}},this.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderTokenInChunks(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement("span");r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"<hide>":"<click to see more...>",e.appendChild(r)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var r=this.session.getRowSplitData(t);if(r&&r.length){this.$renderWrappedLine(e,i,r);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s)}},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];function o(e,t,n){var o=0,r=0;while(r+e[o].value.length<t)if(r+=e[o].value.length,o++,o==e.length)return;if(r!=t){var s=e[o].value.substring(t-r);s.length>n-t&&(s=s.substring(0,n-t)),i.push({type:e[o].type,value:s}),r=t+s.length,o+=1}while(r<n&&o<e.length){s=e[o].value;s.length+r>n?i.push({type:e[o].type,value:s.substring(0,n-r)}):i.push(e[o]),r+=s.length,o+=1}}var r=n.getTokens(e);return t.walk((function(e,t,s,a,l){null!=e?i.push({type:"fold",value:e}):(l&&(r=n.getTokens(t)),r.length&&o(r,a,s))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)i.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),i=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),o=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:o}},this.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,o=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var a=this.cursors[o++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,e,t[n],this.session):this.isCursorInView(s,e)?(i.setStyle(l,"display","block"),i.translate(a,s.left,s.top),i.setStyle(l,"width",Math.round(e.characterWidth)+"px"),i.setStyle(l,"height",e.lineHeight+"px")):i.setStyle(l,"display","none")}}while(this.cursors.length>o)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=32768,l=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addListener(this.element,"scroll",this.onScroll.bind(this)),r.addListener(this.element,"mousedown",r.preventDefault)};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>a?(this.coeff=a/e,e=a):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var d=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(d,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(d.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=d,t.VScrollBar=c,t.HScrollBar=d})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter;o.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var a=function(e){this.element=o.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,this.parent=e,this.width=this.VScrollWidth,this.renderer=t,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};i.inherits(l,a),function(){this.classSuffix="-v",i.implement(this,s),this.onMouseDown=function(e,t){if("mousedown"===e&&0===r.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientY,o=function(e){i=e.clientY},s=function(){clearInterval(d)},a=t.clientY,l=this.thumbTop,c=function(){if(void 0!==i){var e=n.scrollTopFromThumbTop(l+i-a);e!==n.scrollTop&&n._emit("scroll",{data:e})}};r.capture(this.inner,o,s);var d=setInterval(c,20);return r.preventDefault(t)}var u=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(u)}),r.preventDefault(t)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return t>>=0,t<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,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})))},this.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(l.prototype);var c=function(e,t){a.call(this,e),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=t};i.inherits(c,a),function(){this.classSuffix="-h",i.implement(this,s),this.onMouseDown=function(e,t){if("mousedown"===e&&0===r.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientX,o=function(e){i=e.clientX},s=function(){clearInterval(d)},a=t.clientX,l=this.thumbLeft,c=function(){if(void 0!==i){var e=n.scrollLeftFromThumbLeft(l+i-a);e!==n.scrollLeft&&n._emit("scroll",{data:e})}};r.capture(this.inner,o,s);var d=setInterval(c,20);return r.preventDefault(t)}var u=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(u)}),r.preventDefault(t)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return t>>=0,t<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},this.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,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})))},this.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(i.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),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(e,t,n){var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=250,d="function"==typeof ResizeObserver,u=200,h=t.FontMetrics=function(e,t){this.charCount=t||c,this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=r.stringRepeat("X",this.charCount),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()};(function(){i.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=s.onIdle((function t(){e.checkForSizeChanges(),s.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e=e||this.$measureNode;var t=e.getBoundingClientRect(),n={height:t.height,width:t.width/this.charCount};return 0===n.width||0===n.height?null:n},this.$measureCharWidth=function(e){this.$main.textContent=r.stringRepeat(e,this.charCount);var t=this.$main.getBoundingClientRect();return t.width/this.charCount},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},this.transformCoordinates=function(e,t){if(e){var n=this.$getZoom(this.el);e=s(1/n,e)}function i(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function r(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var l=a(this.els[0]),c=a(this.els[1]),d=a(this.els[2]),h=a(this.els[3]),f=i(o(h,c),o(h,d),o(r(c,d),r(h,l))),p=s(1+f[0],o(c,l)),g=s(1+f[1],o(d,l));if(t){var m=t,b=f[0]*m[0]/u+f[1]*m[1]/u+1,v=r(s(m[0],p),s(m[1],g));return r(s(1/b/u,v),l)}var y=o(e,l),w=i(o(p,s(f[0],y)),o(g,s(f[1],y)),y);return s(u,w)}}).call(h.prototype)})),ace.define("ace/css/editor.css",["require","exports","module"],(function(e,t,n){n.exports='/*\nstyles = []\nfor (var i = 1; i < 16; i++) {\n styles.push(".ace_br" + i + "{" + (\n ["top-left", "top-right", "bottom-right", "bottom-left"]\n ).map(function(x, j) {\n return i & (1<<j) ? "border-" + x + "-radius: 3px;" : "" \n }).filter(Boolean).join(" ") + "}")\n}\nstyles.join("\\n")\n*/\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left {\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n}\n\n.ace_gutter-cell {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell.ace_error {\n 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==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning {\n 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==");\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n will-change: transform;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #FFF;\n background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_folding-enabled > .ace_gutter-cell {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/event_emitter").EventEmitter,s=function(e,t){this.canvas=i.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.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)"},e.element.appendChild(this.canvas)};(function(){o.implement(this,r),this.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;if(e){this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height;var n=(e.lastRow+1)*this.lineHeight;n<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var i=this.canvas.getContext("2d");function o(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}var r=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),r){var s={info:1,warning:2,error:3};r.forEach((function(e){e.priority=s[e.type]||null})),r=r.sort(o);for(var a=this.renderer.session.$foldData,l=0;l<r.length;l++){var c=r[l].row,d=this.compensateFoldRows(c,a),u=Math.round((c-d)*this.lineHeight*this.heightRatio),h=Math.round((c-d)*this.lineHeight*this.heightRatio),f=Math.round(((c-d)*this.lineHeight+this.lineHeight)*this.heightRatio),p=f-h;if(p<this.minDecorationHeight){var g=(h+f)/2|0;g<this.halfMinDecorationHeight?g=this.halfMinDecorationHeight:g+this.halfMinDecorationHeight>this.canvasHeight&&(g=this.canvasHeight-this.halfMinDecorationHeight),h=Math.round(g-this.halfMinDecorationHeight),f=Math.round(g+this.halfMinDecorationHeight)}i.fillStyle=t[r[l].type]||null,i.fillRect(0,u,this.canvasWidth,f-h)}}var m=this.renderer.session.selection.getCursor();if(m){d=this.compensateFoldRows(m.row,a),u=Math.round((m.row-d)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,u,this.canvasWidth,2)}},this.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var i=0;i<t.length;i++)e>t[i].start.row&&e<t[i].end.row?n+=e-t[i].start.row:e>=t[i].end.row&&(n+=t[i].end.row-t[i].start.row);return n}}).call(s.prototype),t.Decorator=s})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","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"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./config"),s=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,h=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,p=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,m=e("./lib/event_emitter").EventEmitter,b=e("./css/editor.css"),v=e("./layer/decorators").Decorator,y=e("./lib/useragent"),w=y.isIE;o.importCssString(b,"ace_editor.css",!1);var x=function(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==r.get("useStrictCSP")&&r.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container,this.$textLayer.MAX_CHUNK_LENGTH),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),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=!y.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),r.resetOptions(this),r._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,m),this.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(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(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))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var r=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(i&&(e||s.height!=i)&&(s.height=i,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)){r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)}return s.$dirty=!n||!i,r&&this._signal("resize",a),r},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var i=this.layerConfig,r=n.top,s=n.left;r-=i.offset;var a=t&&t.useTextareaForIME?this.lineHeight:w?0:1;if(r<0||r>i.height-a)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var d=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(d)[0]}else r+=this.lineHeight+2;else r+=this.lineHeight;s-=this.scrollLeft,s>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",a+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(r,c))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var r=n.width+2*this.$padding+"px",s=n.minHeight+"px";o.setStyle(this.content.style,"width",r),o.setStyle(this.content.style,"height",s)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=n<=2*this.lineHeight,o=!i&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||o!=this.$vScroll){o!=this.$vScroll&&(this.$vScroll=o,this.scrollBarV.setVisible(o));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength(),o=i*this.lineHeight,r=this.$getLongestLine(),s=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),a=this.$horizScroll!==s;a&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var l=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;o+=d;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,o-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+u.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-o+d<0||this.scrollTop>u.top),f=l!==h;f&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var p,g,m=this.scrollTop%this.lineHeight,b=Math.ceil(c/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),y=v+b,w=this.lineHeight;v=e.screenToDocumentRow(v,0);var x=e.getFoldLine(v);x&&(v=x.start.row),p=e.documentToScreenRow(v,0),g=e.getRowLength(v)*w,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(y)*w+g,m=this.scrollTop-p*w;var C=0;return(this.layerConfig.width!=r||a)&&(C=this.CHANGE_H_SCROLL),(a||f)&&(C|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:y,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:o,offset:m,gutterOffset:w?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),C},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,r=i.top,s=n&&n.top||0,a=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>r?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft,d=2*this.layerConfig.characterWidth;o-d<c?(o-=d,o<this.$padding+d&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):(o+=d,c+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&o-c<this.characterWidth&&this.session.setScrollLeft(0))}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,o=n.top-i*(t||0);return this.session.setScrollTop(o),o},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,i=this.STEPS,o=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)o.push(r(n/this.STEPS,e,t-e));return o},this.scrollToLine=function(e,t,n,i){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}),r=o.top;t&&(r-=this.$size.scrollerHeight/2);var s=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(s,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0],e==n))return}var r=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){if(!i.$stopAnimation)return i.session?void(r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):s()):clearInterval(i.$timer);s()}),10)}}function s(){i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,i.$stopAnimation=!1,t&&t()}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(r):Math.round(r);return{row:s,column:a,side:r-a>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=this.$blockCursor?Math.floor(r):Math.round(r),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+r-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines[n]=null;var r={type:t,value:e},s=o.getTokens(n);if(null==i)s.push(r);else for(var a=0,l=0;l<s.length;l++){var c=s[l];if(a+=c.value.length,i<=a){var d=c.value.length-(a-i),u=c.value.slice(0,d),h=c.value.slice(d);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:h});break}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)s(e);else{var i=e||this.$options.theme.initialValue;r.loadModule(["theme",i],s)}function s(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");i.$id&&(n.$themeId=i.$id),o.importCssString(i.cssText,i.cssClass,n.container),n.theme&&o.removeCssClass(n.container,n.theme.cssClass);var r="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&r!=n.$padding&&n.setPadding(r),n.$theme=i.cssClass,n.theme=i,o.addCssClass(n.container,i.cssClass),o.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){o.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){o.removeCssClass(this.container,e)},this.setCursorStyle=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){o.importCssString(b,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})),this.$scrollDecorator=new v(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new u(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})))}}).call(x.prototype),r.defineOptions(x.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&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(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!y.isMobile&&!y.isIE}}),t.VirtualRenderer=x})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/net"),r=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){var t="importScripts('"+o.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(r){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,i=new n;return i.append(t),i.getBlob("application/javascript")}}function l(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var t=a(e),n=window.URL||window.webkitURL,i=n.createObjectURL(t);return new Worker(i)}return new Worker(e)}var c=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,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(){i.implement(this,r),this.$createWorkerFromOldConfig=function(t,n,i,o,r){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)o=o||s.moduleUrl(n,"worker");else{var a=this.$normalizePath;o=o||a(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach((function(t){c[t]=a(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=l(o),r&&this.send("importScripts",r),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:i}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return o.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var d=function(e,t,n){var i=null,o=!1,a=Object.create(r),l=[],d=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),i&&(o?setTimeout(u):u())}});d.setEmitSync=function(e){o=e};var u=function(){var e=l.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){d.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){i=new e[n](a);while(l.length)u()})),d};t.UIWorkerClient=d,t.WorkerClient=c,t.createWorker=l})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,r=e("./lib/oop"),s=function(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){r.implement(this,o),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new i(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,o=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a=this.others[s],l={row:a.row,column:a.column+r};this.doc.insertMergedLines(l,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){a=this.others[s],l={row:a.row,column:a.column+r};this.doc.remove(new i(l.row,l.column,l.row,l.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.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},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(s.prototype),t.PlaceHolder=s})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),o=e("../lib/useragent");function r(e,t){return e.row==t.row&&e.column==t.column}function s(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&o.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var d,u=e.editor,h=u.selection,f=u.inMultiSelectMode,p=e.getDocumentPosition(),g=h.getCursor(),m=e.inSelection()||h.isEmpty()&&r(p,g),b=e.x,v=e.y,y=function(e){b=e.clientX,v=e.clientY},w=u.session,x=u.renderer.pixelToScreenCoordinates(b,v),C=x;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?d=s?"block":"add":n&&u.$blockSelectEnabled&&(d="block");else if(l&&!n){if(d="add",!f&&s)return}else n&&u.$blockSelectEnabled&&(d="block");if(d&&o.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==d){if(!f&&m)return;if(!f){var _=h.toOrientedRange();u.addSelectionMarker(_)}var k=h.rangeList.rangeAtPoint(p);u.inVirtualSelectionMode=!0,s&&(k=null,_=h.ranges[0]||_,u.removeSelectionMarker(_)),u.once("mouseup",(function(){var e=h.toOrientedRange();k&&e.isEmpty()&&r(k.cursor,e.cursor)?h.substractPoint(e.cursor):(s?h.substractPoint(_.cursor):_&&(u.removeSelectionMarker(_),h.addRange(_)),h.addRange(e)),u.inVirtualSelectionMode=!1}))}else if("block"==d){var S;e.stop(),u.inVirtualSelectionMode=!0;var O=[],E=function(){var e=u.renderer.pixelToScreenCoordinates(b,v),t=w.screenToDocumentPosition(e.row,e.column,e.offsetX);r(C,e)&&r(t,h.lead)||(C=e,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(O),O=h.rectangularRangeBlock(C,x),u.$mouseHandler.$clickSelection&&1==O.length&&O[0].isEmpty()&&(O[0]=u.$mouseHandler.$clickSelection.clone()),O.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers())};f&&!l?h.toSingleRange():!f&&l&&(S=h.toOrientedRange(),u.addSelectionMarker(S)),s?x=w.documentToScreenPosition(h.lead):h.moveToPosition(p),C={row:-1,column:-1};var L=function(e){E(),clearInterval(M),u.removeSelectionMarkers(O),O.length||(O=[h.toOrientedRange()]),S&&(u.removeSelectionMarker(S),h.toSingleRange(S));for(var t=0;t<O.length;t++)h.addRange(O[t]);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null},A=E;i.capture(u.container,y,L);var M=setInterval((function(){A()}),20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}t.onMouseDown=s})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.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(e){e.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(e){e.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(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.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(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.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(e,t,n){var i=e("./range_list").RangeList,o=e("./range").Range,r=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=e("./search").Search,u=new d;function h(e,t,n){return u.$options.wrap=!0,u.$options.needle=t,u.$options.backwards=-1==n,u.find(e)}var f=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var i=e[n],r=i.start.row,s=i.end.row;if(r===s)t.push(i.clone());else{t.push(new o(r,i.start.column,r,this.session.getLine(r).length));while(++r<s)t.push(this.getLineRange(r,!0));t.push(new o(s,0,s,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),r=this.session.documentToScreenPosition(this.anchor),s=this.rectangularRangeBlock(i,r);s.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],r=e.column<t.column;if(r)var s=e.column,a=t.column,l=e.offsetX,c=t.offsetX;else s=t.column,a=e.column,l=t.offsetX,c=e.offsetX;var d,u=e.row<t.row;if(u)var h=e.row,f=t.row;else h=t.row,f=e.row;s<0&&(s=0),h<0&&(h=0),h==f&&(n=!0);for(var p=h;p<=f;p++){var m=o.fromPoints(this.session.screenToDocumentPosition(p,s,l),this.session.screenToDocumentPosition(p,a,c));if(m.isEmpty()){if(d&&g(m.end,d))break;d=m.end}m.cursor=r?m.start:m.end,i.push(m)}if(u&&i.reverse(),!n){var b=i.length-1;while(i[b].isEmpty()&&b>0)b--;if(b>0){var v=0;while(i[v].isEmpty())v++}for(var y=b;y>=v;y--)i[y].isEmpty()&&i.splice(y,1)}return i}}.call(r.prototype);var p=e("./editor").Editor;function g(e,t){return e.row==t.row&&e.column==t.column}function m(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),b(e))}function b(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;a.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()}),e),a.addListener(t,"keyup",i,e),a.addListener(t,"blur",i,e)}function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(o?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var h=new r(a);this.inVirtualSelectionMode=!0;for(var f=d.length;f--;){if(s)while(f>0&&d[f].start.row==d[f-1].end.row)f--;h.fromOrientedRange(d[f]),h.index=f,this.selection=a.selection=h;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),h.toOrientedRange(d[f])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();e=n.join(o),e.length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if(t=t||{},t.needle=e||t.needle,void 0==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var s=o.length;s--;)r.addRange(o[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,r=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var s=this.session.screenToDocumentPosition(r.row+e,r.column);if(n.isEmpty())l=s;else var a=this.session.documentToScreenPosition(i?n.end:n.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);if(i){var c=o.fromPoints(s,l);c.cursor=c.start}else{c=o.fromPoints(l,s);c.cursor=c.end}if(c.desiredColumn=r.column,this.selection.inMultiSelectMode){if(t)var d=n.cursor}else this.selection.addRange(n);this.selection.addRange(c),d&&this.selection.substractPoint(d)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o--;){var r=i[o];if(r.isEmpty()){var s=t.getWordRange(r.start.row,r.start.column);r.start.row=s.start.row,r.start.column=s.start.column,r.end.row=s.end.row,r.end.column=s.end.column}}n.mergeOverlappingRanges();var a=[];for(o=i.length;o--;){r=i[o];a.unshift(t.getTextRange(r))}e<0?a.unshift(a.pop()):a.push(a.shift());for(o=i.length;o--;){r=i[o],s=r.clone();t.replace(r,a[o]),r.start.row=s.start.row,r.start.column=s.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var i=this.session,o=i.multiSelect,r=o.toOrientedRange();if(!r.isEmpty()||(r=i.getWordRange(r.start.row,r.start.column),r.cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),!n)){var s=i.getTextRange(r),a=h(i,s,e);a&&(a.cursor=-1==e?a.start:a.end,this.session.unfold(a),this.multiSelect.addRange(a),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,r=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&r.length!=n.length-1){r.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,c=n.map((function(t){var n=t.cursor,i=e.getLine(n.row),o=i.substr(n.column).search(/\S/g);return-1==o&&(o=0),n.column>s&&(s=n.column),o<a&&(a=o),o}));n.forEach((function(t,n){var i=t.cursor,r=s-i.column,d=c[n]-a;r>d?e.insert(i,l.stringRepeat(" ",r-d)):e.remove(new o(i.row,i.column,i.row,i.column-r+d)),t.start.column=t.end.column=s,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),u=d.start.row,h=d.end.row,f=u==h;if(f){var p,g=this.session.getLength();do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&++h<g);do{p=this.session.getLine(u)}while(/[=:]/.test(p)&&--u>0);u<0&&(u=0),h>=g&&(h=g-1)}var m=this.session.removeFullLines(u,h);m=this.$reAlignText(m,f),this.session.insert({row:u,column:0},m.join("\n")+"\n"),f||(d.start.column=0,d.end.column=m[m.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,i,o,r=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,o=t[3].length,t):(n+i+o!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(r=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),o>t[3].length&&(o=t[3].length),t):[e]})).map(t?c:r?s?d:c:u);function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(i-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function d(e){return e[2]?a(n+i-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?a(n)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){m(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,r=e.getLine(t),s=r.search(o);if(-1!=s){var a=n||r.length,l=e.getLength(),c=t,d=t;while(++t<l){var u=e.getLine(t).search(o);if(-1!=u){if(u<=s){var h=e.getTokenAt(t,0);if(!h||"string"!==h.type)break}d=t}}if(d>c){var f=e.getLine(d).length;return new i(c,a,d,f)}}},this.openingBracketBlock=function(e,t,n,o,r){var s={row:n,column:o+1},a=e.$findClosingBracket(t,s,r);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,o,r){var s={row:n,column:o},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,i.fromPoints(a,s)}}).call(o.prototype)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./lib/dom");function o(e){this.session=e,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)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,o=i.start.row,r=i.end.row,s="add"==e.action,a=o+1;a<r;a++)n[a]&&(n[a].hidden=s);n[r]&&(s?n[o]?n[r].hidden=s:n[o]=n[r]:(n[o]==n[r]&&(n[o]=void 0),n[r].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){var o=t.splice(n+1,i);!t[n]&&o[o.length-1]&&(t[n]=o.pop()),o.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var r=new Array(i);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],i=[];while(n)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row),a<0&&(a=0)),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);while(o>0&&!i[o])o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,o=e("../lib/dom"),r=e("../range").Range;function s(e,t,n){var i=0,o=e.length-1;while(i<=o){var r=i+o>>1,s=n(t,e[r]);if(s>0)i=r+1;else{if(!(s<0))return r;o=r-1}}return-(i+1)}function a(e,t,n){var i=e.getAnnotations().sort(r.comparePoints);if(i.length){var o=s(i,{row:t,column:-1},r.comparePoints);o<0&&(o=-o-1),o>=i.length?o=n>0?0:i.length-1:0===o&&n<0&&(o=i.length-1);var a=i[o];if(a&&n){if(a.row===t){do{a=i[o+=n]}while(a&&a.row===t);if(!a)return i.slice()}var l=[];t=a.row;do{l[n<0?"unshift":"push"](a),a=i[o+=n]}while(a&&a.row==t);return l.length&&l}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var r=e.getCursorPosition(),s=r.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var c,d=a(n,s,t);if(d){var u=d[0];r.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,r.row=u.row,c=e.renderer.$gutterLayer.$annotations[r.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(r.row),e.selection.moveToPosition(r);var h={row:r.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},f=h.el.appendChild(o.createElement("div")),p=h.el.appendChild(o.createElement("div"));p.className="error_widget_arrow "+c.className;var g=e.renderer.$cursorLayer.getPixelPosition(r).left;p.style.left=g+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",f.className="error_widget "+c.className,f.innerHTML=c.text.join("<br>"),f.appendChild(o.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},o.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","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(e,t,n){"use strict";e("./loader_build")(t);var i=e("./lib/dom"),o=e("./lib/event"),r=e("./range").Range,s=e("./editor").Editor,a=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,c=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=i.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var d=t.createEditSession(a),u=new s(new c(e),d,n),h={document:d,editor:u,onResize:u.resize.bind(u,null)};return l&&(h.textarea=l),o.addListener(window,"resize",h.onResize),u.on("destroy",(function(){o.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new l),n},t.Range=r,t.Editor=s,t.EditSession=a,t.UndoManager=l,t.VirtualRenderer=c,t.version=t.config.version})),function(){ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace["default"]=window.ace,e&&(e.exports=window.ace)}))}()}).call(this,n("62e4")(e))},"6e5c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"display-style":e.field.options.displayStyle,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-button",{ref:"fieldEditor",attrs:{type:e.field.options.type,size:e.field.options.size,plain:e.field.options.plain,round:e.field.options.round,circle:e.field.options.circle,icon:e.field.options.icon,disabled:e.field.options.disabled},nativeOn:{click:function(t){return e.handleButtonWidgetClick.apply(null,arguments)}}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"button-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("d719"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"1293f105",null);t["default"]=h.exports},"6f49":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.circle")}},[t("el-switch",{model:{value:e.optionModel.circle,callback:function(t){e.$set(e.optionModel,"circle",t)},expression:"optionModel.circle"}})],1)},o=[],r=n("79fa"),s={name:"circle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"46cbc20e",null);t["default"]=c.exports},7007:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slider-field",use:"icon-slider-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slider-field"><defs><style type="text/css"></style></defs><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" p-id="53484" /></symbol>'});s.a.add(a);t["default"]=a},"700c":function(e,t,n){},7156:function(e,t,n){var i=n("1626"),o=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var s,a;return r&&i(s=t.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&r(e,a),e}},"71bc":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return buildDefaultValueListFn})),__webpack_require__.d(__webpack_exports__,"d",(function(){return buildRulesListFn})),__webpack_require__.d(__webpack_exports__,"c",(function(){return buildFieldOptionsFn})),__webpack_require__.d(__webpack_exports__,"e",(function(){return buildUploadDataFn})),__webpack_require__.d(__webpack_exports__,"a",(function(){return buildActiveTabs})),__webpack_require__.d(__webpack_exports__,"f",(function(){return genVue2JS}));var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),_utils_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("ca00"),_utils_i18n__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("79fa"),_utils_validators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("a00a");function buildDefaultValueListFn(e,t,n){return function(e){const t=e.options,i=t.defaultValue;Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__["m"])(i)?n.push(`${t.name}: ${JSON.stringify(i)},`):n.push(t.name+": null,")}}function buildRulesListFn(formConfig,widgetList,resultList){return function(fieldWidget){const fop=fieldWidget.options;let fieldRules=[];if(fop.required&&fieldRules.push(`{\n required: true,\n message: '${Object(_utils_i18n__WEBPACK_IMPORTED_MODULE_2__["c"])("render.hint.fieldRequired")}',\n }`),fop.validation){let vldName=fop.validation;_utils_validators__WEBPACK_IMPORTED_MODULE_3__["a"][vldName]?fieldRules.push(`{\n pattern: ${eval(Object(_utils_validators__WEBPACK_IMPORTED_MODULE_3__["b"])(vldName))},\n trigger: ['blur', 'change'],\n message: '${fop.validationHint}'\n }`):fieldRules.push(`{\n pattern: '${eval(vldName)}',\n trigger: ['blur', 'change'],\n message: '${fop.validationHint}'\n }`)}fieldRules.length>0&&resultList.push(`${fop.name}: [${fieldRules.join(",")}],`)}}function buildFieldOptionsFn(e,t,n){return function(e){const t=e.options,i=e.type;"radio"!==i&&"checkbox"!==i&&"select"!==i&&"cascader"!==i||n.push(`${t.name}Options: ${JSON.stringify(t.optionItems)},`)}}function buildUploadDataFn(e,t,n){return function(e){const t=e.options,i=e.type;"picture-upload"!==i&&"file-upload"!==i||(n.push(t.name+"FileList: [],"),n.push(t.name+"UploadHeaders: {},"),n.push(t.name+"UploadData: {},"))}}function buildActiveTabs(e,t){let n=[];const i=function(e){const t=e.options,i=e.type;"tab"===i&&e.tabs.length>0&&n.push(`'${t.name}ActiveTab': '${e.tabs[0].options.name}',`)};return Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__["r"])(t,i),n}const genVue2JS=function(e,t){let n=[],i=[],o=[],r=[];Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__["s"])(t,s=>{buildDefaultValueListFn(e,t,n)(s),buildRulesListFn(e,t,i)(s),buildFieldOptionsFn(e,t,o)(s),buildUploadDataFn(e,t,r)(s)});const s=buildActiveTabs(e,t),a=` export default {\n components: {},\n props: {},\n data() {\n return {\n ${e.modelName}: {\n ${n.join("\n")}\n },\n \n ${e.rulesName}: {\n ${i.join("\n")}\n },\n \n ${s.join("\n")}\n \n ${o.join("\n")}\n \n ${r.join("\n")}\n }\n },\n computed: {},\n watch: {},\n created() {\n },\n mounted() {\n },\n methods: {\n submitForm() {\n this.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n },\n \n resetForm() {\n this.$refs['vForm'].resetFields()\n }\n }\n }`;return a}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},"732a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{"label-width":"0"}},[t("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.customLabelIcon")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelIconClass")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelIconClass,callback:function(t){e.$set(e.optionModel,"labelIconClass",t)},expression:"optionModel.labelIconClass"}})],1)],1)},o=[],r=n("79fa"),s={name:"labelIconClass-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"64edb29a",null);t["default"]=c.exports},7331:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onUploadSuccess","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onUploadSuccess",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onUploadSuccess-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["result","file","fileList"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"40a94791",null);t["default"]=d.exports},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"756c":function(e,t,n){},"767a":function(e,t,n){"use strict";n("dea5")},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7899:function(e,t,n){var i={"./button-widget.vue":"6e5c","./cascader-widget.vue":"c077","./checkbox-widget.vue":"6d04","./color-widget.vue":"3ad3","./date-range-widget.vue":"ba08","./date-widget.vue":"da4e","./divider-widget.vue":"de19","./file-upload-widget.vue":"4a70","./form-item-wrapper.vue":"9eeb","./html-text-widget.vue":"090f","./input-widget.vue":"d67b","./number-widget.vue":"cf32","./picture-upload-widget.vue":"7ede","./radio-widget.vue":"b87d","./rate-widget.vue":"2faa","./rich-editor-widget.vue":"f4c1","./select-widget.vue":"8a3e","./slider-widget.vue":"826c","./slot-widget.vue":"b8e9","./static-content-wrapper.vue":"828b","./static-text-widget.vue":"851c","./switch-widget.vue":"ecaa","./textarea-widget.vue":"84b5","./time-range-widget.vue":"cab0","./time-widget.vue":"20c0"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="7899"},"791d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.minLength")}},[t("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.minLength,callback:function(t){e.minLength=t},expression:"minLength"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"minLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{minLength:{get(){return this.optionModel["minLength"]},set(e){!e||isNaN(e)?this.optionModel.minLength=null:this.optionModel.minLength=Number(e)}}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"78aca82c",null);t["default"]=d.exports},"79ad":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:e.optionModel.type,format:e.optionModel.format,"value-format":e.optionModel.valueFormat},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"date-range-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"9f2a9a06",null);t["default"]=d.exports},"79fa":function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"c",(function(){return M}));var i=n("8bbf"),o=n.n(i);function r(e){return void 0!==e&&null!==e}function s(e,t){const n=t.split(".");let i=e;return n.forEach(e=>{i=r(i)&&r(i[e])?i[e]:null}),i}function a(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}const{hasOwnProperty:l}=Object.prototype;function c(e,t,n){const i=t[n];r(i)&&(l.call(e,n)&&a(i)?e[n]=d(Object(e[n]),t[n]):e[n]=i)}function d(e,t){return Object.keys(t).forEach(n=>{c(e,t,n)}),e}const u=(e,t)=>{const n=e.prototype;n.$si18n=n.$si18n||{},d(n.$si18n,t);const i=new e({data:t});Object.defineProperty(e.prototype.$si18n,"lang",{get(){return i.lang}}),n.$st=(e,...t)=>{let o=i.messages[i.lang];if(!n.$si18n.messages)return()=>e;const r=s(o,e);return"function"===typeof r?r(...t):null!==r?r:e},n.$st2=(e,t)=>{let n=i.messages[i.lang];const o=s(n,e);return null!==o?o:s(n,t)},n.$si18n.add=(e={})=>{d(n.$si18n.messages,e)},n.$si18n.setLang=e=>{i.lang=e},e.mixin({beforeCreate(){this.$options.i18n&&this.$si18n.add(this.$options.i18n)}})};var h={install:u},f=n("b2d6"),p=n.n(f),g=n("f0d9"),m=n.n(g),b=n("4897"),v=n.n(b),y={application:{"zh-CN":"简体中文","en-US":"English",productTitle:"Online Form Designer",github:"GitHub",document:"Docs",qqGroup:"WeChat Group",deployment:"Deployment",subscription:"Subscription"},designer:{componentLib:"Components",formLib:"Templates",containerTitle:"Container",dragHandlerHint:"drag container or field to layout center",dragAction:"drag",basicFieldTitle:"Basic Field",advancedFieldTitle:"Advanced Field",customFieldTitle:"Customized Field",noWidgetHint:"Please select a widget from the left list, drag and drop to this container.",widgetLabel:{grid:"Grid",table:"Table",tab:"Tab",section:"Section","sub-form":"SubForm","grid-col":"GridCol","table-cell":"TableCell","tab-pane":"TabPane","data-table":"DataTable",input:"Input",textarea:"Textarea",number:"InputNumber",radio:"Radio",checkbox:"Checkbox",select:"Select",time:"Time","time-range":"Time range",date:"Date","date-range":"Date range",switch:"Switch",rate:"Rate",color:"ColorPicker",slider:"Slider","static-text":"Text","html-text":"HTML",button:"Button",divider:"Divider","picture-upload":"Picture","file-upload":"File","rich-editor":"Rich Editor",cascader:"Cascader",slot:"Slot",custom:"Custom Component"},hint:{selectParentWidget:"Select parent of this widget",moveUpWidget:"Move up this widget",moveDownWidget:"Move down this widget",cloneWidget:"Clone this widget",insertRow:"Insert new row",insertColumn:"Insert new column",remove:"Remove this widget",cellSetting:"Cell setting",dragHandler:"Drag handler",copyField:"Copy field widget",onlyFieldWidgetAcceptable:"Only field widget can be dragged into sub-form",moveUpFirstChildHint:"First child can not be move up",moveDownLastChildHint:"Last child can not be move down",closePreview:"Close",copyJson:"Copy",saveFormJson:"Save As File",copyVueCode:"Copy Vue Code",copyHtmlCode:"Copy HTML Code",copyJsonSuccess:"Copy succeed",importJsonSuccess:"Import succeed",copyJsonFail:"Copy failed",copyVueCodeSuccess:"Copy succeed",copyVueCodeFail:"Copy failed",copyHtmlCodeSuccess:"Copy succeed",copyHtmlCodeFail:"Copy failed",saveVueCode:"Save Vue File",saveHtmlCode:"Save Html File",getFormData:"Get Data",resetForm:"Reset",disableForm:"Disable",enableForm:"Enable",exportFormData:"Form Data",copyFormData:"Copy",saveFormData:"Save As File",copyVue2SFC:"Copy Vue2",copyVue3SFC:"Copy Vue3",copySFCFail:"Copy failed",copySFCSuccess:"Copy succeed",saveVue2SFC:"Save As Vue2",saveVue3SFC:"Save As Vue3",fileNameForSave:"File name:",saveFileTitle:"Save as File",fileNameInputPlaceholder:"Enter the file name",sampleLoadedSuccess:"Example loaded successfully",sampleLoadedFail:"Sample load failed",loadFormTemplate:"Load This",loadFormTemplateHint:"Are you sure to load this template?",loadFormTemplateSuccess:"Load form template success!",loadFormTemplateFailed:"Load form template failed.",currentNodeCannotBeSelected:"The current node cannot be selected.",widgetSetting:"Widget Config",formSetting:"Form Config",prompt:"Prompt",confirm:"OK",cancel:"Cancel",import:"Import",importJsonHint:"The code to be imported should have the following JSON format.",invalidOptionsData:"Invalid data of options:",lastPaneCannotBeDeleted:"The last pane cannot be deleted.",duplicateName:"Duplicate name: ",nameRequired:"Name required.",numberValidator:"Number",letterValidator:"Letter",letterAndNumberValidator:"LetterAndNumber",mobilePhoneValidator:"MobilePhone",emailValidator:"Email",urlValidator:"URL",noChineseValidator:"Non-Chinese",chineseValidator:"Chinese",rowspanNotConsistentForMergeEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForMergeEntireColumn:"Cells in this column don't have the same colspan, operation failed.",rowspanNotConsistentForDeleteEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForDeleteEntireColumn:"Cells in this column don't have the same colspan, operation failed.",lastColCannotBeDeleted:"The last col cannot be deleted.",lastRowCannotBeDeleted:"The last row cannot be deleted."},toolbar:{undoHint:"Undo",redoHint:"Redo",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"Tree View Of Component Hierarchy",nodeTreeTitle:"Tree View Of Component Hierarchy",clear:"Clear",preview:"Preview",importJson:"Import",exportJson:"Export",exportCode:"Codes",generateCode:"Generate Code",generateSFC:"Generate SFC"},setting:{basicSetting:"Basic Setting",attributeSetting:"Attribute Setting",commonSetting:"Common Setting",advancedSetting:"Advanced Setting",eventSetting:"Event Setting",uniqueName:"Unique Name",editNameHelp:"Press enter to confirm the modification",label:"Label",displayType:"Type",defaultValue:"Default Value",placeholder:"Placeholder",startPlaceholder:"Start Placeholder",endPlaceholder:"End Placeholder",widgetColumnWidth:"Width",widgetSize:"Size",fontSize:"Font Size",showStops:"Show Stops",displayStyle:"Display Style",inlineLayout:"inline",blockLayout:"block",buttonStyle:"Show As Button",border:"Show Border",labelWidth:"Width Of Label",rows:"Rows",labelHidden:"Hide Label",required:"Required",requiredHint:"Failure Hint",validation:"Validation",validationHelp:"Regular expressions supported",validationHint:"Validation Hint",readonly:"Readonly",disabled:"Disabled",hidden:"Hidden",textContent:"Text",htmlContent:"HTML",clearable:"Clearable",editable:"Editable",format:"Format",valueFormat:"Value Format",showPassword:"Show Reveal",filterable:"Filterable",allowCreate:"Allow Create",remote:"Remote Query",automaticDropdown:"Automatic Dropdown",multiple:"Multiple",multipleLimit:"Multiple Limit",checkStrictly:"Any Level Selectable",showAllLevels:"Show All Levels",contentPosition:"Content Position",plain:"Plain",round:"Round",circle:"Circle",icon:"Icon",optionsSetting:"Options Setting",addOption:"Add Option",importOptions:"Import Options",resetDefault:"Reset Default",uploadSetting:"Upload Setting",uploadURL:"Upload URL",uploadTip:"Tip Content",withCredentials:"Send Cookie",multipleSelect:"File Multi-select",showFileList:"Show File List",limit:"Max Upload Number",fileMaxSize:"Max Size(MB)",fileTypes:"Upload File Types",fileTypesHelp:"Allows to add more file types",headers:"Request Headers",cellWidth:"Width",cellHeight:"Height",gridColHeight:"Height Of Col(px)",gutter:"Gutter(px)",columnSetting:"Cols Setting",colsOfGrid:"Cols Of Grid:",colSpanTitle:"Spans Of Col",colOffsetTitle:"Offset Of Col",colPushTitle:"Push Of Col",colPullTitle:"Pull Of Col",addColumn:"Add Column",responsive:"Responsive",tabPaneSetting:"Tab Panes",addTabPane:"Add Tab Pane",paneActive:"Active",customLabelIcon:"Custom Label",labelIconClass:"Label Icon Class",labelIconPosition:"Label Icon Position",labelTooltip:"Label Tooltip",minValue:"Min Value",maxValue:"Max Value",precision:"Precision",step:"Step",controlsPosition:"Controls Position",minLength:"Min Length",maxLength:"Max Length",showWordLimit:"Show Word Limit",prefixIcon:"Prefix Icon",suffixIcon:"Suffix Icon",inputButton:"Input Button Setting",appendButton:"Append Button",appendButtonDisabled:"Button Disabled",appendButtonIcon:"Append Button Icon",prependText:"Prepend Text",appendText:"Append Text",buttonIcon:"Button Icon",switchWidth:"Width of Switch(px)",activeText:"Active Text",inactiveText:"Inactive Text",activeColor:"Active Color",inactiveColor:"Inactive Color",maxStars:"Stars Max Number",lowThreshold:"Low Threshold",highThreshold:"High Threshold",allowHalf:"Allow Half",showText:"Show Text",showScore:"Show Score",range:"Range",vertical:"Vertical",showBlankRow:"Show Blank Row",showRowNumber:"Show Row Number",insertColumnToLeft:"insert column to left",insertColumnToRight:"insert column to right",insertRowAbove:"insert row above",insertRowBelow:"insert row below",mergeLeftColumn:"merge left cell",mergeRightColumn:"merge right cell",mergeEntireRow:"merge entire row",mergeRowAbove:"merge cell above",mergeRowBelow:"merge cell below",mergeEntireColumn:"merge entire column",undoMergeCol:"undo merge column",undoMergeRow:"undo merge row",deleteEntireCol:"delete entire column",deleteEntireRow:"delete entire row",widgetName:"Unique Name",formSize:"Size",labelPosition:"Position Of Label",topPosition:"Top",leftPosition:"Left",labelAlign:"Label Align",leftAlign:"Left",centerAlign:"Center",rightAlign:"Right",formCss:"Form CSS",addCss:"Edit",customClass:"Custom Class",globalFunctions:"Global Functions",addEventHandler:"Edit",editWidgetEventHandler:"Edit Widget Event Handler",editFormEventHandler:"Edit Form Event Handler",formSFCSetting:"SFC Setting",formModelName:"Model Name",formRefName:"Ref Name",formRulesName:"Rules Name",syntaxCheckWarning:"Syntax error in the javascript codes, please check again!",tableWidth:"Width(px/%)",tableHeight:"Height(px/%)",showCheckBox:"Show CheckBox",showIndex:"Show Row Number",showPagination:"Show Pagination",smallPagination:"Small Pagination",tableColEdit:"Edit Cols",tableDataEdit:"Edit Data",stripe:"Stripe",showSummary:"Show Summary",rowSpacing:"Row Spacing(px)",editAction:"Edit...",columnName:"Name",columnLabel:"Label",columnWidth:"Width(px/%)",visibleColumn:"Visible",sortableColumn:"Sortable",fixedColumn:"Fixed",alignTypeOfColumn:"Align",formatOfColumn:"Format",actionColumn:"Action",addTableColumn:"Add New Column",deleteTableColumn:"Delete This Column",OnlyOneColumnCannotBeDeleted:"The last column cannot be deleted."}}},w={application:{"zh-CN":"简体中文","en-US":"English",productTitle:"表单设计器",github:"GitHub",document:"文档",qqGroup:"技术WX群",deployment:"私有部署",subscription:"订阅Pro"},designer:{componentLib:"组件库",formLib:"表单模板",containerTitle:"容器",dragHandlerHint:"鼠标拖拽容器组件或字段组件并放置于表单中",dragAction:"拖动",basicFieldTitle:"基础字段",advancedFieldTitle:"高级字段",customFieldTitle:"自定义扩展字段",noWidgetHint:"请从左侧列表中选择一个组件, 然后用鼠标拖动组件放置于此处.",widgetLabel:{grid:"栅格",table:"表格",tab:"标签页",section:"区块","sub-form":"子表单","grid-col":"栅格列","table-cell":"单元格","tab-pane":"选项卡页","data-table":"数据表格",input:"单行输入",textarea:"多行输入",number:"计数器",radio:"单选项",checkbox:"多选项",select:"下拉选项",time:"时间","time-range":"时间范围",date:"日期","date-range":"日期范围",switch:"开关",rate:"评分",color:"颜色选择器",slider:"滑块","static-text":"静态文字","html-text":"HTML",button:"按钮",divider:"分隔线","picture-upload":"图片","file-upload":"文件","rich-editor":"富文本",cascader:"级联选择",slot:"插槽",custom:"Custom Component"},hint:{selectParentWidget:"选中父组件",moveUpWidget:"上移组件",moveDownWidget:"下移组件",cloneWidget:"复制组件",insertRow:"插入新行",insertColumn:"插入新列",remove:"移除组件",cellSetting:"单元格操作",dragHandler:"拖拽手柄",copyField:"复制字段组件",onlyFieldWidgetAcceptable:"子表单只能接收字段组件",moveUpFirstChildHint:"已经移动到最上面",moveDownLastChildHint:"已经移动到最下面",closePreview:"关闭",copyJson:"复制JSON",saveFormJson:"保存为文件",copyVueCode:"复制Vue代码",copyHtmlCode:"复制HTML代码",copyJsonSuccess:"复制JSON成功",importJsonSuccess:"导入JSON成功",copyJsonFail:"复制JSON失败",copyVueCodeSuccess:"复制Vue代码成功",copyVueCodeFail:"复制Vue代码失败",copyHtmlCodeSuccess:"复制HTML代码成功",copyHtmlCodeFail:"复制HTML代码失败",saveVueCode:"保存Vue文件",saveHtmlCode:"保存Html文件",getFormData:"获取数据",resetForm:"重置表单",disableForm:"禁用编辑",enableForm:"恢复编辑",exportFormData:"表单数据",copyFormData:"复制JSON",saveFormData:"保存为文件",copyVue2SFC:"复制Vue2代码",copyVue3SFC:"复制Vue3代码",copySFCFail:"复制SFC代码失败",copySFCSuccess:"复制SFC代码成功",saveVue2SFC:"保存为Vue2组件",saveVue3SFC:"保存为Vue3组件",fileNameForSave:"文件名:",saveFileTitle:"保存为文件",fileNameInputPlaceholder:"请输入文件名",sampleLoadedSuccess:"表单示例加载成功",sampleLoadedFail:"表单示例加载失败",loadFormTemplate:"加载此模板",loadFormTemplateHint:"是否加载这个模板?加载后会覆盖设计器当前表单,你可以使用“撤销”功能恢复。",loadFormTemplateSuccess:"表单模板加载成功",loadFormTemplateFailed:"表单模板加载失败",currentNodeCannotBeSelected:"当前组件节点不可选择",widgetSetting:"组件设置",formSetting:"表单设置",prompt:"提示",confirm:"确定",cancel:"取消",import:"导入",importJsonHint:"导入的JSON内容须符合下述格式,以保证顺利导入.",invalidOptionsData:"无效的选项数据:",lastPaneCannotBeDeleted:"仅剩一个选项卡页不可删除.",duplicateName:"组件名称已存在: ",nameRequired:"组件名称不可为空",numberValidator:"数字",letterValidator:"字母",letterAndNumberValidator:"数字字母",mobilePhoneValidator:"手机号码",emailValidator:"邮箱",urlValidator:"网址",noChineseValidator:"非中文字符",chineseValidator:"仅中文字符",rowspanNotConsistentForMergeEntireRow:"存在行高不一致的单元格, 无法合并整行.",colspanNotConsistentForMergeEntireColumn:"存在列宽不一致的单元格, 无法合并整列.",rowspanNotConsistentForDeleteEntireRow:"存在行高不一致的单元格, 不可删除整行.",colspanNotConsistentForDeleteEntireColumn:"存在列宽不一致的单元格, 不可删除整列.",lastColCannotBeDeleted:"最后一列不可删除.",lastRowCannotBeDeleted:"最后一行不可删除."},toolbar:{undoHint:"撤销",redoHint:"重做",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"组件层次结构树",nodeTreeTitle:"组件层次结构树",clear:"清空",preview:"预览",importJson:"导入JSON",exportJson:"导出JSON",exportCode:"导出代码",generateCode:"生成代码",generateSFC:"生成SFC"},setting:{basicSetting:"基本属性",attributeSetting:"属性设置",commonSetting:"常见属性",advancedSetting:"高级属性",eventSetting:"事件属性",uniqueName:"唯一名称",editNameHelp:"修改名称后需按回车确认",label:"标签",displayType:"显示类型",defaultValue:"默认值",placeholder:"占位内容",startPlaceholder:"起始占位内容",endPlaceholder:"截止占位内容",widgetColumnWidth:"组件列宽",widgetSize:"组件大小",fontSize:"字体大小",showStops:"显示间断点",displayStyle:"显示样式",inlineLayout:"行内",blockLayout:"块",buttonStyle:"显示为按钮",border:"带有边框",labelWidth:"标签宽度",rows:"行数",labelHidden:"隐藏字段标签",required:"必填字段",validation:"字段校验",requiredHint:"必填校验提示",validationHelp:"支持输入正则表达式",validationHint:"校验失败提示",readonly:"只读",disabled:"禁用",hidden:"隐藏",textContent:"静态文字",htmlContent:"HTML",clearable:"可清除",prependText:"前置元素",appendText:"后置元素",editable:"可输入",format:"显示格式",valueFormat:"绑定值格式",showPassword:"可显示密码",filterable:"可搜索选项",allowCreate:"允许创建选项",remote:"可远程搜索",automaticDropdown:"自动弹出选项",multiple:"选项可多选",multipleLimit:"多选数量限制",checkStrictly:"任意级节点可选",showAllLevels:"显示完整路径",contentPosition:"文字位置",plain:"朴素按钮",round:"圆角按钮",circle:"圆形按钮",icon:"图标",optionsSetting:"选项设置",addOption:"增加选项",importOptions:"导入选项",resetDefault:"重设选中项",uploadSetting:"上传参数设置",uploadURL:"上传地址",uploadTip:"上传提示内容",withCredentials:"发送cookie凭证",multipleSelect:"文件可多选",showFileList:"显示文件列表",limit:"最大上传数量",fileMaxSize:"文件大小限制(MB)",fileTypes:"上传文件类型",fileTypesHelp:"支持添加其他文件类型",headers:"上传请求头",cellWidth:"宽度",cellHeight:"高度",gridColHeight:"栅格列统一高度(px)",gutter:"栅格间隔(px)",columnSetting:"栅格属性设置",colsOfGrid:"当前栅格列:",colSpanTitle:"栅格宽度",colOffsetTitle:"左侧间隔格数",colPushTitle:"右移栅格数",colPullTitle:"左移栅格数",addColumn:"增加栅格",responsive:"响应式布局",tabPaneSetting:"选项卡设置",addTabPane:"增加选项卡页",paneActive:"激活",customLabelIcon:"定制字段标签",labelIconClass:"标签Icon样式",labelIconPosition:"标签Icon位置",labelTooltip:"标签文字提示",minValue:"最小值",maxValue:"最大值",precision:"精度",step:"增减步长",controlsPosition:"控制按钮位置",minLength:"最小长度",maxLength:"最大长度",showWordLimit:"显示字数统计",prefixIcon:"头部Icon",suffixIcon:"尾部Icon",inputButton:"输入框按钮设置",appendButton:"添加后置按钮",appendButtonDisabled:"后置按钮禁用",appendButtonIcon:"后置按钮Icon",buttonIcon:"按钮Icon",switchWidth:"开关宽度(像素)",activeText:"开启时文字描述",inactiveText:"关闭时文字描述",activeColor:"开启时背景色",inactiveColor:"关闭时背景色",maxStars:"最大评分值",lowThreshold:"低分界限值",highThreshold:"高分界限值",allowHalf:"允许半选",showText:"显示辅助文字",showScore:"显示当前分数",range:"是否为范围选择",vertical:"是否竖向显示",showBlankRow:"默认显示新行",showRowNumber:"显示行号",insertColumnToLeft:"插入左侧列",insertColumnToRight:"插入右侧列",insertRowAbove:"插入上方行",insertRowBelow:"插入下方行",mergeLeftColumn:"合并左侧单元格",mergeRightColumn:"合并右侧单元格",mergeEntireRow:"合并整行",mergeRowAbove:"合并上方单元格",mergeRowBelow:"合并下方单元格",mergeEntireColumn:"合并整列",undoMergeCol:"撤销列合并",undoMergeRow:"撤销行合并",deleteEntireCol:"删除整列",deleteEntireRow:"删除整行",widgetName:"组件唯一名称",formSize:"全局组件大小",labelPosition:"字段标签位置",topPosition:"顶部",leftPosition:"左边",labelAlign:"标签对齐",leftAlign:"居左",centerAlign:"居中",rightAlign:"居右",formCss:"表单全局CSS",addCss:"编写CSS",customClass:"自定义CSS样式",globalFunctions:"表单全局函数",addEventHandler:"编写代码",editWidgetEventHandler:"组件事件处理",editFormEventHandler:"表单事件处理",formSFCSetting:"生成SFC设置",formModelName:"数据对象名称",formRefName:"引用名称",formRulesName:"验证规则名称",syntaxCheckWarning:"JS代码存在语法错误,请仔细检查!",tableWidth:"宽度(px/%)",tableHeight:"高度(px/%)",showCheckBox:"是否显示复选框列",showIndex:"是否显示行号",showPagination:"是否显示分页",smallPagination:"小型分页",tableColEdit:"表格列编辑",tableDataEdit:"表格数据编辑",showSummary:"是否合计",stripe:"是否斑马线",rowSpacing:"行距(px)",editAction:"编辑...",columnName:"字段名称",columnLabel:"显示名称",columnWidth:"列宽(px/%)",visibleColumn:"是否显示",sortableColumn:"是否排序",fixedColumn:"是否固定",alignTypeOfColumn:"对齐方式",formatOfColumn:"格式化",actionColumn:"操作",addTableColumn:"增加列",deleteTableColumn:"删除列",OnlyOneColumnCannotBeDeleted:"表格只有一列时不可删除."}}},x={render:{hint:{prompt:"Prompt",confirm:"OK",cancel:"Cancel",selectPlaceholder:"Pick some item",timePlaceholder:"Select time",startTimePlaceholder:"Start time",endTimePlaceholder:"End time",datePlaceholder:"Select date",startDatePlaceholder:"Start date",endDatePlaceholder:"End date",blankCellContent:"--",uploadError:"Upload error: ",uploadExceed:"The maximum number(${uploadLimit}) of file uploads has been exceeded.",unsupportedFileType:"Unsupported format: ",fileSizeExceed:"File size out of limit: ",refNotFound:"Ref not found: ",fieldRequired:"Input value should be not null.",invalidNumber:"Invalid number format",selectFile:" File...",downloadFile:"Download",removeFile:"Remove",validationFailed:"Form validation failed",subFormAction:"Action",subFormAddAction:"Add",subFormAddActionHint:"add new row",insertSubFormRow:"insert new row",deleteSubFormRow:"delete this row",nonSubFormType:"The type of widget don't match sub-form"}}},C={render:{hint:{prompt:"提示",confirm:"确定",cancel:"取消",selectPlaceholder:"请选择",timePlaceholder:"选择时间",startTimePlaceholder:"起始时间",endTimePlaceholder:"截止时间",datePlaceholder:"选择日期",startDatePlaceholder:"起始日期",endDatePlaceholder:"截止日期",blankCellContent:"--",uploadError:"上传错误: ",uploadExceed:"最大上传数量(${uploadLimit})已超出.",unsupportedFileType:"不支持格式: ",fileSizeExceed:"文件大小已超出: ",refNotFound:"组件未找到: ",fieldRequired:"不可为空",invalidNumber:"数据格式错误",selectFile:" 选择文件",downloadFile:"下载",removeFile:"移除",validationFailed:"表单数据校验失败",subFormAction:"操作",subFormAddAction:"新增",subFormAddActionHint:"新增行",insertSubFormRow:"插入行",deleteSubFormRow:"删除行",nonSubFormType:"组件类型不是子表单"}}},_={extension:{widgetLabel:{card:"Card",alert:"Alert"},setting:{cardFolded:"Folded",cardShowFold:"Show Fold",cardWidth:"Width Of Card",cardShadow:"Shadow",alertTitle:"Title",alertType:"Type",description:"Description",closable:"Closable",closeText:"Text On Close Btn",center:"Center",showIcon:"Show Icon",effect:"Effect"}}},k={extension:{widgetLabel:{card:"卡片",alert:"提示"},setting:{cardFolded:"是否收起",cardShowFold:"显示折叠按钮",cardWidth:"卡片宽度",cardShadow:"显示阴影",alertTitle:"标题",alertType:"类型",description:"辅助性文字",closable:"是否可关闭",closeText:"关闭按钮文字",center:"文字居中",showIcon:"显示图标",effect:"显示效果"}}};const S={"en-US":{something:{},...p.a,...y,...x,..._},"zh-CN":{something:{},...m.a,...w,...C,...k}},O=/(%|)\{([0-9a-zA-Z_]+)\}/g;function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const L=function(e,t){return e.replace(O,(n,i,o,r)=>{let s;return"{"===e[r-1]&&"}"===e[r+n.length]?o:(s=E(t,o)?t[o]:null,null===s||void 0===s?"":s)})};o.a.use(h,{lang:localStorage.getItem("v_form_locale")||"zh-CN",messages:S}),v.a.i18n((e,t)=>{let n=o.a.prototype.$st(e);return L(n,t)});const A=function(e){o.a.prototype.$si18n.setLang(e),localStorage.setItem("v_form_locale",e)},M=function(e){return o.a.prototype.$st(e)};t["b"]={methods:{i18nt(e){return this.$st(e)},i18n2t(e,t){return this.$st2(e,t)}}}},"7a70":function(e,t,n){},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var i=n("1d80"),o=Object;e.exports=function(e){return o(i(e))}},"7c77":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayStyle")}},[t("el-radio-group",{model:{value:e.optionModel.displayStyle,callback:function(t){e.$set(e.optionModel,"displayStyle",t)},expression:"optionModel.displayStyle"}},[t("el-radio",{attrs:{label:"inline"}},[e._v(e._s(e.i18nt("designer.setting.inlineLayout")))]),t("el-radio",{attrs:{label:"block"}},[e._v(e._s(e.i18nt("designer.setting.blockLayout")))])],1)],1)},o=[],r=n("79fa"),s={name:"displayStyle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"e0557052",null);t["default"]=c.exports},"7cad":function(e,t,n){"use strict";n("b8b3")},"7ceb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonIcon")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.buttonIcon,callback:function(t){e.$set(e.optionModel,"buttonIcon",t)},expression:"optionModel.buttonIcon"}})],1)},o=[],r=n("79fa"),s={name:"buttonIcon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6661828a",null);t["default"]=c.exports},"7cf2":function(e,t,n){},"7d16":function(e,t,n){},"7d6c":function(e,t,n){"use strict";var i=n("c6e3");t["a"]={mixins:[i["a"]],created(){},methods:{editEventHandler(e,t){this.dispatch("SettingPanel","editEventHandler",[e,[...t]])}}}},"7de6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.format")}},[t("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.format,callback:function(t){e.$set(e.optionModel,"format",t)},expression:"optionModel.format"}},[t("el-option",{attrs:{label:"HH:mm:ss",value:"HH:mm:ss"}}),t("el-option",{attrs:{label:"HH时mm分ss秒",value:"HH时mm分ss秒"}}),t("el-option",{attrs:{label:"hh:mm:ss",value:"hh:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"time-format-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"48147b42",null);t["default"]=c.exports},"7ede":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-upload",{ref:"fieldEditor",class:{hideUploadDiv:e.uploadBtnHidden},attrs:{disabled:e.field.options.disabled,action:e.field.options.uploadURL,headers:e.uploadHeaders,data:e.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":e.fileList,"show-file-list":e.field.options.showFileList,"list-type":"picture-card",limit:e.field.options.limit,"on-exceed":e.handlePictureExceed,"on-preview":e.handlePicturePreview,"before-upload":e.beforePictureUpload,"on-success":e.handlePictureUpload,"on-error":e.handleUploadError,"on-remove":e.handlePictureRemove}},[e.field.options.uploadTip?t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.field.options.uploadTip))]):e._e(),t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e.showPreviewDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],attrs:{title:"",visible:e.showPreviewDialogFlag,"append-to-body":!0,width:"60%","show-close":!0,"custom-class":"drag-dialog small-padding-dialog","close-on-click-modal":!0,"close-on-press-escape":!0,"destroy-on-close":!0},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[t("img",{attrs:{src:e.previewUrl,width:"100%",alt:""}})]):e._e()],1)},o=[],r=(n("14d9"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("ca00"),c=n("2d11"),d={name:"picture-upload-widget",componentName:"FieldWidget",mixins:[s["a"],c["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:[],rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1,previewUrl:"",showPreviewDialogFlag:!1}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{handlePictureExceed(){let e=this.field.options.limit;this.$message.warning(this.i18nt("render.hint.uploadExceed").replace("${uploadLimit}",e))},handlePicturePreview(e){this.previewUrl=e.url,this.showPreviewDialogFlag=!0},beforePictureUpload(e){let t=!1;if(this.field.options&&this.field.options.fileTypes){let n=this.field.options.fileTypes;n.length>0&&(t=n.some(t=>e.type==="image/"+t))}if(!t)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+e.type),!1;let n=!1,i=5;return this.field.options&&this.field.options.fileMaxSize&&(i=this.field.options.fileMaxSize),n=e.size/1024/1024<=i,n?(this.uploadData.key=e.name,this.handleOnBeforeUpload(e)):(this.$message.error(this.i18nt("render.hint.fileSizeExceed")+i+"MB"),!1)},handleOnBeforeUpload(e){if(this.field.options.onBeforeUpload){let t=new Function("file",this.field.options.onBeforeUpload),n=t.call(this,e);return"boolean"!==typeof n||n}return!0},updateFieldModelAndEmitDataChangeForUpload(e,t,n){let i=Object(l["d"])(this.fieldModel);t&&t.name&&t.url?this.fieldModel.push({name:t.name,url:t.url}):n&&n.name&&n.url?this.fieldModel.push({name:n.name,url:n.url}):this.fieldModel=Object(l["d"])(e),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,i)},handlePictureUpload(e,t,n){if("success"===t.status){let i=null;if(this.field.options.onUploadSuccess){let o=new Function("result","file","fileList",this.field.options.onUploadSuccess);i=o.call(this,e,t,n)}this.updateFieldModelAndEmitDataChangeForUpload(n,i,e),this.fileList=Object(l["d"])(n),this.uploadBtnHidden=n.length>=this.field.options.limit}},updateFieldModelAndEmitDataChangeForRemove(e,t){let n=Object(l["d"])(this.fieldModel),i=-1;this.fileList.map((t,n)=>{t.name===e.name&&(t.url===e.url||t.uid&&t.uid===e.uid)&&(i=n)}),i>-1&&this.fieldModel.splice(i,1),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,n)},handlePictureRemove(e,t){if(this.updateFieldModelAndEmitDataChangeForRemove(e,t),this.fileList=Object(l["d"])(t),this.uploadBtnHidden=t.length>=this.field.options.limit,this.field.options.onFileRemove){let n=new Function("file","fileList",this.field.options.onFileRemove);n.call(this,e,t)}},handleUploadError(e,t,n){if(this.field.options.onUploadError){let i=new Function("error","file","fileList",this.field.options.onUploadError);i.call(this,e,t,n)}else this.$message({message:this.i18nt("render.hint.uploadError")+e,duration:3e3,type:"error"})}}},u=d,h=(n("bb4f"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"2afec1d2",null);t["default"]=f.exports},8029:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onInput","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onInput",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onInput-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["value"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"6178f9e2",null);t["default"]=d.exports},"803d":function(e,t,n){(function(e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.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",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.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",l=t.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",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.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",f=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"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:d},{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:"("+d+")(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:d},{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:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{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()};i.inherits(f,o),t.CssHighlightRules=f})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var i={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}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));i.hasOwnProperty(n)||(i[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column),r=/\([^)]*$/.test(o);return r&&(o=o.substr(o.lastIndexOf("(")+1)),/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i,r)}return[]},this.getPropertyCompletions=function(e,t,n,o,r){r=r||!1;var s=Object.keys(i);return s.map((function(e){return{caption:e,snippet:e+": $0"+(r?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,o){var r=t.getLine(n.row).substr(0,n.column),s=(/([\w\-]+):[^:]*$/.exec(r)||{})[1];if(!s)return[];var a=[];return s in i&&"object"==typeof i[s]&&(a=Object.keys(i[s])),a.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(o.prototype),t.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=i.doc.getLine(s.row),d=c.substring(s.column,s.column+1);if(":"===d)return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type){var d=i.doc.getLine(o.start.row),u=d.substring(o.end.column,o.end.column+1);if(";"===u)return o.end.column++,o}}})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row),a=s.substring(r.column,r.column+1);if(";"===a)return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}}))};i.inherits(s,o),t.CssBehaviour=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),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(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.prototype)})),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(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};i.inherits(u,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return i;var r=t.match(/^.*\{\s*$/);return r&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u})),function(){ace.require(["ace/mode/css"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"80c6":function(e,t,n){"use strict";n("03bf")},"80e0":function(e,t,n){"use strict";n("a445")},8122:function(e,t,n){"use strict";n("d9e2"),t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=c,t.hasOwn=d,t.toObject=h,t.getPropByPath=f,t.rafThrottle=v,t.objToArray=y;var o=n("8bbf"),r=a(o),s=n("a742");function a(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function c(){}function d(e,t){return l.call(e,t)}function u(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&u(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,o=null,r=0,s=n.length;r<s;r++){var a=n[r];if(!i)break;if(r===s-1){o=i[a];break}i=i[a]}return o};function f(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var o=t.split("."),r=0,s=o.length;r<s-1;++r){if(!i&&!n)break;var a=o[r];if(!(a in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[a]}return{o:i,k:o[r],v:i?i[o[r]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},g=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!r.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!r.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!r.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),i=(0,s.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),m=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!g(e[n],t[n]))return!1;return!0},b=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?m(e,t):g(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function v(e){var t=!1;return function(){for(var n=this,i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,o),t=!1})))}}function y(e){return Array.isArray(e)?e:b(e)?[]:[e]}},"825a":function(e,t,n){var i=n("861d"),o=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw r(o(e)+" is not an object")}},"826c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-slider",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"show-stops":e.field.options.showStops,min:e.field.options.min,max:e.field.options.max,step:e.field.options.step,range:e.field.options.range,vertical:e.field.options.vertical},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"slider-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("e6b8"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"ddcdb608",null);t["default"]=h.exports},"827a":function(e,t,n){},"828b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"field-wrapper",class:{"design-time-bottom-margin":!!this.designer},style:{display:e.displayStyle}},[e.field.options.hidden&&!0!==e.designState?e._e():t("div",{staticClass:"static-content-item",class:[e.selected?"selected":"",e.customClass],style:{display:e.displayStyle},on:{click:function(t){return t.stopPropagation(),e.selectField(e.field)}}},[e._t("default")],2),this.designer?[e.designer.selectedId===e.field.id?t("div",{staticClass:"field-action"},[t("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.field)}}}),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget(e.field)}}}):e._e(),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget(e.field)}}}):e._e(),t("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeFieldWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.field.id?t("div",{staticClass:"drag-handler background-opacity"},[t("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),t("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.field.type,"extension.widgetLabel."+e.field.type)))]),!0===e.field.options.hidden?t("i",{staticClass:"iconfont icon-hide"}):e._e()]):e._e()]:e._e()],2)},o=[],r=n("79fa"),s={name:"static-content-wrapper",mixins:[r["b"]],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},displayStyle:{type:String,default:"block"},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},computed:{selected(){return!!this.designer&&this.field.id===this.designer.selectedId},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""}},methods:{selectField(e){this.designer&&(this.designer.setSelected(e),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){let e=null;1===this.parentList.length?this.parentWidget&&(e=this.parentWidget):e=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(e),this.designer.emitHistoryChange()})}}}},a=s,l=(n("4bc9"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"489caa18",null);t["default"]=c.exports},8299:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.plain")}},[t("el-switch",{model:{value:e.optionModel.plain,callback:function(t){e.$set(e.optionModel,"plain",t)},expression:"optionModel.plain"}})],1)},o=[],r=n("79fa"),s={name:"plain-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3e3f86f2",null);t["default"]=c.exports},"835d":function(e,t,n){"use strict";n("ba30")},"839e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onBeforeUpload","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onBeforeUpload",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onBeforeUpload-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["file"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"6985c67c",null);t["default"]=d.exports},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),o=n("e683");e.exports=function(e,t){return e&&!i(t)?o(e,t):t}},"83bf":function(e,t,n){"use strict";n("dc77")},"848b":function(e,t,n){"use strict";var i=n("4a0c"),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var r={},s=i.version.split(".");function a(e,t){for(var n=t?t.split("."):s,i=e.split("."),o=0;o<3;o++){if(n[o]>i[o])return!0;if(n[o]<i[o])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),o=i.length;while(o-- >0){var r=i[o],s=t[r];if(s){var a=e[r],l=void 0===a||s(a,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+r)}}o.transitional=function(e,t,n){var o=t&&a(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(s(i," has been removed in "+t));return o&&!r[i]&&(r[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={isOlderVersion:a,assertOptions:l,validators:o}},"84b5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-input",{ref:"fieldEditor",attrs:{type:"textarea",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,placeholder:e.field.options.placeholder,rows:e.field.options.rows,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"textarea-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("e646"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"90e01c78",null);t["default"]=h.exports},"851c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("div",{ref:"fieldEditor",style:e.field.options.fontSize?`font-size: ${e.field.options.fontSize};`:""},[e._v(" "+e._s(e.field.options.textContent))])])},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"static-text-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("80c6"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"15a81133",null);t["default"]=h.exports},"861d":function(e,t,n){var i=n("1626"),o=n("8ea1"),r=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===r}:function(e){return"object"==typeof e?null!==e:i(e)}},8740:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-vue-sfc",use:"icon-vue-sfc-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-vue-sfc"><defs><style type="text/css"></style></defs><path d="M454.137642 11.17578L54.066443 174.091899c-72.088591 29.490787-72.088591 120.523113 0 150.0139l400.275996 162.916119c36.45389 14.950191 78.846896 14.950191 115.505583 0l400.071199-162.813721c72.190989-29.593186 72.088591-120.830308-0.307196-150.116298L569.745624 11.278178A155.338625 155.338625 0 0 0 454.137642 11.073381z m469.190231 237.871869L532.370147 408.584616l-7.88469 2.457565a55.090429 55.090429 0 0 1-32.562744-2.457565L100.350595 249.047649 491.615517 89.817879a55.090429 55.090429 0 0 1 40.447434 0l391.162524 159.22977z" fill="#1890FF" p-id="1211" /><path d="M498.681018 729.911317c-20.274916 0-40.652231-3.788747-59.391168-11.673436L53.759247 561.260878C20.479713 547.846666 0 519.891858 0 488.557896c0-31.43636 20.582112-59.391169 53.861646-72.702982l36.556288-15.052589c21.4013-8.806277 47.103341-1.023986 57.240799 17.407756 10.239857 18.226945 1.023986 40.140238-20.479714 48.946515l-36.453889 14.950191c-3.071957 1.228783-4.710334 3.58395-4.710334 6.451109 0 3.071957 1.535978 5.119928 4.710334 6.45111l385.325805 156.874604c14.335799 5.939117 30.924367 5.939117 45.362565 0l385.325806-156.874604c3.071957-1.228783 4.915131-3.58395 4.915131-6.45111 0-3.071957-1.535978-5.222327-4.607936-6.451109L862.195929 463.879842c-21.4013-8.806277-30.412374-30.71957-20.377314-48.946515 10.342255-18.329343 35.839498-26.214033 57.240798-17.407756l44.850572 18.431742c33.177136 13.516611 53.759247 41.266622 53.759248 72.702982 0 31.333961-20.479713 59.391169-53.759248 72.702982L558.481781 718.237881a161.584938 161.584938 0 0 1-59.800763 11.673436z" fill="#5DE1C8" p-id="1212" /><path d="M498.681018 966.247209c-20.274916 0-40.652231-3.891146-59.391168-11.673437L53.759247 797.59677C20.479713 784.080159 0 756.227749 0 724.996186c0-31.43636 20.582112-59.493567 53.861646-72.805381l36.556288-14.95019c21.4013-8.806277 47.103341-1.023986 57.240799 17.407756 10.239857 18.226945 1.023986 40.140238-20.479714 48.946515l-36.453889 14.95019c-3.071957 1.126384-4.710334 3.58395-4.710334 6.45111 0 3.071957 1.535978 5.119928 4.710334 6.348711l385.325805 156.977002c14.335799 5.939117 30.924367 5.939117 45.362565 0L906.739306 731.1401c3.071957-1.126384 4.915131-3.58395 4.915131-6.348711 0-3.071957-1.535978-5.324725-4.607936-6.45111l-44.850572-18.329343c-21.4013-8.806277-30.412374-30.71957-20.377314-48.946515 10.342255-18.431742 35.839498-26.214033 57.240798-17.407756l44.850572 18.329343c33.177136 13.516611 53.759247 41.369021 53.759248 72.702982 0 31.43636-20.479713 59.493567-53.759248 72.805381L558.481781 954.573772a161.584938 161.584938 0 0 1-59.800763 11.673437z" fill="#FF7272" p-id="1213" /></symbol>'});s.a.add(a);t["default"]=a},8745:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.fontSize")}},[t("el-input",{model:{value:e.optionModel.fontSize,callback:function(t){e.$set(e.optionModel,"fontSize",t)},expression:"optionModel.fontSize"}})],1)},o=[],r=n("79fa"),s={name:"fontSize-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"27111335",null);t["default"]=c.exports},"87ca":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.disabled")}},[t("el-switch",{model:{value:e.optionModel.disabled,callback:function(t){e.$set(e.optionModel,"disabled",t)},expression:"optionModel.disabled"}})],1)},o=[],r=n("79fa"),s={name:"disabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"481194aa",null);t["default"]=c.exports},"88dd":function(e,t,n){"use strict";n("919d")},8921:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"table-container"},[t("table",{ref:e.widget.id,staticClass:"table-layout",class:[e.customClass]},[t("tbody",e._l(e.widget.rows,(function(n,i){return t("tr",{key:n.id},[e._l(n.cols,(function(n,o){return[n.merged?e._e():t("table-cell-item",{key:o,attrs:{widget:n,"parent-list":e.widget.cols,"row-index":i,"col-index":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2)})),0)])])])},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("6a79"),d=n("34f0"),u={name:"table-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],d["a"]],components:{ContainerItemWrapper:l["default"],TableCellItem:c["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeDestroy(){this.unregisterFromRefList()},methods:{}},h=u,f=(n("80e0"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"5a8d7072",null);t["default"]=p.exports},8923:function(e,t,n){},8925:function(e,t,n){var i=n("e330"),o=n("1626"),r=n("c6cd"),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return s(e)}),e.exports=r.inspectSource},"89bc":function(e,t,n){"use strict";n("fb95")},"89ef":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-html-text",use:"icon-html-text-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-html-text"><defs><style type="text/css"></style></defs><path d="M137.6 512l204.8-204.8c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L70.4 489.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4l227.2 227.2c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L137.6 512z m464-339.2c-16-3.2-35.2 6.4-38.4 22.4L396.8 812.8c-3.2 16 6.4 35.2 22.4 38.4 16 3.2 35.2-6.4 38.4-22.4L624 211.2c6.4-16-3.2-35.2-22.4-38.4z m352 316.8L726.4 262.4c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L886.4 512 681.6 716.8c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l227.2-227.2c6.4-6.4 9.6-16 9.6-22.4 0-9.6-3.2-16-9.6-22.4z" p-id="56264" /></symbol>'});s.a.add(a);t["default"]=a},"8a3e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-select",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"allow-create":e.field.options.allowCreate,"default-first-option":e.allowDefaultFirstOption,"automatic-dropdown":e.field.options.automaticDropdown,multiple:e.field.options.multiple,"multiple-limit":e.field.options.multipleLimit,placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder"),remote:e.field.options.remote,"remote-method":e.remoteQuery},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},e._l(e.field.options.optionItems,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"select-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{allowDefaultFirstOption(){return!!this.field.options.filterable&&!!this.field.options.allowCreate}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("41c5"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"19724718",null);t["default"]=h.exports},"8aa9":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.noLabelSetting||"button"===e.selectedWidget.type?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[t("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.optionModel.labelAlign,callback:function(t){e.$set(e.optionModel,"labelAlign",t)},expression:"optionModel.labelAlign"}},[t("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.leftAlign")))]),t("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.centerAlign")))]),t("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1)},o=[],r=n("79fa"),s={name:"labelAlign-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=(n("4345"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"3312ca7f",null);t["default"]=c.exports},"8b30":function(e,t,n){var i={"./container-wrapper.vue":"cd36","./grid-col-widget.vue":"f772","./grid-widget.vue":"e11b","./tab-widget.vue":"5835","./table-cell-widget.vue":"1516","./table-widget.vue":"f6e6"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="8b30"},"8b48":function(e,t,n){"use strict";n("ce0e")},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8df4":function(e,t,n){"use strict";var i=n("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8ea1":function(e,t){var n="object"==typeof document&&document.all,i="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:i}},"8f6d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showWordLimit")}},[t("el-switch",{model:{value:e.optionModel.showWordLimit,callback:function(t){e.$set(e.optionModel,"showWordLimit",t)},expression:"optionModel.showWordLimit"}})],1)},o=[],r=n("79fa"),s={name:"showWordLimit-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"b6bf0f48",null);t["default"]=c.exports},"8fb7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-tab"><defs><style type="text/css"></style></defs><path d="M908.8 1005.44H115.2a101.76 101.76 0 0 1-101.12-101.76V110.72A101.76 101.76 0 0 1 115.2 8.96h296.96a32.64 32.64 0 0 1 32 32V262.4a32 32 0 0 1-32 32 32 32 0 0 1-32-32v-192H115.2a37.76 37.76 0 0 0-37.12 37.76v795.52a37.76 37.76 0 0 0 37.12 37.76h793.6a37.76 37.76 0 0 0 37.12-37.76V267.52a32 32 0 0 1 32-32 32 32 0 0 1 32 32v636.16a101.76 101.76 0 0 1-101.12 101.76z" p-id="9210" /><path d="M977.92 299.52a32.64 32.64 0 0 1-32-32V180.48a37.12 37.12 0 0 0-37.12-37.76H421.12a32 32 0 0 1-32-32 32 32 0 0 1 32-32h487.68a101.76 101.76 0 0 1 101.12 101.76v87.04a32 32 0 0 1-32 32z" p-id="9211" /><path d="M977.92 299.52H64a32 32 0 0 1-32-32 32 32 0 0 1 32-32h913.92a32 32 0 0 1 32 32 32 32 0 0 1-32 32z" p-id="9212" /><path d="M699.52 299.52a32 32 0 0 1-32-32V110.72a32 32 0 0 1 64 0v156.8a32 32 0 0 1-32 32z" p-id="9213" /></symbol>'});s.a.add(a);t["default"]=a},9e3:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelIconPosition")}},[t("el-select",{model:{value:e.optionModel.labelIconPosition,callback:function(t){e.$set(e.optionModel,"labelIconPosition",t)},expression:"optionModel.labelIconPosition"}},e._l(e.labelIconPosition,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"labelIconPosition-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{labelIconPosition:[{label:"front",value:"front"},{label:"rear",value:"rear"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7d90012c",null);t["default"]=c.exports},9041:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendText")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.appendText,callback:function(t){e.$set(e.optionModel,"appendText",t)},expression:"optionModel.appendText"}})],1)},o=[],r=n("79fa"),s={name:"appendText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6cbe2ec1",null);t["default"]=c.exports},"907a":function(e,t,n){"use strict";var i=n("ebb5"),o=n("07fa"),r=n("5926"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("at",(function(e){var t=s(this),n=o(t),i=r(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}))},"90c2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default")],2)},o=[],r={name:"container-item-wrapper",props:{widget:{type:Object,required:!0}},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},s=r,a=n("2877"),l=Object(a["a"])(s,i,o,!1,null,"4277aed9",null);t["default"]=l.exports},"90e3":function(e,t,n){var i=n("e330"),o=0,r=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+r,36)}},9112:function(e,t,n){var i=n("83ab"),o=n("9bf2"),r=n("5c6c");e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"913f":function(e,t,n){"use strict";n("d834")},9152:function(e,t){ |
| | | /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ |
| | | t.read=function(e,t,n,i,o){var r,s,a=8*o-i-1,l=(1<<a)-1,c=l>>1,d=-7,u=n?o-1:0,h=n?-1:1,f=e[t+u];for(u+=h,r=f&(1<<-d)-1,f>>=-d,d+=a;d>0;r=256*r+e[t+u],u+=h,d-=8);for(s=r&(1<<-d)-1,r>>=-d,d+=i;d>0;s=256*s+e[t+u],u+=h,d-=8);if(0===r)r=1-c;else{if(r===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),r-=c}return(f?-1:1)*s*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var s,a,l,c=8*r-o-1,d=(1<<c)-1,u=d>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+u>=1?h/l:h*Math.pow(2,1-u),t*l>=2&&(s++,l/=2),s+u>=d?(a=0,s=d):s+u>=1?(a=(t*l-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;e[n+f]=255&a,f+=p,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*g}},9164:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return"input"===e.selectedWidget.type?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[t("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[t("el-option",{attrs:{label:"text",value:"text"}}),t("el-option",{attrs:{label:"password",value:"password"}})],1)],1):e._e()},o=[],r=n("79fa"),s={name:"type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5adb4552",null);t["default"]=c.exports},"919d":function(e,t,n){},"91df":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.highThreshold")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:e.optionModel.lowThreshold,max:e.optionModel.max},model:{value:e.optionModel.highThreshold,callback:function(t){e.$set(e.optionModel,"highThreshold",t)},expression:"optionModel.highThreshold"}})],1)},o=[],r=n("79fa"),s={name:"highThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"389ab4fb",null);t["default"]=c.exports},9339:function(e,t,n){(function(t){ |
| | | /*! |
| | |
| | | * @author Feross Aboukhadijeh <http://feross.org> |
| | | * @license MIT |
| | | */ |
| | | var i=n("1fb5"),o=n("9152"),r=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return d(this,e,t,n)}function d(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):b(e,t)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return u(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(u(t),e=l(e,t<0?0:0|v(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|w(t,n);e=l(e,i);var o=e.write(t,n);return o!==i&&(e=e.slice(0,o)),e}function g(e,t){var n=t.length<0?0:0|v(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function b(e,t){if(c.isBuffer(t)){var n=0|v(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&r(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return J(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return q(this,t,n);case"base64":return $(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function C(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,o){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,i,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,i,o){var r,s=1,a=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var d=-1;for(r=n;r<a;r++)if(c(e,r)===c(t,-1===d?0:r-d)){if(-1===d&&(d=r),r-d+1===l)return d*s}else-1!==d&&(r-=r-d),d=-1}else for(n+l>a&&(n=a-l),r=n;r>=0;r--){for(var u=!0,h=0;h<l;h++)if(c(e,r+h)!==c(t,h)){u=!1;break}if(u)return r}return-1}function S(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i),i>o&&(i=o)):i=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function O(e,t,n,i){return ee(J(t,e.length-n),e,n,i)}function E(e,t,n,i){return ee(X(t),e,n,i)}function L(e,t,n,i){return E(e,t,n,i)}function A(e,t,n,i){return ee(Q(t),e,n,i)}function M(e,t,n,i){return ee(Z(t,e.length-n),e,n,i)}function $(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);var i=[],o=t;while(o<n){var r,s,a,l,c=e[o],d=null,u=c>239?4:c>223?3:c>191?2:1;if(o+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:r=e[o+1],128===(192&r)&&(l=(31&c)<<6|63&r,l>127&&(d=l));break;case 3:r=e[o+1],s=e[o+2],128===(192&r)&&128===(192&s)&&(l=(15&c)<<12|(63&r)<<6|63&s,l>2047&&(l<55296||l>57343)&&(d=l));break;case 4:r=e[o+1],s=e[o+2],a=e[o+3],128===(192&r)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(d=l))}null===d?(d=65533,u=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),o+=u}return F(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return d(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)C(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):x.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,s=n-t,a=Math.min(r,s),l=this.slice(i,o),d=e.slice(t,n),u=0;u<a;++u)if(l[u]!==d[u]){r=l[u],s=d[u];break}return r<s?-1:s<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return L(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function F(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=R));return n}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function q(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function I(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=Y(e[r]);return o}function N(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function W(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function H(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function B(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,i,r){return r||B(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,i,23,4),n+4}function V(e,t,n,i,r){return r||B(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=this[e+--t],o=1;while(t>0&&(o*=256))i+=this[e+--t]*o;return i},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=t,o=1,r=this[e+--i];while(i>0&&(o*=256))r+=this[e+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=1,s=0;this[t]=255&e;while(++s<n&&(r*=256))this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=n-1,s=1;this[t+r]=255&e;while(--r>=0&&(s*=256))this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=0,s=1,a=0;this[t]=255&e;while(++r<n&&(s*=256))e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=n-1,s=1,a=0;this[t+r]=255&e;while(--r>=0&&(s*=256))e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(r=t;r<n;++r)this[r]=e;else{var s=c.isBuffer(e)?e:J(new c(e,i).toString()),a=s.length;for(r=0;r<n-t;++r)this[r+t]=s[r%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=K(e).replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],s=0;s<i;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,i,o,r=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),i=n>>8,o=n%256,r.push(o),r.push(i)}return r}function Q(e){return i.toByteArray(G(e))}function ee(e,t,n,i){for(var o=0;o<i;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},b674:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowHalf")}},[t("el-switch",{model:{value:e.optionModel.allowHalf,callback:function(t){e.$set(e.optionModel,"allowHalf",t)},expression:"optionModel.allowHalf"}})],1)},o=[],r=n("79fa"),s={name:"allowHalf-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"75c91e5d",null);t["default"]=c.exports},b6b9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showBlankRow")}},[t("el-switch",{model:{value:e.optionModel.showBlankRow,callback:function(t){e.$set(e.optionModel,"showBlankRow",t)},expression:"optionModel.showBlankRow"}})],1)},o=[],r=n("79fa"),s={name:"showBlankRow-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"aacb0e56",null);t["default"]=c.exports},b76a:function(e,t,n){n("14d9"),n("d9e2"),n("13d5"),function(t,i){e.exports=i(n("aa47"))}("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),l=n("41a0"),c=n("7f20"),d=n("38fd"),u=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,b,v,y,w){l(n,t,b);var x,C,_,k=function(e){if(!h&&e in L)return L[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",O=v==g,E=!1,L=e.prototype,A=L[u]||L[f]||v&&L[v],M=A||k(v),$=v?O?k("entries"):M:void 0,T="Array"==t&&L.entries||A;if(T&&(_=d(T.call(new e)),_!==Object.prototype&&_.next&&(c(_,S,!0),i||"function"==typeof _[u]||s(_,u,m))),O&&A&&A.name!==g&&(E=!0,M=function(){return A.call(this)}),i&&!w||!h&&!E&&L[u]||s(L,u,M),a[t]=M,a[S]=m,v)if(x={values:O?M:k(g),keys:y?M:k(p),entries:$},w)for(C in x)C in L||r(L,C,x[C]);else o(o.P+o.F*(h||E),t,x);return x}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l),r<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),d=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!d||"split"===e&&!u){var g=/./[h],m=n(s,h,""[e],(function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),b=m[0],v=m[1];i(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(r(n,s)||o(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(o){}}return!0}},"520a":function(e,t,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e[a]||0!==t[a]}(),c=void 0!==/()??/.exec("")[1],d=l||c;d&&(s=function(e){var t,n,s,d,u=this;return c&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),l&&(t=u[a]),s=o.call(u,e),l&&s&&(u[a]=u.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],n,(function(){for(d=1;d<arguments.length-2;d++)void 0===arguments[d]&&(s[d]=void 0)})),s}),e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function(e,t,n){var d,u,h,f,p=e&c.F,g=e&c.G,m=e&c.S,b=e&c.P,v=e&c.B,y=g?i:m?i[t]||(i[t]={}):(i[t]||{})[l],w=g?o:o[t]||(o[t]={}),x=w[l]||(w[l]={});for(d in g&&(n=t),n)u=!p&&y&&void 0!==y[d],h=(u?y:n)[d],f=v&&u?a(h,i):b&&"function"==typeof h?a(Function.call,h):h,y&&s(y,d,h,e&c.U),w[d]!=h&&r(w,d,f),b&&x[d]!=h&&(x[d]=h)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){var n=s(e),l=arguments.length,c=1,d=o.f,u=r.f;while(l>c){var h,f=a(arguments[c++]),p=d?i(f).concat(d(f)):i(f),g=p.length,m=0;while(g>m)u.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,d=Math.min,u=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,o){var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=g(n,e,this,t);if(o.done)return o.value;var u=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var b=u.global;if(b){var v=u.unicode;u.lastIndex=0}var y=[];while(1){var w=l(u,h);if(null===w)break;if(y.push(w),!b)break;var x=String(w[0]);""===x&&(u.lastIndex=a(h,r(u.lastIndex),v))}for(var C="",_=0,k=0;k<y.length;k++){w=y[k];for(var S=String(w[0]),O=c(d(s(w.index),h.length),0),E=[],L=1;L<w.length;L++)E.push(p(w[L]));var A=w.groups;if(f){var M=[S].concat(E,O,h);void 0!==A&&M.push(A);var $=String(t.apply(void 0,M))}else $=m(S,h,O,E,A,t);O>=_&&(C+=h.slice(_,O)+$,_=O+S.length)}return C+h.slice(_)}];function m(e,t,i,r,s,a){var l=i+e.length,c=r.length,d=f;return void 0!==s&&(s=o(s),d=h),n.call(a,d,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var d=+o;if(0===d)return n;if(d>c){var h=u(d/10);return 0===h?n:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):n}a=r[d-1]}return void 0===a?"":a}))}}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=n("2b4c"),d=c("iterator"),u=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),g=0;g<p.length;g++){var m,b=p[g],v=f[b],y=s[b],w=y&&y.prototype;if(w&&(w[d]||a(w,d,h),w[u]||a(w,u,b),l[b]=h,v))for(m in i)w[m]||r(w,m,i[m],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),d=r(s,c);if(e&&n!=n){while(c>d)if(a=l[d++],a!=a)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l}));n("a481");function i(){return"undefined"!==typeof window?window.console:e.console}var o=i();function r(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var s=/-(\w)/g,a=r((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){o=!0,r=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(o)throw r}}return n}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return o(e)||r(e,t)||a(e,t)||l()}n("6762"),n("2fdb");function d(e){if(Array.isArray(e))return s(e)}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return d(e)||u(e)||a(e)||h()}var p=n("a352"),g=n.n(p),m=n("c649");function b(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function v(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,n,i){if(!e)return[];var o=e.map((function(e){return e.elm})),r=t.length-i,s=f(t).map((function(e,t){return t>=r?o.length:o.indexOf(e)}));return n?s.filter((function(e){return-1!==e})):s}function w(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}function C(e){return["transition-group","TransitionGroup"].includes(e)}function _(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&C(n.tag)}function k(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var i=0,o=0,r=k(t,n,"header");r&&(i=r.length,e=e?[].concat(f(r),f(e)):f(r));var s=k(t,n,"footer");return s&&(o=s.length,e=e?[].concat(f(e),f(s)):f(s)),{children:e,headerOffset:i,footerOffset:o}}function O(e,t){var n=null,i=function(e,t){n=b(n,e,t)},o=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(i("attrs",o),!t)return n;var r=t.on,s=t.props,a=t.attrs;return i("on",r),i("props",s),Object.assign(n.attrs,a),n}var E=["Start","Add","Remove","Update","End"],L=["Choose","Unchoose","Sort","Filter","Clone"],A=["Move"].concat(E,L).map((function(e){return"on"+e})),M=null,$={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},T={name:"draggable",inheritAttrs:!1,props:$,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=_(t);var n=S(t,this.$slots,this.$scopedSlots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var s=O(this.$attrs,this.componentData);return e(this.getTag(),s,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};E.forEach((function(n){t["on"+n]=x.call(e,n)})),L.forEach((function(n){t["on"+n]=w.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m["a"])(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m["a"])(t);-1===A.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=v(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&C(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var o=i.realList,r={list:o,component:i};if(t!==n&&o&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return Object.assign(s,r)}return r},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),M=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(m["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(m["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m["d"])(e.clone)},onDragUpdate:function(e){Object(m["d"])(e.item),Object(m["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=n.indexOf(t.related),o=e.component.getVmIndex(i),r=-1!==n.indexOf(M);return r||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,r=this.computeFutureIndex(i,e);Object.assign(o,{futureIndex:r});var s=Object.assign({},e,{relatedContext:i,draggedContext:o});return n(s,t)},onDragEnd:function(){this.computeIndexes(),M=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var R=T;t["default"]=R}})["default"]}))},b87d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-radio-group",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,size:e.field.options.size},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.buttonStyle?e._l(e.field.options.optionItems,(function(n,i){return t("el-radio-button",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:n.value,disabled:n.disabled,border:e.field.options.border}},[e._v(e._s(n.label))])})):e._l(e.field.options.optionItems,(function(n,i){return t("el-radio",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:n.value,disabled:n.disabled,border:e.field.options.border}},[e._v(e._s(n.label))])}))],2)],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"radio-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("aa61"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"ef35f5b6",null);t["default"]=h.exports},b8b3:function(e,t,n){},b8d7:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-select-field",use:"icon-select-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-select-field"><defs><style type="text/css"></style></defs><path d="M374.784 649.514667a32 32 0 0 1 3.072 41.685333l-3.114667 3.584L225.28 843.946667a32 32 0 0 1-37.845333 5.504l-3.968-2.56-85.333334-64a32 32 0 0 1 34.432-53.76l3.968 2.56 63.146667 47.36 129.834667-129.621334a32 32 0 0 1 45.269333 0.042667zM906.154667 725.333333a32 32 0 0 1 4.309333 63.701334l-4.309333 0.298666h-448a32 32 0 0 1-4.352-63.744l4.352-0.256h448z m0.512-256a32 32 0 0 1 4.352 63.701334l-4.352 0.298666h-448a32 32 0 0 1-4.352-63.701333L458.666667 469.333333h448zM374.826667 137.557333a32 32 0 0 1 2.986666 41.685334l-3.114666 3.584L224.853333 332.032a32 32 0 0 1-37.888 5.418667l-3.925333-2.56-84.906667-64a32 32 0 0 1 34.517334-53.674667l3.968 2.56 62.72 47.274667 130.261333-129.578667a32 32 0 0 1 45.226667 0.085333z m531.328 75.818667a32 32 0 0 1 4.309333 63.701333l-4.309333 0.298667H459.349333a32 32 0 0 1-4.352-63.744l4.352-0.256h446.805334z" p-id="40341" /></symbol>'});s.a.add(a);t["default"]=a},b8e9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("div",{class:[e.designState?"slot-wrapper-design":"slot-wrapper-render"]},[e._t(e.field.options.name,null,{formModel:e.formModel}),e.designState?t("div",{staticClass:"slot-title"},[e._v(e._s(e.field.options.label))]):e._e()],2)])},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"slot-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("6295"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"856e2df6",null);t["default"]=h.exports},b90a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onCreated","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onCreated",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onCreated-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:[]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"20e467a8",null);t["default"]=d.exports},b968:function(e,t,n){"use strict";n("55b9")},b980:function(e,t,n){var i=n("d039"),o=n("5c6c");e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},ba08:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endDatePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("913f"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"76c3fdc8",null);t["default"]=h.exports},ba30:function(e,t,n){},bae2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-color-picker",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"color-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"667e90e8",null);t["default"]=d.exports},bb4f:function(e,t,n){"use strict";n("827a")},bb60:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[t("el-switch",{model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"cascader-multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"115602ef",null);t["default"]=d.exports},bc16:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.buttonIcon")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.icon,callback:function(t){e.$set(e.optionModel,"icon",t)},expression:"optionModel.icon"}})],1)},o=[],r=n("79fa"),s={name:"icon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4b90cd5a",null);t["default"]=c.exports},bc3a:function(e,t,n){e.exports=n("cee4")},c029:function(e,t,n){"use strict";const i=n("7899");let o={};i.keys().map(e=>{let t=i(e).default;o[t.name]=t}),t["a"]=o},c04e:function(e,t,n){var i=n("c65b"),o=n("861d"),r=n("d9b5"),s=n("dc4a"),a=n("485a"),l=n("b622"),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var n,l=s(e,d);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!o(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c061:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.noLabelSetting?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.label")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.label,callback:function(t){e.$set(e.optionModel,"label",t)},expression:"optionModel.label"}})],1)},o=[],r=n("79fa"),s={name:"label-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5d9d81e5",null);t["default"]=c.exports},c077:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-cascader",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{options:e.field.options.optionItems,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"show-all-levels":e.showFullPath,props:{checkStrictly:e.field.options.checkStrictly,multiple:e.field.options.multiple,expandTrigger:"hover"},placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder")},on:{"visible-change":e.hideDropDownOnClick,"expand-change":e.hideDropDownOnClick,focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"cascader-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{showFullPath(){return void 0===this.field.options.showAllLevels||!!this.field.options.showAllLevels}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{hideDropDownOnClick(){setTimeout(()=>{document.querySelectorAll(".el-cascader-panel .el-radio").forEach(e=>{e.onclick=()=>{this.$refs.fieldEditor.dropDownVisible=!1}})},100)}}},d=c,u=(n("c35e"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"9fb36e9a",null);t["default"]=h.exports},c0d5:function(e,t,n){"use strict";n("4979")},c345:function(e,t,n){"use strict";var i=n("c532"),o=["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"];e.exports=function(e){var t,n,r,s={};return e?(i.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c35e:function(e,t,n){"use strict";n("93a7")},c391:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onFileRemove","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFileRemove",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFileRemove-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["file","fileList"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"21c42c04",null);t["default"]=d.exports},c3b2:function(e,t,n){"use strict";n("2ff1")},c3f1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.responsive")}},[t("el-switch",{model:{value:e.optionModel.responsive,callback:function(t){e.$set(e.optionModel,"responsive",t)},expression:"optionModel.responsive"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-responsive-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1d360e4e",null);t["default"]=c.exports},c3f8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onSubFormRowInsert","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowInsert",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowInsert-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ae0fbd12",null);t["default"]=d.exports},c401:function(e,t,n){"use strict";var i=n("c532"),o=n("2444");e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},c430:function(e,t){e.exports=!1},c52d:function(e,t,n){"use strict";n("6ac7")},c532:function(e,t,n){"use strict";var i=n("1d2b"),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function b(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function y(e){return f(e)&&v(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function k(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=k(e[n],t):p(t)?e[n]=k({},t):r(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)_(arguments[n],t);return e}function S(e,t,n){return _(t,(function(t,o){e[o]=n&&"function"===typeof t?i(t,n):t})),e}function O(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:r,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:d,isString:u,isNumber:h,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:b,isFunction:v,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:C,forEach:_,merge:k,extend:S,trim:x,stripBOM:O}},c610:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.hasConfig("optionItems")?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-input",{attrs:{type:"text"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"14ff026e",null);t["default"]=d.exports},c65b:function(e,t,n){var i=n("40d5"),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},c67a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onSubFormRowAdd","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowAdd",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowAdd-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4e7e840d",null);t["default"]=d.exports},c6b6:function(e,t,n){var i=n("e330"),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},c6cd:function(e,t,n){var i=n("da84"),o=n("6374"),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},c6d2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.startPlaceholder")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.startPlaceholder,callback:function(t){e.$set(e.optionModel,"startPlaceholder",t)},expression:"optionModel.startPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"startPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"10c0a37e",null);t["default"]=c.exports},c6e3:function(e,t,n){"use strict";function i(e,t,n){this.$children.forEach(o=>{var r=o.$options.componentName;r===e?(o.$emit.apply(o,[t].concat(n)),i.apply(o,[e,t].concat([n]))):i.apply(o,[e,t].concat([n]))})}t["a"]={methods:{dispatch(e,t,n){var i=this.$parent||this.$root,o=i.$options.componentName;while(i&&(!o||o!==e))i=i.$parent,i&&(o=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast(e,t,n){i.call(this,e,t,n)}}}},c885:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-custom-component",use:"icon-custom-component-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-custom-component"><defs><style type="text/css"></style></defs><path d="M811.008 335.872c-2.048-7.168-11.264-9.216-17.408-4.096L690.176 435.2c-8.192 8.192-20.48 8.192-28.672 0l-72.704-72.704c-8.192-8.192-8.192-20.48 0-28.672l104.448-104.448c5.12-5.12 3.072-14.336-4.096-17.408-17.408-4.096-35.84-7.168-54.272-7.168-108.544 0-195.584 94.208-183.296 204.8 2.048 17.408 6.144 32.768 12.288 48.128L225.28 697.344c-27.648 27.648-27.648 73.728 0 101.376 14.336 14.336 32.768 21.504 51.2 21.504s36.864-7.168 51.2-21.504l238.592-238.592c15.36 6.144 31.744 10.24 48.128 12.288 111.616 12.288 204.8-74.752 204.8-183.296 0-18.432-3.072-36.864-8.192-53.248z" p-id="68660" /></symbol>'});s.a.add(a);t["default"]=a},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c9d4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"tab-container"},[t("el-tabs",{ref:e.widget.id,class:[e.customClass],attrs:{type:e.widget.displayType},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},e._l(e.visibleTabs,(function(n,i){return t("el-tab-pane",{key:i,attrs:{label:n.options.label,disabled:n.options.disabled,name:n.options.name}},[e._l(n.widgetList,(function(i,o){return["container"===i.category?[t(e.getComponentByContainer(i),{key:o,tag:"component",attrs:{widget:i,"parent-list":n.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[t(i.type+"-widget",{key:o,tag:"component",attrs:{field:i,"parent-list":n.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)})),1)],1)])},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("34f0"),d=n("c029"),u={name:"tab-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],c["a"]],components:{ContainerItemWrapper:l["default"],...d["a"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{activeTabName:""}},computed:{visibleTabs(){return this.widget.tabs.filter(e=>!e.options.hidden)}},created(){this.initRefList()},mounted(){this.initActiveTab()},beforeDestroy(){this.unregisterFromRefList()},methods:{initActiveTab(){if("tab"===this.widget.type&&this.widget.tabs.length>0){let e=this.widget.tabs.filter(e=>!0===e.options.active);e.length>0?this.activeTabName=e[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}},h=u,f=n("2877"),p=Object(f["a"])(h,i,o,!1,null,"66f2f987",null);t["default"]=p.exports},ca00:function(e,t,n){"use strict";n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return s})),n.d(t,"l",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"s",(function(){return g})),n.d(t,"r",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"t",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"c",(function(){return C})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return k})),n.d(t,"b",(function(){return S}));n("14d9");var i=n("b311"),o=n.n(i);function r(e){return null===e||void 0===e}function s(e){return null!==e&&void 0!==e}function a(e){return void 0===e||!e&&0!==e&&"0"!==e||!/[^\s]/.test(e)}const l=function(){return Math.floor(1e5*Math.random()+2e4*Math.random()+5e3*Math.random())},c=function(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))},d=function(e,t){Object.keys(t).forEach(n=>{e[n]=t[n]})},u=function(e){let t=window.onresize;"function"!=typeof window.onresize?window.onresize=e:window.onresize=function(){t(),e()}},h=function(e,t=""){let n=document.getElementsByTagName("head")[0],i=document.getElementById("vform-custom-css");i&&n.removeChild(i),t&&(i=document.getElementById("vform-custom-css-"+t),i&&n.removeChild(i));let o=document.createElement("style");o.type="text/css",o.rel="stylesheet",o.id=t?"vform-custom-css-"+t:"vform-custom-css";try{o.appendChild(document.createTextNode(e))}catch(r){o.styleSheet.cssText=e}n.appendChild(o)},f=function(e,t=""){let n=document.getElementsByTagName("body")[0],i=document.getElementById("v_form_global_functions");i&&n.removeChild(i),t&&(i=document.getElementById("v_form_global_functions-"+t),i&&n.removeChild(i));let o=document.createElement("script");o.id=t?"v_form_global_functions-"+t:"v_form_global_functions",o.type="text/javascript",o.innerHTML=e,n.appendChild(o)},p=function(e,t){let n=encodeURIComponent(e),i=document.getElementById(n);if(!i){let i=document.createElement("script");i.src=e,i.id=n,document.body.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!==i.readyState&&"complete"!==i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}}};function g(e,t,n=null){e&&e.forEach(e=>{e.formItemFlag?t(e,n):"grid"===e.type?e.cols.forEach(n=>{g(n.widgetList,t,e)}):"table"===e.type?e.rows.forEach(n=>{n.cols.forEach(n=>{g(n.widgetList,t,e)})}):"tab"===e.type?e.tabs.forEach(n=>{g(n.widgetList,t,e)}):("sub-form"===e.type||"container"===e.category)&&g(e.widgetList,t,e)})}function m(e,t){e&&e.forEach(e=>{"container"===e.category&&t(e),"grid"===e.type?e.cols.forEach(e=>{m(e.widgetList,t)}):"table"===e.type?e.rows.forEach(e=>{e.cols.forEach(e=>{m(e.widgetList,t)})}):"tab"===e.type?e.tabs.forEach(e=>{m(e.widgetList,t)}):("sub-form"===e.type||"container"===e.category)&&m(e.widgetList,t)})}function b(e,t){e&&e.forEach(e=>{t(e),"grid"===e.type?e.cols.forEach(e=>{t(e),b(e.widgetList,t)}):"table"===e.type?e.rows.forEach(e=>{e.cols.forEach(e=>{t(e),b(e.widgetList,t)})}):"tab"===e.type?e.tabs.forEach(e=>{b(e.widgetList,t)}):("sub-form"===e.type||"container"===e.category)&&b(e.widgetList,t)})}function v(e,t){e.category?y(e,t):e.formItemFlag&&t(e)}function y(e,t){"grid"===e.type?e.cols.forEach(e=>{e.widgetList.forEach(e=>{v(e,t)})}):"table"===e.type?e.rows.forEach(e=>{e.cols.forEach(e=>{e.widgetList.forEach(e=>{v(e,t)})})}):"tab"===e.type?e.tabs.forEach(e=>{e.widgetList.forEach(e=>{v(e,t)})}):("sub-form"===e.type||"container"===e.category)&&e.widgetList.forEach(e=>{v(e,t)})}function w(e){if(!e)return[];let t=[],n=e=>{t.push({type:e.type,name:e.options.name,field:e})};return g(e,n),t}function x(e){if(!e)return[];let t=[],n=e=>{t.push({type:e.type,name:e.options.name,container:e})};return m(e,n),t}function C(e,t,n,i,r){const s=new o.a(t.target,{text:()=>e});s.on("success",()=>{n.success(i),s.destroy()}),s.on("error",()=>{n.error(r),s.destroy()}),s.onClick(t)}function _(e){let t=window.location.search.substring(1),n=t.split("&");for(let i=0;i<n.length;i++){let t=n[i].split("=");if(t[0]==e)return t[1]}}function k(){return{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:"",functions:"",layoutType:"PC",onFormCreated:"",onFormMounted:"",onFormDataChange:""}}function S(){return{widgetList:[],formConfig:c(k())}}},ca84:function(e,t,n){var i=n("e330"),o=n("1a2d"),r=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,d=[];for(n in i)!o(a,n)&&o(i,n)&&l(d,n);while(t.length>c)o(i,n=t[c++])&&(~s(d,n)||l(d,n));return d}},cab0:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-time-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{"is-range":"",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endTimePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"time-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("88dd"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"68ea79e5",null);t["default"]=h.exports},cb2d:function(e,t,n){var i=n("1626"),o=n("9bf2"),r=n("13d2"),s=n("6374");e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&r(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(d){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},cb41:function(e,t,n){"use strict";n("3984")},cb7c:function(e,t,n){},cbdd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.vertical")}},[t("el-switch",{model:{value:e.optionModel.vertical,callback:function(t){e.$set(e.optionModel,"vertical",t)},expression:"optionModel.vertical"}})],1)},o=[],r=n("79fa"),s={name:"vertical-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"8e7b19b4",null);t["default"]=c.exports},cc12:function(e,t,n){var i=n("da84"),o=n("861d"),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},cc5f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[t("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[t("el-option",{attrs:{label:"datetime",value:"datetime"}}),t("el-option",{attrs:{label:"date",value:"date"}}),t("el-option",{attrs:{label:"dates",value:"dates"}}),t("el-option",{attrs:{label:"year",value:"year"}}),t("el-option",{attrs:{label:"month",value:"month"}}),t("el-option",{attrs:{label:"week",value:"week"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1eb20f34",null);t["default"]=c.exports},cc78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[t("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,n){return t("el-option",{key:n,attrs:{label:e,value:e}})})),1)],1)},o=[],r=n("79fa"),s=n("ca00"),a={name:"customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{cssClassList:[]}},created(){this.cssClassList=Object(s["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",e=>{this.cssClassList=e})}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"18a2c67d",null);t["default"]=d.exports},ccd7:function(e,t,n){},cd36:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default"),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():t("div",{staticClass:"container-action"},[t("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),"table"===e.widget.type?t("i",{staticClass:"iconfont icon-insertrow",attrs:{title:e.i18nt("designer.hint.insertRow")},on:{click:function(t){return t.stopPropagation(),e.appendTableRow(e.widget)}}}):e._e(),"table"===e.widget.type?t("i",{staticClass:"iconfont icon-insertcolumn",attrs:{title:e.i18nt("designer.hint.insertColumn")},on:{click:function(t){return t.stopPropagation(),e.appendTableCol(e.widget)}}}):e._e(),"grid"===e.widget.type||"table"===e.widget.type?t("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneContainer(e.widget)}}}):e._e(),t("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():t("div",{staticClass:"drag-handler"},[t("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),t("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.widget.type,"extension.widgetLabel."+e.widget.type)))]),!0===e.widget.options.hidden?t("i",{staticClass:"iconfont icon-hide"}):e._e()])],2)},o=[],r=n("79fa"),s=n("61ca"),a={name:"container-wrapper",mixins:[r["b"],s["a"]],props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},l=a,c=(n("0a5e"),n("2877")),d=Object(c["a"])(l,i,o,!1,null,"b98cf8dc",null);t["default"]=d.exports},cdce:function(e,t,n){var i=n("da84"),o=n("1626"),r=i.WeakMap;e.exports=o(r)&&/native code/.test(String(r))},ce0e:function(e,t,n){},ce37:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPullTitle")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.pull,callback:function(t){e.$set(e.optionModel,"pull",e._n(t))},expression:"optionModel.pull"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-pull-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5a74fe7e",null);t["default"]=c.exports},cee4:function(e,t,n){"use strict";var i=n("c532"),o=n("1d2b"),r=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new r(e),n=o(r.prototype.request,t);return i.extend(n,r.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=r,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},cf32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-input-number",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"number-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("1f49"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"a039267e",null);t["default"]=h.exports},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),o=n("1626"),r=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},d0c9:function(e,t,n){},d119:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-file-upload-field",use:"icon-file-upload-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file-upload-field"><defs><style type="text/css"></style></defs><path d="M676.48 72.96l209.92 211.2 9.6 23.04v620.8l-32 32h-704l-32-32v-832l32-32h494.08l22.4 8.96zM640 320h192l-192-192v192zM192 128v768h640V384H608L576 352V128H192z m512 320H320v64h384V448zM320 576h384v64H320V576z m384 128H320v64h384v-64z" p-id="65361" /></symbol>'});s.a.add(a);t["default"]=a},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},d2bb:function(e,t,n){var i=n("e330"),o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d2d9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[t("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,n){return t("el-option",{key:n,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.tabPaneSetting")}}),t("el-form-item",{staticClass:"panes-setting",attrs:{"label-width":"0"}},[t("draggable",e._b({attrs:{tag:"ul",list:e.selectedWidget.tabs}},"draggable",{group:"panesGroup",ghostClass:"ghost",handle:".drag-option"},!1),[e._l(e.selectedWidget.tabs,(function(n,i){return t("li",{key:i,staticClass:"col-item"},[t("el-checkbox",{staticStyle:{"margin-right":"8px"},attrs:{disabled:""},on:{change:t=>e.onTabPaneActiveChange(t,n)},model:{value:n.options.active,callback:function(t){e.$set(n.options,"active",t)},expression:"tpItem.options.active"}},[e._v(e._s(e.i18nt("designer.setting.paneActive")))]),t("el-input",{staticStyle:{width:"155px"},attrs:{type:"text"},model:{value:n.options.label,callback:function(t){e.$set(n.options,"label",t)},expression:"tpItem.options.label"}}),t("i",{staticClass:"iconfont icon-drag drag-option"}),t("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteTabPane(e.selectedWidget,i)}}})],1)})),t("div",[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addTabPane(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addTabPane")))])],1)],2)],1)],1)},o=[],r=n("79fa"),s=n("b76a"),a=n.n(s),l=n("ca00"),c={name:"tab-customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],components:{Draggable:a.a},props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{cssClassList:[]}},created(){this.cssClassList=Object(l["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",e=>{this.cssClassList=e})},methods:{onTabPaneActiveChange(e,t){},addTabPane(e){this.designer.addTabPaneOfTabs(e),this.designer.emitHistoryChange()},deleteTabPane(e,t){1!==e.tabs.length?(this.designer.deleteTabPaneOfTabs(e,t),this.designer.emitHistoryChange()):this.$message.info(this.i18nt("designer.hint.lastPaneCannotBeDeleted"))}}},d=c,u=(n("c52d"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"6ddd24c1",null);t["default"]=h.exports},d2e4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-textarea-field",use:"icon-textarea-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-textarea-field"><defs><style type="text/css"></style></defs><path d="M896.4 173.1H128.9c-35.2 0-49 13.8-49 49v575.6c0 35.2 13.8 49 49 49h767.5c35.2 0 49-13.8 49-49V222.1c0-35.2-13.8-49-49-49z m0 592.6c0 16-12.8 32-32 32H160.9c-19.2 0-32-12.8-32-32V254.1c0-16 12.8-32 32-32h703.5c19.2 0 32 12.8 32 32v511.6z" p-id="12940" /><path d="M710.2 766.7h141.5c8.1 0 14.7-6.6 14.7-14.7V610.4c0-1.3-1.6-2-2.6-1.1L709.1 764.1c-1 1-0.3 2.6 1.1 2.6zM207.2 594.3h-13.5c-10 0-18.2-8.2-18.2-18.2V291.8c0-10.2 8.4-18.6 18.6-18.6h12.8c10.2 0 18.6 8.4 18.6 18.6v284.3c-0.1 10-8.3 18.2-18.3 18.2z" p-id="12941" /></symbol>'});s.a.add(a);t["default"]=a},d3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showStops")}},[t("el-switch",{model:{value:e.optionModel.showStops,callback:function(t){e.$set(e.optionModel,"showStops",t)},expression:"optionModel.showStops"}})],1)},o=[],r=n("79fa"),s={name:"showStops-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"24139f8e",null);t["default"]=c.exports},d3fb:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWdJREFUeNrsmjFuwjAUhp8jxJQBujQH4ABhYmaDU7Sdu/QIcIKKE0APwM7GEQgLU/dmo0N3178SI0Qx2KpQ8sJ7kpUojsn/2S/JrxeImhRa64lpe13fgLbJsWZVCu+Yzdq0lMlcZ0qpPnai8sAbI/GI1K6EXYG92XSYZfy3WYWuBdAc71kDoFquzo+MaLHx+6H1S9iYNCF6Hxf7w/n180c9otcBUdz+2xdxmOnVJ9Fyd74v4pIu2RdzAFcIgAAIgABUG62qBTz3/c57jGsK8JRKClVgC3I/E+cygPIUEgABEAABEIDGADjrQvlP0XzfkqFjQgMlld7DiXiEC4DF7F8qbMGvbPPbXBjWGMUqBIphoWO8zBzE+1bmQgMpZ8X4XuN4jDyFBEAABEAA7g8giRkDwAPhE9PNzNx/jFmWh5u4c2aO7WdWm0Izhvfv7JBC5SrAVrH9qwGVB6ZYmjqnDTRa8Y2IXwEGAI1dAiVnUcUMAAAAAElFTkSuQmCC"},d58f:function(e,t,n){var i=n("59ed"),o=n("7b0b"),r=n("44ad"),s=n("07fa"),a=TypeError,l=function(e){return function(t,n,l,c){i(n);var d=o(t),u=r(d),h=s(d),f=e?h-1:0,p=e?-1:1;if(l<2)while(1){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw a("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in u&&(c=n(c,u[f],f,d));return c}};e.exports={left:l(!1),right:l(!0)}},d67b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-input",{ref:"fieldEditor",staticClass:"hide-spin-button",attrs:{disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,type:e.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.appendButton?t("el-button",{class:e.field.options.buttonIcon,attrs:{slot:"append",disabled:e.field.options.disabled||e.field.options.appendButtonDisabled},nativeOn:{click:function(t){return e.emitAppendButtonClick.apply(null,arguments)}},slot:"append"}):e._e(),e.field.options.prependText?t("template",{slot:"prepend"},[e._v(e._s(e.field.options.prependText))]):e._e(),e.field.options.appendText?t("template",{slot:"append"},[e._v(e._s(e.field.options.appendText))]):e._e()],2)],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"input-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType(){return"number"===this.field.options.type?"text":this.field.options.type}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("b1c5"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"5d87f036",null);t["default"]=h.exports},d67f:function(e,t,n){"use strict";t["a"]={methods:{initRefList(){null!==this.refList&&this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef(e,t=!1){let n=this.refList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getFormRef(){return this.refList["v_form_ref"]},getComponentByContainer(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"}}}},d719:function(e,t,n){"use strict";n("6787")},d741:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.withCredentials")}},[t("el-switch",{model:{value:e.optionModel.withCredentials,callback:function(t){e.$set(e.optionModel,"withCredentials",t)},expression:"optionModel.withCredentials"}})],1)},o=[],r=n("79fa"),s={name:"withCredentials-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3d15893a",null);t["default"]=c.exports},d773:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onSubFormRowDelete","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowDelete",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowDelete-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["subFormData","deletedDataRow"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"1a13f95e",null);t["default"]=d.exports},d834:function(e,t,n){},d8ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-grid",use:"icon-grid-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-grid"><defs><style type="text/css"></style></defs><path d="M819.3536 921.6h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z" p-id="8473" /></symbol>'});s.a.add(a);t["default"]=a},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9b5:function(e,t,n){var i=n("d066"),o=n("1626"),r=n("3a9b"),s=n("fdbf"),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&r(t.prototype,a(e))}},d9e2:function(e,t,n){var i=n("23e7"),o=n("da84"),r=n("2ba4"),s=n("e5cb"),a="WebAssembly",l=o[a],c=7!==Error("e",{cause:7}).cause,d=function(e,t){var n={};n[e]=s(e,t,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},u=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,c),i({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};d("Error",(function(e){return function(t){return r(e,this,arguments)}})),d("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),d("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),d("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),d("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),d("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),d("URIError",(function(e){return function(t){return r(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},da4e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||e.i18nt("render.hint.datePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("b613"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"ea728dba",null);t["default"]=h.exports},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-sub-form",use:"icon-sub-form-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sub-form"><defs><style type="text/css"></style></defs><path d="M512 106.666667H112a5.333333 5.333333 0 0 0-5.333333 5.333333v800a5.333333 5.333333 0 0 0 5.333333 5.333333h800a5.333333 5.333333 0 0 0 5.333333-5.333333V112a5.333333 5.333333 0 0 0-5.333333-5.333333z m0 74.666666h325.333333a5.333333 5.333333 0 0 1 5.333334 5.333334v160a5.333333 5.333333 0 0 1-5.333334 5.333333H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333333V186.666667a5.333333 5.333333 0 0 1 5.333334-5.333334z m85.333333 250.666667v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H432a5.333333 5.333333 0 0 1-5.333333-5.333334V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333z m-410.666666-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333334V432a5.333333 5.333333 0 0 1 5.333334-5.333333z m485.333333 410.666666V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333334 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333334 5.333334h-160a5.333333 5.333333 0 0 1-5.333333-5.333334z" p-id="97355" /></symbol>'});s.a.add(a);t["default"]=a},dc4a:function(e,t,n){var i=n("59ed"),o=n("7234");e.exports=function(e,t){var n=e[t];return o(n)?void 0:i(n)}},dc77:function(e,t,n){},dca8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonDisabled")}},[t("el-switch",{model:{value:e.optionModel.appendButtonDisabled,callback:function(t){e.$set(e.optionModel,"appendButtonDisabled",t)},expression:"optionModel.appendButtonDisabled"}})],1)},o=[],r=n("79fa"),s={name:"appendButtonDisabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5ce987da",null);t["default"]=c.exports},de19:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-divider",{ref:"fieldEditor",attrs:{direction:"horizontal","content-position":e.field.options.contentPosition}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"divider-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("0916"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"0faf59b2",null);t["default"]=h.exports},dea5:function(e,t,n){},df12:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{label:e.i18nt("designer.setting.htmlContent")}}),t("el-form-item",{attrs:{"label-width":"0"}},[t("el-input",{staticClass:"html-content-editor",attrs:{type:"textarea",rows:5},model:{value:e.optionModel.htmlContent,callback:function(t){e.$set(e.optionModel,"htmlContent",t)},expression:"optionModel.htmlContent"}})],1)],1)},o=[],r=n("79fa"),s={name:"htmlContent-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("767a"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"a3fcc8ba",null);t["default"]=c.exports},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var o=e[i];"."===o?e.splice(i,1):".."===o?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===i&&(o=!1,i=t+1);return-1===i?"":e.slice(n,i)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s=r>=0?arguments[r]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===r(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=i(e.split("/")),r=i(n.split("/")),s=Math.min(o.length,r.length),a=s,l=0;l<s;l++)if(o[l]!==r[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),47===t){if(!o){i=r;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(o=!1,i=s+1),46===a?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df90:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.endPlaceholder")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.endPlaceholder,callback:function(t){e.$set(e.optionModel,"endPlaceholder",t)},expression:"optionModel.endPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"endPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"373a69c1",null);t["default"]=c.exports},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=i((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var o=i&&!0===i.clone;return o&&e(n)?r(t(n),n,i):n}function i(t,i,o){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,o):e(i)?s[a]=r(t[a],i,o):-1===t.indexOf(i)&&s.push(n(i,o))})),s}function o(t,i,o){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],o)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=r(t[a],i[a],o):s[a]=n(i[a],o)})),s}function r(e,t,r){var s=Array.isArray(t),a=r||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,r):n(t,r):o(e,t,r)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}))})),r=i((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=r.svg,l=r.xlink,c={};c[a.name]=a.uri,c[l.name]=l.uri;var d=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),i=s(n);return"<svg "+i+">"+e+"</svg>"},u=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e);return u}))}).call(this,n("c8ba"))},e072:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onValidate","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onValidate",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onValidate-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["rule","value","callback"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4509c6b4",null);t["default"]=d.exports},e090:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxLength")}},[t("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"1"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.maxLength,callback:function(t){e.maxLength=t},expression:"maxLength"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"maxLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxLength:{get(){return this.optionModel["maxLength"]},set(e){!e||isNaN(e)?this.optionModel.maxLength=null:this.optionModel.maxLength=Number(e)}}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"361e66e1",null);t["default"]=d.exports},e0b7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-switch",{attrs:{"active-text":"true","inactive-text":"false"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"switch-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"98bc90ba",null);t["default"]=d.exports},e11b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[t("el-row",{key:e.widget.id,staticClass:"grid-container",class:[e.selected?"selected":"",e.customClass],attrs:{gutter:e.widget.options.gutter},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[e._l(e.widget.cols,(function(n,i){return[t("grid-col-widget",{key:n.id,attrs:{widget:n,designer:e.designer,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight}})]}))],2)],1)},o=[],r=n("79fa"),s=n("f772"),a=n("61ca"),l=n("cd36"),c=n("26a6"),d={name:"grid-widget",componentName:"ContainerWidget",mixins:[r["b"],a["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:l["default"],GridColWidget:s["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},watch:{},created(){this.initRefList()},mounted(){},methods:{}},u=d,h=(n("63d7"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"ec57838c",null);t["default"]=f.exports},e163:function(e,t,n){var i=n("1a2d"),o=n("1626"),r=n("7b0b"),s=n("f7723"),a=n("e177"),l=s("IE_PROTO"),c=Object,d=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=r(e);if(i(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1a1:function(e,t,n){"use strict";n("700c")},e330:function(e,t,n){var i=n("40d5"),o=Function.prototype,r=o.call,s=i&&o.bind.bind(r,r);e.exports=i?s:function(e){return function(){return r.apply(e,arguments)}}},e391:function(e,t,n){var i=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e3e8:function(e,t,n){},e447:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{"label-width":"0"}},[t("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.columnSetting")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.gutter")}},[t("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.gutter,callback:function(t){e.$set(e.optionModel,"gutter",t)},expression:"optionModel.gutter"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colsOfGrid")}}),t("el-form-item",{attrs:{"label-width":"0"}},[e._l(e.selectedWidget.cols,(function(n,i){return t("li",{key:i,staticClass:"col-item"},[t("span",{staticClass:"col-span-title"},[e._v(e._s(e.i18nt("designer.setting.colSpanTitle"))+e._s(i+1))]),t("el-input-number",{staticClass:"cell-span-input",attrs:{min:1,max:24},on:{change:(t,o)=>e.spanChanged(e.selectedWidget,n,i,t,o)},model:{value:n.options.span,callback:function(t){e.$set(n.options,"span",e._n(t))},expression:"colItem.options.span"}}),t("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteCol(e.selectedWidget,i)}}})],1)})),t("div",[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addNewCol(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addColumn")))])],1)],2)],1)},o=[],r=n("79fa"),s={name:"gutter-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},methods:{spanChanged(e){let t=0;e.cols.forEach(e=>{t+=e.options.span}),t>24&&console.log("列栅格之和超出24"),this.designer.saveCurrentHistoryStep()},deleteCol(e,t){this.designer.deleteColOfGrid(e,t),this.designer.emitHistoryChange()},addNewCol(e){this.designer.addNewColOfGrid(e),this.designer.emitHistoryChange()}}},a=s,l=(n("e1a1"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"ebfa1f06",null);t["default"]=c.exports},e486:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-node-tree",use:"icon-node-tree-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-node-tree"><defs><style type="text/css"></style></defs><path d="M332.48 500.864a25.6 25.6 0 1 0 0-51.2H192.384v-184.96a115.2 115.2 0 0 0 89.6-112.128c0-63.488-51.712-115.2-115.2-115.2s-115.2 51.712-115.2 115.2a115.2 115.2 0 0 0 89.6 112.128v696.192a25.6 25.6 0 1 0 51.2 0v-141.12c2.304 0.192 4.48 0.512 6.912 0.512h133.184a25.6 25.6 0 1 0 0-51.2H199.296c-3.456 0-5.504-0.448-6.08-0.256a29.184 29.184 0 0 1-0.896-8.576V500.8h140.16zM102.784 152.64c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64-64-28.736-64-64zM921.216 360.064h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4zM921.216 679.616h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4z" p-id="4876" /></symbol>'});s.a.add(a);t["default"]=a},e5cb:function(e,t,n){"use strict";var i=n("d066"),o=n("1a2d"),r=n("9112"),s=n("3a9b"),a=n("d2bb"),l=n("e893"),c=n("aeb0"),d=n("7156"),u=n("e391"),h=n("ab36"),f=n("0d26"),p=n("b980"),g=n("83ab"),m=n("c430");e.exports=function(e,t,n,b){var v="stackTraceLimit",y=b?2:1,w=e.split("."),x=w[w.length-1],C=i.apply(null,w);if(C){var _=C.prototype;if(!m&&o(_,"cause")&&delete _.cause,!n)return C;var k=i("Error"),S=t((function(e,t){var n=u(b?t:e,void 0),i=b?new C(e):new C;return void 0!==n&&r(i,"message",n),p&&r(i,"stack",f(i.stack,2)),this&&s(_,this)&&d(i,this,S),arguments.length>y&&h(i,arguments[y]),i}));if(S.prototype=_,"Error"!==x?a?a(S,k):l(S,k,{name:!0}):g&&v in C&&(c(S,C,v),c(S,C,"prepareStackTrace")),l(S,C),!m)try{_.name!==x&&r(_,"name",x),_.constructor=S}catch(O){}return S}}},e646:function(e,t,n){"use strict";n("cb7c")},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6b8:function(e,t,n){"use strict";n("121c")},e801:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[t("el-input",{staticClass:"hide-spin-button",attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.optionModel.labelWidth,callback:function(t){e.$set(e.optionModel,"labelWidth",t)},expression:"optionModel.labelWidth"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"labelWidth-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"39b735cc",null);t["default"]=d.exports},e86f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[t("el-switch",{on:{change:e.onMultipleSelected},model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"30a47068",null);t["default"]=d.exports},e893:function(e,t,n){var i=n("1a2d"),o=n("56ef"),r=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var a=o(t),l=s.f,c=r.f,d=0;d<a.length;d++){var u=a[d];i(e,u)||n&&i(n,u)||l(e,u,c(t,u))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e8d7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showAllLevels")}},[t("el-switch",{model:{value:e.optionModel.showAllLevels,callback:function(t){e.$set(e.optionModel,"showAllLevels",t)},expression:"optionModel.showAllLevels"}})],1)},o=[],r=n("79fa"),s={name:"showAllLevels-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1f0743ee",null);t["default"]=c.exports},e934:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-section",use:"icon-section-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-section"><defs><style type="text/css"></style></defs><path d="M141.074286 906.496h741.851428c89.581714 0 134.582857-44.562286 134.582857-132.845714V250.331429c0-88.283429-45.001143-132.845714-134.582857-132.845715H141.074286C51.931429 117.504 6.491429 161.645714 6.491429 250.331429V773.668571c0 88.704 45.44 132.845714 134.582857 132.845715z m1.28-68.992c-42.861714 0-66.852571-22.710857-66.852572-67.291429V253.805714c0-44.580571 23.990857-67.291429 66.852572-67.291428h739.291428c42.422857 0 66.852571 22.710857 66.852572 67.291428V770.194286c0 44.580571-24.429714 67.291429-66.852572 67.291428z" p-id="11329" /></symbol>'});s.a.add(a);t["default"]=a},e96c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.activeText")}},[t("el-input",{model:{value:e.optionModel.activeText,callback:function(t){e.$set(e.optionModel,"activeText",t)},expression:"optionModel.activeText"}})],1)},o=[],r=n("79fa"),s={name:"activeText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2684f3ad",null);t["default"]=c.exports},ebb5:function(e,t,n){"use strict";var i,o,r,s=n("4b11"),a=n("83ab"),l=n("da84"),c=n("1626"),d=n("861d"),u=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("cb2d"),m=n("9bf2").f,b=n("3a9b"),v=n("e163"),y=n("d2bb"),w=n("b622"),x=n("90e3"),C=n("69f3"),_=C.enforce,k=C.get,S=l.Int8Array,O=S&&S.prototype,E=l.Uint8ClampedArray,L=E&&E.prototype,A=S&&v(S),M=O&&v(O),$=Object.prototype,T=l.TypeError,R=w("toStringTag"),F=x("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",q=s&&!!y&&"Opera"!==h(l.opera),I=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},D=function(e){if(!d(e))return!1;var t=h(e);return"DataView"===t||u(N,t)||u(P,t)},W=function(e){var t=v(e);if(d(t)){var n=k(t);return n&&u(n,j)?n[j]:W(t)}},H=function(e){if(!d(e))return!1;var t=h(e);return u(N,t)||u(P,t)},B=function(e){if(H(e))return e;throw T("Target is not a typed array")},z=function(e){if(c(e)&&(!y||b(A,e)))return e;throw T(f(e)+" is not a typed array constructor")},V=function(e,t,n,i){if(a){if(n)for(var o in N){var r=l[o];if(r&&u(r.prototype,e))try{delete r.prototype[e]}catch(s){try{r.prototype[e]=t}catch(c){}}}M[e]&&!n||g(M,e,n?t:q&&O[e]||t,i)}},U=function(e,t,n){var i,o;if(a){if(y){if(n)for(i in N)if(o=l[i],o&&u(o,e))try{delete o[e]}catch(r){}if(A[e]&&!n)return;try{return g(A,e,n?t:q&&A[e]||t)}catch(r){}}for(i in N)o=l[i],!o||o[e]&&!n||g(o,e,t)}};for(i in N)o=l[i],r=o&&o.prototype,r?_(r)[j]=o:q=!1;for(i in P)o=l[i],r=o&&o.prototype,r&&(_(r)[j]=o);if((!q||!c(A)||A===Function.prototype)&&(A=function(){throw T("Incorrect invocation")},q))for(i in N)l[i]&&y(l[i],A);if((!q||!M||M===$)&&(M=A.prototype,q))for(i in N)l[i]&&y(l[i].prototype,M);if(q&&v(L)!==M&&y(L,M),a&&!u(M,R))for(i in I=!0,m(M,R,{get:function(){return d(this)?this[F]:void 0}}),N)l[i]&&p(l[i],F,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:q,TYPED_ARRAY_TAG:I&&F,aTypedArray:B,aTypedArrayConstructor:z,exportTypedArrayMethod:V,exportTypedArrayStaticMethod:U,getTypedArrayConstructor:W,isView:D,isTypedArray:H,TypedArray:A,TypedArrayPrototype:M}},ecaa:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-switch",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"switch-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("3e88"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"88bb0ad8",null);t["default"]=h.exports},ecf2:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slot-field",use:"icon-slot-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slot-field"><defs><style type="text/css"></style></defs><path d="M475.937391 244.869565m18.031305 0l36.285217 0q18.031304 0 18.031304 18.031305l0 217.266087q0 18.031304-18.031304 18.031304l-36.285217 0q-18.031304 0-18.031305-18.031304l0-217.266087q0-18.031304 18.031305-18.031305Z" p-id="2852" /><path d="M305.41913 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2853" /><path d="M646.233043 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2854" /><path d="M827.436522 122.212174H196.563478a74.573913 74.573913 0 0 0-74.351304 74.351304v630.873044a74.573913 74.573913 0 0 0 74.351304 74.351304h630.873044a74.573913 74.573913 0 0 0 74.351304-74.351304V196.563478a74.573913 74.573913 0 0 0-74.351304-74.351304z m52.090435 705.224348a52.090435 52.090435 0 0 1-52.090435 52.090435H196.563478a52.090435 52.090435 0 0 1-52.090435-52.090435V196.563478a52.090435 52.090435 0 0 1 52.090435-52.090435h630.873044a52.090435 52.090435 0 0 1 52.090435 52.090435z" p-id="2855" /></symbol>'});s.a.add(a);t["default"]=a},efdc:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"sub-form-container"},[t("el-row",{staticClass:"header-row"},[t("div",{staticClass:"action-header-column"},[t("span",{staticClass:"action-label"},[e._v(e._s(e.i18nt("render.hint.subFormAction")))]),t("el-button",{staticClass:"action-button",attrs:{disabled:e.actionDisabled,round:"",type:"primary",size:"mini",title:e.i18nt("render.hint.subFormAddActionHint")},on:{click:e.addSubFormRow}},[e._v(" "+e._s(e.i18nt("render.hint.subFormAddAction"))),t("i",{staticClass:"el-icon-plus el-icon-right"})])],1),e._l(e.widget.widgetList,(function(n){return[t("div",{key:n.id+"thc",staticClass:"field-header-column",class:[e.getLabelAlign(e.widget,n),n.options.required?"is-required":""],style:{width:n.options.columnWidth}},[n.options.labelIconClass?t("span",{staticClass:"custom-label"},["front"===n.options.labelIconPosition?[n.options.labelTooltip?[t("el-tooltip",{attrs:{content:n.options.labelTooltip,effect:"light"}},[t("i",{class:n.options.labelIconClass})]),e._v(e._s(n.options.label))]:[t("i",{class:n.options.labelIconClass}),e._v(e._s(n.options.label))]]:"rear"===n.options.labelIconPosition?[n.options.labelTooltip?[e._v(" "+e._s(n.options.label)),t("el-tooltip",{attrs:{content:n.options.labelTooltip,effect:"light"}},[t("i",{class:n.options.labelIconClass})])]:[e._v(" "+e._s(n.options.label)),t("i",{class:n.options.labelIconClass})]]:e._e()],2):[t("span",{attrs:{title:n.options.labelTooltip}},[e._v(e._s(n.options.label))])]],2)]}))],2),e._l(e.rowIdData,(function(n,i){return t("el-row",{key:n,staticClass:"sub-form-row"},[t("div",{staticClass:"sub-form-action-column hide-label"},[t("div",{staticClass:"action-button-column"},[t("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-circle-plus-outline",title:e.i18nt("render.hint.insertSubFormRow")},on:{click:function(t){return e.insertSubFormRow(i)}}}),t("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-delete",title:e.i18nt("render.hint.deleteSubFormRow")},on:{click:function(t){return e.deleteSubFormRow(i)}}}),e.widget.options.showRowNumber?t("span",{staticClass:"row-number-span"},[e._v("#"+e._s(i+1))]):e._e()],1)]),e._l(e.widget.widgetList,(function(o,r){return[t("div",{key:o.id+"tc"+n,staticClass:"sub-form-table-column hide-label",style:{width:o.options.columnWidth}},[t(o.type+"-widget",{key:e.fieldSchemaData[i][r].id,tag:"component",attrs:{field:e.fieldSchemaData[i][r],"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget,"sub-form-row-id":n,"sub-form-row-index":i,"sub-form-col-index":r}})],1)]}))],2)}))],2)])},o=[],r=(n("14d9"),n("c6e3")),s=n("79fa"),a=n("ca00"),l=n("d67f"),c=n("90c2"),d=n("34f0"),u=n("c029"),h={name:"sub-form-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],l["a"],d["a"]],components:{ContainerItemWrapper:c["default"],...u["a"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted(){this.handleSubFormFirstRowAdd()},beforeDestroy(){this.unregisterFromRefList()},methods:{getLabelAlign(e,t){return t.options.labelAlign||e.options.labelAlign},registerSubFormToRefList(){"sub-form"===this.widget.type&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData(e){if("sub-form"===this.widget.type){this.rowIdData.splice(0,this.rowIdData.length);let t=this.formModel[this.widget.options.name];t&&t.length>0&&(t.forEach(()=>{this.rowIdData.push("id"+Object(a["e"])())}),e&&setTimeout(()=>{this.handleSubFormRowChange(t)},800))}},addToRowIdData(){this.rowIdData.push("id"+Object(a["e"])())},insertToRowIdData(e){this.rowIdData.splice(e,0,"id"+Object(a["e"])())},deleteFromRowIdData(e){this.rowIdData.splice(e,1)},getRowIdData(){return this.rowIdData},getWidgetRefOfSubForm(e,t){let n=e+"@row"+this.rowIdData[t];return this.getWidgetRef(n)},initFieldSchemaData(){if("sub-form"!==this.widget.type)return;let e=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),e>0)for(let t=0;t<e;t++){let e=[];this.widget.widgetList.forEach(t=>{e.push(this.cloneFieldSchema(t))}),this.fieldSchemaData.push(e)}},addToFieldSchemaData(e){let t=[];this.widget.widgetList.forEach(e=>{t.push(this.cloneFieldSchema(e))}),void 0===e?this.fieldSchemaData.push(t):this.fieldSchemaData.splice(e,0,t)},deleteFromFieldSchemaData(e){this.fieldSchemaData.splice(e,1)},cloneFieldSchema(e){let t=Object(a["d"])(e);return t.id=e.type+Object(a["e"])(),t},initEventHandler(){"sub-form"===this.widget.type&&this.$on("setFormData",e=>{this.initRowIdData(!1),this.initFieldSchemaData();let t=e[this.widget.options.name]||[];setTimeout(()=>{this.handleSubFormRowChange(t)},800)})},handleSubFormFirstRowAdd(){if("sub-form"===this.widget.type&&this.widget.options.showBlankRow&&1===this.rowIdData.length){let e=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(e,this.rowIdData[0]),this.handleSubFormRowChange(e)}},addSubFormRow(){let e={};this.widget.widgetList.forEach(t=>{t.formItemFlag&&(e[t.options.name]=t.options.defaultValue)});let t=this.formModel[this.widget.options.name]||[];t.push(e),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(t,this.rowIdData[t.length-1]),this.handleSubFormRowChange(t)},insertSubFormRow(e){let t={};this.widget.widgetList.forEach(e=>{e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)});let n=this.formModel[this.widget.options.name]||[];n.splice(e,0,t),this.insertToRowIdData(e),this.addToFieldSchemaData(e),this.handleSubFormRowInsert(n,this.rowIdData[e]),this.handleSubFormRowChange(n)},deleteSubFormRow(e){this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{let t=this.formModel[this.widget.options.name]||[],n=Object(a["d"])(t[e]);t.splice(e,1),this.deleteFromRowIdData(e),this.deleteFromFieldSchemaData(e),this.handleSubFormRowDelete(t,n),this.handleSubFormRowChange(t)}).catch(()=>{})},handleSubFormRowChange(e){if(this.widget.options.onSubFormRowChange){let t=new Function("subFormData",this.widget.options.onSubFormRowChange);t.call(this,e)}},handleSubFormRowAdd(e,t){if(this.widget.options.onSubFormRowAdd){let n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd);n.call(this,e,t)}},handleSubFormRowInsert(e,t){if(this.widget.options.onSubFormRowInsert){let n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert);n.call(this,e,t)}},handleSubFormRowDelete(e,t){if(this.widget.options.onSubFormRowDelete){let n=new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete);n.call(this,e,t)}}}},f=h,p=(n("2a68"),n("2877")),g=Object(p["a"])(f,i,o,!1,null,"7dbaba43",null);t["default"]=g.exports},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f14c:function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){var e=l.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{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"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(e){var t=this.createKeywordMapper({"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|function|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"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?: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]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{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:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:l},{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:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{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:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("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:[o("function_arguments"),{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+l+")(\\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"}),(!e||0!=e.jsx)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(c,a),t.JavaScriptHighlightRules=c})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),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(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.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/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e){var a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);a&&(i+=n)}else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";a=t.match(/^\s*(\/?)\*/);a&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(d.prototype),t.Mode=d})),function(){ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},f250:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-rate-field",use:"icon-rate-field-usage",viewBox:"0 0 1069 1024",content:'<symbol class="icon" viewBox="0 0 1069 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rate-field"><defs><style type="text/css"></style></defs><path d="M633.73 378.02l9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-0.263l94.568 185.635zM496.647 85.52L374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682 0.802z" p-id="49627" /></symbol>'});s.a.add(a);t["default"]=a},f2db:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-alert",use:"icon-alert-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-alert"><defs><style type="text/css"></style></defs><path d="M512 85.162667a319.573333 319.573333 0 0 1 319.829333 309.333333l0.170667 10.666667v174.805333l58.88 134.656a53.290667 53.290667 0 0 1-48.853333 74.709333L640 789.418667a128 128 0 0 1-255.786667 7.509333L384 789.290667l-201.6 0.042666a53.333333 53.333333 0 0 1-48.938667-74.581333L192 580.010667V405.162667c0-177.28 143.018667-320 320-320zM576 789.333333l-128 0.128a64 64 0 0 0 127.701333 6.144l0.256-6.272zM512 149.162667c-141.653333 0-256 114.090667-256 256v188.16L198.656 725.333333h627.072L768 593.365333V405.717333l-0.170667-9.6A255.488 255.488 0 0 0 512 149.162667z m384 202.837333h85.333333a32 32 0 0 1 4.352 63.701333L981.333333 416h-85.333333a32 32 0 0 1-4.352-63.701333L896 352z m-853.333333 0h85.333333a32 32 0 0 1 4.352 63.701333L128 416H42.666667a32 32 0 0 1-4.352-63.701333L42.666667 352z m921.6-243.2a32 32 0 0 1-2.816 41.685333l-3.584 3.114667-85.333334 64a32 32 0 0 1-41.984-48.085333l3.584-3.114667 85.333334-64a32 32 0 0 1 44.8 6.4zM104.533333 102.4l85.333334 64a32 32 0 1 1-38.4 51.2l-85.333334-64a32 32 0 1 1 38.4-51.2z" p-id="6432" /></symbol>'});s.a.add(a);t["default"]=a},f319:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelTooltip")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelTooltip,callback:function(t){e.$set(e.optionModel,"labelTooltip",t)},expression:"optionModel.labelTooltip"}})],1)},o=[],r=n("79fa"),s={name:"labelTooltip-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4bb85541",null);t["default"]=c.exports},f388:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!!e.isSubFormChildWidget(),expression:"!!isSubFormChildWidget()"}],attrs:{label:e.i18nt("designer.setting.widgetColumnWidth")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.columnWidth,callback:function(t){e.$set(e.optionModel,"columnWidth",t)},expression:"optionModel.columnWidth"}})],1)],1)},o=[],r=n("79fa"),s={name:"columnWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},inject:["isSubFormChildWidget"]},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5f410a01",null);t["default"]=c.exports},f4a6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onFocus","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFocus",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFocus-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["event"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ccd01010",null);t["default"]=d.exports},f4c1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("vue-editor",{ref:"fieldEditor",attrs:{"editor-toolbar":e.customToolbar,disabled:e.field.options.disabled,placeholder:e.field.options.placeholder},on:{"text-change":e.handleRichEditorChangeEvent,focus:e.handleRichEditorFocusEvent,blur:e.handleRichEditorBlurEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("5873"),a=n("c6e3"),l=n("79fa"),c=n("ca00"),d=n("2d11"),u={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[a["a"],d["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"],VueEditor:s["a"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent(){this.oldFieldValue=Object(c["d"])(this.fieldModel)},handleRichEditorBlurEvent(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}},h=u,f=(n("c3b2"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"29731672",null);t["default"]=p.exports},f4ca:function(e,t,n){},f582:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-checkbox-field",use:"icon-checkbox-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-checkbox-field"><defs><style type="text/css"></style></defs><path d="M897.940444 896.76927c6.258541-6.27696 10.256598-14.833847 10.256598-24.530696L908.197042 147.672294c0-9.118682-3.998057-18.235316-10.256598-24.533766l0 0c-6.27696-6.257517-14.815427-9.695826-24.511253-9.695826l0 0-723.784474 0 0 0c-9.68764 0-18.235316 3.437286-24.503067 9.695826l0 0c-6.26775 6.297426-9.686616 15.414061-9.686616 24.533766L115.455033 872.238574c0 9.69685 3.419889 18.253736 9.686616 24.530696 6.26775 6.277984 14.815427 10.276041 24.503067 10.276041l0 0 723.784474 0 0 0C883.126041 907.045311 891.663484 903.047254 897.940444 896.76927L897.940444 896.76927zM149.644717 61.521169l723.784474 0 0 0c23.933085 0 45.586245 9.69685 60.97984 25.110911 15.396665 15.97381 25.073048 37.665855 25.073048 61.039191L959.482079 872.238574c0 23.969924-9.676383 45.64355-25.073048 61.056588l0 0c-15.393595 15.395642-37.046754 25.092491-60.97984 25.092491l0 0-723.784474 0 0 0c-23.364127 0-45.016263-9.69685-60.971653-25.092491l0 0c-15.395642-15.414061-25.082258-37.086663-25.082258-61.056588L63.590805 147.672294c0-23.37436 9.686616-45.065382 25.082258-61.039191l0 0C104.628454 71.218018 126.28059 61.521169 149.644717 61.521169L149.644717 61.521169z" p-id="25736" /><path d="M417.41939 698.269357c-6.025227 0-12.047384-2.301416-16.667611-6.89913L259.500731 550.119179c-9.172917-9.148357-9.172917-24.093744 0-33.290197 9.169847-9.147334 24.115234-9.147334 33.288151 0l124.583436 124.606972 312.89429-312.916802c9.194406-9.171893 24.139793-9.171893 33.288151 0 9.196453 9.171893 9.196453 24.116257 0 33.289174L433.991834 691.370227c-4.618181 4.644787-10.642384 6.89913-16.665565 6.89913L417.41939 698.269357z" p-id="25737" /></symbol>'});s.a.add(a);t["default"]=a},f584:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.fileTypes"))+" "),t("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.fileTypesHelp")}},[t("i",{staticClass:"el-icon-info"})])],1),t("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","allow-create":"",filterable:"","default-first-option":""},model:{value:e.optionModel.fileTypes,callback:function(t){e.$set(e.optionModel,"fileTypes",t)},expression:"optionModel.fileTypes"}},e._l(e.uploadFileTypes,(function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"file-upload-fileTypes-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{uploadFileTypes:[{value:"pdf",label:"pdf"},{value:"zip",label:"zip"},{value:"rar",label:"rar"},{value:"doc",label:"doc"},{value:"xls",label:"xls"},{value:"docx",label:"docx"},{value:"xlsx",label:"xlsx"},{value:"jpg",label:"jpg"},{value:"png",label:"png"},{value:"jpeg",label:"jpeg"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"68a1d928",null);t["default"]=c.exports},f5df:function(e,t,n){var i=n("00ee"),o=n("1626"),r=n("c6b6"),s=n("b622"),a=s("toStringTag"),l=Object,c="Arguments"==r(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=d(t=l(e),a))?n:c?r(t):"Object"==(i=r(t))&&o(t.callee)?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6ca:function(e,t,n){"use strict";n("6003")},f6e6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[t("div",{key:e.widget.id,staticClass:"table-container",class:[e.selected?"selected":"",e.customClass],on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[t("table",{staticClass:"table-layout"},[t("tbody",e._l(e.widget.rows,(function(n,i){return t("tr",{key:n.id},[e._l(n.cols,(function(o,r){return[o.merged?e._e():t("table-cell-widget",{key:o.id,attrs:{widget:o,designer:e.designer,"parent-list":e.widget.cols,"row-index":i,"row-length":e.widget.rows.length,"col-index":r,"col-length":n.cols.length,"col-array":n.cols,"row-array":e.widget.rows,"parent-widget":e.widget}})]}))],2)})),0)])])])},o=[],r=n("79fa"),s=n("61ca"),a=n("cd36"),l=n("1516"),c=n("26a6"),d={name:"table-widget",componentName:"ContainerWidget",mixins:[r["b"],s["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:a["default"],TableCellWidget:l["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},watch:{},created(){this.initRefList()},mounted(){},methods:{}},u=d,h=(n("0346"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"37d3c0b7",null);t["default"]=f.exports},f746:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("el-row",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"grid-container",class:[e.customClass],attrs:{gutter:e.widget.options.gutter}},[e._l(e.widget.cols,(function(n,i){return[t("grid-col-item",{key:i,attrs:{widget:n,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2)],1)},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("a93f"),d=n("34f0"),u={name:"vf-grid-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],d["a"]],components:{ContainerItemWrapper:l["default"],GridColItem:c["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeDestroy(){this.unregisterFromRefList()},methods:{}},h=u,f=n("2877"),p=Object(f["a"])(h,i,o,!1,null,"7382a44f",null);t["default"]=p.exports},f772:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return"grid-col"===e.widget.type?t("el-col",e._b({key:e.widget.id,staticClass:"grid-cell",class:[e.selected?"selected":"",e.customClass],style:e.colHeightStyle,nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},"el-col",e.layoutProps,!1),[t("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{end:t=>e.onGridDragEnd(t,e.widget.widgetList),add:t=>e.onGridDragAdd(t,e.widget.widgetList),update:e.onGridDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[t("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(n,i){return["container"===n.category?[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{widget:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{field:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?t("div",{staticClass:"grid-col-action"},[t("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),t("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneGridCol(e.widget)}}}),t("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?t("div",{staticClass:"grid-col-handler"},[t("i",[e._v(e._s(e.i18nt("designer.widgetLabel."+e.widget.type)))])]):e._e()],1):e._e()},o=[],r=(n("14d9"),n("b76a")),s=n.n(r),a=n("79fa"),l=n("c029"),c=n("26a6"),d={name:"GridColWidget",componentName:"GridColWidget",mixins:[a["b"],c["a"]],inject:["refList"],components:{Draggable:s.a,...l["a"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,colHeight:{type:String,default:null}},data(){return{layoutProps:{span:this.widget.options.span||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""},colHeightStyle(){return this.colHeight?{height:this.colHeight+"px"}:{}}},watch:{"designer.formConfig.layoutType":{handler(e){this.widget.options.responsive?this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12:this.layoutProps.span=this.widget.options.span||12}},"widget.options.responsive":{handler(e){let t=this.designer.formConfig.layoutType;this.layoutProps.span=e?"H5"===t?this.widget.options.xs||12:"Pad"===t?this.widget.options.sm||12:this.widget.options.md||12:this.widget.options.span||12}},"widget.options.span":{handler(e){this.layoutProps.span=e}},"widget.options.md":{handler(e){this.layoutProps.span=e}},"widget.options.sm":{handler(e){this.layoutProps.span=e}},"widget.options.xs":{handler(e){this.layoutProps.span=e}},"widget.options.offset":{handler(e){this.layoutProps.offset=e}},"widget.options.push":{handler(e){this.layoutProps.push=e}},"widget.options.pull":{handler(e){this.layoutProps.pull=e}}},created(){this.initRefList(),this.initLayoutProps()},methods:{initLayoutProps(){if(this.widget.options.responsive){let e=this.designer.formConfig.layoutType;this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12}else this.layoutProps.spn=this.widget.options.span},onGridDragEnd(e,t){},onGridDragAdd(e,t){const n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",this.widget)},onGridDragUpdate(){this.designer.emitHistoryChange()},selectWidget(e){console.log("id: "+e.id),this.designer.setSelected(e)},checkContainerMove(e){return this.designer.checkWidgetMove(e)},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList)},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList)},cloneGridCol(e){this.designer.cloneGridCol(e,this.parentWidget)},removeWidget(){if(this.parentList){let e=null;1===this.parentList.length?this.parentWidget&&(e=this.parentWidget):e=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(e),this.designer.emitHistoryChange()})}}}},u=d,h=(n("835d"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"07e1e7bf",null);t["default"]=f.exports},f7723:function(e,t,n){var i=n("5692"),o=n("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},f8cd:function(e,t,n){var i=n("5926"),o=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw o("The argument can't be less than 0");return t}},fa85:function(e,t,n){"use strict";n.r(t);n("14d9");var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPushTitle")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.push,callback:function(t){e.$set(e.optionModel,"push",e._n(t))},expression:"optionModel.push"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-push-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"570c4841",null);t["default"]=c.exports},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var i=window.document.currentScript,o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var r=n("bc3a"),s=n.n(r),a=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"main-container full-height"},[e.showTitle("formHeader")?t("el-header",{staticClass:"main-header"},[t("div",{staticClass:"float-left main-title"},[t("img",{attrs:{src:n("d3fb")}}),t("span",{staticClass:"bold"},[e._v("VForm")]),e._v(" "+e._s(e.i18nt("application.productTitle")))])]):e._e(),t("el-container",[t("el-aside",{staticClass:"side-panel"},[t("widget-panel",{attrs:{designer:e.designer}})],1),t("el-container",{staticClass:"center-layout-container"},[t("el-header",{staticClass:"toolbar-header"},[t("toolbar-panel",{ref:"toolbarRef",attrs:{designer:e.designer},scopedSlots:e._u([e._l(e.$slots,(function(t,n){return{key:n,fn:function(){return[e._t(n)]},proxy:!0}}))],null,!0)})],1),t("el-main",{staticClass:"form-widget-main"},[t("el-scrollbar",{staticClass:"container-scroll-bar",style:{height:e.scrollerHeight}},[t("v-form-widget",{ref:"formRef",attrs:{designer:e.designer,"form-config":e.designer.formConfig}})],1)],1)],1),t("el-aside",[t("setting-panel",{attrs:{designer:e.designer,"selected-widget":e.designer.selectedWidget,"form-config":e.designer.formConfig}})],1)],1)],1)},l=[],c=(n("14d9"),function(){var e=this,t=e._self._c;return t("el-scrollbar",{staticClass:"side-scroll-bar",style:{height:e.scrollerHeight}},[t("div",{staticClass:"panel-container"},[t("el-tabs",{staticClass:"no-bottom-margin indent-left-margin",model:{value:e.firstTab,callback:function(t){e.firstTab=t},expression:"firstTab"}},[t("el-tab-pane",{attrs:{name:"componentLib"}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("i",{staticClass:"el-icon-set-up"}),e._v(" "+e._s(e.i18nt("designer.componentLib")))]),t("el-collapse",{staticClass:"widget-collapse",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.containerTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.containers,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:e.checkContainerMove},on:{end:e.onContainerDragEnd}},e._l(e.containers,(function(n,i){return t("li",{key:i,staticClass:"container-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addContainerByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1),t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.basicFieldTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.basicFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.basicFields,(function(n,i){return t("li",{key:i,staticClass:"field-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addFieldByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1),t("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.advancedFieldTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.advancedFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.advancedFields,(function(n,i){return t("li",{key:i,staticClass:"field-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addFieldByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1),t("el-collapse-item",{attrs:{name:"4",title:e.i18nt("designer.customFieldTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.customFields,(function(n,i){return t("li",{key:i,staticClass:"field-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addFieldByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1)],1)],1),e.showFormTemplates()?t("el-tab-pane",{staticStyle:{padding:"8px"},attrs:{name:"formLib"}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("i",{staticClass:"el-icon-c-scale-to-original"}),e._v(" "+e._s(e.i18nt("designer.formLib")))]),e._l(e.formTemplates,(function(n,i){return[t("el-card",{key:i,staticClass:"ft-card",attrs:{"bord-style":{padding:"0"},shadow:"hover"}},[t("el-popover",{attrs:{placement:"right",trigger:"hover"}},[t("img",{staticStyle:{width:"200px"},attrs:{slot:"reference",src:n.imgUrl},slot:"reference"}),t("img",{staticStyle:{height:"600px",width:"720px"},attrs:{src:n.imgUrl}})]),t("div",{staticClass:"bottom clear-fix"},[t("span",{staticClass:"ft-title"},[e._v("#"+e._s(i+1)+" "+e._s(n.title))]),t("el-button",{staticClass:"right-button",attrs:{type:"text"},on:{click:function(t){return e.loadFormTemplate(n.jsonUrl)}}},[e._v(" "+e._s(e.i18nt("designer.hint.loadFormTemplate")))])],1)],1)]}))],2):e._e()],1)],1)])}),d=[],u=n("b76a"),h=n.n(u);const f=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],p=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"el-icon-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:"",onAppendButtonClick:"",prependText:"",appendText:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",fontSize:"13px",customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"<b>html text</b>",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],g=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["pdf","zip","rar","doc","docx","xls","xlsx","png","jpeg","jpg"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",placeholder:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,clearable:!0,filterable:!1,multiple:!1,checkStrictly:!1,showAllLevels:!0,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],m=[];function b(e){f.push(e)}function v(e){m.push(e)}const y=[{title:"单列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"表单模板详细说明..."},{title:"多列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"表单模板详细说明..."},{title:"分组表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"表单模板详细说明..."},{title:"标签页表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"表单模板详细说明..."},{title:"主从表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"表单模板详细说明..."},{title:"响应式表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"表单模板详细说明..."},{title:"问卷调查表",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"表单模板详细说明..."},{title:"固定表格表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"表单模板详细说明..."}];var w=n("ca00"),x=n("79fa"),C=function(){var e=this,t=e._self._c;return t("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":e.iconName}}),e.title?t("title",[e._v(e._s(e.title))]):e._e()])},_=[],k={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName(){return"#icon-"+this.iconClass},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},S=k,O=(n("0a8b"),n("2877")),E=Object(O["a"])(S,C,_,!1,null,"1a7581a2",null),L=E.exports,A={name:"FieldPanel",mixins:[x["b"]],components:{Draggable:h.a,SvgIcon:L},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:f,basicFields:p,advancedFields:g,customFields:m,formTemplates:y}},computed:{},mounted(){this.loadWidgets(),this.scrollerHeight=window.innerHeight-56+"px",Object(w["a"])(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56+"px"})})},methods:{isBanned(e){return this.getBannedWidgets().indexOf(e)>-1},showFormTemplates(){return void 0===this.designerConfig["formTemplates"]||!!this.designerConfig["formTemplates"]},loadWidgets(){this.containers=this.containers.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!e.internal&&!this.isBanned(e.type)),this.basicFields=this.basicFields.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!this.isBanned(e.type)),this.advancedFields=this.advancedFields.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!this.isBanned(e.type)),this.customFields=this.customFields.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!this.isBanned(e.type))},handleContainerWidgetClone(e){return this.designer.copyNewContainerWidget(e)},handleFieldWidgetClone(e){return this.designer.copyNewFieldWidget(e)},checkContainerMove(e){return this.designer.checkWidgetMove(e)},checkFieldMove(e){return this.designer.checkFieldMove(e)},onContainerDragEnd(e){},addContainerByDbClick(e){this.designer.addContainerByDbClick(e)},addFieldByDbClick(e){this.designer.addFieldByDbClick(e)},loadFormTemplate(e){this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{s.a.get(e).then(e=>{let t=!1;"string"===typeof e.data?t=this.designer.loadFormJson(JSON.parse(e.data)):e.data.constructor===Object&&(t=this.designer.loadFormJson(e.data)),t&&this.designer.emitHistoryChange(),this.$message.success(this.i18nt("designer.hint.loadFormTemplateSuccess"))}).catch(e=>{this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed")+":"+e)})}).catch(e=>{console.error(e)})}}},M=A,$=(n("0fdc"),Object(O["a"])(M,c,d,!1,null,"9c43a0f0",null)),T=$.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toolbar-container"},[t("div",{staticClass:"left-toolbar"},[t("el-button",{attrs:{type:"text",disabled:e.undoDisabled,title:e.i18nt("designer.toolbar.undoHint")},on:{click:e.undoHistory}},[t("svg-icon",{attrs:{"icon-class":"undo"}})],1),t("el-button",{attrs:{type:"text",disabled:e.redoDisabled,title:e.i18nt("designer.toolbar.redoHint")},on:{click:e.redoHistory}},[t("svg-icon",{attrs:{"icon-class":"redo"}})],1),t("el-button-group",{staticStyle:{"margin-left":"20px"}},[t("el-button",{attrs:{type:"PC"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("PC")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.pcLayout")))]),t("el-button",{attrs:{type:"Pad"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("Pad")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.padLayout")))]),t("el-button",{attrs:{type:"H5"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("H5")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.mobileLayout")))])],1)],1),t("el-drawer",{staticClass:"node-tree-drawer",attrs:{title:e.i18nt("designer.toolbar.nodeTreeTitle"),direction:"ltr",visible:e.showNodeTreeDrawerFlag,modal:!1,size:280,"destroy-on-close":!0},on:{"update:visible":function(t){e.showNodeTreeDrawerFlag=t}}},[t("el-tree",{ref:"nodeTree",staticClass:"node-tree",attrs:{data:e.nodeTreeData,"node-key":"id","default-expand-all":"","highlight-current":"","icon-class":"el-icon-arrow-right"},on:{"node-click":e.onNodeTreeClick}})],1),t("div",{staticClass:"right-toolbar",style:{width:e.toolbarWidth+"px"}},[t("div",{staticClass:"right-toolbar-con"},[e.showToolButton("clearDesignerButton")?t("el-button",{attrs:{type:"text"},on:{click:e.clearFormWidget}},[t("i",{staticClass:"el-icon-delete"}),e._v(e._s(e.i18nt("designer.toolbar.clear")))]):e._e(),e.showToolButton("previewFormButton")?t("el-button",{attrs:{type:"text"},on:{click:e.previewForm}},[t("i",{staticClass:"el-icon-view"}),e._v(e._s(e.i18nt("designer.toolbar.preview")))]):e._e(),e.showToolButton("importJsonButton")?t("el-button",{attrs:{type:"text"},on:{click:e.importJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.importJson")))]):e._e(),e.showToolButton("exportJsonButton")?t("el-button",{attrs:{type:"text"},on:{click:e.exportJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportJson")))]):e._e(),e.showToolButton("exportCodeButton")?t("el-button",{attrs:{type:"text"},on:{click:e.exportCode}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportCode")))]):e._e(),e.showToolButton("generateSFCButton")?t("el-button",{attrs:{type:"text"},on:{click:e.generateSFC}},[t("svg-icon",{attrs:{"icon-class":"vue-sfc"}}),e._v(e._s(e.i18nt("designer.toolbar.generateSFC")))],1):e._e(),e._l(e.$slots,(function(t,n){return[e._t(n)]}))],2)]),e.showPreviewDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.preview"),visible:e.showPreviewDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,center:"","destroy-on-close":!0,"append-to-body":!0,width:"75%",fullscreen:"H5"===e.layoutType||"Pad"===e.layoutType},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[t("div",[t("div",{staticClass:"form-render-wrapper",class:["H5"===e.layoutType?"h5-layout":"Pad"===e.layoutType?"pad-layout":""]},[t("VFormRender",{ref:"preForm",attrs:{"form-json":e.formJson,"form-data":e.testFormData,"preview-state":!0,"option-data":e.testOptionData},on:{appendButtonClick:e.testOnAppendButtonClick,buttonClick:e.testOnButtonClick,formChange:e.handleFormChange}})],1)]),t("code-editor",{staticStyle:{display:"none"},model:{value:e.testFunc,callback:function(t){e.testFunc=t},expression:"testFunc"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.getFormData}},[e._v(e._s(e.i18nt("designer.hint.getFormData")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.resetForm}},[e._v(e._s(e.i18nt("designer.hint.resetForm")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.setFormDisabled}},[e._v(e._s(e.i18nt("designer.hint.disableForm")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.setFormEnabled}},[e._v(e._s(e.i18nt("designer.hint.enableForm")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showPreviewDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.closePreview")))]),e._e(),e._e(),e._e(),e._e()],1)],1):e._e(),e.showImportJsonDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.importJson"),visible:e.showImportJsonDialogFlag,"show-close":!0,center:"","append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportJsonDialogFlag=t}}},[t("el-alert",{staticClass:"alert-padding",attrs:{type:"info",title:e.i18nt("designer.hint.importJsonHint"),"show-icon":""}}),t("code-editor",{attrs:{mode:"json",readonly:!1},model:{value:e.importTemplate,callback:function(t){e.importTemplate=t},expression:"importTemplate"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.doJsonImport}},[e._v(" "+e._s(e.i18nt("designer.hint.import")))]),t("el-button",{on:{click:function(t){e.showImportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e(),e.showExportJsonDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportJson"),visible:e.showExportJsonDialogFlag,"show-close":!0,center:"","append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportJsonDialogFlag=t}}},[t("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.jsonContent,callback:function(t){e.jsonContent=t},expression:"jsonContent"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-json-btn",attrs:{type:"primary","data-clipboard-text":e.jsonRawContent},on:{click:e.copyFormJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyJson")))]),t("el-button",{on:{click:e.saveFormJson}},[e._v(e._s(e.i18nt("designer.hint.saveFormJson")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showExportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showExportCodeDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportCode"),visible:e.showExportCodeDialogFlag,"show-close":!0,center:"","append-to-body":!0,width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportCodeDialogFlag=t}}},[t("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},[t("el-tab-pane",{attrs:{label:"Vue",name:"vue"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.vueCode,callback:function(t){e.vueCode=t},expression:"vueCode"}})],1),t("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.htmlCode,callback:function(t){e.htmlCode=t},expression:"htmlCode"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-vue-btn",attrs:{type:"primary","data-clipboard-text":e.vueCode},on:{click:e.copyVueCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVueCode")))]),t("el-button",{staticClass:"copy-html-btn",attrs:{type:"primary","data-clipboard-text":e.htmlCode},on:{click:e.copyHtmlCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyHtmlCode")))]),t("el-button",{on:{click:e.saveVueCode}},[e._v(e._s(e.i18nt("designer.hint.saveVueCode")))]),t("el-button",{on:{click:e.saveHtmlCode}},[e._v(e._s(e.i18nt("designer.hint.saveHtmlCode")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showExportCodeDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showFormDataDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"dialog-title-light-bg",attrs:{title:e.i18nt("designer.hint.exportFormData"),visible:e.showFormDataDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"append-to-body":!0},on:{"update:visible":function(t){e.showFormDataDialogFlag=t}}},[t("div",{staticStyle:{border:"1px solid #DCDFE6"}},[t("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.formDataJson,callback:function(t){e.formDataJson=t},expression:"formDataJson"}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-form-data-json-btn",attrs:{type:"primary","data-clipboard-text":e.formDataRawJson},on:{click:e.copyFormDataJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyFormData")))]),t("el-button",{on:{click:e.saveFormData}},[e._v(e._s(e.i18nt("designer.hint.saveFormData")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showFormDataDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)]):e._e(),e.showExportSFCDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.generateSFC"),visible:e.showExportSFCDialogFlag,"show-close":!0,center:"","append-to-body":!0,width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportSFCDialogFlag=t}}},[t("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeSFCTab,callback:function(t){e.activeSFCTab=t},expression:"activeSFCTab"}},[t("el-tab-pane",{attrs:{label:"Vue2",name:"vue2"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCode,callback:function(t){e.sfcCode=t},expression:"sfcCode"}})],1),t("el-tab-pane",{attrs:{label:"Vue3",name:"vue3"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCodeV3,callback:function(t){e.sfcCodeV3=t},expression:"sfcCodeV3"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-vue2-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCode},on:{click:e.copyV2SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue2SFC")))]),t("el-button",{staticClass:"copy-vue3-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCodeV3},on:{click:e.copyV3SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue3SFC")))]),t("el-button",{on:{click:e.saveV2SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue2SFC")))]),t("el-button",{on:{click:e.saveV3SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue3SFC")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showExportSFCDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e()],1)},F=[],j=function(){var e=this,t=e._self._c;return t("el-form",{ref:"renderForm",staticClass:"render-form",class:[e.customClass],attrs:{"label-position":e.labelPosition,size:e.size,"label-width":e.labelWidth,"validate-on-rule-change":!1,model:e.formDataModel},nativeOn:{submit:function(e){e.preventDefault()}}},[e._l(e.widgetList,(function(n,i){return["container"===n.category?[t(e.getContainerWidgetName(n),{key:n.id,tag:"component",attrs:{widget:n,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[t(e.getWidgetName(n),{key:n.id,tag:"component",attrs:{field:n,"form-model":e.formDataModel,designer:null,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)},q=[],I=n("c6e3"),N=n("8bbf"),P=n.n(N);const D=n("10ae");D.keys().map(e=>{let t=D(e).default;P.a.component(t.name,t)});var W=n("c029"),H={name:"VFormRender",componentName:"VFormRender",mixins:[I["a"],x["b"]],components:{...W["a"]},props:{formJson:{type:Object,default:()=>Object(w["b"])()},formData:{type:Object,default:()=>({})},optionData:{type:Object,default:()=>({})},previewState:{type:Boolean,default:!1}},provide(){return{refList:this.widgetRefList,sfRefList:this.subFormRefList,formConfig:this.formConfig,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig(){return this.formJsonObj.formConfig},widgetList(){return this.formJsonObj.widgetList},labelPosition(){return this.formConfig&&this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth(){return this.formConfig&&this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size(){return this.formConfig&&this.formConfig.size?this.formConfig.size:"medium"},customClass(){return this.formConfig&&this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject(e=!0){this.formId="vfRender"+Object(w["e"])(),e&&this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"},getWidgetName(e){return e.type+"-widget"},initLocale(){let e=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(e)},insertCustomStyleAndScriptNode(){this.formConfig&&this.formConfig.cssCode&&Object(w["j"])(this.formConfig.cssCode,this.previewState?"":this.formId),this.formConfig&&this.formConfig.functions&&Object(w["k"])(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel(e){e&&e.length>0&&e.forEach(e=>{this.buildDataFromWidget(e)})},buildDataFromWidget(e){if("container"===e.category)if("grid"===e.type)e.cols&&e.cols.length>0&&e.cols.forEach(e=>{this.buildDataFromWidget(e)});else if("table"===e.type)e.rows&&e.rows.length>0&&e.rows.forEach(e=>{e.cols&&e.cols.length>0&&e.cols.forEach(e=>{this.buildDataFromWidget(e)})});else if("tab"===e.type)e.tabs&&e.tabs.length>0&&e.tabs.forEach(e=>{e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach(e=>{this.buildDataFromWidget(e)})});else if("sub-form"===e.type){let t=e.options.name;if(this.formData.hasOwnProperty(t)){let e=this.formData[t];this.$set(this.formDataModel,t,Object(w["d"])(e))}else{let n={};e.options.showBlankRow?(e.widgetList.forEach(e=>{e.formItemFlag&&(n[e.options.name]=e.options.defaultValue)}),this.$set(this.formDataModel,t,[n])):this.$set(this.formDataModel,t,[])}}else"grid-col"===e.type||e.type,e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach(e=>{this.buildDataFromWidget(e)});else if(e.formItemFlag)if(this.formData.hasOwnProperty(e.options.name)){let t=this.formData[e.options.name];this.$set(this.formDataModel,e.options.name,Object(w["d"])(t))}else this.$set(this.formDataModel,e.options.name,e.options.defaultValue)},addFieldChangeEventHandler(){this.$off("fieldChange"),this.$on("fieldChange",(e,t,n,i,o)=>{this.handleFieldDataChange(e,t,n,i,o),this.$emit("formChange",e,t,n,this.formDataModel,i,o)})},addFieldValidateEventHandler(){this.$off("fieldValidation"),this.$on("fieldValidation",e=>{this.$refs.renderForm.validateField(e)})},registerFormToRefList(){this.widgetRefList["v_form_ref"]=this},handleFieldDataChange(e,t,n,i,o){if(this.formConfig&&this.formConfig.onFormDataChange){let r=new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange);r.call(this,e,t,n,this.formDataModel,i,o)}},handleOnCreated(){if(this.formConfig&&this.formConfig.onFormCreated){let e=new Function(this.formConfig.onFormCreated);e.call(this)}},handleOnMounted(){if(this.formConfig&&this.formConfig.onFormMounted){let e=new Function(this.formConfig.onFormMounted);e.call(this)}},findWidgetAndSetDisabled(e,t){let n=this.getWidgetRef(e);n?n.setDisabled(t):this.findWidgetOfSubFormAndSetDisabled(e,t)},findWidgetOfSubFormAndSetDisabled(e,t){this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.setDisabled(t)})},findWidgetAndSetHidden(e,t){let n=this.getWidgetRef(e);n?n.setHidden(t):this.findWidgetOfSubFormAndSetHidden(e,t)},findWidgetOfSubFormAndSetHidden(e,t){this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.setHidden(t)})},findWidgetNameInSubForm(e){let t=[],n=null,i=(t,i)=>{t.options&&t.options.name===e&&(n=i.options.name)};if(Object(w["s"])(this.widgetList,i),n){let i=this.getWidgetRef(n);if(i){let n=i.getRowIdData();n&&n.length>0&&n.forEach(n=>{t.push(e+"@row"+n)})}}return t},changeLanguage(e){Object(x["a"])(e)},getNativeForm(){return this.$refs["renderForm"]},getFormRef(){return this},getWidgetRef(e,t=!1){let n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},clearFormDataModel(){for(let e in this.formDataModel)delete this.formDataModel[e]},setFormJson(e){if(e)if("string"===typeof e||e.constructor===Object){let t=null;if(t="string"===typeof e?JSON.parse(e):e,!t.formConfig||!t.widgetList)return void this.$message.error("Invalid format of form json.");this.clearFormDataModel(),this.buildFormModel(t.widgetList),this.$set(this.formJsonObj,"formConfig",t.formConfig),this._provided.formConfig=t.formConfig,this.$set(this.formJsonObj,"widgetList",t.widgetList),this.insertCustomStyleAndScriptNode(),this.$nextTick(()=>{this.initFormObject(!1),this.handleOnMounted()})}else this.$message.error("Set form json failed.")},reloadOptionData(e){let t=[];e&&"string"===typeof e?t=[e]:e&&Array.isArray(e)&&(t=[...e]),this.broadcast("FieldWidget","reloadOptionItems",[t])},getFormData(e=!0){if(!e)return this.formDataModel;let t=function(){},n=new window.Promise((function(e,n){t=function(t,i){i?n(i):e(t)}}));return this.$refs["renderForm"].validate(e=>{e?t(this.formDataModel):t(this.formDataModel,this.i18nt("render.hint.validationFailed"))}),n},setFormData(e){Object.keys(this.formDataModel).forEach(t=>{e&&e.hasOwnProperty(t)&&(this.formDataModel[t]=Object(w["d"])(e[t]))}),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue(e){let t=this.getWidgetRef(e);if(t&&t.getValue)return t.getValue();if(!t){let t=[];return this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.getValue&&t.push(n.getValue())}),t}},setFieldValue(e,t){let n=this.getWidgetRef(e);n&&n.setValue&&n.setValue(t),n||this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.setValue&&n.setValue(t)})},getSubFormValues(e,t=!0){let n=this.subFormRefList[e];return n.getSubFormValues(t)},setSubFormValues(e,t){},disableForm(){let e=Object.keys(this.widgetRefList);e.forEach(e=>{let t=this.getWidgetRef(e);t&&(t.widget&&"sub-form"===t.widget.type?t.disableSubForm():t.setDisabled&&t.setDisabled(!0))})},enableForm(){let e=Object.keys(this.widgetRefList);e.forEach(e=>{let t=this.getWidgetRef(e);t&&(t.widget&&"sub-form"===t.widget.type?t.enableSubForm():t.setDisabled&&t.setDisabled(!1))})},resetForm(){let e=Object.keys(this.subFormRefList);e.forEach(e=>{this.subFormRefList[e].resetSubForm&&this.subFormRefList[e].resetSubForm()});let t=Object.keys(this.widgetRefList);t.forEach(e=>{let t=this.getWidgetRef(e);t&&!t.subFormItemFlag&&t.resetField&&t.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate(e){this.$refs.renderForm.clearValidate(e)},validateForm(e){this.$refs["renderForm"].validate(t=>{e(t)})},validateFields(){},disableWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!0):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetDisabled(e,!0)}))},enableWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!1):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetDisabled(e,!1)}))},hideWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!0):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetHidden(e,!0)}))},showWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!1):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetHidden(e,!1)}))},getFieldWidgets(e=null){return e?Object(w["g"])(e):Object(w["g"])(this.formJsonObj.widgetList)},getContainerWidgets(e=null){return e?Object(w["f"])(e):Object(w["f"])(this.formJsonObj.widgetList)},addEC(e,t){this.externalComponents[e]=t},hasEC(e){return this.externalComponents.hasOwnProperty(e)},getEC(e){return this.externalComponents[e]}}},B=H,z=(n("35c4"),Object(O["a"])(B,j,q,!1,null,"7ce25032",null)),V=z.exports,U=n("9470"),G=n("b311"),K=n.n(G);const Y=function(e,t="vue"){let n=JSON.stringify(e);return"html"===t?`<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />\n\t<title>VForm Demo</title>\n\t<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.7/theme-chalk/index.min.css">\n\t<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.css?t=20210720">\n\t<style type="text/css">\n\t</style>\n</head>\n<body>\n\n <div id="app">\n\t <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n\t <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n\n<script type="text/javascript">\n if (!!window.ActiveXObject || "ActiveXObject" in window) { //IE load polyfill.js for Promise\n var scriptEle = document.createElement("script");\n scriptEle.type = "text/javascript";\n scriptEle.src = "https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"\n document.body.appendChild(scriptEle)\n }\n<\/script>\n<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"><\/script>\n<script src="https://cdn.staticfile.org/element-ui/2.15.7/index.min.js"><\/script>\n<script src="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.umd.min.js?t=20210720"><\/script>\n<script>\n\tnew Vue({\n el: '#app',\n data: {\n formJson: ${n},\n formData: {},\n optionData: {}\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then( function(formData) {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch( function(error) {\n // Form Validation Failed\n alert(error)\n })\n }\n }\n\t});\n<\/script>\n</body>\n</html>`:`<template>\n <div>\n <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n</template>\n<script>\n export default {\n data() {\n return {\n formJson: ${n},\n formData: {},\n optionData: {}\n }\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then(formData => {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch(error => {\n // Form Validation failed\n this.$message.error(error)\n })\n }\n }\n }\n<\/script>`};var J=n("71bc"),X=n("01ea");let Z;const Q={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function ee(e){Z?e(Z):Object(w["o"])(X["b"],()=>{Z=beautifier,e(Z)})}const te=function(e,t){let n=[],i=[],o=[],r=[];Object(w["s"])(t,s=>{Object(J["b"])(e,t,n)(s),Object(J["d"])(e,t,i)(s),Object(J["c"])(e,t,o)(s),Object(J["e"])(e,t,r)(s)});const s=Object(J["a"])(e,t),a=` import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'\n \n export default defineComponent({\n components: {},\n props: {},\n setup() {\n const state = reactive({\n ${e.modelName}: {\n ${n.join("\n")}\n },\n \n ${e.rulesName}: {\n ${i.join("\n")}\n },\n \n ${s.join("\n")}\n \n ${o.join("\n")}\n \n ${r.join("\n")}\n })\n \n const instance = getCurrentInstance()\n \n const submitForm = () => {\n instance.proxy.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n }\n \n const resetForm = () => {\n instance.proxy.$refs['vForm'].resetFields()\n }\n \n return {\n ...toRefs(state),\n submitForm,\n resetForm\n }\n }\n })`;return a};function ne(e,t){const n=e.options;let i=[];return t&&i.push(t),n.customClass&&n.customClass.length>0&&i.push(n.customClass.join(" ")),i.length>0?`class="${i.join(" ")}"`:""}const ie={grid:(e,t)=>{const n=ne(e),i=`<el-row ${n}>\n${e.cols.map(e=>{const n=e.options,i=n.responsive?"":`:span="${n.span}"`,o=n.responsive?`:md="${n.md}"`:"",r=n.responsive?`:sm="${n.sm}"`:"",s=n.responsive?`:xs="${n.xs}"`:"",a=n.offset?`:offset="${n.offset}"`:"",l=n.push?`:push="${n.push}"`:"",c=n.pull?`:pull="${n.pull}"`:"",d=ne(e,"grid-cell");return`<el-col ${i} ${o} ${r} ${s} ${a} ${l} ${c} ${d}>\n ${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}\n </el-col>`}).join("")}\n</el-row>`;return i},table:(e,t)=>{const n=ne(e,"table-layout"),i=`<div class="table-container">\n <table ${n}><tbody>\n ${e.rows.map(e=>`<tr>${e.cols.filter(e=>!e.merged).map(e=>{const n=e.options,i=ne(e,"table-cell"),o=isNaN(n.colspan)||1===n.colspan?"":`colspan="${n.colspan}"`,r=isNaN(n.rowspan)||1===n.rowspan?"":`rowspan="${n.rowspan}"`;let s=[];n.cellWidth&&s.push("width: "+n.cellWidth+" !important"),n.cellHeight&&s.push("height: "+n.cellHeight+" !important");let a=s.length>0?`style="${s.join(";")}"`:"";return`<td ${i} ${o} ${r} ${a}>${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}\n </td>`}).join("")}</tr>`).join("")}\n </tbody></table>\n</div>`;return i},tab:(e,t)=>{const n=ne(e),i=e.tabs&&e.tabs.length>0?`v-model="${e.options.name}ActiveTab"`:"",o=`<div class="tab-container">\n <el-tabs ${i} type="${e.displayType}" ${n}>\n ${e.tabs.map(e=>{const n=e.options,i=!0===n.disabled?"disabled":"";return`<el-tab-pane name="${n.name}" label="${n.label}" ${i}>\n ${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}</el-tab-pane>`}).join("")}\n </el-tabs>\n</div>`;return o},"sub-form":(e,t)=>{}};function oe(e,t){return ie[e.type]?ie[e.type](e,t):null}function re(e,t){let n=e.options;return{vModel:`v-model="${t.modelName}.${n.name}"`,readonly:n.readonly?'readonly="true"':"",disabled:n.disabled?':disabled="true"':"",size:n.size?`size="${n.size}"`:"",type:n.type?`type="${"number"===n.type?"text":n.type}"`:"",showPassword:n.showPassword?`:show-password="${n.showPassword}"`:"",placeholder:n.placeholder?`placeholder="${n.placeholder}"`:"",rows:Object(w["m"])(n.rows)&&!isNaN(n.rows)?`rows="${n.rows}"`:"",clearable:n.clearable?"clearable":"",minlength:Object(w["m"])(n.minLength)&&!isNaN(n.minLength)?`:minlength="${n.minLength}"`:"",maxlength:Object(w["m"])(n.maxLength)&&!isNaN(n.maxLength)?`:maxlength="${n.maxLength}"`:"",showWordLimit:n.showWordLimit?':show-word-limit="true"':"",prefixIcon:n.prefixIcon?`prefix-icon="${n.prefixIcon}"`:"",suffixIcon:n.suffixIcon?`suffix-icon="${n.suffixIcon}"`:"",controlsPosition:"right"===n.controlsPosition?'controls-position="right"':"",min:Object(w["m"])(n.min)&&!isNaN(n.min)?`:min="${n.min}"`:"",max:Object(w["m"])(n.max)&&!isNaN(n.max)?`:max="${n.max}"`:"",precision:Object(w["m"])(n.precision)&&!isNaN(n.precision)?`:precision="${n.precision}"`:"",step:Object(w["m"])(n.step)&&!isNaN(n.step)?`:step="${n.step}"`:"",filterable:n.filterable?"filterable":"",allowCreate:n.allowCreate?"allow-create":"",defaultFirstOption:n.filterable&&n.allowCreate?"default-first-option":"",multiple:n.multiple?"multiple":"",multipleLimit:!isNaN(n.multipleLimit)&&n.multipleLimit>0?`:multiple-limit="${n.multipleLimit}"`:"",automaticDropdown:n.automaticDropdown?"automatic-dropdown":"",remote:n.remote?"remote":"",format:n.format?`format="${n.format}"`:"",valueFormat:n.valueFormat?`value-format="${n.valueFormat}"`:"",editable:n.editable?`:editable="${n.editable}"`:"",startPlaceholder:n.startPlaceholder?`start-placeholder="${n.startPlaceholder}"`:"",endPlaceholder:n.endPlaceholder?`end-placeholder="${n.endPlaceholder}"`:"",activeText:n.activeText?`active-text="${n.activeText}"`:"",inactiveText:n.inactiveText?`inactive-text="${n.inactiveText}"`:"",activeColor:n.activeColor?`active-color="${n.activeColor}"`:"",inactiveColor:n.inactiveColor?`inactive-color="${n.inactiveColor}"`:"",switchWidth:isNaN(n.switchWidth)||40===n.switchWidth?"":`:width="${n.switchWidth}"`,rateMax:isNaN(n.max)||5===n.max?"":`:max="${n.max}"`,lowThreshold:isNaN(n.lowThreshold)||2===n.lowThreshold?"":`:low-threshold="${n.lowThreshold}"`,highThreshold:isNaN(n.highThreshold)||4===n.highThreshold?"":`:high-threshold="${n.highThreshold}"`,allowHalf:n.allowHalf?"allow-half":"",showText:n.showText?"show-text":"",showScore:n.showScore?"show-score":"",sliderMin:isNaN(n.min)||0===n.min?"":`:min="${n.min}"`,sliderMax:isNaN(n.max)||100===n.max?"":`:max="${n.max}"`,sliderStep:isNaN(n.step)||1===n.step?"":`:step="${n.step}"`,sliderRange:n.range?"range":"",sliderVertical:n.vertical?"vertical":"",uploadAction:n.uploadURL?`action="${n.uploadURL}"`:"",withCredentials:n.withCredentials?"with-credentials":"",multipleSelect:n.multipleSelect?"multiple":"",showFileList:n.showFileList?"show-file-list":"",limit:isNaN(n.limit)?"":`:limit="${n.limit}"`,uploadTipSlotChild:n.uploadTip?`<template #tip><div class="el-upload__tip">${n.uploadTip}</div></template>`:"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:n.type?`type="${n.type}"`:"",buttonPlain:n.plain?"plain":"",buttonRound:n.round?"round":"",buttonCircle:n.circle?"circle":"",buttonIcon:n.icon?`icon="${n.icon}"`:"",contentPosition:n.contentPosition&&"center"!==n.contentPosition?`content-position="${n.contentPosition}"`:"",appendButtonChild:n.appendButton?`<template #append><el-button class="${n.buttonIcon}" ${n.appendButtonDisabled?"disabled":""}></el-button></template>`:""}}function se(e,t){let n=e.options;const i=n.buttonStyle?"el-radio-button":"el-radio",o=n.border?"border":"",r=`style="{display: ${n.displayStyle}}"`;return`<${i} v-for="(item, index) in ${n.name}Options" :key="index" :label="item.value"\n :disabled="item.disabled" ${o} ${r}>{{item.label}}</${i}>`}function ae(e,t){let n=e.options;const i=n.buttonStyle?"el-checkbox-button":"el-checkbox",o=n.border?"border":"",r=`style="{display: ${n.displayStyle}}"`;return`<${i} v-for="(item, index) in ${n.name}Options" :key="index" :label="item.value"\n :disabled="item.disabled" ${o} ${r}>{{item.label}}</${i}>`}function le(e,t){let n=e.options;const i="el-option";return`<${i} v-for="(item, index) in ${n.name}Options" :key="index" :label="item.label"\n :value="item.value" :disabled="item.disabled"></${i}>`}const ce={input:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,showPassword:a,placeholder:l,clearable:c,minlength:d,maxlength:u,showWordLimit:h,prefixIcon:f,suffixIcon:p,appendButtonChild:g}=re(e,t);return`<el-input ${n} ${i} ${o} ${r} ${s} ${a} ${l} ${c}\n ${d} ${u} ${h} ${f} ${p}>${g}</el-input>`},textarea:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,showPassword:a,placeholder:l,rows:c,clearable:d,minlength:u,maxlength:h,showWordLimit:f}=re(e,t);return`<el-input type="textarea" ${n} ${i} ${o} ${r} ${s} ${a} ${l}\n ${c} ${d} ${u} ${h} ${f}></el-input>`},number:(e,t)=>{const{vModel:n,disabled:i,size:o,type:r,showPassword:s,placeholder:a,controlsPosition:l,min:c,max:d,precision:u,step:h}=re(e,t);return`<el-input-number ${n} class="full-width-input" ${i} ${o} ${r} ${s}\n ${a} ${l} ${c} ${d} ${u} ${h}></el-input-number>`},radio:(e,t)=>{const{vModel:n,disabled:i,size:o}=re(e,t),r=se(e,t);return`<el-radio-group ${n} ${i} ${o}>${r}</el-radio-group>`},checkbox:(e,t)=>{const{vModel:n,disabled:i,size:o}=re(e,t),r=ae(e,t);return`<el-checkbox-group ${n} ${i} ${o}>${r}</el-checkbox-group>`},select:(e,t)=>{const{vModel:n,disabled:i,size:o,clearable:r,filterable:s,allowCreate:a,defaultFirstOption:l,automaticDropdown:c,multiple:d,multipleLimit:u,remote:h,placeholder:f}=re(e,t),p=le(e,t);return`<el-select ${n} class="full-width-input" ${i} ${o} ${r} ${s}\n ${a} ${l} ${c} ${d} ${u} ${f}\n ${h}>${p}</el-select>`},time:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,placeholder:s,clearable:a,format:l,editable:c}=re(e,t);return`<el-time-picker ${n} class="full-width-input" ${i} ${o} ${r} ${l}\n value-format="HH:mm:ss" ${s} ${a} ${c}></el-time-picker>`},"time-range":(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,startPlaceholder:s,endPlaceholder:a,clearable:l,format:c,editable:d}=re(e,t);return`<el-time-picker is-range ${n} class="full-width-input" ${i} ${o} ${r} ${c}\n value-format="HH:mm:ss" ${s} ${a} ${l} ${d}></el-time-picker>`},date:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,placeholder:a,clearable:l,format:c,valueFormat:d,editable:u}=re(e,t);return`<el-date-picker ${n} ${s} class="full-width-input" ${i} ${o} ${r} ${c}\n ${d} ${a} ${l} ${u}></el-date-picker>`},"date-range":(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,startPlaceholder:a,endPlaceholder:l,clearable:c,format:d,valueFormat:u,editable:h}=re(e,t);return`<el-date-picker is-range ${n} ${s} class="full-width-input" ${i} ${o} ${r} ${d}\n ${u} ${a} ${l} ${c} ${h}></el-date-picker>`},switch:(e,t)=>{const{vModel:n,disabled:i,activeText:o,inactiveText:r,activeColor:s,inactiveColor:a,switchWidth:l}=re(e,t);return`<el-switch ${n} ${i} ${o} ${r} ${s} ${a}\n ${l}></el-switch>`},rate:(e,t)=>{const{vModel:n,disabled:i,rateMax:o,lowThreshold:r,highThreshold:s,allowHalf:a,showText:l,showScore:c}=re(e,t);return`<el-rate ${n} ${i} ${o} ${r} ${s} ${a}\n ${l} ${c}></el-rate>`},color:(e,t)=>{const{vModel:n,disabled:i,size:o}=re(e,t);return`<el-color-picker ${n} ${i} ${o}></el-color-picker>`},slider:(e,t)=>{const{vModel:n,disabled:i,sliderMin:o,sliderMax:r,sliderStep:s,sliderRange:a,sliderVertical:l}=re(e,t);return`<el-slider ${n} ${i} ${o} ${r} ${s} ${a}\n ${l}></el-slider>`},"picture-upload":(e,t)=>{const{vModel:n,disabled:i,uploadAction:o,withCredentials:r,multipleSelect:s,showFileList:a,limit:l,uploadTipSlotChild:c,pictureUploadIconChild:d}=re(e,t);let u=e.options;return`<el-upload :file-list="${u.name}FileList" :headers="${u.name}UploadHeaders" :data="${u.name}UploadData" \n ${i} ${o} list-type="picture-card" ${r} ${s} ${a} \n ${l}>${c} ${d}</el-upload>`},"file-upload":(e,t)=>{const{vModel:n,disabled:i,uploadAction:o,withCredentials:r,multipleSelect:s,showFileList:a,limit:l,uploadTipSlotChild:c,fileUploadIconChild:d}=re(e,t);let u=e.options;return`<el-upload :file-list="${u.name}FileList" :headers="${u.name}UploadHeaders" :data="${u.name}UploadData" \n ${i} ${o} list-type="picture-card" ${r} ${s} ${a} \n ${l}>${c} ${d}</el-upload>`},"rich-editor":(e,t)=>{const{vModel:n,disabled:i,placeholder:o}=re(e,t);return`<vue-editor ${n} ${i} ${o}></vue-editor>`},cascader:(e,t)=>{const{vModel:n,disabled:i,size:o,clearable:r,filterable:s,placeholder:a}=re(e,t);let l=e.options;const c=`:options="${l.name}Options"`;return`<el-cascader ${n} class="full-width-input" ${c} ${i} ${o} ${r}\n ${s} ${a}></el-cascader>`},"static-text":(e,t)=>`<div>${e.options.textContent}</div>`,"html-text":(e,t)=>`<div v-html="${e.options.htmlContent}"></div>`,button:(e,t)=>{const{buttonType:n,buttonPlain:i,buttonRound:o,buttonCircle:r,buttonIcon:s,disabled:a}=re(e,t);return`<el-button ${n} ${i} ${o} ${r} ${s}\n ${a}>${e.options.label}</el-button>`},divider:(e,t)=>{const{contentPosition:n}=re(e,t);return`<el-divider direction="horizontal" ${n}></el-divider>`}};function de(e,t){let n=e.options;const i=n.labelHidden?"":n.label,o=n.labelHidden?'label-width="0"':n.labelWidth?`label-width="${n.labelWidth}px"`:"",r=n.labelTooltip?`title="${n.labelTooltip}"`:"",s=`prop="${n.name}"`;let a=[];n.required&&a.push("required"),n.customClass&&n.customClass.length>0&&a.push(n.customClass.join(" ")),n.labelAlign?"label-left-align"!==n.labelAlign&&a.push(n.labelAlign):e.formItemFlag&&"label-left-align"!==t.labelAlign&&a.push(t.labelAlign),e.formItemFlag||a.push("static-content-item");const l=a.length>0?`class="${a.join(" ")}"`:"";let c=`<template #label><span class="custom-label">${"front"===n.labelIconPosition?n.labelTooltip?`<el-tooltip content="${n.labelTooltip}" effect="light"><i class="${n.labelIconClass}"></i></el-tooltip>${n.label}`:`<i class="${n.labelIconClass}"></i>${n.label}`:n.labelTooltip?`${n.label}<el-tooltip content="${n.labelTooltip}" effect="light"><i class="${n.labelIconClass}"></i></el-tooltip>`:`${n.label}<i class="${n.labelIconClass}"></i>`}\n</span></template>`;!n.labelIconClass&&(c="");const d=ce[e.type]?ce[e.type](e,t):null,u=!!e.formItemFlag,h=n.hidden?'v-show="false"':"";return u?`<el-form-item label="${i}" ${o} ${r} ${s} ${l}>\n ${c}\n ${d}\n</el-form-item>`:`<div ${l} ${h}>${d}</div>`}function ue(e,t,n=!1){const i=n?"@submit.prevent":"@submit.native.prevent";let o=[];t.forEach(t=>{"container"===t.category?o.push(oe(t,e)):o.push(de(t,e))});const r=` <el-form :model="${e.modelName}" ref="${e.refName}" :rules="${e.rulesName}"\n label-position="${e.labelPosition}" label-width="${e.labelWidth}px" size="${e.size||"medium"}"\n ${i}>\n ${o?o.join("\n"):""}\n</el-form>`;return r}const he=function(e){const t=' .el-input-number.full-width-input, .el-cascader.full-width-input {\n width: 100% !important;\n }\n \n .el-form-item--medium {\n .el-radio {\n line-height: 36px !important;\n }\n \n .el-rate{\n margin-top: 8px;\n }\n }\n\n .el-form-item--small {\n .el-radio {\n line-height: 32px !important;\n }\n \n .el-rate{\n margin-top: 6px;\n }\n }\n\n .el-form-item--mini {\n .el-radio {\n line-height: 28px !important;\n }\n \n .el-rate{\n margin-top: 4px;\n }\n }\n \n .clear-fix:before, .clear-fix:after {\n display: table;\n content: "";\n }\n\n .clear-fix:after {\n clear: both;\n }\n\n .float-right {\n float: right;\n }\n\n'+e.cssCode;return t},fe=function(e,t=!1){const n=` div.table-container {\n table.table-layout {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n \n td.table-cell {\n display: table-cell;\n height: 36px;\n border: 1px solid #e1e2e3;\n }\n }\n }\n \n div.tab-container {\n }\n \n .label-left-align ${t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {\n text-align: left;\n }\n\n .label-center-align ${t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {\n text-align: center;\n }\n\n .label-right-align ${t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {\n text-align: right;\n }\n \n .custom-label {\n }\n \n .static-content-item {\n min-height: 20px;\n display: flex;\n align-items: center;\n\n ${t?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"} {\n margin: 0;\n }\n }`;return n},pe=function(e,t){ie[e]=t},ge=function(e,t){ce[e]=t},me=function(e,t,n,i=!1){const o=n.html(ue(e,t,i),Q.html),r=n.js(i?te(e,t):Object(J["f"])(e,t),Q.js),s=n.css(he(e),Q.css),a=n.css(fe(e,i),Q.css);return`\x3c!-- \nCodes Generated By VForm:\nhttps://www.vform666.com\n--\x3e\n\n<template>\n${o}\n</template>\n\n<script>\n${r}\n<\/script>\n\n<style lang="scss">\n${s}\n</style>\n\n<style lang="scss" scoped>\n${a}\n</style>`};var be=n("21a6"),ve={name:"ToolbarPanel",mixins:[x["b"]],components:{VFormRender:V,CodeEditor:U["a"],Clipboard:K.a,SvgIcon:L},props:{designer:Object},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),toolbarWidth:420,showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],testFunc:"",importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}],select001:[{label:"辣椒",value:1},{label:"菠萝",value:2},{label:"丑橘子",value:3}]}}},computed:{formJson(){return{widgetList:Object(w["d"])(this.designer.widgetList),formConfig:Object(w["d"])(this.designer.formConfig)}},undoDisabled(){return!this.designer.undoEnabled()},redoDisabled(){return!this.designer.redoEnabled()},layoutType(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler(e){}}},mounted(){let e=this.designerConfig.toolbarMaxWidth||420,t=this.designerConfig.toolbarMinWidth||300,n=window.innerWidth-260-300-320-80;this.toolbarWidth=n>=e?e:n<=t?t:n,Object(w["a"])(()=>{this.$nextTick(()=>{let n=window.innerWidth-260-300-320-80;this.toolbarWidth=n>=e?e:n<=t?t:n})})},methods:{showToolButton(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},buildTreeNodeOfWidget(e,t){let n={id:e.id,label:e.options.label||e.type};t.push(n),void 0!==e.category&&(n.children=[],"grid"===e.type?e.cols.map(t=>{let i={id:t.id,label:t.options.name||e.type,children:[]};n.children.push(i),t.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,i.children)})}):"table"===e.type?e.rows.map(e=>{let t={id:e.id,label:"table-row",selectable:!1,children:[]};n.children.push(t),e.cols.map(e=>{if(e.merged)return;let n=t.children,i={id:e.id,label:"table-cell",children:[]};n.push(i),e.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,i.children)})})}):"tab"===e.type?e.tabs.map(t=>{let i={id:t.id,label:t.options.name||e.type,selectable:!1,children:[]};n.children.push(i),t.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,i.children)})}):("sub-form"===e.type||"container"===e.category)&&e.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,n.children)}))},refreshNodeTree(){this.nodeTreeData.length=0,this.designer.widgetList.forEach(e=>{this.buildTreeNodeOfWidget(e,this.nodeTreeData)})},showNodeTreeDrawer(){this.refreshNodeTree(),this.showNodeTreeDrawerFlag=!0,this.$nextTick(()=>{this.designer.selectedId&&this.$refs.nodeTree.setCurrentKey(this.designer.selectedId)})},undoHistory(){this.designer.undoHistoryStep()},redoHistory(){this.designer.redoHistoryStep()},changeLayoutType(e){this.designer.changeLayoutType(e)},clearFormWidget(){this.designer.clearDesigner()},previewForm(){this.showPreviewDialogFlag=!0},saveAsFile(e,t){this.$prompt(this.i18nt("designer.hint.fileNameForSave"),this.i18nt("designer.hint.saveFileTitle"),{inputValue:t,closeOnClickModal:!1,inputPlaceholder:this.i18nt("designer.hint.fileNameInputPlaceholder")}).then(({value:n})=>{if(n||(n=t),1==Object(w["i"])("vscode"))return void this.vsSaveFile(n,e);const i=new Blob([e],{type:"text/plain;charset=utf-8"});Object(be["saveAs"])(i,n)}).catch(()=>{})},vsSaveFile(e,t){const n={cmd:"writeFile",data:{fileName:e,code:t}};window.parent.postMessage(n,"*")},importJson(){this.importTemplate=JSON.stringify(this.designer.getImportTemplate(),null," "),this.showImportJsonDialogFlag=!0},doJsonImport(){try{let e=JSON.parse(this.importTemplate);this.designer.loadFormJson(e),this.showImportJsonDialogFlag=!1,this.$message.success(this.i18nt("designer.hint.importJsonSuccess")),this.designer.emitHistoryChange(),this.designer.emitEvent("form-json-imported",[])}catch(e){this.$message.error(e+"")}},exportJson(){let e=Object(w["d"])(this.designer.widgetList),t=Object(w["d"])(this.designer.formConfig);this.jsonContent=JSON.stringify({widgetList:e,formConfig:t},null," "),this.jsonRawContent=JSON.stringify({widgetList:e,formConfig:t}),this.showExportJsonDialogFlag=!0},copyFormJson(e){Object(w["c"])(this.jsonRawContent,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormJson(){this.saveAsFile(this.jsonContent,`vform${Object(w["e"])()}.json`)},exportCode(){this.vueCode=Y(this.formJson),this.htmlCode=Y(this.formJson,"html"),this.showExportCodeDialogFlag=!0},copyVueCode(e){Object(w["c"])(this.vueCode,e,this.$message,this.i18nt("designer.hint.copyVueCodeSuccess"),this.i18nt("designer.hint.copyVueCodeFail"))},copyHtmlCode(e){Object(w["c"])(this.htmlCode,e,this.$message,this.i18nt("designer.hint.copyHtmlCodeSuccess"),this.i18nt("designer.hint.copyHtmlCodeFail"))},saveVueCode(){this.saveAsFile(this.vueCode,`vform${Object(w["e"])()}.vue`)},saveHtmlCode(){this.saveAsFile(this.htmlCode,`vform${Object(w["e"])()}.html`)},generateSFC(){ee(e=>{this.sfcCode=me(this.designer.formConfig,this.designer.widgetList,e),this.sfcCodeV3=me(this.designer.formConfig,this.designer.widgetList,e,!0),this.showExportSFCDialogFlag=!0})},copyV2SFC(e){Object(w["c"])(this.sfcCode,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},copyV3SFC(e){Object(w["c"])(this.sfcCodeV3,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},saveV2SFC(){this.saveAsFile(this.sfcCode,`vformV2-${Object(w["e"])()}.vue`)},saveV3SFC(){this.saveAsFile(this.sfcCodeV3,`vformV3-${Object(w["e"])()}.vue`)},getFormData(){this.$refs["preForm"].getFormData().then(e=>{this.formDataJson=JSON.stringify(e,null," "),this.formDataRawJson=JSON.stringify(e),this.showFormDataDialogFlag=!0}).catch(e=>{this.$message.error(e)})},copyFormDataJson(e){Object(w["c"])(this.formDataRawJson,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormData(){this.saveAsFile(this.htmlCode,`formData${Object(w["e"])()}.json`)},resetForm(){this.$refs["preForm"].resetForm()},setFormDisabled(){this.$refs["preForm"].disableForm()},setFormEnabled(){this.$refs["preForm"].enableForm()},printFormJson(){let e={widgetList:Object(w["d"])(this.designer.widgetList),formConfig:Object(w["d"])(this.designer.formConfig)};console.log(e)},testValidate(){console.log("test===",this.$refs["preForm"].validateForm())},testSetFormData(){let e={checkbox45524:[1,2]};this.$refs["preForm"].setFormData(e)},testReloadOptionData(){this.testOptionData["select001"].push({label:"aaa",value:888}),this.$refs.preForm.reloadOptionData("select001")},handleFormChange(e,t,n,i){},testOnAppendButtonClick(e){console.log("test",e)},testOnButtonClick(e){console.log("test",e)},findWidgetById(e){let t=null;return Object(w["q"])(this.designer.widgetList,n=>{n.id===e&&(t=n)}),t},onNodeTreeClick(e,t,n){if(void 0===e.selectable||e.selectable){const t=e.id,n=this.findWidgetById(t);n&&this.designer.setSelected(n)}else this.$message.info(this.i18nt("designer.hint.currentNodeCannotBeSelected"))}}},ye=ve,we=(n("7cad"),Object(O["a"])(ye,R,F,!1,null,"7cfa9630",null)),xe=we.exports,Ce=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"panel-container"},[t("el-tabs",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"active-name":e.activeTab}},[t("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.widgetSetting"),name:"1"}},[t("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[e.designer.selectedWidget&&!e.designer.selectedWidget.category?[t("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?t("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e(),e.designer.selectedWidget&&e.designer.selectedWidget.category?[t("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?t("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e()],2)],1),e.designer?t("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.formSetting"),name:"2"}},[t("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[t("form-setting",{attrs:{designer:e.designer,"form-config":e.formConfig}})],1)],1):e._e()],1),e.showWidgetEventDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editWidgetEventHandler"),visible:e.showWidgetEventDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showWidgetEventDialogFlag=t}}},[t("el-alert",{attrs:{type:"info",closable:!1,title:e.eventHeader}}),t("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.eventHandlerCode,callback:function(t){e.eventHandlerCode=t},expression:"eventHandlerCode"}}),t("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showWidgetEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},_e=[];const ke=n("0654");let Se={};ke.keys().map(e=>{let t=ke(e).default;Se[t.name]=t});var Oe=Se,Ee=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{staticClass:"setting-form",attrs:{model:e.formConfig,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-collapse",{staticClass:"setting-collapse",model:{value:e.formActiveCollapseNames,callback:function(t){e.formActiveCollapseNames=t},expression:"formActiveCollapseNames"}},[t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.basicSetting")}},[t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formSize")}},[t("el-select",{model:{value:e.formConfig.size,callback:function(t){e.$set(e.formConfig,"size",t)},expression:"formConfig.size"}},e._l(e.formSizes,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelPosition")}},[t("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelPosition,callback:function(t){e.$set(e.formConfig,"labelPosition",t)},expression:"formConfig.labelPosition"}},[t("el-radio-button",{attrs:{label:"left"}},[e._v(e._s(e.i18nt("designer.setting.leftPosition")))]),t("el-radio-button",{attrs:{label:"top"}},[e._v(e._s(e.i18nt("designer.setting.topPosition")))])],1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[t("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelAlign,callback:function(t){e.$set(e.formConfig,"labelAlign",t)},expression:"formConfig.labelAlign"}},[t("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(e._s(e.i18nt("designer.setting.leftAlign")))]),t("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(e._s(e.i18nt("designer.setting.centerAlign")))]),t("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.formConfig.labelWidth,callback:function(t){e.$set(e.formConfig,"labelWidth",t)},expression:"formConfig.labelWidth"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formCss")}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editFormCss}},[e._v(e._s(e.i18nt("designer.setting.addCss")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[t("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.formConfig.customClass,callback:function(t){e.$set(e.formConfig,"customClass",t)},expression:"formConfig.customClass"}},e._l(e.cssClassList,(function(e,n){return t("el-option",{key:n,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.globalFunctions")}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editGlobalFunctions}},[e._v(e._s(e.i18nt("designer.setting.addEventHandler")))])],1),t("el-form-item",{attrs:{"label-width":"0"}},[t("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.formSFCSetting")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formModelName")}},[t("el-input",{attrs:{type:"text"},model:{value:e.formConfig.modelName,callback:function(t){e.$set(e.formConfig,"modelName",t)},expression:"formConfig.modelName"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRefName")}},[t("el-input",{attrs:{type:"text"},model:{value:e.formConfig.refName,callback:function(t){e.$set(e.formConfig,"refName",t)},expression:"formConfig.refName"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRulesName")}},[t("el-input",{attrs:{type:"text"},model:{value:e.formConfig.rulesName,callback:function(t){e.$set(e.formConfig,"rulesName",t)},expression:"formConfig.rulesName"}})],1)],1),e.showEventCollapse()?t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.eventSetting")}},[t("el-form-item",{attrs:{label:"onFormCreated","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormCreated")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),t("el-form-item",{attrs:{label:"onFormMounted","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormMounted")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),t("el-form-item",{attrs:{label:"onFormDataChange","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormDataChange")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)],1):e._e()],1)],1),e.showFormEventDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editFormEventHandler"),visible:e.showFormEventDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showFormEventDialogFlag=t}}},[t("el-alert",{attrs:{type:"info",closable:!1,title:"form."+e.eventParamsMap[e.curEventName]}}),t("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.formEventHandlerCode,callback:function(t){e.formEventHandlerCode=t},expression:"formEventHandlerCode"}}),t("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showFormEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveFormEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFormCssDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.formCss"),visible:e.showEditFormCssDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFormCssDialogFlag=t}}},[t("code-editor",{attrs:{mode:"css",readonly:!1},model:{value:e.formCssCode,callback:function(t){e.formCssCode=t},expression:"formCssCode"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showEditFormCssDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveFormCss}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFunctionsDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.globalFunctions"),visible:e.showEditFunctionsDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFunctionsDialogFlag=t}}},[t("code-editor",{ref:"gfEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.functionsCode,callback:function(t){e.functionsCode=t},expression:"functionsCode"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showEditFunctionsDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveGlobalFunctions}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},Le=[],Ae={name:"form-setting",mixins:[x["b"]],components:{CodeEditor:U["a"]},props:{designer:Object,formConfig:Object},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),formActiveCollapseNames:["1","2"],formSizes:[{label:"default",value:""},{label:"large",value:"large"},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}],showEditFormCssDialogFlag:!1,formCssCode:"",cssClassList:[],showEditFunctionsDialogFlag:!1,functionsCode:"",showFormEventDialogFlag:!1,formEventHandlerCode:"",curEventName:"",eventParamsMap:{onFormCreated:"onFormCreated() {",onFormMounted:"onFormMounted() {",onFormDataChange:"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"}}},created(){this.designer.handleEvent("form-json-imported",()=>{this.formCssCode=this.formConfig.cssCode,Object(w["j"])(this.formCssCode),this.extractCssClass(),this.designer.emitEvent("form-css-updated",Object(w["d"])(this.cssClassList))})},mounted(){setTimeout(()=>{this.formCssCode=this.formConfig.cssCode,Object(w["j"])(this.formCssCode),this.extractCssClass(),this.designer.emitEvent("form-css-updated",Object(w["d"])(this.cssClassList))},1200)},methods:{showEventCollapse(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},editFormCss(){this.formCssCode=this.designer.formConfig.cssCode,this.showEditFormCssDialogFlag=!0},extractCssClass(){let e=/\..*{/g,t=this.formCssCode.match(e),n=[];t&&t.length>0&&t.forEach(e=>{let t=e.split(",");t.length>0&&t.forEach(e=>{let t=e.trim();if(-1!==t.indexOf(".",1)){let e=t.substring(t.indexOf(".")+1,t.indexOf(".",1));e&&n.push(e.trim())}else if(-1!==t.indexOf(" ")){let e=t.substring(t.indexOf(".")+1,t.indexOf(" "));e&&n.push(e.trim())}else if(-1!==t.indexOf("{")){let e=t.substring(t.indexOf(".")+1,t.indexOf("{"));n.push(e.trim())}else{let e=t.substring(t.indexOf(".")+1);n.push(e.trim())}})}),this.cssClassList.splice(0,this.cssClassList.length),this.cssClassList=Array.from(new Set(n))},saveFormCss(){this.extractCssClass(),this.designer.formConfig.cssCode=this.formCssCode,Object(w["j"])(this.formCssCode),this.showEditFormCssDialogFlag=!1,this.designer.emitEvent("form-css-updated",Object(w["d"])(this.cssClassList))},editGlobalFunctions(){this.functionsCode=this.designer.formConfig.functions,this.showEditFunctionsDialogFlag=!0},saveGlobalFunctions(){const e=this.$refs.gfEditor.getEditorAnnotations();let t=!1;e&&e.length>0&&(e.forEach(e=>{"error"===e.type&&(t=!0)}),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.designer.formConfig.functions=this.functionsCode,Object(w["k"])(this.functionsCode),this.showEditFunctionsDialogFlag=!1)},editFormEventHandler(e){this.curEventName=e,this.formEventHandlerCode=this.formConfig[e],this.showFormEventDialogFlag=!0},saveFormEventHandler(){const e=this.$refs.ecEditor.getEditorAnnotations();let t=!1;e&&e.length>0&&(e.forEach(e=>{"error"===e.type&&(t=!0)}),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.formConfig[this.curEventName]=this.formEventHandlerCode,this.showFormEventDialogFlag=!1)}}},Me=Ae,$e=(n("8b48"),Object(O["a"])(Me,Ee,Le,!1,null,"43567e9b",null)),Te=$e.exports;const Re={name:"name-editor",label:"label-editor",labelAlign:"labelAlign-editor",type:"type-editor",defaultValue:"defaultValue-editor",placeholder:"placeholder-editor",startPlaceholder:"startPlaceholder-editor",endPlaceholder:"endPlaceholder-editor",columnWidth:"columnWidth-editor",size:"size-editor",showStops:"showStops-editor",displayStyle:"displayStyle-editor",buttonStyle:"buttonStyle-editor",border:"border-editor",labelWidth:"labelWidth-editor",prependText:"prependText-editor",appendText:"appendText-editor",labelHidden:"labelHidden-editor",rows:"rows-editor",required:"required-editor",requiredHint:"requiredHint-editor",validation:"validation-editor",validationHint:"validationHint-editor",readonly:"readonly-editor",disabled:"disabled-editor",hidden:"hidden-editor",clearable:"clearable-editor",editable:"editable-editor",showPassword:"showPassword-editor",textContent:"textContent-editor",fontSize:"fontSize-editor",htmlContent:"htmlContent-editor",format:"format-editor",valueFormat:"valueFormat-editor",filterable:"filterable-editor",allowCreate:"allowCreate-editor",remote:"remote-editor",automaticDropdown:"automaticDropdown-editor",checkStrictly:"checkStrictly-editor",showAllLevels:"showAllLevels-editor",multiple:"multiple-editor",multipleLimit:"multipleLimit-editor",contentPosition:"contentPosition-editor",optionItems:"optionItems-editor",uploadURL:"uploadURL-editor",uploadTip:"uploadTip-editor",withCredentials:"withCredentials-editor",multipleSelect:"multipleSelect-editor",limit:"limit-editor",fileMaxSize:"fileMaxSize-editor",fileTypes:"fileTypes-editor",customClass:"customClass-editor",showBlankRow:"showBlankRow-editor",showRowNumber:"showRowNumber-editor",cellWidth:"cellWidth-editor",cellHeight:"cellHeight-editor",colHeight:"colHeight-editor",gutter:"gutter-editor",responsive:"responsive-editor",span:"span-editor",offset:"offset-editor",push:"push-editor",pull:"pull-editor"},Fe={min:"min-editor",max:"max-editor",precision:"precision-editor",step:"step-editor",controlsPosition:"controlsPosition-editor",minLength:"minLength-editor",maxLength:"maxLength-editor",showWordLimit:"showWordLimit-editor",prefixIcon:"prefixIcon-editor",suffixIcon:"suffixIcon-editor",switchWidth:"switchWidth-editor",activeText:"activeText-editor",inactiveText:"inactiveText-editor",activeColor:"activeColor-editor",inactiveColor:"inactiveColor-editor",lowThreshold:"lowThreshold-editor",highThreshold:"highThreshold-editor",allowHalf:"allowHalf-editor",showText:"showText-editor",showScore:"showScore-editor",range:"range-editor",vertical:"vertical-editor",plain:"plain-editor",round:"round-editor",circle:"circle-editor",icon:"icon-editor",labelIconClass:"labelIconClass-editor",labelIconPosition:"labelIconPosition-editor",labelTooltip:"labelTooltip-editor",appendButton:"appendButton-editor",appendButtonDisabled:"appendButtonDisabled-editor",buttonIcon:"buttonIcon-editor"},je={onCreated:"onCreated-editor",onMounted:"onMounted-editor",onClick:"onClick-editor",onInput:"onInput-editor",onChange:"onChange-editor",onFocus:"onFocus-editor",onBlur:"onBlur-editor",onRemoteQuery:"onRemoteQuery-editor",onBeforeUpload:"onBeforeUpload-editor",onUploadSuccess:"onUploadSuccess-editor",onUploadError:"onUploadError-editor",onFileRemove:"onFileRemove-editor",onValidate:"onValidate-editor",onAppendButtonClick:"onAppendButtonClick-editor",onSubFormRowAdd:"onSubFormRowAdd-editor",onSubFormRowInsert:"onSubFormRowInsert-editor",onSubFormRowDelete:"onSubFormRowDelete-editor",onSubFormRowChange:"onSubFormRowChange-editor"};function qe(e,t){Re[e]=t}function Ie(e,t){je[e]=t}function Ne(e){return!!Re[e]||!!Fe[e]||!!je[e]}function Pe(e,t,n){P.a.component(t,n),qe(e,t)}function De(e,t,n){P.a.component(t,n),Ie(e,t)}var We={COMMON_PROPERTIES:Re,ADVANCED_PROPERTIES:Fe,EVENT_PROPERTIES:je};const{COMMON_PROPERTIES:He,ADVANCED_PROPERTIES:Be,EVENT_PROPERTIES:ze}=We;var Ve={name:"SettingPanel",componentName:"SettingPanel",mixins:[x["b"]],components:{CodeEditor:U["a"],FormSetting:Te,...Oe},props:{designer:Object,selectedWidget:Object,formConfig:Object},provide(){return{isSubFormChildWidget:()=>this.subFormChildWidgetFlag}},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),scrollerHeight:0,activeTab:"2",widgetActiveCollapseNames:["1","3"],formActiveCollapseNames:["1","2"],commonProps:He,advProps:Be,eventProps:ze,showWidgetEventDialogFlag:!1,eventHandlerCode:"",curEventName:"",eventHeader:"",subFormChildWidgetFlag:!1}},computed:{optionModel:{get(){return this.selectedWidget.options},set(e){this.selectedWidget.options=e}}},watch:{"designer.selectedWidget":{handler(e){e&&(this.activeTab="1")}},"selectedWidget.options":{deep:!0,handler(){this.designer.saveCurrentHistoryStep()}},formConfig:{deep:!0,handler(){this.designer.saveCurrentHistoryStep()}}},created(){this.$on("editEventHandler",(function(e,t){this.editEventHandler(e,t)})),this.designer.handleEvent("form-css-updated",e=>{this.designer.setCssClassList(e)}),this.designer.handleEvent("field-selected",e=>{this.subFormChildWidgetFlag=!!e&&"sub-form"===e.type})},mounted(){this.designer.selectedWidget?this.activeTab="1":this.activeTab="2",this.scrollerHeight=window.innerHeight-56-48+"px",Object(w["a"])(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56-48+"px"})})},methods:{showEventCollapse(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},hasPropEditor(e,t){if(!t)return!1;if(e.indexOf("-")<=-1){let t=this.selectedWidget.type+"-"+e;if(Ne(t))return!1}let n=e.replace(this.selectedWidget.type+"-","");return this.designer.hasConfig(this.selectedWidget,n)},getPropEditor(e,t){let n=e.replace(this.selectedWidget.type+"-",""),i=`${this.selectedWidget.type}-${n}-editor`;return this.$options.components[i]||this.$root.$options.components[i]?i:t},showCollapse(e){let t=!1;for(let n in e)if(e.hasOwnProperty(n)&&this.hasPropEditor(n,e[n])){t=!0;break}return t},editEventHandler(e,t){this.curEventName=e,this.eventHeader=`${this.optionModel.name}.${e}(${t.join(", ")}) {`,this.eventHandlerCode=this.selectedWidget.options[e]||"","onValidate"!==e||this.optionModel["onValidate"]||(this.eventHandlerCode=" /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n callback(new Error('error message')) //fail\n } else {\n callback(); //pass\n }\n */"),this.showWidgetEventDialogFlag=!0},saveEventHandler(){const e=this.$refs.ecEditor.getEditorAnnotations();let t=!1;e&&e.length>0&&(e.forEach(e=>{"error"===e.type&&(t=!0)}),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1)}}},Ue=Ve,Ge=(n("a16a"),Object(O["a"])(Ue,Ce,_e,!1,null,"7b80d175",null)),Ke=Ge.exports,Ye=function(){var e=this,t=e._self._c;return t("div",{staticClass:"form-widget-container"},[t("el-form",{staticClass:"full-height-width widget-form",class:[e.customClass,e.layoutType+"-layout"],attrs:{"label-position":e.labelPosition,size:e.size,"validate-on-rule-change":!1}},[0===e.designer.widgetList.length?t("div",{staticClass:"no-widget-hint"},[e._v(e._s(e.i18nt("designer.noWidgetHint")))]):e._e(),t("draggable",e._b({attrs:{list:e.designer.widgetList,handle:".drag-handler",move:e.checkMove},on:{end:e.onDragEnd,add:e.onDragAdd,update:e.onDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:300},!1),[t("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.designer.widgetList,(function(n,i){return["container"===n.category?[t(e.getWidgetName(n),{key:n.id,tag:"component",attrs:{widget:n,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null}})]:[t(e.getWidgetName(n),{key:n.id,tag:"component",attrs:{field:n,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null,"design-state":!0}})]]}))],2)],1)],1)],1)},Je=[];const Xe=n("8b30");Xe.keys().map(e=>{let t=Xe(e).default;P.a.component(t.name,t)});var Ze={name:"VFormWidget",componentName:"VFormWidget",mixins:[x["b"]],components:{Draggable:h.a,...W["a"]},props:{designer:Object,formConfig:Object,optionData:{type:Object,default:()=>({})}},provide(){return{refList:this.widgetRefList,formConfig:this.formConfig,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formModel}}},inject:["getDesignerConfig"],data(){return{formModel:{},widgetRefList:{}}},computed:{labelPosition(){return this.designer.formConfig&&this.designer.formConfig.labelPosition?this.designer.formConfig.labelPosition:"left"},size(){return this.designer.formConfig&&this.designer.formConfig.size?this.designer.formConfig.size:"medium"},customClass(){return this.designer.formConfig.customClass||""},layoutType(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler(e){}},"designer.formConfig":{deep:!0,handler(e){}}},created(){this.designer.initDesigner(!!this.getDesignerConfig().resetFormJson),this.designer.loadPresetCssCode(this.getDesignerConfig().presetCssCode)},mounted(){this.disableFirefoxDefaultDrop(),this.designer.registerFormWidget(this)},methods:{getWidgetName(e){return e.type+"-widget"},disableFirefoxDefaultDrop(){let e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");e&&(document.body.ondrop=function(e){e.stopPropagation(),e.preventDefault()})},onDragEnd(e){},onDragAdd(e){const t=e.newIndex;this.designer.widgetList[t]&&this.designer.setSelected(this.designer.widgetList[t]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",null)},onDragUpdate(){this.designer.emitHistoryChange()},checkMove(e){return this.designer.checkWidgetMove(e)},getFormData(){return this.formModel},getWidgetRef(e,t=!1){let n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getSelectedWidgetRef(){let e=this.designer.selectedWidgetName;return this.getWidgetRef(e)}}},Qe=Ze,et=(n("9c31"),Object(O["a"])(Qe,Ye,Je,!1,null,"7372c190",null)),tt=et.exports;function nt(e){let t=Object(w["d"])(Object(w["h"])());return{widgetList:[],formConfig:{cssCode:""},selectedId:null,selectedWidget:null,selectedWidgetName:null,vueInstance:e,formWidget:null,cssClassList:[],historyData:{index:-1,maxStep:20,steps:[]},initDesigner(e){this.widgetList=[],this.formConfig=Object(w["d"])(t),e||this.initHistoryData()},clearDesigner(e){let n=0===this.widgetList.length;this.widgetList=[],this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={},Object(w["p"])(this.formConfig,t),e||(n?this.saveCurrentHistoryStep():this.emitHistoryChange())},loadPresetCssCode(e){""===this.formConfig.cssCode&&e&&(this.formConfig.cssCode=e)},getLayoutType(){return this.formConfig.layoutType||"PC"},changeLayoutType(e){this.formConfig.layoutType=e},getImportTemplate(){return{widgetList:[],formConfig:Object(w["d"])(t)}},loadFormJson(e){let t=!1;return e&&e.widgetList&&(this.widgetList=e.widgetList,t=!0),e&&e.formConfig&&(Object(w["p"])(this.formConfig,e.formConfig),t=!0),t&&this.emitEvent("form-json-imported",[]),t},setSelected(e){e?(this.selectedWidget=e,e.id&&(this.selectedId=e.id,this.selectedWidgetName=e.options.name)):this.clearSelected()},updateSelectedWidgetNameAndLabel(e,t,n){this.selectedWidgetName=t,n&&Object.keys(e.options).indexOf("label")>-1&&(e.options.label=n)},clearSelected(){this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={}},checkWidgetMove(e){if(e.draggedContext&&e.draggedContext.element){let t=e.draggedContext.element.category;e.draggedContext.element.type;if(e.to&&"sub-form-table"===e.to.className&&"container"===t)return!1}return!0},checkFieldMove(e){if(e.draggedContext&&e.draggedContext.element){e.draggedContext.element.category;let t=e.draggedContext.element.type+"";if(e.to&&"sub-form-table"===e.to.className&&"slot"===t)return!1}return!0},appendTableRow(e){let t=e.rows.length,n=Object(w["d"])(e.rows[e.rows.length-1]);n.id="table-row-"+Object(w["e"])(),n.merged=!1,n.cols.forEach(e=>{e.id="table-cell-"+Object(w["e"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0}),e.rows.splice(t,0,n),this.emitHistoryChange()},appendTableCol(e){let t=e.rows[0].cols.length;e.rows.forEach(e=>{let n=Object(w["d"])(this.getContainerByType("table-cell"));n.id="table-cell-"+Object(w["e"])(),n.options.name=n.id,n.merged=!1,n.options.colspan=1,n.options.rowspan=1,n.widgetList.length=0,e.cols.splice(t,0,n)}),this.emitHistoryChange()},insertTableRow(e,t,n,i,o){let r=o?t:t+1;if(!o){let t=r,n=!1;while(t<e.rows.length){if(!e.rows[t].cols[i].merged){r=t,n=!0;break}t++}n||(r=e.rows.length)}let s=Object(w["d"])(e.rows[n]);s.id="table-row-"+Object(w["e"])(),s.merged=!1,s.cols.forEach(e=>{e.id="table-cell-"+Object(w["e"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0}),e.rows.splice(r,0,s);let a=0;while(r<e.rows.length-1&&a<e.rows[0].cols.length){const t=e.rows[r+1].cols[a],n=t.merged;if(n){let t=e.rows,n={},i=null;for(let e=r;e>=0;e--)if(!t[e].cols[a].merged&&t[e].cols[a].options.rowspan>1){i=e,n=t[e].cols[a];break}if(n.options){let t=n.options.rowspan+1;this.setPropsOfMergedRows(e.rows,i,a,n.options.colspan,t),a+=n.options.colspan}else a+=1}else a+=t.options.colspan||1}this.emitHistoryChange()},insertTableCol(e,t,n,i){let o=i?t:t+1;if(!i){let t=o,i=!1;while(t<e.rows[n].cols.length){if(!e.rows[n].cols[t].merged){o=t,i=!0;break}t++,i||(o=e.rows[n].cols.length)}}e.rows.forEach(e=>{let t=Object(w["d"])(this.getContainerByType("table-cell"));t.id="table-cell-"+Object(w["e"])(),t.options.name=t.id,t.merged=!1,t.options.colspan=1,t.options.rowspan=1,t.widgetList.length=0,e.cols.splice(o,0,t)});let r=0;while(o<e.rows[0].cols.length-1&&r<e.rows.length){const t=e.rows[r].cols[o+1],n=t.merged;if(n){let t=e.rows[r].cols,n={},i=null;for(let e=o;e>=0;e--)if(!t[e].merged&&t[e].options.colspan>1){i=e,n=t[e];break}if(n.options){let t=n.options.colspan+1;this.setPropsOfMergedCols(e.rows,r,i,t,n.options.rowspan),r+=n.options.rowspan}else r+=1}else r+=t.options.rowspan||1}this.emitHistoryChange()},setPropsOfMergedCols(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let o=n;o<n+i;o++)r!==t||o!==n?(e[r].cols[o].merged=!0,e[r].cols[o].options.colspan=i,e[r].cols[o].widgetList=[]):e[r].cols[o].options.colspan=i},setPropsOfMergedRows(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.rowspan=o,e[r].cols[s].widgetList=[]):e[r].cols[s].options.rowspan=o},setPropsOfSplitCol(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let t=n;t<n+i;t++)e[r].cols[t].merged=!1,e[r].cols[t].options.rowspan=1,e[r].cols[t].options.colspan=1},setPropsOfSplitRow(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let t=n;t<n+i;t++)e[r].cols[t].merged=!1,e[r].cols[t].options.rowspan=1,e[r].cols[t].options.colspan=1},mergeTableCol(e,t,n,i,o,r){let s=o?i:i+t[i].options.colspan,a=o?i-1:i;if(o){let t=a;while(t>=0){if(!e[n].cols[t].merged){a=t;break}t--}}t[s].widgetList&&t[s].widgetList.length>0&&(t[a].widgetList&&0!==t[a].widgetList.length||(t[a].widgetList=Object(w["d"])(t[s].widgetList)));let l=1*t[s].options.colspan+1*t[a].options.colspan;this.setPropsOfMergedCols(e,n,a,l,r.options.rowspan),this.emitHistoryChange()},mergeTableWholeRow(e,t,n,i){let o=e[n].cols[0].options.rowspan,r=!1;for(let a=1;a<e[n].cols.length;a++)if(e[n].cols[a].options.rowspan!==o){r=!0;break}if(r)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow"));let s=t.filter(e=>!e.merged&&!!e.widgetList&&e.widgetList.length>0);s&&s.length>0&&s[0].id!==t[0].id&&(!t[0].widgetList||t[0].widgetList.length<=0)&&(t[0].widgetList=Object(w["d"])(s[0].widgetList)),this.setPropsOfMergedCols(e,n,0,t.length,t[i].options.rowspan),this.emitHistoryChange()},mergeTableRow(e,t,n,i,o){let r=i?t:t+o.options.rowspan,s=i?t-1:t;if(i){let t=s;while(t>=0){if(!e[t].cols[n].merged){s=t;break}t--}}e[r].cols[n].widgetList&&e[r].cols[n].widgetList.length>0&&(e[s].cols[n].widgetList&&0!==e[s].cols[n].widgetList.length||(e[s].cols[n].widgetList=Object(w["d"])(e[r].cols[n].widgetList)));let a=1*e[r].cols[n].options.rowspan+1*e[s].cols[n].options.rowspan;this.setPropsOfMergedRows(e,s,n,o.options.colspan,a),this.emitHistoryChange()},mergeTableWholeCol(e,t,n,i){let o=e[0].cols[i].options.colspan,r=!1;for(let l=1;l<e.length;l++)if(e[l].cols[i].options.colspan!==o){r=!0;break}if(r)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn"));let s=[];e.forEach(e=>{let t=e.cols[i];!t.merged&&t.widgetList&&t.widgetList.length>0&&s.push(t)});let a=e[0].cols[i];s&&s.length>0&&s[0].id!==a.id&&(!a.widgetList||a.widgetList.length<=0)&&(a.widgetList=Object(w["d"])(s[0].widgetList)),this.setPropsOfMergedRows(e,0,i,a.options.colspan,e.length),this.emitHistoryChange()},undoMergeTableCol(e,t,n,i,o){this.setPropsOfSplitCol(e,t,n,i,o),this.emitHistoryChange()},undoMergeTableRow(e,t,n,i,o){this.setPropsOfSplitRow(e,t,n,i,o),this.emitHistoryChange()},deleteTableWholeCol(e,t){let n=!0;if(e.forEach(t=>{t.cols[0].options.colspan!==e[0].cols.length&&(n=!1)}),n)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastColCannotBeDeleted"));let i=e[0].cols[t].options.colspan,o=!1;for(let r=1;r<e.length;r++)if(e[r].cols[t].options.colspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")):(e.forEach(e=>{e.cols.splice(t,i)}),this.emitHistoryChange())},deleteTableWholeRow(e,t){let n=!0;if(e[0].cols.forEach(t=>{t.options.rowspan!==e.length&&(n=!1)}),n)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastRowCannotBeDeleted"));let i=e[t].cols[0].options.rowspan,o=!1;for(let r=1;r<e[t].cols.length;r++)if(e[t].cols[r].options.rowspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")):(e.splice(t,i),this.emitHistoryChange())},getContainerByType(e){let t=[...f,...p,...g,...m],n=null;return t.forEach(t=>{t.category&&t.type&&t.type===e&&(n=t)}),n},getFieldWidgetByType(e){let t=[...f,...p,...g,...m],n=null;return t.forEach(t=>{!t.category&&t.type&&t.type===e&&(n=t)}),n},hasConfig(e,t){let n=null;return n=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),!(!n||!n.options)&&Object.keys(n.options).indexOf(t)>-1},upgradeWidgetConfig(e){let t=null;t=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),t&&t.options&&Object.keys(t.options).forEach(n=>{e.hasOwnProperty(n)||(e.options[n]=Object(w["d"])(t.options[n]))})},upgradeFormConfig(e){Object.keys(this.formConfig).forEach(t=>{e.hasOwnProperty(t)||(e[t]=Object(w["d"])(this.formConfig[t]))})},cloneGridCol(e,t){let n=Object(w["d"])(this.getContainerByType("grid-col"));n.options.span=e.options.span;let i=Object(w["e"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)},cloneContainer(e){if("grid"===e.type){let t=Object(w["d"])(this.getContainerByType("grid"));return t.id=t.type+Object(w["e"])(),t.options.name=t.id,e.cols.forEach(e=>{let n=Object(w["d"])(this.getContainerByType("grid-col")),i=Object(w["e"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,n.options.span=e.options.span,t.cols.push(n)}),t}if("table"===e.type){let t=Object(w["d"])(this.getContainerByType("table"));return t.id=t.type+Object(w["e"])(),t.options.name=t.id,e.rows.forEach(e=>{let n=Object(w["d"])(e);n.id="table-row-"+Object(w["e"])(),n.cols.forEach(e=>{e.id="table-cell-"+Object(w["e"])(),e.options.name=e.id,e.widgetList=[]}),t.rows.push(n)}),t}return null},moveUpWidget(e,t){if(e){if(0===t)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveUpFirstChildHint"));let n=e[t];e.splice(t,1),e.splice(t-1,0,n)}},moveDownWidget(e,t){if(e){if(t===e.length-1)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveDownLastChildHint"));let n=e[t];e.splice(t,1),e.splice(t+1,0,n)}},copyNewFieldWidget(e){let t=Object(w["d"])(e),n=Object(w["e"])();return t.id=t.type.replace(/-/g,"")+n,t.options.name=t.id,t.options.label=t.options.label||t.type.toLowerCase(),delete t.displayName,t},copyNewContainerWidget(e){let t=Object(w["d"])(e);if(t.id=t.type.replace(/-/g,"")+Object(w["e"])(),t.options.name=t.id,"grid"===t.type){let e=Object(w["d"])(this.getContainerByType("grid-col")),n=Object(w["e"])();e.id="grid-col-"+n,e.options.name="gridCol"+n,t.cols.push(e),e=Object(w["d"])(e),n=Object(w["e"])(),e.id="grid-col-"+n,e.options.name="gridCol"+n,t.cols.push(e)}else if("table"===t.type){let e={cols:[]};e.id="table-row-"+Object(w["e"])(),e.merged=!1;let n=Object(w["d"])(this.getContainerByType("table-cell"));n.id="table-cell-"+Object(w["e"])(),n.options.name=n.id,n.merged=!1,n.options.colspan=1,n.options.rowspan=1,e.cols.push(n),t.rows.push(e)}else if("tab"===t.type){let e=Object(w["d"])(this.getContainerByType("tab-pane"));e.id="tab-pane-"+Object(w["e"])(),e.options.name="tab1",e.options.label="tab 1",t.tabs.push(e)}return delete t.displayName,t},addContainerByDbClick(e){let t=this.copyNewContainerWidget(e);this.widgetList.push(t),this.setSelected(t)},addFieldByDbClick(e){let t=this.copyNewFieldWidget(e);if(this.selectedWidget&&"tab"===this.selectedWidget.type){let e=this.selectedWidget.tabs[0];this.selectedWidget.tabs.forEach(t=>{t.options.active&&(e=t)}),e&&e.widgetList.push(t)}else this.selectedWidget&&this.selectedWidget.widgetList?this.selectedWidget.widgetList.push(t):this.widgetList.push(t);this.setSelected(t),this.emitHistoryChange()},deleteColOfGrid(e,t){e&&e.cols&&e.cols.splice(t,1)},addNewColOfGrid(e){const t=e.cols;let n=Object(w["d"])(this.getContainerByType("grid-col")),i=Object(w["e"])();if(n.id="grid-col-"+i,n.options.name="gridCol"+i,t&&t.length>0){let i=0;t.forEach(e=>{i+=e.options.span}),i>=24?(console.log("列栅格之和超出24"),e.cols.push(n)):(n.options.span=24-i>12?12:24-i,e.cols.push(n))}else e.cols=[n]},addTabPaneOfTabs(e){const t=e.tabs;let n=Object(w["d"])(this.getContainerByType("tab-pane"));n.id="tab-pane-"+Object(w["e"])(),n.options.name=n.id,n.options.label="tab "+(t.length+1),t.push(n)},deleteTabPaneOfTabs(e,t){e.tabs.splice(t,1)},emitEvent(e,t){this.vueInstance.$emit(e,t)},handleEvent(e,t){this.vueInstance.$on(e,e=>t(e))},setCssClassList(e){this.cssClassList=e},getCssClassList(){return this.cssClassList},registerFormWidget(e){this.formWidget=e},initHistoryData(){this.loadFormContentFromStorage(),this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(w["d"])(this.widgetList),formConfig:Object(w["d"])(this.formConfig)}},emitHistoryChange(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(w["d"])(this.widgetList),formConfig:Object(w["d"])(this.formConfig)},this.saveFormContentToStorage(),this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1))},saveCurrentHistoryStep(){this.historyData.steps[this.historyData.index]=Object(w["d"])({widgetList:this.widgetList,formConfig:this.formConfig}),this.saveFormContentToStorage()},undoHistoryStep(){0!==this.historyData.index&&this.historyData.index--,this.widgetList=Object(w["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(w["d"])(this.historyData.steps[this.historyData.index].formConfig)},redoHistoryStep(){this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,this.widgetList=Object(w["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(w["d"])(this.historyData.steps[this.historyData.index].formConfig)},undoEnabled(){return this.historyData.index>0&&this.historyData.steps.length>0},redoEnabled(){return this.historyData.index<this.historyData.steps.length-1},saveFormContentToStorage(){window.localStorage.setItem("widget__list__backup",JSON.stringify(this.widgetList)),window.localStorage.setItem("form__config__backup",JSON.stringify(this.formConfig))},loadFormContentFromStorage(){let e=window.localStorage.getItem("widget__list__backup");e&&(this.widgetList=JSON.parse(e));let t=window.localStorage.getItem("form__config__backup");t&&Object(w["p"])(this.formConfig,JSON.parse(t))}}}var it={name:"VFormDesigner",componentName:"VFormDesigner",mixins:[x["b"]],components:{WidgetPanel:T,ToolbarPanel:xe,SettingPanel:Ke,VFormWidget:tt,SvgIcon:L},props:{fieldListApi:{type:Object,default:null},bannedWidgets:{type:Array,default:()=>[]},designerConfig:{type:Object,default:()=>({languageMenu:!0,externalLink:!0,formTemplates:!0,eventCollapse:!0,widgetNameReadonly:!1,clearDesignerButton:!0,previewFormButton:!0,importJsonButton:!0,exportJsonButton:!0,exportCodeButton:!0,generateSFCButton:!0,toolbarMaxWidth:420,toolbarMinWidth:300,presetCssCode:"",resetFormJson:!1,formHeader:!0})}},data(){return{vFormVersion:X["d"],curLangName:"",vsCodeFlag:!1,caseName:"",docUrl:"https://www.vform666.com/document.html",gitUrl:"https://github.com/vform666/variant-form",chatUrl:"https://www.vform666.com/pages/chat-group/",subScribeUrl:"https://www.vform666.com/pages/pro/",scrollerHeight:0,designer:nt(this),fieldList:[]}},provide(){return{serverFieldList:this.fieldList,getDesignerConfig:()=>this.designerConfig,getBannedWidgets:()=>this.bannedWidgets}},created(){this.vsCodeFlag=1==Object(w["i"])("vscode"),this.caseName=Object(w["i"])("case")},mounted(){this.initLocale(),this.scrollerHeight=window.innerHeight-56-36+"px",Object(w["a"])(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56-36+"px"})}),this.loadCase(),this.loadFieldListFromServer()},methods:{showLink(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},showTitle(e){return console.log(this.designerConfig[e],"this.designerConfig[configName]"),console.log(this.designerConfig,"this.designerConfig"),void 0===this.designerConfig[e]||!!this.designerConfig[e]},openHome(){if(this.vsCodeFlag){const e={cmd:"openUrl",data:{url:"https://www.vform666.com/"}};window.parent.postMessage(e,"*")}},openUrl(e,t){if(this.vsCodeFlag){const e={cmd:"openUrl",data:{url:t}};window.parent.postMessage(e,"*")}else{let n=e.currentTarget;n.href=t}},loadCase(){this.caseName&&s.a.get(X["c"]+this.caseName+".txt").then(e=>{e.data.code?this.$message.error(this.i18nt("designer.hint.sampleLoadedFail")):(this.setFormJson(e.data),this.$message.success(this.i18nt("designer.hint.sampleLoadedSuccess")))}).catch(e=>{this.$message.error(this.i18nt("designer.hint.sampleLoadedFail")+":"+e)})},initLocale(){let e=localStorage.getItem("v_form_locale");e=this.vsCodeFlag?e||"en-US":e||"zh-CN",this.curLangName=this.i18nt("application."+e),this.changeLanguage(e)},loadFieldListFromServer(){if(!this.fieldListApi)return;let e=this.fieldListApi.headers||{};s.a.get(this.fieldListApi.URL,{headers:e}).then(e=>{let t=this.fieldListApi.labelKey||"label",n=this.fieldListApi.nameKey||"name";this.fieldList.splice(0,this.fieldList.length),e.data.forEach(e=>{this.fieldList.push({label:e[t],name:e[n]})})}).catch(e=>{this.$message.error(e)})},handleLanguageChanged(e){this.changeLanguage(e),this.curLangName=this.i18nt("application."+e)},changeLanguage(e){Object(x["a"])(e)},setFormJson(e){let t=!1;e&&("string"===typeof e?t=this.designer.loadFormJson(JSON.parse(e)):e.constructor===Object&&(t=this.designer.loadFormJson(e)),t&&this.designer.emitHistoryChange())},getFormJson(){return{widgetList:Object(w["d"])(this.designer.widgetList),formConfig:Object(w["d"])(this.designer.formConfig)}},clearDesigner(){this.$refs.toolbarRef.clearFormWidget()},refreshDesigner(){let e=this.getFormJson();this.designer.clearDesigner(!0),this.designer.loadFormJson(e)},previewForm(){this.$refs.toolbarRef.previewForm()},importJson(){this.$refs.toolbarRef.importJson()},exportJson(){this.$refs.toolbarRef.exportJson()},exportCode(){this.$refs.toolbarRef.exportCode()},generateSFC(){this.$refs.toolbarRef.generateSFC()},getFieldWidgets(e=null){return e?Object(w["g"])(e):Object(w["g"])(this.designer.widgetList)},getContainerWidgets(e=null){return e?Object(w["f"])(e):Object(w["f"])(this.designer.widgetList)},upgradeFormJson(e){if(e.widgetList&&e.formConfig)return Object(w["q"])(e.widgetList,e=>{this.designer.upgradeWidgetConfig(e)}),this.designer.upgradeFormConfig(e.formConfig),e;this.$message.error("Invalid form json!")},getWidgetRef(e,t=!1){return this.$refs["formRef"].getWidgetRef(e,t)},getSelectedWidgetRef(){return this.$refs["formRef"].getSelectedWidgetRef()}}},ot=it,rt=(n("cb41"),Object(O["a"])(ot,a,l,!1,null,"4b479876",null)),st=rt.exports;const at=function(e,t){return{props:{optionModel:Object},render(n){return n("el-form-item",{attrs:{label:Object(x["c"])(t)}},[n("el-input",{attrs:{type:"text"},model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}})])}}},lt=function(e,t){return{props:{optionModel:Object},render(n){return n("el-form-item",{attrs:{label:Object(x["c"])(t)}},[n("el-switch",{model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}})])}}},ct=function(e,t,n){return{props:{optionModel:Object},render(i){return i("el-form-item",{attrs:{label:Object(x["c"])(t)}},[i("el-radio-group",{model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}},[n.optionItems.map(e=>i("el-radio-button",{attrs:{label:e.value}},[e.label]))])])}}},dt=function(e,t,n){return{props:{optionModel:Object},render(i){return i("el-form-item",{attrs:{label:Object(x["c"])(t)}},[i("el-select",{model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}},[n.optionItems.map(e=>i("el-option",{attrs:{label:e.label,value:e.value}}))])])}}},ut=function(e,t){return{props:{optionModel:Object},mixins:[I["a"]],methods:{editEventHandler(){this.dispatch("SettingPanel","editEventHandler",[e,[...t]])}},render(t){return t("el-form-item",{attrs:{label:e,"label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:!0,round:!0},on:{click:this.editEventHandler}},[Object(x["c"])("designer.setting.addEventHandler")])])}}},ht={type:"card",category:"container",icon:"card",widgetList:[],options:{name:"",label:"card",hidden:!1,folded:!1,showFold:!0,cardWidth:"100%",shadow:"never",customClass:""}},ft={type:"alert",icon:"alert",formItemFlag:!1,options:{name:"",title:"Good things are coming...",type:"info",description:"",closable:!0,closeText:"",center:!0,showIcon:!1,effect:"light",hidden:!1,onClose:"",customClass:""}};var pt=function(){var e=this,t=e._self._c;return t("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[t("el-card",{key:e.widget.id,staticClass:"card-container",class:[e.selected?"selected":"",e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[t("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?t("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),t("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{add:t=>e.onContainerDragAdd(t,e.widget.widgetList),update:e.onContainerDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[t("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(n,i){return["container"===n.category?[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{widget:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{field:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1)],1)],1)},gt=[],mt=n("61ca"),bt=n("cd36"),vt=n("26a6"),yt={name:"card-widget",componentName:"ContainerWidget",mixins:[x["b"],mt["a"],vt["a"]],inject:["refList"],components:{Draggable:h.a,ContainerWrapper:bt["default"],...W["a"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},created(){this.initRefList()},methods:{checkContainerMove(e){return!0},toggleCard(){this.widget.options.folded=!this.widget.options.folded},setFolded(e){this.widget.options.folded=!!e}}},wt=yt,xt=(n("94b6"),Object(O["a"])(wt,pt,gt,!1,null,"228afde5",null)),Ct=xt.exports,_t=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("el-card",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"card-container",class:[e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow}},[t("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?t("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),e.widget.widgetList&&e.widget.widgetList.length>0?[e._l(e.widget.widgetList,(function(n,i){return["container"===n.category?[t(e.getComponentByContainer(n),{key:i,tag:"component",attrs:{widget:n,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[t(n.type+"-widget",{key:i,tag:"component",attrs:{field:n,designer:null,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))]:e._e()],2)],1)},kt=[],St=n("d67f"),Ot=n("90c2"),Et=n("34f0"),Lt={name:"card-item",componentName:"ContainerItem",mixins:[I["a"],x["b"],St["a"],Et["a"]],components:{ContainerItemWrapper:Ot["default"],...W["a"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],computed:{customClass(){return this.widget.options.customClass||""}},created(){this.initRefList()},beforeDestroy(){this.unregisterFromRefList()},methods:{toggleCard(){this.widget.options.folded=!this.widget.options.folded}}},At=Lt,Mt=(n("f6ca"),Object(O["a"])(At,_t,kt,!1,null,"2a1af67f",null)),$t=Mt.exports;const Tt=function(e,t){const n=e.options,i=ne(e),o=n.cardWidth?`style="{width: ${n.cardWidth} !important}"`:"",r=`shadow="${n.shadow}"`,s=n.hidden?'v-show="false"':"",a=`<div class="card-container">\n <el-card ${i} ${o} ${r} ${s}>\n <div slot="header" class="clear-fix">\n <span>${n.label}</span>\n ${n.showFold?'<i class="float-right el-icon-arrow-down"></i>':""}\n </div>\n ${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}\n </el-card>\n</div>`;return a},Rt=function(e,t){const n=e.options,i=`title="${n.title}"`,o="type="+n.type,r=n.description?`description="${n.description}"`:"",s=`:closable="${n.closable}"`,a=n.closeText?`close-text="${n.closeText}"`:"",l=`:center="${n.center}"`,c=`:show-icon="${n.showIcon}"`,d=`effect="${n.effect}"`,u=`<el-alert ${i} ${o} ${r} ${s} ${a} ${l} \n ${c} ${d}>\n</el-alert>`;return u};var Ft=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-alert",{ref:"fieldEditor",attrs:{title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect},on:{close:e.handleCloseCustomEvent}})],1)},jt=[],qt=n("828b"),It=n("2d11"),Nt={name:"alert-widget",componentName:"FieldWidget",mixins:[I["a"],It["a"],x["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:qt["default"]},created(){this.registerToRefList(),this.initEventHandler()},beforeDestroy(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent(){if(this.field.options.onClose){let e=new Function(this.field.options.onClose);e.call(this)}}}},Pt=Nt,Dt=Object(O["a"])(Pt,Ft,jt,!1,null,"b1f52dec",null),Wt=Dt.exports;const Ht=function(){b(ht),P.a.component(Ct.name,Ct),P.a.component($t.name,$t),Pe("card-folded","card-folded-editor",lt("folded","extension.setting.cardFolded")),Pe("card-showFold","card-showFold-editor",lt("showFold","extension.setting.cardShowFold")),Pe("card-cardWidth","card-cardWidth-editor",at("cardWidth","extension.setting.cardWidth"));let e=[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}];Pe("card-shadow","card-shadow-editor",dt("shadow","extension.setting.cardShadow",{optionItems:e})),pe("card",Tt),v(ft),P.a.component(Wt.name,Wt),Pe("alert-title","alert-title-editor",at("title","extension.setting.alertTitle"));let t=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];P.a.component("alert-type-editor",dt("type","extension.setting.alertType",{optionItems:t})),Pe("alert-description","alert-description-editor",at("description","extension.setting.description")),Pe("alert-closable","alert-closable-editor",lt("closable","extension.setting.closable")),Pe("alert-closeText","alert-closeText-editor",at("closeText","extension.setting.closeText")),Pe("alert-center","alert-center-editor",lt("center","extension.setting.center")),Pe("alert-showIcon","alert-showIcon-editor",lt("showIcon","extension.setting.showIcon"));let n=[{label:"light",value:"light"},{label:"dark",value:"dark"}];Pe("alert-effect","alert-effect-editor",ct("effect","extension.setting.effect",{optionItems:n})),De("alert-onClose","alert-onClose-editor",ut("onClose",[])),ge("alert",Rt)};P.a.directive("dialogDrag",{bind(e,t,n,i){const o=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");o.style.cursor="move";const s=r.currentStyle||window.getComputedStyle(r,null);o.onmousedown=e=>{const t=e.clientX-o.offsetLeft,n=e.clientY-o.offsetTop;let i,a;s.left.includes("%")?(i=+document.body.clientWidth*(+s.left.replace(/%/g,"")/100),a=+document.body.clientHeight*(+s.top.replace(/%/g,"")/100)):(i=+s.left.replace(/px/g,""),a=+s.top.replace(/px/g,"")),document.onmousemove=function(e){const o=e.clientX-t,s=e.clientY-n;r.style.left=o+i+"px",r.style.top=s+a+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),P.a.directive("dialogDragWidth",{bind(e,t,n,i){const o=t.value.$el.querySelector(".el-dialog");e.onmousedown=t=>{const n=t.clientX-e.offsetLeft;document.onmousemove=function(e){e.preventDefault();const t=e.clientX-n;o.style.width=t+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});n("985d"),n("0f59");Ht(),st.install=function(e){e.component(st.name,st)},V.install=function(e){e.component(V.name,V)};const Bt=[st,V],zt=e=>{window.axios=s.a,Bt.forEach(t=>{e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&zt(window.Vue);var Vt={install:zt,VFormDesigner:st,VFormRender:V};t["default"]=Vt},fb95:function(e,t,n){},fc6a:function(e,t,n){var i=n("44ad"),o=n("1d80");e.exports=function(e){return i(o(e))}},fc8b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.lowThreshold")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1,max:e.optionModel.highThreshold},model:{value:e.optionModel.lowThreshold,callback:function(t){e.$set(e.optionModel,"lowThreshold",t)},expression:"optionModel.lowThreshold"}})],1)},o=[],r=n("79fa"),s={name:"lowThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d66e35d0",null);t["default"]=c.exports},fcbf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.cellHeight")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.cellHeight,callback:function(t){e.$set(e.optionModel,"cellHeight",t)},expression:"optionModel.cellHeight"}})],1)},o=[],r=n("79fa"),s={name:"cellHeight-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"52af6c29",null);t["default"]=c.exports},fd28:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-document",use:"icon-document-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-document"><defs><style type="text/css"></style></defs><path d="M979.478261 706.381913a44.521739 44.521739 0 0 1-11.842783 57.967304l-4.36313 2.849392-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808695l-8.102956 0.400696c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250435l405.325913 234.540522 1.335652 1.513739 1.335652-1.513739 405.281391-234.540522a44.521739 44.521739 0 0 1 60.861218 16.250435z m0-222.608696a44.521739 44.521739 0 0 1-11.842783 57.967305l-4.36313 2.849391-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808696l-8.102956 0.400695c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250434l405.325913 234.540521 1.335652 1.513739 1.335652-1.513739 405.281391-234.540521a44.521739 44.521739 0 0 1 60.861218 16.250434zM512 0c18.788174 0 36.864 6.099478 51.645217 17.185391l4.58574 3.739826 403.500521 199.68 5.609739 6.144c32.50087 35.439304 32.50087 89.889391 0 125.328696l-5.609739 6.144-403.500521 199.590957-4.541218 3.784347a86.238609 86.238609 0 0 1-43.675826 16.829218L512 578.782609c-18.788174 0-36.864-6.099478-51.645217-17.185392l-4.630261-3.784347L52.268522 358.221913l-5.609739-6.144a92.738783 92.738783 0 0 1 0-125.328696l5.609739-6.144L455.724522 20.925217l4.585739-3.739826c12.688696-9.48313 27.826087-15.315478 43.675826-16.829217z" fill="#008df0" p-id="5455" /></symbol>'});s.a.add(a);t["default"]=a},fd54:function(e,t,n){"use strict";n("3617")},fdbf:function(e,t,n){var i=n("04f8");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe5d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowCreate")}},[t("el-switch",{model:{value:e.optionModel.allowCreate,callback:function(t){e.$set(e.optionModel,"allowCreate",t)},expression:"optionModel.allowCreate"}})],1)},o=[],r=n("79fa"),s={name:"allowCreate-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7ea31b71",null);t["default"]=c.exports},fe7f:function(e,t,n){"use strict";n("756c")},feea:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[t("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[t("el-option",{attrs:{label:"daterange",value:"daterange"}}),t("el-option",{attrs:{label:"datetimerange",value:"datetimerange"}}),t("el-option",{attrs:{label:"monthrange",value:"monthrange"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"574545a5",null);t["default"]=c.exports},ff09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxValue")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)},o=[],r=n("79fa"),s={name:"max-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxValue:{get(){return this.optionModel["max"]},set(e){!e||isNaN(e)?this.optionModel.max=null:this.optionModel.max=Number(e)}}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"edcd3882",null);t["default"]=c.exports},ff66:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.precision")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.optionModel.precision,callback:function(t){e.$set(e.optionModel,"precision",t)},expression:"optionModel.precision"}})],1)},o=[],r=n("79fa"),s={name:"precision-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6d29eaf2",null);t["default"]=c.exports},ffcf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[e.optionModel.responsive?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.span,callback:function(t){e.$set(e.optionModel,"span",e._n(t))},expression:"optionModel.span"}})],1),e.optionModel.responsive&&"PC"===e.formConfig.layoutType?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(PC)"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.md,callback:function(t){e.$set(e.optionModel,"md",e._n(t))},expression:"optionModel.md"}})],1):e._e(),e.optionModel.responsive&&"Pad"===e.formConfig.layoutType?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(Pad)"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.sm,callback:function(t){e.$set(e.optionModel,"sm",e._n(t))},expression:"optionModel.sm"}})],1):e._e(),e.optionModel.responsive&&"H5"===e.formConfig.layoutType?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(H5)"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.xs,callback:function(t){e.$set(e.optionModel,"xs",e._n(t))},expression:"optionModel.xs"}})],1):e._e()],1)},o=[],r=n("79fa"),s={name:"grid-col-span-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{formConfig(){return this.designer.formConfig}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"163e0823",null);t["default"]=c.exports}})["default"]})); |
| | | var i=n("1fb5"),o=n("9152"),r=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return d(this,e,t,n)}function d(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):b(e,t)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return u(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(u(t),e=l(e,t<0?0:0|v(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|w(t,n);e=l(e,i);var o=e.write(t,n);return o!==i&&(e=e.slice(0,o)),e}function g(e,t){var n=t.length<0?0:0|v(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function b(e,t){if(c.isBuffer(t)){var n=0|v(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&r(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return J(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return q(this,t,n);case"base64":return $(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function C(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,o){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,i,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,i,o){var r,s=1,a=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var d=-1;for(r=n;r<a;r++)if(c(e,r)===c(t,-1===d?0:r-d)){if(-1===d&&(d=r),r-d+1===l)return d*s}else-1!==d&&(r-=r-d),d=-1}else for(n+l>a&&(n=a-l),r=n;r>=0;r--){for(var u=!0,h=0;h<l;h++)if(c(e,r+h)!==c(t,h)){u=!1;break}if(u)return r}return-1}function S(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i),i>o&&(i=o)):i=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function O(e,t,n,i){return ee(J(t,e.length-n),e,n,i)}function E(e,t,n,i){return ee(X(t),e,n,i)}function L(e,t,n,i){return E(e,t,n,i)}function A(e,t,n,i){return ee(Q(t),e,n,i)}function M(e,t,n,i){return ee(Z(t,e.length-n),e,n,i)}function $(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);var i=[],o=t;while(o<n){var r,s,a,l,c=e[o],d=null,u=c>239?4:c>223?3:c>191?2:1;if(o+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:r=e[o+1],128===(192&r)&&(l=(31&c)<<6|63&r,l>127&&(d=l));break;case 3:r=e[o+1],s=e[o+2],128===(192&r)&&128===(192&s)&&(l=(15&c)<<12|(63&r)<<6|63&s,l>2047&&(l<55296||l>57343)&&(d=l));break;case 4:r=e[o+1],s=e[o+2],a=e[o+3],128===(192&r)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(d=l))}null===d?(d=65533,u=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),o+=u}return F(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return d(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)C(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):x.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,s=n-t,a=Math.min(r,s),l=this.slice(i,o),d=e.slice(t,n),u=0;u<a;++u)if(l[u]!==d[u]){r=l[u],s=d[u];break}return r<s?-1:s<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return L(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function F(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=R));return n}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function q(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function I(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=Y(e[r]);return o}function N(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function W(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function H(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function B(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,i,r){return r||B(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,i,23,4),n+4}function V(e,t,n,i,r){return r||B(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=this[e+--t],o=1;while(t>0&&(o*=256))i+=this[e+--t]*o;return i},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);var i=t,o=1,r=this[e+--i];while(i>0&&(o*=256))r+=this[e+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=1,s=0;this[t]=255&e;while(++s<n&&(r*=256))this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=n-1,s=1;this[t+r]=255&e;while(--r>=0&&(s*=256))this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=0,s=1,a=0;this[t]=255&e;while(++r<n&&(s*=256))e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=n-1,s=1,a=0;this[t+r]=255&e;while(--r>=0&&(s*=256))e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(r=t;r<n;++r)this[r]=e;else{var s=c.isBuffer(e)?e:J(new c(e,i).toString()),a=s.length;for(r=0;r<n-t;++r)this[r+t]=s[r%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=K(e).replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],s=0;s<i;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,i,o,r=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),i=n>>8,o=n%256,r.push(o),r.push(i)}return r}function Q(e){return i.toByteArray(G(e))}function ee(e,t,n,i){for(var o=0;o<i;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},b674:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowHalf")}},[t("el-switch",{model:{value:e.optionModel.allowHalf,callback:function(t){e.$set(e.optionModel,"allowHalf",t)},expression:"optionModel.allowHalf"}})],1)},o=[],r=n("79fa"),s={name:"allowHalf-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"75c91e5d",null);t["default"]=c.exports},b6b9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showBlankRow")}},[t("el-switch",{model:{value:e.optionModel.showBlankRow,callback:function(t){e.$set(e.optionModel,"showBlankRow",t)},expression:"optionModel.showBlankRow"}})],1)},o=[],r=n("79fa"),s={name:"showBlankRow-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"aacb0e56",null);t["default"]=c.exports},b76a:function(e,t,n){n("14d9"),n("d9e2"),n("13d5"),function(t,i){e.exports=i(n("aa47"))}("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),l=n("41a0"),c=n("7f20"),d=n("38fd"),u=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,b,v,y,w){l(n,t,b);var x,C,_,k=function(e){if(!h&&e in L)return L[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",O=v==g,E=!1,L=e.prototype,A=L[u]||L[f]||v&&L[v],M=A||k(v),$=v?O?k("entries"):M:void 0,T="Array"==t&&L.entries||A;if(T&&(_=d(T.call(new e)),_!==Object.prototype&&_.next&&(c(_,S,!0),i||"function"==typeof _[u]||s(_,u,m))),O&&A&&A.name!==g&&(E=!0,M=function(){return A.call(this)}),i&&!w||!h&&!E&&L[u]||s(L,u,M),a[t]=M,a[S]=m,v)if(x={values:O?M:k(g),keys:y?M:k(p),entries:$},w)for(C in x)C in L||r(L,C,x[C]);else o(o.P+o.F*(h||E),t,x);return x}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l),r<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),d=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!d||"split"===e&&!u){var g=/./[h],m=n(s,h,""[e],(function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),b=m[0],v=m[1];i(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(r(n,s)||o(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(o){}}return!0}},"520a":function(e,t,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e[a]||0!==t[a]}(),c=void 0!==/()??/.exec("")[1],d=l||c;d&&(s=function(e){var t,n,s,d,u=this;return c&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),l&&(t=u[a]),s=o.call(u,e),l&&s&&(u[a]=u.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],n,(function(){for(d=1;d<arguments.length-2;d++)void 0===arguments[d]&&(s[d]=void 0)})),s}),e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function(e,t,n){var d,u,h,f,p=e&c.F,g=e&c.G,m=e&c.S,b=e&c.P,v=e&c.B,y=g?i:m?i[t]||(i[t]={}):(i[t]||{})[l],w=g?o:o[t]||(o[t]={}),x=w[l]||(w[l]={});for(d in g&&(n=t),n)u=!p&&y&&void 0!==y[d],h=(u?y:n)[d],f=v&&u?a(h,i):b&&"function"==typeof h?a(Function.call,h):h,y&&s(y,d,h,e&c.U),w[d]!=h&&r(w,d,f),b&&x[d]!=h&&(x[d]=h)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){var n=s(e),l=arguments.length,c=1,d=o.f,u=r.f;while(l>c){var h,f=a(arguments[c++]),p=d?i(f).concat(d(f)):i(f),g=p.length,m=0;while(g>m)u.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,d=Math.min,u=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,o){var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=g(n,e,this,t);if(o.done)return o.value;var u=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var b=u.global;if(b){var v=u.unicode;u.lastIndex=0}var y=[];while(1){var w=l(u,h);if(null===w)break;if(y.push(w),!b)break;var x=String(w[0]);""===x&&(u.lastIndex=a(h,r(u.lastIndex),v))}for(var C="",_=0,k=0;k<y.length;k++){w=y[k];for(var S=String(w[0]),O=c(d(s(w.index),h.length),0),E=[],L=1;L<w.length;L++)E.push(p(w[L]));var A=w.groups;if(f){var M=[S].concat(E,O,h);void 0!==A&&M.push(A);var $=String(t.apply(void 0,M))}else $=m(S,h,O,E,A,t);O>=_&&(C+=h.slice(_,O)+$,_=O+S.length)}return C+h.slice(_)}];function m(e,t,i,r,s,a){var l=i+e.length,c=r.length,d=f;return void 0!==s&&(s=o(s),d=h),n.call(a,d,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var d=+o;if(0===d)return n;if(d>c){var h=u(d/10);return 0===h?n:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):n}a=r[d-1]}return void 0===a?"":a}))}}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=n("2b4c"),d=c("iterator"),u=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),g=0;g<p.length;g++){var m,b=p[g],v=f[b],y=s[b],w=y&&y.prototype;if(w&&(w[d]||a(w,d,h),w[u]||a(w,u,b),l[b]=h,v))for(m in i)w[m]||r(w,m,i[m],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),d=r(s,c);if(e&&n!=n){while(c>d)if(a=l[d++],a!=a)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l}));n("a481");function i(){return"undefined"!==typeof window?window.console:e.console}var o=i();function r(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var s=/-(\w)/g,a=r((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){o=!0,r=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(o)throw r}}return n}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return o(e)||r(e,t)||a(e,t)||l()}n("6762"),n("2fdb");function d(e){if(Array.isArray(e))return s(e)}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return d(e)||u(e)||a(e)||h()}var p=n("a352"),g=n.n(p),m=n("c649");function b(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function v(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,n,i){if(!e)return[];var o=e.map((function(e){return e.elm})),r=t.length-i,s=f(t).map((function(e,t){return t>=r?o.length:o.indexOf(e)}));return n?s.filter((function(e){return-1!==e})):s}function w(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}function C(e){return["transition-group","TransitionGroup"].includes(e)}function _(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&C(n.tag)}function k(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var i=0,o=0,r=k(t,n,"header");r&&(i=r.length,e=e?[].concat(f(r),f(e)):f(r));var s=k(t,n,"footer");return s&&(o=s.length,e=e?[].concat(f(e),f(s)):f(s)),{children:e,headerOffset:i,footerOffset:o}}function O(e,t){var n=null,i=function(e,t){n=b(n,e,t)},o=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(i("attrs",o),!t)return n;var r=t.on,s=t.props,a=t.attrs;return i("on",r),i("props",s),Object.assign(n.attrs,a),n}var E=["Start","Add","Remove","Update","End"],L=["Choose","Unchoose","Sort","Filter","Clone"],A=["Move"].concat(E,L).map((function(e){return"on"+e})),M=null,$={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},T={name:"draggable",inheritAttrs:!1,props:$,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=_(t);var n=S(t,this.$slots,this.$scopedSlots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var s=O(this.$attrs,this.componentData);return e(this.getTag(),s,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};E.forEach((function(n){t["on"+n]=x.call(e,n)})),L.forEach((function(n){t["on"+n]=w.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m["a"])(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m["a"])(t);-1===A.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=v(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&C(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var o=i.realList,r={list:o,component:i};if(t!==n&&o&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return Object.assign(s,r)}return r},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),M=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(m["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(m["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m["d"])(e.clone)},onDragUpdate:function(e){Object(m["d"])(e.item),Object(m["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=n.indexOf(t.related),o=e.component.getVmIndex(i),r=-1!==n.indexOf(M);return r||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,r=this.computeFutureIndex(i,e);Object.assign(o,{futureIndex:r});var s=Object.assign({},e,{relatedContext:i,draggedContext:o});return n(s,t)},onDragEnd:function(){this.computeIndexes(),M=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var R=T;t["default"]=R}})["default"]}))},b87d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-radio-group",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,size:e.field.options.size},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.buttonStyle?e._l(e.field.options.optionItems,(function(n,i){return t("el-radio-button",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:n.value,disabled:n.disabled,border:e.field.options.border}},[e._v(e._s(n.label))])})):e._l(e.field.options.optionItems,(function(n,i){return t("el-radio",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:n.value,disabled:n.disabled,border:e.field.options.border}},[e._v(e._s(n.label))])}))],2)],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"radio-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("aa61"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"ef35f5b6",null);t["default"]=h.exports},b8b3:function(e,t,n){},b8d7:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-select-field",use:"icon-select-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-select-field"><defs><style type="text/css"></style></defs><path d="M374.784 649.514667a32 32 0 0 1 3.072 41.685333l-3.114667 3.584L225.28 843.946667a32 32 0 0 1-37.845333 5.504l-3.968-2.56-85.333334-64a32 32 0 0 1 34.432-53.76l3.968 2.56 63.146667 47.36 129.834667-129.621334a32 32 0 0 1 45.269333 0.042667zM906.154667 725.333333a32 32 0 0 1 4.309333 63.701334l-4.309333 0.298666h-448a32 32 0 0 1-4.352-63.744l4.352-0.256h448z m0.512-256a32 32 0 0 1 4.352 63.701334l-4.352 0.298666h-448a32 32 0 0 1-4.352-63.701333L458.666667 469.333333h448zM374.826667 137.557333a32 32 0 0 1 2.986666 41.685334l-3.114666 3.584L224.853333 332.032a32 32 0 0 1-37.888 5.418667l-3.925333-2.56-84.906667-64a32 32 0 0 1 34.517334-53.674667l3.968 2.56 62.72 47.274667 130.261333-129.578667a32 32 0 0 1 45.226667 0.085333z m531.328 75.818667a32 32 0 0 1 4.309333 63.701333l-4.309333 0.298667H459.349333a32 32 0 0 1-4.352-63.744l4.352-0.256h446.805334z" p-id="40341" /></symbol>'});s.a.add(a);t["default"]=a},b8e9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("div",{class:[e.designState?"slot-wrapper-design":"slot-wrapper-render"]},[e._t(e.field.options.name,null,{formModel:e.formModel}),e.designState?t("div",{staticClass:"slot-title"},[e._v(e._s(e.field.options.label))]):e._e()],2)])},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"slot-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("6295"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"856e2df6",null);t["default"]=h.exports},b90a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onCreated","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onCreated",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onCreated-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:[]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"20e467a8",null);t["default"]=d.exports},b968:function(e,t,n){"use strict";n("55b9")},b980:function(e,t,n){var i=n("d039"),o=n("5c6c");e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},ba08:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endDatePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("913f"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"76c3fdc8",null);t["default"]=h.exports},ba30:function(e,t,n){},bae2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-color-picker",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"color-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"667e90e8",null);t["default"]=d.exports},bb4f:function(e,t,n){"use strict";n("827a")},bb60:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[t("el-switch",{model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"cascader-multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"115602ef",null);t["default"]=d.exports},bc16:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.buttonIcon")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.icon,callback:function(t){e.$set(e.optionModel,"icon",t)},expression:"optionModel.icon"}})],1)},o=[],r=n("79fa"),s={name:"icon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4b90cd5a",null);t["default"]=c.exports},bc3a:function(e,t,n){e.exports=n("cee4")},c029:function(e,t,n){"use strict";const i=n("7899");let o={};i.keys().map(e=>{let t=i(e).default;o[t.name]=t}),t["a"]=o},c04e:function(e,t,n){var i=n("c65b"),o=n("861d"),r=n("d9b5"),s=n("dc4a"),a=n("485a"),l=n("b622"),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var n,l=s(e,d);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!o(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c061:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.noLabelSetting?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.label")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.label,callback:function(t){e.$set(e.optionModel,"label",t)},expression:"optionModel.label"}})],1)},o=[],r=n("79fa"),s={name:"label-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5d9d81e5",null);t["default"]=c.exports},c077:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-cascader",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{options:e.field.options.optionItems,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"show-all-levels":e.showFullPath,props:{checkStrictly:e.field.options.checkStrictly,multiple:e.field.options.multiple,expandTrigger:"hover"},placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder")},on:{"visible-change":e.hideDropDownOnClick,"expand-change":e.hideDropDownOnClick,focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"cascader-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{showFullPath(){return void 0===this.field.options.showAllLevels||!!this.field.options.showAllLevels}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{hideDropDownOnClick(){setTimeout(()=>{document.querySelectorAll(".el-cascader-panel .el-radio").forEach(e=>{e.onclick=()=>{this.$refs.fieldEditor.dropDownVisible=!1}})},100)}}},d=c,u=(n("c35e"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"9fb36e9a",null);t["default"]=h.exports},c0d5:function(e,t,n){"use strict";n("4979")},c345:function(e,t,n){"use strict";var i=n("c532"),o=["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"];e.exports=function(e){var t,n,r,s={};return e?(i.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c35e:function(e,t,n){"use strict";n("93a7")},c391:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onFileRemove","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFileRemove",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFileRemove-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["file","fileList"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"21c42c04",null);t["default"]=d.exports},c3b2:function(e,t,n){"use strict";n("2ff1")},c3f1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.responsive")}},[t("el-switch",{model:{value:e.optionModel.responsive,callback:function(t){e.$set(e.optionModel,"responsive",t)},expression:"optionModel.responsive"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-responsive-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1d360e4e",null);t["default"]=c.exports},c3f8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onSubFormRowInsert","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowInsert",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowInsert-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ae0fbd12",null);t["default"]=d.exports},c401:function(e,t,n){"use strict";var i=n("c532"),o=n("2444");e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},c430:function(e,t){e.exports=!1},c52d:function(e,t,n){"use strict";n("6ac7")},c532:function(e,t,n){"use strict";var i=n("1d2b"),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function b(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function y(e){return f(e)&&v(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function k(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=k(e[n],t):p(t)?e[n]=k({},t):r(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)_(arguments[n],t);return e}function S(e,t,n){return _(t,(function(t,o){e[o]=n&&"function"===typeof t?i(t,n):t})),e}function O(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:r,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:d,isString:u,isNumber:h,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:b,isFunction:v,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:C,forEach:_,merge:k,extend:S,trim:x,stripBOM:O}},c610:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.hasConfig("optionItems")?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-input",{attrs:{type:"text"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"14ff026e",null);t["default"]=d.exports},c65b:function(e,t,n){var i=n("40d5"),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},c67a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onSubFormRowAdd","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowAdd",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowAdd-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4e7e840d",null);t["default"]=d.exports},c6b6:function(e,t,n){var i=n("e330"),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},c6cd:function(e,t,n){var i=n("da84"),o=n("6374"),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},c6d2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.startPlaceholder")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.startPlaceholder,callback:function(t){e.$set(e.optionModel,"startPlaceholder",t)},expression:"optionModel.startPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"startPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"10c0a37e",null);t["default"]=c.exports},c6e3:function(e,t,n){"use strict";function i(e,t,n){this.$children.forEach(o=>{var r=o.$options.componentName;r===e?(o.$emit.apply(o,[t].concat(n)),i.apply(o,[e,t].concat([n]))):i.apply(o,[e,t].concat([n]))})}t["a"]={methods:{dispatch(e,t,n){var i=this.$parent||this.$root,o=i.$options.componentName;while(i&&(!o||o!==e))i=i.$parent,i&&(o=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast(e,t,n){i.call(this,e,t,n)}}}},c885:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-custom-component",use:"icon-custom-component-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-custom-component"><defs><style type="text/css"></style></defs><path d="M811.008 335.872c-2.048-7.168-11.264-9.216-17.408-4.096L690.176 435.2c-8.192 8.192-20.48 8.192-28.672 0l-72.704-72.704c-8.192-8.192-8.192-20.48 0-28.672l104.448-104.448c5.12-5.12 3.072-14.336-4.096-17.408-17.408-4.096-35.84-7.168-54.272-7.168-108.544 0-195.584 94.208-183.296 204.8 2.048 17.408 6.144 32.768 12.288 48.128L225.28 697.344c-27.648 27.648-27.648 73.728 0 101.376 14.336 14.336 32.768 21.504 51.2 21.504s36.864-7.168 51.2-21.504l238.592-238.592c15.36 6.144 31.744 10.24 48.128 12.288 111.616 12.288 204.8-74.752 204.8-183.296 0-18.432-3.072-36.864-8.192-53.248z" p-id="68660" /></symbol>'});s.a.add(a);t["default"]=a},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c9d4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"tab-container"},[t("el-tabs",{ref:e.widget.id,class:[e.customClass],attrs:{type:e.widget.displayType},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},e._l(e.visibleTabs,(function(n,i){return t("el-tab-pane",{key:i,attrs:{label:n.options.label,disabled:n.options.disabled,name:n.options.name}},[e._l(n.widgetList,(function(i,o){return["container"===i.category?[t(e.getComponentByContainer(i),{key:o,tag:"component",attrs:{widget:i,"parent-list":n.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[t(i.type+"-widget",{key:o,tag:"component",attrs:{field:i,"parent-list":n.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)})),1)],1)])},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("34f0"),d=n("c029"),u={name:"tab-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],c["a"]],components:{ContainerItemWrapper:l["default"],...d["a"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{activeTabName:""}},computed:{visibleTabs(){return this.widget.tabs.filter(e=>!e.options.hidden)}},created(){this.initRefList()},mounted(){this.initActiveTab()},beforeDestroy(){this.unregisterFromRefList()},methods:{initActiveTab(){if("tab"===this.widget.type&&this.widget.tabs.length>0){let e=this.widget.tabs.filter(e=>!0===e.options.active);e.length>0?this.activeTabName=e[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}},h=u,f=n("2877"),p=Object(f["a"])(h,i,o,!1,null,"66f2f987",null);t["default"]=p.exports},ca00:function(e,t,n){"use strict";n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return s})),n.d(t,"l",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"s",(function(){return g})),n.d(t,"r",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"t",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"c",(function(){return C})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return k})),n.d(t,"b",(function(){return S}));n("14d9");var i=n("b311"),o=n.n(i);function r(e){return null===e||void 0===e}function s(e){return null!==e&&void 0!==e}function a(e){return void 0===e||!e&&0!==e&&"0"!==e||!/[^\s]/.test(e)}const l=function(){return Math.floor(1e5*Math.random()+2e4*Math.random()+5e3*Math.random())},c=function(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))},d=function(e,t){Object.keys(t).forEach(n=>{e[n]=t[n]})},u=function(e){let t=window.onresize;"function"!=typeof window.onresize?window.onresize=e:window.onresize=function(){t(),e()}},h=function(e,t=""){let n=document.getElementsByTagName("head")[0],i=document.getElementById("vform-custom-css");i&&n.removeChild(i),t&&(i=document.getElementById("vform-custom-css-"+t),i&&n.removeChild(i));let o=document.createElement("style");o.type="text/css",o.rel="stylesheet",o.id=t?"vform-custom-css-"+t:"vform-custom-css";try{o.appendChild(document.createTextNode(e))}catch(r){o.styleSheet.cssText=e}n.appendChild(o)},f=function(e,t=""){let n=document.getElementsByTagName("body")[0],i=document.getElementById("v_form_global_functions");i&&n.removeChild(i),t&&(i=document.getElementById("v_form_global_functions-"+t),i&&n.removeChild(i));let o=document.createElement("script");o.id=t?"v_form_global_functions-"+t:"v_form_global_functions",o.type="text/javascript",o.innerHTML=e,n.appendChild(o)},p=function(e,t){let n=encodeURIComponent(e),i=document.getElementById(n);if(!i){let i=document.createElement("script");i.src=e,i.id=n,document.body.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!==i.readyState&&"complete"!==i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}}};function g(e,t,n=null){e&&e.forEach(e=>{e.formItemFlag?t(e,n):"grid"===e.type?e.cols.forEach(n=>{g(n.widgetList,t,e)}):"table"===e.type?e.rows.forEach(n=>{n.cols.forEach(n=>{g(n.widgetList,t,e)})}):"tab"===e.type?e.tabs.forEach(n=>{g(n.widgetList,t,e)}):("sub-form"===e.type||"container"===e.category)&&g(e.widgetList,t,e)})}function m(e,t){e&&e.forEach(e=>{"container"===e.category&&t(e),"grid"===e.type?e.cols.forEach(e=>{m(e.widgetList,t)}):"table"===e.type?e.rows.forEach(e=>{e.cols.forEach(e=>{m(e.widgetList,t)})}):"tab"===e.type?e.tabs.forEach(e=>{m(e.widgetList,t)}):("sub-form"===e.type||"container"===e.category)&&m(e.widgetList,t)})}function b(e,t){e&&e.forEach(e=>{t(e),"grid"===e.type?e.cols.forEach(e=>{t(e),b(e.widgetList,t)}):"table"===e.type?e.rows.forEach(e=>{e.cols.forEach(e=>{t(e),b(e.widgetList,t)})}):"tab"===e.type?e.tabs.forEach(e=>{b(e.widgetList,t)}):("sub-form"===e.type||"container"===e.category)&&b(e.widgetList,t)})}function v(e,t){e.category?y(e,t):e.formItemFlag&&t(e)}function y(e,t){"grid"===e.type?e.cols.forEach(e=>{e.widgetList.forEach(e=>{v(e,t)})}):"table"===e.type?e.rows.forEach(e=>{e.cols.forEach(e=>{e.widgetList.forEach(e=>{v(e,t)})})}):"tab"===e.type?e.tabs.forEach(e=>{e.widgetList.forEach(e=>{v(e,t)})}):("sub-form"===e.type||"container"===e.category)&&e.widgetList.forEach(e=>{v(e,t)})}function w(e){if(!e)return[];let t=[],n=e=>{t.push({type:e.type,name:e.options.name,field:e})};return g(e,n),t}function x(e){if(!e)return[];let t=[],n=e=>{t.push({type:e.type,name:e.options.name,container:e})};return m(e,n),t}function C(e,t,n,i,r){const s=new o.a(t.target,{text:()=>e});s.on("success",()=>{n.success(i),s.destroy()}),s.on("error",()=>{n.error(r),s.destroy()}),s.onClick(t)}function _(e){let t=window.location.search.substring(1),n=t.split("&");for(let i=0;i<n.length;i++){let t=n[i].split("=");if(t[0]==e)return t[1]}}function k(){return{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:"",functions:"",layoutType:"PC",onFormCreated:"",onFormMounted:"",onFormDataChange:""}}function S(){return{widgetList:[],formConfig:c(k())}}},ca84:function(e,t,n){var i=n("e330"),o=n("1a2d"),r=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,d=[];for(n in i)!o(a,n)&&o(i,n)&&l(d,n);while(t.length>c)o(i,n=t[c++])&&(~s(d,n)||l(d,n));return d}},cab0:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-time-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{"is-range":"",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endTimePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"time-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("88dd"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"68ea79e5",null);t["default"]=h.exports},cb2d:function(e,t,n){var i=n("1626"),o=n("9bf2"),r=n("13d2"),s=n("6374");e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&r(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(d){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},cb41:function(e,t,n){"use strict";n("3984")},cb7c:function(e,t,n){},cbdd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.vertical")}},[t("el-switch",{model:{value:e.optionModel.vertical,callback:function(t){e.$set(e.optionModel,"vertical",t)},expression:"optionModel.vertical"}})],1)},o=[],r=n("79fa"),s={name:"vertical-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"8e7b19b4",null);t["default"]=c.exports},cc12:function(e,t,n){var i=n("da84"),o=n("861d"),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},cc5f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[t("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[t("el-option",{attrs:{label:"datetime",value:"datetime"}}),t("el-option",{attrs:{label:"date",value:"date"}}),t("el-option",{attrs:{label:"dates",value:"dates"}}),t("el-option",{attrs:{label:"year",value:"year"}}),t("el-option",{attrs:{label:"month",value:"month"}}),t("el-option",{attrs:{label:"week",value:"week"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1eb20f34",null);t["default"]=c.exports},cc78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[t("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,n){return t("el-option",{key:n,attrs:{label:e,value:e}})})),1)],1)},o=[],r=n("79fa"),s=n("ca00"),a={name:"customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{cssClassList:[]}},created(){this.cssClassList=Object(s["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",e=>{this.cssClassList=e})}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"18a2c67d",null);t["default"]=d.exports},ccd7:function(e,t,n){},cd36:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default"),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():t("div",{staticClass:"container-action"},[t("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),"table"===e.widget.type?t("i",{staticClass:"iconfont icon-insertrow",attrs:{title:e.i18nt("designer.hint.insertRow")},on:{click:function(t){return t.stopPropagation(),e.appendTableRow(e.widget)}}}):e._e(),"table"===e.widget.type?t("i",{staticClass:"iconfont icon-insertcolumn",attrs:{title:e.i18nt("designer.hint.insertColumn")},on:{click:function(t){return t.stopPropagation(),e.appendTableCol(e.widget)}}}):e._e(),"grid"===e.widget.type||"table"===e.widget.type?t("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneContainer(e.widget)}}}):e._e(),t("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():t("div",{staticClass:"drag-handler"},[t("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),t("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.widget.type,"extension.widgetLabel."+e.widget.type)))]),!0===e.widget.options.hidden?t("i",{staticClass:"iconfont icon-hide"}):e._e()])],2)},o=[],r=n("79fa"),s=n("61ca"),a={name:"container-wrapper",mixins:[r["b"],s["a"]],props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},l=a,c=(n("0a5e"),n("2877")),d=Object(c["a"])(l,i,o,!1,null,"b98cf8dc",null);t["default"]=d.exports},cdce:function(e,t,n){var i=n("da84"),o=n("1626"),r=i.WeakMap;e.exports=o(r)&&/native code/.test(String(r))},ce0e:function(e,t,n){},ce37:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPullTitle")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.pull,callback:function(t){e.$set(e.optionModel,"pull",e._n(t))},expression:"optionModel.pull"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-pull-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5a74fe7e",null);t["default"]=c.exports},cee4:function(e,t,n){"use strict";var i=n("c532"),o=n("1d2b"),r=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new r(e),n=o(r.prototype.request,t);return i.extend(n,r.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=r,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},cf32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-input-number",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"number-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("1f49"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"a039267e",null);t["default"]=h.exports},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),o=n("1626"),r=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},d0c9:function(e,t,n){},d119:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-file-upload-field",use:"icon-file-upload-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file-upload-field"><defs><style type="text/css"></style></defs><path d="M676.48 72.96l209.92 211.2 9.6 23.04v620.8l-32 32h-704l-32-32v-832l32-32h494.08l22.4 8.96zM640 320h192l-192-192v192zM192 128v768h640V384H608L576 352V128H192z m512 320H320v64h384V448zM320 576h384v64H320V576z m384 128H320v64h384v-64z" p-id="65361" /></symbol>'});s.a.add(a);t["default"]=a},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},d2bb:function(e,t,n){var i=n("e330"),o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d2d9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[t("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,n){return t("el-option",{key:n,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.tabPaneSetting")}}),t("el-form-item",{staticClass:"panes-setting",attrs:{"label-width":"0"}},[t("draggable",e._b({attrs:{tag:"ul",list:e.selectedWidget.tabs}},"draggable",{group:"panesGroup",ghostClass:"ghost",handle:".drag-option"},!1),[e._l(e.selectedWidget.tabs,(function(n,i){return t("li",{key:i,staticClass:"col-item"},[t("el-checkbox",{staticStyle:{"margin-right":"8px"},attrs:{disabled:""},on:{change:t=>e.onTabPaneActiveChange(t,n)},model:{value:n.options.active,callback:function(t){e.$set(n.options,"active",t)},expression:"tpItem.options.active"}},[e._v(e._s(e.i18nt("designer.setting.paneActive")))]),t("el-input",{staticStyle:{width:"155px"},attrs:{type:"text"},model:{value:n.options.label,callback:function(t){e.$set(n.options,"label",t)},expression:"tpItem.options.label"}}),t("i",{staticClass:"iconfont icon-drag drag-option"}),t("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteTabPane(e.selectedWidget,i)}}})],1)})),t("div",[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addTabPane(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addTabPane")))])],1)],2)],1)],1)},o=[],r=n("79fa"),s=n("b76a"),a=n.n(s),l=n("ca00"),c={name:"tab-customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],components:{Draggable:a.a},props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{cssClassList:[]}},created(){this.cssClassList=Object(l["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",e=>{this.cssClassList=e})},methods:{onTabPaneActiveChange(e,t){},addTabPane(e){this.designer.addTabPaneOfTabs(e),this.designer.emitHistoryChange()},deleteTabPane(e,t){1!==e.tabs.length?(this.designer.deleteTabPaneOfTabs(e,t),this.designer.emitHistoryChange()):this.$message.info(this.i18nt("designer.hint.lastPaneCannotBeDeleted"))}}},d=c,u=(n("c52d"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"6ddd24c1",null);t["default"]=h.exports},d2e4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-textarea-field",use:"icon-textarea-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-textarea-field"><defs><style type="text/css"></style></defs><path d="M896.4 173.1H128.9c-35.2 0-49 13.8-49 49v575.6c0 35.2 13.8 49 49 49h767.5c35.2 0 49-13.8 49-49V222.1c0-35.2-13.8-49-49-49z m0 592.6c0 16-12.8 32-32 32H160.9c-19.2 0-32-12.8-32-32V254.1c0-16 12.8-32 32-32h703.5c19.2 0 32 12.8 32 32v511.6z" p-id="12940" /><path d="M710.2 766.7h141.5c8.1 0 14.7-6.6 14.7-14.7V610.4c0-1.3-1.6-2-2.6-1.1L709.1 764.1c-1 1-0.3 2.6 1.1 2.6zM207.2 594.3h-13.5c-10 0-18.2-8.2-18.2-18.2V291.8c0-10.2 8.4-18.6 18.6-18.6h12.8c10.2 0 18.6 8.4 18.6 18.6v284.3c-0.1 10-8.3 18.2-18.3 18.2z" p-id="12941" /></symbol>'});s.a.add(a);t["default"]=a},d3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showStops")}},[t("el-switch",{model:{value:e.optionModel.showStops,callback:function(t){e.$set(e.optionModel,"showStops",t)},expression:"optionModel.showStops"}})],1)},o=[],r=n("79fa"),s={name:"showStops-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"24139f8e",null);t["default"]=c.exports},d3fb:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWdJREFUeNrsmjFuwjAUhp8jxJQBujQH4ABhYmaDU7Sdu/QIcIKKE0APwM7GEQgLU/dmo0N3178SI0Qx2KpQ8sJ7kpUojsn/2S/JrxeImhRa64lpe13fgLbJsWZVCu+Yzdq0lMlcZ0qpPnai8sAbI/GI1K6EXYG92XSYZfy3WYWuBdAc71kDoFquzo+MaLHx+6H1S9iYNCF6Hxf7w/n180c9otcBUdz+2xdxmOnVJ9Fyd74v4pIu2RdzAFcIgAAIgABUG62qBTz3/c57jGsK8JRKClVgC3I/E+cygPIUEgABEAABEIDGADjrQvlP0XzfkqFjQgMlld7DiXiEC4DF7F8qbMGvbPPbXBjWGMUqBIphoWO8zBzE+1bmQgMpZ8X4XuN4jDyFBEAABEAA7g8giRkDwAPhE9PNzNx/jFmWh5u4c2aO7WdWm0Izhvfv7JBC5SrAVrH9qwGVB6ZYmjqnDTRa8Y2IXwEGAI1dAiVnUcUMAAAAAElFTkSuQmCC"},d58f:function(e,t,n){var i=n("59ed"),o=n("7b0b"),r=n("44ad"),s=n("07fa"),a=TypeError,l=function(e){return function(t,n,l,c){i(n);var d=o(t),u=r(d),h=s(d),f=e?h-1:0,p=e?-1:1;if(l<2)while(1){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw a("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in u&&(c=n(c,u[f],f,d));return c}};e.exports={left:l(!1),right:l(!0)}},d67b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-input",{ref:"fieldEditor",staticClass:"hide-spin-button",attrs:{disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,type:e.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.appendButton?t("el-button",{class:e.field.options.buttonIcon,attrs:{slot:"append",disabled:e.field.options.disabled||e.field.options.appendButtonDisabled},nativeOn:{click:function(t){return e.emitAppendButtonClick.apply(null,arguments)}},slot:"append"}):e._e(),e.field.options.prependText?t("template",{slot:"prepend"},[e._v(e._s(e.field.options.prependText))]):e._e(),e.field.options.appendText?t("template",{slot:"append"},[e._v(e._s(e.field.options.appendText))]):e._e()],2)],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"input-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType(){return"number"===this.field.options.type?"text":this.field.options.type}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("b1c5"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"5d87f036",null);t["default"]=h.exports},d67f:function(e,t,n){"use strict";t["a"]={methods:{initRefList(){null!==this.refList&&this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef(e,t=!1){let n=this.refList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getFormRef(){return this.refList["v_form_ref"]},getComponentByContainer(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"}}}},d719:function(e,t,n){"use strict";n("6787")},d741:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.withCredentials")}},[t("el-switch",{model:{value:e.optionModel.withCredentials,callback:function(t){e.$set(e.optionModel,"withCredentials",t)},expression:"optionModel.withCredentials"}})],1)},o=[],r=n("79fa"),s={name:"withCredentials-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3d15893a",null);t["default"]=c.exports},d773:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onSubFormRowDelete","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowDelete",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowDelete-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["subFormData","deletedDataRow"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"1a13f95e",null);t["default"]=d.exports},d834:function(e,t,n){},d8ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-grid",use:"icon-grid-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-grid"><defs><style type="text/css"></style></defs><path d="M819.3536 921.6h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z" p-id="8473" /></symbol>'});s.a.add(a);t["default"]=a},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9b5:function(e,t,n){var i=n("d066"),o=n("1626"),r=n("3a9b"),s=n("fdbf"),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&r(t.prototype,a(e))}},d9e2:function(e,t,n){var i=n("23e7"),o=n("da84"),r=n("2ba4"),s=n("e5cb"),a="WebAssembly",l=o[a],c=7!==Error("e",{cause:7}).cause,d=function(e,t){var n={};n[e]=s(e,t,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},u=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,c),i({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};d("Error",(function(e){return function(t){return r(e,this,arguments)}})),d("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),d("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),d("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),d("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),d("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),d("URIError",(function(e){return function(t){return r(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},da4e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||e.i18nt("render.hint.datePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("b613"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"ea728dba",null);t["default"]=h.exports},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-sub-form",use:"icon-sub-form-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sub-form"><defs><style type="text/css"></style></defs><path d="M512 106.666667H112a5.333333 5.333333 0 0 0-5.333333 5.333333v800a5.333333 5.333333 0 0 0 5.333333 5.333333h800a5.333333 5.333333 0 0 0 5.333333-5.333333V112a5.333333 5.333333 0 0 0-5.333333-5.333333z m0 74.666666h325.333333a5.333333 5.333333 0 0 1 5.333334 5.333334v160a5.333333 5.333333 0 0 1-5.333334 5.333333H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333333V186.666667a5.333333 5.333333 0 0 1 5.333334-5.333334z m85.333333 250.666667v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H432a5.333333 5.333333 0 0 1-5.333333-5.333334V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333z m-410.666666-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333334V432a5.333333 5.333333 0 0 1 5.333334-5.333333z m485.333333 410.666666V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333334 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333334 5.333334h-160a5.333333 5.333333 0 0 1-5.333333-5.333334z" p-id="97355" /></symbol>'});s.a.add(a);t["default"]=a},dc4a:function(e,t,n){var i=n("59ed"),o=n("7234");e.exports=function(e,t){var n=e[t];return o(n)?void 0:i(n)}},dc77:function(e,t,n){},dca8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonDisabled")}},[t("el-switch",{model:{value:e.optionModel.appendButtonDisabled,callback:function(t){e.$set(e.optionModel,"appendButtonDisabled",t)},expression:"optionModel.appendButtonDisabled"}})],1)},o=[],r=n("79fa"),s={name:"appendButtonDisabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5ce987da",null);t["default"]=c.exports},de19:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-divider",{ref:"fieldEditor",attrs:{direction:"horizontal","content-position":e.field.options.contentPosition}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=n("828b"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"divider-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("0916"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"0faf59b2",null);t["default"]=h.exports},dea5:function(e,t,n){},df12:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{label:e.i18nt("designer.setting.htmlContent")}}),t("el-form-item",{attrs:{"label-width":"0"}},[t("el-input",{staticClass:"html-content-editor",attrs:{type:"textarea",rows:5},model:{value:e.optionModel.htmlContent,callback:function(t){e.$set(e.optionModel,"htmlContent",t)},expression:"optionModel.htmlContent"}})],1)],1)},o=[],r=n("79fa"),s={name:"htmlContent-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("767a"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"a3fcc8ba",null);t["default"]=c.exports},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var o=e[i];"."===o?e.splice(i,1):".."===o?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===i&&(o=!1,i=t+1);return-1===i?"":e.slice(n,i)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s=r>=0?arguments[r]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===r(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=i(e.split("/")),r=i(n.split("/")),s=Math.min(o.length,r.length),a=s,l=0;l<s;l++)if(o[l]!==r[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),47===t){if(!o){i=r;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(o=!1,i=s+1),46===a?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df90:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.endPlaceholder")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.endPlaceholder,callback:function(t){e.$set(e.optionModel,"endPlaceholder",t)},expression:"optionModel.endPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"endPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"373a69c1",null);t["default"]=c.exports},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=i((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var o=i&&!0===i.clone;return o&&e(n)?r(t(n),n,i):n}function i(t,i,o){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,o):e(i)?s[a]=r(t[a],i,o):-1===t.indexOf(i)&&s.push(n(i,o))})),s}function o(t,i,o){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],o)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=r(t[a],i[a],o):s[a]=n(i[a],o)})),s}function r(e,t,r){var s=Array.isArray(t),a=r||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,r):n(t,r):o(e,t,r)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}))})),r=i((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=r.svg,l=r.xlink,c={};c[a.name]=a.uri,c[l.name]=l.uri;var d=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),i=s(n);return"<svg "+i+">"+e+"</svg>"},u=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e);return u}))}).call(this,n("c8ba"))},e072:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onValidate","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onValidate",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onValidate-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["rule","value","callback"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4509c6b4",null);t["default"]=d.exports},e090:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxLength")}},[t("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"1"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.maxLength,callback:function(t){e.maxLength=t},expression:"maxLength"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"maxLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxLength:{get(){return this.optionModel["maxLength"]},set(e){!e||isNaN(e)?this.optionModel.maxLength=null:this.optionModel.maxLength=Number(e)}}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"361e66e1",null);t["default"]=d.exports},e0b7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[t("el-switch",{attrs:{"active-text":"true","inactive-text":"false"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"switch-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"98bc90ba",null);t["default"]=d.exports},e11b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[t("el-row",{key:e.widget.id,staticClass:"grid-container",class:[e.selected?"selected":"",e.customClass],attrs:{gutter:e.widget.options.gutter},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[e._l(e.widget.cols,(function(n,i){return[t("grid-col-widget",{key:n.id,attrs:{widget:n,designer:e.designer,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight}})]}))],2)],1)},o=[],r=n("79fa"),s=n("f772"),a=n("61ca"),l=n("cd36"),c=n("26a6"),d={name:"grid-widget",componentName:"ContainerWidget",mixins:[r["b"],a["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:l["default"],GridColWidget:s["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},watch:{},created(){this.initRefList()},mounted(){},methods:{}},u=d,h=(n("63d7"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"ec57838c",null);t["default"]=f.exports},e163:function(e,t,n){var i=n("1a2d"),o=n("1626"),r=n("7b0b"),s=n("f7723"),a=n("e177"),l=s("IE_PROTO"),c=Object,d=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=r(e);if(i(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1a1:function(e,t,n){"use strict";n("700c")},e330:function(e,t,n){var i=n("40d5"),o=Function.prototype,r=o.call,s=i&&o.bind.bind(r,r);e.exports=i?s:function(e){return function(){return r.apply(e,arguments)}}},e391:function(e,t,n){var i=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e3e8:function(e,t,n){},e447:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{attrs:{"label-width":"0"}},[t("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.columnSetting")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.gutter")}},[t("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.gutter,callback:function(t){e.$set(e.optionModel,"gutter",t)},expression:"optionModel.gutter"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colsOfGrid")}}),t("el-form-item",{attrs:{"label-width":"0"}},[e._l(e.selectedWidget.cols,(function(n,i){return t("li",{key:i,staticClass:"col-item"},[t("span",{staticClass:"col-span-title"},[e._v(e._s(e.i18nt("designer.setting.colSpanTitle"))+e._s(i+1))]),t("el-input-number",{staticClass:"cell-span-input",attrs:{min:1,max:24},on:{change:(t,o)=>e.spanChanged(e.selectedWidget,n,i,t,o)},model:{value:n.options.span,callback:function(t){e.$set(n.options,"span",e._n(t))},expression:"colItem.options.span"}}),t("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteCol(e.selectedWidget,i)}}})],1)})),t("div",[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addNewCol(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addColumn")))])],1)],2)],1)},o=[],r=n("79fa"),s={name:"gutter-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},methods:{spanChanged(e){let t=0;e.cols.forEach(e=>{t+=e.options.span}),t>24&&console.log("列栅格之和超出24"),this.designer.saveCurrentHistoryStep()},deleteCol(e,t){this.designer.deleteColOfGrid(e,t),this.designer.emitHistoryChange()},addNewCol(e){this.designer.addNewColOfGrid(e),this.designer.emitHistoryChange()}}},a=s,l=(n("e1a1"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"ebfa1f06",null);t["default"]=c.exports},e486:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-node-tree",use:"icon-node-tree-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-node-tree"><defs><style type="text/css"></style></defs><path d="M332.48 500.864a25.6 25.6 0 1 0 0-51.2H192.384v-184.96a115.2 115.2 0 0 0 89.6-112.128c0-63.488-51.712-115.2-115.2-115.2s-115.2 51.712-115.2 115.2a115.2 115.2 0 0 0 89.6 112.128v696.192a25.6 25.6 0 1 0 51.2 0v-141.12c2.304 0.192 4.48 0.512 6.912 0.512h133.184a25.6 25.6 0 1 0 0-51.2H199.296c-3.456 0-5.504-0.448-6.08-0.256a29.184 29.184 0 0 1-0.896-8.576V500.8h140.16zM102.784 152.64c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64-64-28.736-64-64zM921.216 360.064h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4zM921.216 679.616h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4z" p-id="4876" /></symbol>'});s.a.add(a);t["default"]=a},e5cb:function(e,t,n){"use strict";var i=n("d066"),o=n("1a2d"),r=n("9112"),s=n("3a9b"),a=n("d2bb"),l=n("e893"),c=n("aeb0"),d=n("7156"),u=n("e391"),h=n("ab36"),f=n("0d26"),p=n("b980"),g=n("83ab"),m=n("c430");e.exports=function(e,t,n,b){var v="stackTraceLimit",y=b?2:1,w=e.split("."),x=w[w.length-1],C=i.apply(null,w);if(C){var _=C.prototype;if(!m&&o(_,"cause")&&delete _.cause,!n)return C;var k=i("Error"),S=t((function(e,t){var n=u(b?t:e,void 0),i=b?new C(e):new C;return void 0!==n&&r(i,"message",n),p&&r(i,"stack",f(i.stack,2)),this&&s(_,this)&&d(i,this,S),arguments.length>y&&h(i,arguments[y]),i}));if(S.prototype=_,"Error"!==x?a?a(S,k):l(S,k,{name:!0}):g&&v in C&&(c(S,C,v),c(S,C,"prepareStackTrace")),l(S,C),!m)try{_.name!==x&&r(_,"name",x),_.constructor=S}catch(O){}return S}}},e646:function(e,t,n){"use strict";n("cb7c")},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6b8:function(e,t,n){"use strict";n("121c")},e801:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[t("el-input",{staticClass:"hide-spin-button",attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.optionModel.labelWidth,callback:function(t){e.$set(e.optionModel,"labelWidth",t)},expression:"optionModel.labelWidth"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"labelWidth-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"39b735cc",null);t["default"]=d.exports},e86f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[t("el-switch",{on:{change:e.onMultipleSelected},model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"30a47068",null);t["default"]=d.exports},e893:function(e,t,n){var i=n("1a2d"),o=n("56ef"),r=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var a=o(t),l=s.f,c=r.f,d=0;d<a.length;d++){var u=a[d];i(e,u)||n&&i(n,u)||l(e,u,c(t,u))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e8d7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.showAllLevels")}},[t("el-switch",{model:{value:e.optionModel.showAllLevels,callback:function(t){e.$set(e.optionModel,"showAllLevels",t)},expression:"optionModel.showAllLevels"}})],1)},o=[],r=n("79fa"),s={name:"showAllLevels-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1f0743ee",null);t["default"]=c.exports},e934:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-section",use:"icon-section-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-section"><defs><style type="text/css"></style></defs><path d="M141.074286 906.496h741.851428c89.581714 0 134.582857-44.562286 134.582857-132.845714V250.331429c0-88.283429-45.001143-132.845714-134.582857-132.845715H141.074286C51.931429 117.504 6.491429 161.645714 6.491429 250.331429V773.668571c0 88.704 45.44 132.845714 134.582857 132.845715z m1.28-68.992c-42.861714 0-66.852571-22.710857-66.852572-67.291429V253.805714c0-44.580571 23.990857-67.291429 66.852572-67.291428h739.291428c42.422857 0 66.852571 22.710857 66.852572 67.291428V770.194286c0 44.580571-24.429714 67.291429-66.852572 67.291428z" p-id="11329" /></symbol>'});s.a.add(a);t["default"]=a},e96c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.activeText")}},[t("el-input",{model:{value:e.optionModel.activeText,callback:function(t){e.$set(e.optionModel,"activeText",t)},expression:"optionModel.activeText"}})],1)},o=[],r=n("79fa"),s={name:"activeText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2684f3ad",null);t["default"]=c.exports},ebb5:function(e,t,n){"use strict";var i,o,r,s=n("4b11"),a=n("83ab"),l=n("da84"),c=n("1626"),d=n("861d"),u=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("cb2d"),m=n("9bf2").f,b=n("3a9b"),v=n("e163"),y=n("d2bb"),w=n("b622"),x=n("90e3"),C=n("69f3"),_=C.enforce,k=C.get,S=l.Int8Array,O=S&&S.prototype,E=l.Uint8ClampedArray,L=E&&E.prototype,A=S&&v(S),M=O&&v(O),$=Object.prototype,T=l.TypeError,R=w("toStringTag"),F=x("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",q=s&&!!y&&"Opera"!==h(l.opera),I=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},D=function(e){if(!d(e))return!1;var t=h(e);return"DataView"===t||u(N,t)||u(P,t)},W=function(e){var t=v(e);if(d(t)){var n=k(t);return n&&u(n,j)?n[j]:W(t)}},H=function(e){if(!d(e))return!1;var t=h(e);return u(N,t)||u(P,t)},B=function(e){if(H(e))return e;throw T("Target is not a typed array")},z=function(e){if(c(e)&&(!y||b(A,e)))return e;throw T(f(e)+" is not a typed array constructor")},V=function(e,t,n,i){if(a){if(n)for(var o in N){var r=l[o];if(r&&u(r.prototype,e))try{delete r.prototype[e]}catch(s){try{r.prototype[e]=t}catch(c){}}}M[e]&&!n||g(M,e,n?t:q&&O[e]||t,i)}},U=function(e,t,n){var i,o;if(a){if(y){if(n)for(i in N)if(o=l[i],o&&u(o,e))try{delete o[e]}catch(r){}if(A[e]&&!n)return;try{return g(A,e,n?t:q&&A[e]||t)}catch(r){}}for(i in N)o=l[i],!o||o[e]&&!n||g(o,e,t)}};for(i in N)o=l[i],r=o&&o.prototype,r?_(r)[j]=o:q=!1;for(i in P)o=l[i],r=o&&o.prototype,r&&(_(r)[j]=o);if((!q||!c(A)||A===Function.prototype)&&(A=function(){throw T("Incorrect invocation")},q))for(i in N)l[i]&&y(l[i],A);if((!q||!M||M===$)&&(M=A.prototype,q))for(i in N)l[i]&&y(l[i].prototype,M);if(q&&v(L)!==M&&y(L,M),a&&!u(M,R))for(i in I=!0,m(M,R,{get:function(){return d(this)?this[F]:void 0}}),N)l[i]&&p(l[i],F,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:q,TYPED_ARRAY_TAG:I&&F,aTypedArray:B,aTypedArrayConstructor:z,exportTypedArrayMethod:V,exportTypedArrayStaticMethod:U,getTypedArrayConstructor:W,isView:D,isTypedArray:H,TypedArray:A,TypedArrayPrototype:M}},ecaa:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-switch",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"switch-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{}},d=c,u=(n("3e88"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"88bb0ad8",null);t["default"]=h.exports},ecf2:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slot-field",use:"icon-slot-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slot-field"><defs><style type="text/css"></style></defs><path d="M475.937391 244.869565m18.031305 0l36.285217 0q18.031304 0 18.031304 18.031305l0 217.266087q0 18.031304-18.031304 18.031304l-36.285217 0q-18.031304 0-18.031305-18.031304l0-217.266087q0-18.031304 18.031305-18.031305Z" p-id="2852" /><path d="M305.41913 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2853" /><path d="M646.233043 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2854" /><path d="M827.436522 122.212174H196.563478a74.573913 74.573913 0 0 0-74.351304 74.351304v630.873044a74.573913 74.573913 0 0 0 74.351304 74.351304h630.873044a74.573913 74.573913 0 0 0 74.351304-74.351304V196.563478a74.573913 74.573913 0 0 0-74.351304-74.351304z m52.090435 705.224348a52.090435 52.090435 0 0 1-52.090435 52.090435H196.563478a52.090435 52.090435 0 0 1-52.090435-52.090435V196.563478a52.090435 52.090435 0 0 1 52.090435-52.090435h630.873044a52.090435 52.090435 0 0 1 52.090435 52.090435z" p-id="2855" /></symbol>'});s.a.add(a);t["default"]=a},efdc:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"sub-form-container"},[t("el-row",{staticClass:"header-row"},[t("div",{staticClass:"action-header-column"},[t("span",{staticClass:"action-label"},[e._v(e._s(e.i18nt("render.hint.subFormAction")))]),t("el-button",{staticClass:"action-button",attrs:{disabled:e.actionDisabled,round:"",type:"primary",size:"mini",title:e.i18nt("render.hint.subFormAddActionHint")},on:{click:e.addSubFormRow}},[e._v(" "+e._s(e.i18nt("render.hint.subFormAddAction"))),t("i",{staticClass:"el-icon-plus el-icon-right"})])],1),e._l(e.widget.widgetList,(function(n){return[t("div",{key:n.id+"thc",staticClass:"field-header-column",class:[e.getLabelAlign(e.widget,n),n.options.required?"is-required":""],style:{width:n.options.columnWidth}},[n.options.labelIconClass?t("span",{staticClass:"custom-label"},["front"===n.options.labelIconPosition?[n.options.labelTooltip?[t("el-tooltip",{attrs:{content:n.options.labelTooltip,effect:"light"}},[t("i",{class:n.options.labelIconClass})]),e._v(e._s(n.options.label))]:[t("i",{class:n.options.labelIconClass}),e._v(e._s(n.options.label))]]:"rear"===n.options.labelIconPosition?[n.options.labelTooltip?[e._v(" "+e._s(n.options.label)),t("el-tooltip",{attrs:{content:n.options.labelTooltip,effect:"light"}},[t("i",{class:n.options.labelIconClass})])]:[e._v(" "+e._s(n.options.label)),t("i",{class:n.options.labelIconClass})]]:e._e()],2):[t("span",{attrs:{title:n.options.labelTooltip}},[e._v(e._s(n.options.label))])]],2)]}))],2),e._l(e.rowIdData,(function(n,i){return t("el-row",{key:n,staticClass:"sub-form-row"},[t("div",{staticClass:"sub-form-action-column hide-label"},[t("div",{staticClass:"action-button-column"},[t("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-circle-plus-outline",title:e.i18nt("render.hint.insertSubFormRow")},on:{click:function(t){return e.insertSubFormRow(i)}}}),t("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-delete",title:e.i18nt("render.hint.deleteSubFormRow")},on:{click:function(t){return e.deleteSubFormRow(i)}}}),e.widget.options.showRowNumber?t("span",{staticClass:"row-number-span"},[e._v("#"+e._s(i+1))]):e._e()],1)]),e._l(e.widget.widgetList,(function(o,r){return[t("div",{key:o.id+"tc"+n,staticClass:"sub-form-table-column hide-label",style:{width:o.options.columnWidth}},[t(o.type+"-widget",{key:e.fieldSchemaData[i][r].id,tag:"component",attrs:{field:e.fieldSchemaData[i][r],"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget,"sub-form-row-id":n,"sub-form-row-index":i,"sub-form-col-index":r}})],1)]}))],2)}))],2)])},o=[],r=(n("14d9"),n("c6e3")),s=n("79fa"),a=n("ca00"),l=n("d67f"),c=n("90c2"),d=n("34f0"),u=n("c029"),h={name:"sub-form-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],l["a"],d["a"]],components:{ContainerItemWrapper:c["default"],...u["a"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted(){this.handleSubFormFirstRowAdd()},beforeDestroy(){this.unregisterFromRefList()},methods:{getLabelAlign(e,t){return t.options.labelAlign||e.options.labelAlign},registerSubFormToRefList(){"sub-form"===this.widget.type&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData(e){if("sub-form"===this.widget.type){this.rowIdData.splice(0,this.rowIdData.length);let t=this.formModel[this.widget.options.name];t&&t.length>0&&(t.forEach(()=>{this.rowIdData.push("id"+Object(a["e"])())}),e&&setTimeout(()=>{this.handleSubFormRowChange(t)},800))}},addToRowIdData(){this.rowIdData.push("id"+Object(a["e"])())},insertToRowIdData(e){this.rowIdData.splice(e,0,"id"+Object(a["e"])())},deleteFromRowIdData(e){this.rowIdData.splice(e,1)},getRowIdData(){return this.rowIdData},getWidgetRefOfSubForm(e,t){let n=e+"@row"+this.rowIdData[t];return this.getWidgetRef(n)},initFieldSchemaData(){if("sub-form"!==this.widget.type)return;let e=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),e>0)for(let t=0;t<e;t++){let e=[];this.widget.widgetList.forEach(t=>{e.push(this.cloneFieldSchema(t))}),this.fieldSchemaData.push(e)}},addToFieldSchemaData(e){let t=[];this.widget.widgetList.forEach(e=>{t.push(this.cloneFieldSchema(e))}),void 0===e?this.fieldSchemaData.push(t):this.fieldSchemaData.splice(e,0,t)},deleteFromFieldSchemaData(e){this.fieldSchemaData.splice(e,1)},cloneFieldSchema(e){let t=Object(a["d"])(e);return t.id=e.type+Object(a["e"])(),t},initEventHandler(){"sub-form"===this.widget.type&&this.$on("setFormData",e=>{this.initRowIdData(!1),this.initFieldSchemaData();let t=e[this.widget.options.name]||[];setTimeout(()=>{this.handleSubFormRowChange(t)},800)})},handleSubFormFirstRowAdd(){if("sub-form"===this.widget.type&&this.widget.options.showBlankRow&&1===this.rowIdData.length){let e=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(e,this.rowIdData[0]),this.handleSubFormRowChange(e)}},addSubFormRow(){let e={};this.widget.widgetList.forEach(t=>{t.formItemFlag&&(e[t.options.name]=t.options.defaultValue)});let t=this.formModel[this.widget.options.name]||[];t.push(e),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(t,this.rowIdData[t.length-1]),this.handleSubFormRowChange(t)},insertSubFormRow(e){let t={};this.widget.widgetList.forEach(e=>{e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)});let n=this.formModel[this.widget.options.name]||[];n.splice(e,0,t),this.insertToRowIdData(e),this.addToFieldSchemaData(e),this.handleSubFormRowInsert(n,this.rowIdData[e]),this.handleSubFormRowChange(n)},deleteSubFormRow(e){this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{let t=this.formModel[this.widget.options.name]||[],n=Object(a["d"])(t[e]);t.splice(e,1),this.deleteFromRowIdData(e),this.deleteFromFieldSchemaData(e),this.handleSubFormRowDelete(t,n),this.handleSubFormRowChange(t)}).catch(()=>{})},handleSubFormRowChange(e){if(this.widget.options.onSubFormRowChange){let t=new Function("subFormData",this.widget.options.onSubFormRowChange);t.call(this,e)}},handleSubFormRowAdd(e,t){if(this.widget.options.onSubFormRowAdd){let n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd);n.call(this,e,t)}},handleSubFormRowInsert(e,t){if(this.widget.options.onSubFormRowInsert){let n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert);n.call(this,e,t)}},handleSubFormRowDelete(e,t){if(this.widget.options.onSubFormRowDelete){let n=new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete);n.call(this,e,t)}}}},f=h,p=(n("2a68"),n("2877")),g=Object(p["a"])(f,i,o,!1,null,"7dbaba43",null);t["default"]=g.exports},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f14c:function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){var e=l.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{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"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(e){var t=this.createKeywordMapper({"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|function|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"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?: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]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{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:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:l},{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:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{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:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("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:[o("function_arguments"),{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+l+")(\\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"}),(!e||0!=e.jsx)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(c,a),t.JavaScriptHighlightRules=c})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),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(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.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/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e){var a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);a&&(i+=n)}else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";a=t.match(/^\s*(\/?)\*/);a&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(d.prototype),t.Mode=d})),function(){ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},f250:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-rate-field",use:"icon-rate-field-usage",viewBox:"0 0 1069 1024",content:'<symbol class="icon" viewBox="0 0 1069 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rate-field"><defs><style type="text/css"></style></defs><path d="M633.73 378.02l9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-0.263l94.568 185.635zM496.647 85.52L374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682 0.802z" p-id="49627" /></symbol>'});s.a.add(a);t["default"]=a},f2db:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-alert",use:"icon-alert-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-alert"><defs><style type="text/css"></style></defs><path d="M512 85.162667a319.573333 319.573333 0 0 1 319.829333 309.333333l0.170667 10.666667v174.805333l58.88 134.656a53.290667 53.290667 0 0 1-48.853333 74.709333L640 789.418667a128 128 0 0 1-255.786667 7.509333L384 789.290667l-201.6 0.042666a53.333333 53.333333 0 0 1-48.938667-74.581333L192 580.010667V405.162667c0-177.28 143.018667-320 320-320zM576 789.333333l-128 0.128a64 64 0 0 0 127.701333 6.144l0.256-6.272zM512 149.162667c-141.653333 0-256 114.090667-256 256v188.16L198.656 725.333333h627.072L768 593.365333V405.717333l-0.170667-9.6A255.488 255.488 0 0 0 512 149.162667z m384 202.837333h85.333333a32 32 0 0 1 4.352 63.701333L981.333333 416h-85.333333a32 32 0 0 1-4.352-63.701333L896 352z m-853.333333 0h85.333333a32 32 0 0 1 4.352 63.701333L128 416H42.666667a32 32 0 0 1-4.352-63.701333L42.666667 352z m921.6-243.2a32 32 0 0 1-2.816 41.685333l-3.584 3.114667-85.333334 64a32 32 0 0 1-41.984-48.085333l3.584-3.114667 85.333334-64a32 32 0 0 1 44.8 6.4zM104.533333 102.4l85.333334 64a32 32 0 1 1-38.4 51.2l-85.333334-64a32 32 0 1 1 38.4-51.2z" p-id="6432" /></symbol>'});s.a.add(a);t["default"]=a},f319:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelTooltip")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelTooltip,callback:function(t){e.$set(e.optionModel,"labelTooltip",t)},expression:"optionModel.labelTooltip"}})],1)},o=[],r=n("79fa"),s={name:"labelTooltip-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4bb85541",null);t["default"]=c.exports},f388:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!!e.isSubFormChildWidget(),expression:"!!isSubFormChildWidget()"}],attrs:{label:e.i18nt("designer.setting.widgetColumnWidth")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.columnWidth,callback:function(t){e.$set(e.optionModel,"columnWidth",t)},expression:"optionModel.columnWidth"}})],1)],1)},o=[],r=n("79fa"),s={name:"columnWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},inject:["isSubFormChildWidget"]},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5f410a01",null);t["default"]=c.exports},f4a6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:"onFocus","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFocus",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFocus-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{eventParams:["event"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ccd01010",null);t["default"]=d.exports},f4c1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("vue-editor",{ref:"fieldEditor",attrs:{"editor-toolbar":e.customToolbar,disabled:e.field.options.disabled,placeholder:e.field.options.placeholder},on:{"text-change":e.handleRichEditorChangeEvent,focus:e.handleRichEditorFocusEvent,blur:e.handleRichEditorBlurEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=n("9eeb"),s=n("5873"),a=n("c6e3"),l=n("79fa"),c=n("ca00"),d=n("2d11"),u={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[a["a"],d["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"],VueEditor:s["a"]},inject:["refList","formConfig","globalOptionData","globalModel"],data(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeDestroy(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent(){this.oldFieldValue=Object(c["d"])(this.fieldModel)},handleRichEditorBlurEvent(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}},h=u,f=(n("c3b2"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"29731672",null);t["default"]=p.exports},f4ca:function(e,t,n){},f582:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-checkbox-field",use:"icon-checkbox-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-checkbox-field"><defs><style type="text/css"></style></defs><path d="M897.940444 896.76927c6.258541-6.27696 10.256598-14.833847 10.256598-24.530696L908.197042 147.672294c0-9.118682-3.998057-18.235316-10.256598-24.533766l0 0c-6.27696-6.257517-14.815427-9.695826-24.511253-9.695826l0 0-723.784474 0 0 0c-9.68764 0-18.235316 3.437286-24.503067 9.695826l0 0c-6.26775 6.297426-9.686616 15.414061-9.686616 24.533766L115.455033 872.238574c0 9.69685 3.419889 18.253736 9.686616 24.530696 6.26775 6.277984 14.815427 10.276041 24.503067 10.276041l0 0 723.784474 0 0 0C883.126041 907.045311 891.663484 903.047254 897.940444 896.76927L897.940444 896.76927zM149.644717 61.521169l723.784474 0 0 0c23.933085 0 45.586245 9.69685 60.97984 25.110911 15.396665 15.97381 25.073048 37.665855 25.073048 61.039191L959.482079 872.238574c0 23.969924-9.676383 45.64355-25.073048 61.056588l0 0c-15.393595 15.395642-37.046754 25.092491-60.97984 25.092491l0 0-723.784474 0 0 0c-23.364127 0-45.016263-9.69685-60.971653-25.092491l0 0c-15.395642-15.414061-25.082258-37.086663-25.082258-61.056588L63.590805 147.672294c0-23.37436 9.686616-45.065382 25.082258-61.039191l0 0C104.628454 71.218018 126.28059 61.521169 149.644717 61.521169L149.644717 61.521169z" p-id="25736" /><path d="M417.41939 698.269357c-6.025227 0-12.047384-2.301416-16.667611-6.89913L259.500731 550.119179c-9.172917-9.148357-9.172917-24.093744 0-33.290197 9.169847-9.147334 24.115234-9.147334 33.288151 0l124.583436 124.606972 312.89429-312.916802c9.194406-9.171893 24.139793-9.171893 33.288151 0 9.196453 9.171893 9.196453 24.116257 0 33.289174L433.991834 691.370227c-4.618181 4.644787-10.642384 6.89913-16.665565 6.89913L417.41939 698.269357z" p-id="25737" /></symbol>'});s.a.add(a);t["default"]=a},f584:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.fileTypes"))+" "),t("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.fileTypesHelp")}},[t("i",{staticClass:"el-icon-info"})])],1),t("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","allow-create":"",filterable:"","default-first-option":""},model:{value:e.optionModel.fileTypes,callback:function(t){e.$set(e.optionModel,"fileTypes",t)},expression:"optionModel.fileTypes"}},e._l(e.uploadFileTypes,(function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"file-upload-fileTypes-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data(){return{uploadFileTypes:[{value:"pdf",label:"pdf"},{value:"zip",label:"zip"},{value:"rar",label:"rar"},{value:"doc",label:"doc"},{value:"xls",label:"xls"},{value:"docx",label:"docx"},{value:"xlsx",label:"xlsx"},{value:"jpg",label:"jpg"},{value:"png",label:"png"},{value:"jpeg",label:"jpeg"},{value:"cad",label:"cad"},{value:"shp",label:"shp"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"68a1d928",null);t["default"]=c.exports},f5df:function(e,t,n){var i=n("00ee"),o=n("1626"),r=n("c6b6"),s=n("b622"),a=s("toStringTag"),l=Object,c="Arguments"==r(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=d(t=l(e),a))?n:c?r(t):"Object"==(i=r(t))&&o(t.callee)?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6ca:function(e,t,n){"use strict";n("6003")},f6e6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[t("div",{key:e.widget.id,staticClass:"table-container",class:[e.selected?"selected":"",e.customClass],on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[t("table",{staticClass:"table-layout"},[t("tbody",e._l(e.widget.rows,(function(n,i){return t("tr",{key:n.id},[e._l(n.cols,(function(o,r){return[o.merged?e._e():t("table-cell-widget",{key:o.id,attrs:{widget:o,designer:e.designer,"parent-list":e.widget.cols,"row-index":i,"row-length":e.widget.rows.length,"col-index":r,"col-length":n.cols.length,"col-array":n.cols,"row-array":e.widget.rows,"parent-widget":e.widget}})]}))],2)})),0)])])])},o=[],r=n("79fa"),s=n("61ca"),a=n("cd36"),l=n("1516"),c=n("26a6"),d={name:"table-widget",componentName:"ContainerWidget",mixins:[r["b"],s["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:a["default"],TableCellWidget:l["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},watch:{},created(){this.initRefList()},mounted(){},methods:{}},u=d,h=(n("0346"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"37d3c0b7",null);t["default"]=f.exports},f746:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("el-row",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"grid-container",class:[e.customClass],attrs:{gutter:e.widget.options.gutter}},[e._l(e.widget.cols,(function(n,i){return[t("grid-col-item",{key:i,attrs:{widget:n,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2)],1)},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("a93f"),d=n("34f0"),u={name:"vf-grid-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],d["a"]],components:{ContainerItemWrapper:l["default"],GridColItem:c["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeDestroy(){this.unregisterFromRefList()},methods:{}},h=u,f=n("2877"),p=Object(f["a"])(h,i,o,!1,null,"7382a44f",null);t["default"]=p.exports},f772:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return"grid-col"===e.widget.type?t("el-col",e._b({key:e.widget.id,staticClass:"grid-cell",class:[e.selected?"selected":"",e.customClass],style:e.colHeightStyle,nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},"el-col",e.layoutProps,!1),[t("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{end:t=>e.onGridDragEnd(t,e.widget.widgetList),add:t=>e.onGridDragAdd(t,e.widget.widgetList),update:e.onGridDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[t("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(n,i){return["container"===n.category?[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{widget:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{field:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?t("div",{staticClass:"grid-col-action"},[t("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?t("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),t("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneGridCol(e.widget)}}}),t("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?t("div",{staticClass:"grid-col-handler"},[t("i",[e._v(e._s(e.i18nt("designer.widgetLabel."+e.widget.type)))])]):e._e()],1):e._e()},o=[],r=(n("14d9"),n("b76a")),s=n.n(r),a=n("79fa"),l=n("c029"),c=n("26a6"),d={name:"GridColWidget",componentName:"GridColWidget",mixins:[a["b"],c["a"]],inject:["refList"],components:{Draggable:s.a,...l["a"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,colHeight:{type:String,default:null}},data(){return{layoutProps:{span:this.widget.options.span||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""},colHeightStyle(){return this.colHeight?{height:this.colHeight+"px"}:{}}},watch:{"designer.formConfig.layoutType":{handler(e){this.widget.options.responsive?this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12:this.layoutProps.span=this.widget.options.span||12}},"widget.options.responsive":{handler(e){let t=this.designer.formConfig.layoutType;this.layoutProps.span=e?"H5"===t?this.widget.options.xs||12:"Pad"===t?this.widget.options.sm||12:this.widget.options.md||12:this.widget.options.span||12}},"widget.options.span":{handler(e){this.layoutProps.span=e}},"widget.options.md":{handler(e){this.layoutProps.span=e}},"widget.options.sm":{handler(e){this.layoutProps.span=e}},"widget.options.xs":{handler(e){this.layoutProps.span=e}},"widget.options.offset":{handler(e){this.layoutProps.offset=e}},"widget.options.push":{handler(e){this.layoutProps.push=e}},"widget.options.pull":{handler(e){this.layoutProps.pull=e}}},created(){this.initRefList(),this.initLayoutProps()},methods:{initLayoutProps(){if(this.widget.options.responsive){let e=this.designer.formConfig.layoutType;this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12}else this.layoutProps.spn=this.widget.options.span},onGridDragEnd(e,t){},onGridDragAdd(e,t){const n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",this.widget)},onGridDragUpdate(){this.designer.emitHistoryChange()},selectWidget(e){console.log("id: "+e.id),this.designer.setSelected(e)},checkContainerMove(e){return this.designer.checkWidgetMove(e)},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList)},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList)},cloneGridCol(e){this.designer.cloneGridCol(e,this.parentWidget)},removeWidget(){if(this.parentList){let e=null;1===this.parentList.length?this.parentWidget&&(e=this.parentWidget):e=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(e),this.designer.emitHistoryChange()})}}}},u=d,h=(n("835d"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"07e1e7bf",null);t["default"]=f.exports},f7723:function(e,t,n){var i=n("5692"),o=n("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},f8cd:function(e,t,n){var i=n("5926"),o=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw o("The argument can't be less than 0");return t}},fa85:function(e,t,n){"use strict";n.r(t);n("14d9");var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPushTitle")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.push,callback:function(t){e.$set(e.optionModel,"push",e._n(t))},expression:"optionModel.push"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-push-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"570c4841",null);t["default"]=c.exports},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var i=window.document.currentScript,o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var r=n("bc3a"),s=n.n(r),a=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"main-container full-height"},[e.showTitle("formHeader")?t("el-header",{staticClass:"main-header"},[t("div",{staticClass:"float-left main-title"},[t("img",{attrs:{src:n("d3fb")}}),t("span",{staticClass:"bold"},[e._v("VForm")]),e._v(" "+e._s(e.i18nt("application.productTitle")))])]):e._e(),t("el-container",[t("el-aside",{staticClass:"side-panel"},[t("widget-panel",{attrs:{designer:e.designer}})],1),t("el-container",{staticClass:"center-layout-container"},[t("el-header",{staticClass:"toolbar-header"},[t("toolbar-panel",{ref:"toolbarRef",attrs:{designer:e.designer},scopedSlots:e._u([e._l(e.$slots,(function(t,n){return{key:n,fn:function(){return[e._t(n)]},proxy:!0}}))],null,!0)})],1),t("el-main",{staticClass:"form-widget-main"},[t("el-scrollbar",{staticClass:"container-scroll-bar",style:{height:e.scrollerHeight}},[t("v-form-widget",{ref:"formRef",attrs:{designer:e.designer,"form-config":e.designer.formConfig}})],1)],1)],1),t("el-aside",[t("setting-panel",{attrs:{designer:e.designer,"selected-widget":e.designer.selectedWidget,"form-config":e.designer.formConfig}})],1)],1)],1)},l=[],c=(n("14d9"),function(){var e=this,t=e._self._c;return t("el-scrollbar",{staticClass:"side-scroll-bar",style:{height:e.scrollerHeight}},[t("div",{staticClass:"panel-container"},[t("el-tabs",{staticClass:"no-bottom-margin indent-left-margin",model:{value:e.firstTab,callback:function(t){e.firstTab=t},expression:"firstTab"}},[t("el-tab-pane",{attrs:{name:"componentLib"}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("i",{staticClass:"el-icon-set-up"}),e._v(" "+e._s(e.i18nt("designer.componentLib")))]),t("el-collapse",{staticClass:"widget-collapse",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.containerTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.containers,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:e.checkContainerMove},on:{end:e.onContainerDragEnd}},e._l(e.containers,(function(n,i){return t("li",{key:i,staticClass:"container-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addContainerByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1),t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.basicFieldTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.basicFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.basicFields,(function(n,i){return t("li",{key:i,staticClass:"field-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addFieldByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1),t("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.advancedFieldTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.advancedFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.advancedFields,(function(n,i){return t("li",{key:i,staticClass:"field-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addFieldByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1),t("el-collapse-item",{attrs:{name:"4",title:e.i18nt("designer.customFieldTitle")}},[t("draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.customFields,(function(n,i){return t("li",{key:i,staticClass:"field-widget-item",attrs:{title:n.displayName},on:{dblclick:function(t){return e.addFieldByDbClick(n)}}},[t("span",[t("svg-icon",{attrs:{"icon-class":n.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+n.type,"extension.widgetLabel."+n.type)))],1)])})),0)],1)],1)],1),e.showFormTemplates()?t("el-tab-pane",{staticStyle:{padding:"8px"},attrs:{name:"formLib"}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("i",{staticClass:"el-icon-c-scale-to-original"}),e._v(" "+e._s(e.i18nt("designer.formLib")))]),e._l(e.formTemplates,(function(n,i){return[t("el-card",{key:i,staticClass:"ft-card",attrs:{"bord-style":{padding:"0"},shadow:"hover"}},[t("el-popover",{attrs:{placement:"right",trigger:"hover"}},[t("img",{staticStyle:{width:"200px"},attrs:{slot:"reference",src:n.imgUrl},slot:"reference"}),t("img",{staticStyle:{height:"600px",width:"720px"},attrs:{src:n.imgUrl}})]),t("div",{staticClass:"bottom clear-fix"},[t("span",{staticClass:"ft-title"},[e._v("#"+e._s(i+1)+" "+e._s(n.title))]),t("el-button",{staticClass:"right-button",attrs:{type:"text"},on:{click:function(t){return e.loadFormTemplate(n.jsonUrl)}}},[e._v(" "+e._s(e.i18nt("designer.hint.loadFormTemplate")))])],1)],1)]}))],2):e._e()],1)],1)])}),d=[],u=n("b76a"),h=n.n(u);const f=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],p=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"el-icon-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:"",onAppendButtonClick:"",prependText:"",appendText:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",fontSize:"13px",customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"<b>html text</b>",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],g=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["pdf","zip","rar","doc","docx","xls","xlsx","png","jpeg","jpg","cad","shp"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",placeholder:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,clearable:!0,filterable:!1,multiple:!1,checkStrictly:!1,showAllLevels:!0,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],m=[];function b(e){f.push(e)}function v(e){m.push(e)}const y=[{title:"单列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"表单模板详细说明..."},{title:"多列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"表单模板详细说明..."},{title:"分组表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"表单模板详细说明..."},{title:"标签页表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"表单模板详细说明..."},{title:"主从表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"表单模板详细说明..."},{title:"响应式表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"表单模板详细说明..."},{title:"问卷调查表",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"表单模板详细说明..."},{title:"固定表格表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"表单模板详细说明..."}];var w=n("ca00"),x=n("79fa"),C=function(){var e=this,t=e._self._c;return t("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":e.iconName}}),e.title?t("title",[e._v(e._s(e.title))]):e._e()])},_=[],k={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName(){return"#icon-"+this.iconClass},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},S=k,O=(n("0a8b"),n("2877")),E=Object(O["a"])(S,C,_,!1,null,"1a7581a2",null),L=E.exports,A={name:"FieldPanel",mixins:[x["b"]],components:{Draggable:h.a,SvgIcon:L},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:f,basicFields:p,advancedFields:g,customFields:m,formTemplates:y}},computed:{},mounted(){this.loadWidgets(),this.scrollerHeight=window.innerHeight-56+"px",Object(w["a"])(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56+"px"})})},methods:{isBanned(e){return this.getBannedWidgets().indexOf(e)>-1},showFormTemplates(){return void 0===this.designerConfig["formTemplates"]||!!this.designerConfig["formTemplates"]},loadWidgets(){this.containers=this.containers.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!e.internal&&!this.isBanned(e.type)),this.basicFields=this.basicFields.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!this.isBanned(e.type)),this.advancedFields=this.advancedFields.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!this.isBanned(e.type)),this.customFields=this.customFields.map(e=>({...e,displayName:this.i18n2t("designer.widgetLabel."+e.type,"extension.widgetLabel."+e.type)})).filter(e=>!this.isBanned(e.type))},handleContainerWidgetClone(e){return this.designer.copyNewContainerWidget(e)},handleFieldWidgetClone(e){return this.designer.copyNewFieldWidget(e)},checkContainerMove(e){return this.designer.checkWidgetMove(e)},checkFieldMove(e){return this.designer.checkFieldMove(e)},onContainerDragEnd(e){},addContainerByDbClick(e){this.designer.addContainerByDbClick(e)},addFieldByDbClick(e){this.designer.addFieldByDbClick(e)},loadFormTemplate(e){this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{s.a.get(e).then(e=>{let t=!1;"string"===typeof e.data?t=this.designer.loadFormJson(JSON.parse(e.data)):e.data.constructor===Object&&(t=this.designer.loadFormJson(e.data)),t&&this.designer.emitHistoryChange(),this.$message.success(this.i18nt("designer.hint.loadFormTemplateSuccess"))}).catch(e=>{this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed")+":"+e)})}).catch(e=>{console.error(e)})}}},M=A,$=(n("0fdc"),Object(O["a"])(M,c,d,!1,null,"9c43a0f0",null)),T=$.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toolbar-container"},[t("div",{staticClass:"left-toolbar"},[t("el-button",{attrs:{type:"text",disabled:e.undoDisabled,title:e.i18nt("designer.toolbar.undoHint")},on:{click:e.undoHistory}},[t("svg-icon",{attrs:{"icon-class":"undo"}})],1),t("el-button",{attrs:{type:"text",disabled:e.redoDisabled,title:e.i18nt("designer.toolbar.redoHint")},on:{click:e.redoHistory}},[t("svg-icon",{attrs:{"icon-class":"redo"}})],1),t("el-button-group",{staticStyle:{"margin-left":"20px"}},[t("el-button",{attrs:{type:"PC"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("PC")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.pcLayout")))]),t("el-button",{attrs:{type:"Pad"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("Pad")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.padLayout")))]),t("el-button",{attrs:{type:"H5"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("H5")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.mobileLayout")))])],1)],1),t("el-drawer",{staticClass:"node-tree-drawer",attrs:{title:e.i18nt("designer.toolbar.nodeTreeTitle"),direction:"ltr",visible:e.showNodeTreeDrawerFlag,modal:!1,size:280,"destroy-on-close":!0},on:{"update:visible":function(t){e.showNodeTreeDrawerFlag=t}}},[t("el-tree",{ref:"nodeTree",staticClass:"node-tree",attrs:{data:e.nodeTreeData,"node-key":"id","default-expand-all":"","highlight-current":"","icon-class":"el-icon-arrow-right"},on:{"node-click":e.onNodeTreeClick}})],1),t("div",{staticClass:"right-toolbar",style:{width:e.toolbarWidth+"px"}},[t("div",{staticClass:"right-toolbar-con"},[e.showToolButton("clearDesignerButton")?t("el-button",{attrs:{type:"text"},on:{click:e.clearFormWidget}},[t("i",{staticClass:"el-icon-delete"}),e._v(e._s(e.i18nt("designer.toolbar.clear")))]):e._e(),e.showToolButton("previewFormButton")?t("el-button",{attrs:{type:"text"},on:{click:e.previewForm}},[t("i",{staticClass:"el-icon-view"}),e._v(e._s(e.i18nt("designer.toolbar.preview")))]):e._e(),e.showToolButton("importJsonButton")?t("el-button",{attrs:{type:"text"},on:{click:e.importJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.importJson")))]):e._e(),e.showToolButton("exportJsonButton")?t("el-button",{attrs:{type:"text"},on:{click:e.exportJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportJson")))]):e._e(),e.showToolButton("exportCodeButton")?t("el-button",{attrs:{type:"text"},on:{click:e.exportCode}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportCode")))]):e._e(),e.showToolButton("generateSFCButton")?t("el-button",{attrs:{type:"text"},on:{click:e.generateSFC}},[t("svg-icon",{attrs:{"icon-class":"vue-sfc"}}),e._v(e._s(e.i18nt("designer.toolbar.generateSFC")))],1):e._e(),e._l(e.$slots,(function(t,n){return[e._t(n)]}))],2)]),e.showPreviewDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.preview"),visible:e.showPreviewDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,center:"","destroy-on-close":!0,"append-to-body":!0,width:"75%",fullscreen:"H5"===e.layoutType||"Pad"===e.layoutType},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[t("div",[t("div",{staticClass:"form-render-wrapper",class:["H5"===e.layoutType?"h5-layout":"Pad"===e.layoutType?"pad-layout":""]},[t("VFormRender",{ref:"preForm",attrs:{"form-json":e.formJson,"form-data":e.testFormData,"preview-state":!0,"option-data":e.testOptionData},on:{appendButtonClick:e.testOnAppendButtonClick,buttonClick:e.testOnButtonClick,formChange:e.handleFormChange}})],1)]),t("code-editor",{staticStyle:{display:"none"},model:{value:e.testFunc,callback:function(t){e.testFunc=t},expression:"testFunc"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.getFormData}},[e._v(e._s(e.i18nt("designer.hint.getFormData")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.resetForm}},[e._v(e._s(e.i18nt("designer.hint.resetForm")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.setFormDisabled}},[e._v(e._s(e.i18nt("designer.hint.disableForm")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.setFormEnabled}},[e._v(e._s(e.i18nt("designer.hint.enableForm")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showPreviewDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.closePreview")))]),e._e(),e._e(),e._e(),e._e()],1)],1):e._e(),e.showImportJsonDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.importJson"),visible:e.showImportJsonDialogFlag,"show-close":!0,center:"","append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportJsonDialogFlag=t}}},[t("el-alert",{staticClass:"alert-padding",attrs:{type:"info",title:e.i18nt("designer.hint.importJsonHint"),"show-icon":""}}),t("code-editor",{attrs:{mode:"json",readonly:!1},model:{value:e.importTemplate,callback:function(t){e.importTemplate=t},expression:"importTemplate"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.doJsonImport}},[e._v(" "+e._s(e.i18nt("designer.hint.import")))]),t("el-button",{on:{click:function(t){e.showImportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e(),e.showExportJsonDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportJson"),visible:e.showExportJsonDialogFlag,"show-close":!0,center:"","append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportJsonDialogFlag=t}}},[t("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.jsonContent,callback:function(t){e.jsonContent=t},expression:"jsonContent"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-json-btn",attrs:{type:"primary","data-clipboard-text":e.jsonRawContent},on:{click:e.copyFormJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyJson")))]),t("el-button",{on:{click:e.saveFormJson}},[e._v(e._s(e.i18nt("designer.hint.saveFormJson")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showExportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showExportCodeDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportCode"),visible:e.showExportCodeDialogFlag,"show-close":!0,center:"","append-to-body":!0,width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportCodeDialogFlag=t}}},[t("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},[t("el-tab-pane",{attrs:{label:"Vue",name:"vue"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.vueCode,callback:function(t){e.vueCode=t},expression:"vueCode"}})],1),t("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.htmlCode,callback:function(t){e.htmlCode=t},expression:"htmlCode"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-vue-btn",attrs:{type:"primary","data-clipboard-text":e.vueCode},on:{click:e.copyVueCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVueCode")))]),t("el-button",{staticClass:"copy-html-btn",attrs:{type:"primary","data-clipboard-text":e.htmlCode},on:{click:e.copyHtmlCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyHtmlCode")))]),t("el-button",{on:{click:e.saveVueCode}},[e._v(e._s(e.i18nt("designer.hint.saveVueCode")))]),t("el-button",{on:{click:e.saveHtmlCode}},[e._v(e._s(e.i18nt("designer.hint.saveHtmlCode")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showExportCodeDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showFormDataDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"dialog-title-light-bg",attrs:{title:e.i18nt("designer.hint.exportFormData"),visible:e.showFormDataDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"append-to-body":!0},on:{"update:visible":function(t){e.showFormDataDialogFlag=t}}},[t("div",{staticStyle:{border:"1px solid #DCDFE6"}},[t("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.formDataJson,callback:function(t){e.formDataJson=t},expression:"formDataJson"}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-form-data-json-btn",attrs:{type:"primary","data-clipboard-text":e.formDataRawJson},on:{click:e.copyFormDataJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyFormData")))]),t("el-button",{on:{click:e.saveFormData}},[e._v(e._s(e.i18nt("designer.hint.saveFormData")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showFormDataDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)]):e._e(),e.showExportSFCDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.generateSFC"),visible:e.showExportSFCDialogFlag,"show-close":!0,center:"","append-to-body":!0,width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportSFCDialogFlag=t}}},[t("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeSFCTab,callback:function(t){e.activeSFCTab=t},expression:"activeSFCTab"}},[t("el-tab-pane",{attrs:{label:"Vue2",name:"vue2"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCode,callback:function(t){e.sfcCode=t},expression:"sfcCode"}})],1),t("el-tab-pane",{attrs:{label:"Vue3",name:"vue3"}},[t("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCodeV3,callback:function(t){e.sfcCodeV3=t},expression:"sfcCodeV3"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"copy-vue2-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCode},on:{click:e.copyV2SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue2SFC")))]),t("el-button",{staticClass:"copy-vue3-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCodeV3},on:{click:e.copyV3SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue3SFC")))]),t("el-button",{on:{click:e.saveV2SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue2SFC")))]),t("el-button",{on:{click:e.saveV3SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue3SFC")))]),t("el-button",{attrs:{type:""},on:{click:function(t){e.showExportSFCDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e()],1)},F=[],j=function(){var e=this,t=e._self._c;return t("el-form",{ref:"renderForm",staticClass:"render-form",class:[e.customClass],attrs:{"label-position":e.labelPosition,size:e.size,"label-width":e.labelWidth,"validate-on-rule-change":!1,model:e.formDataModel},nativeOn:{submit:function(e){e.preventDefault()}}},[e._l(e.widgetList,(function(n,i){return["container"===n.category?[t(e.getContainerWidgetName(n),{key:n.id,tag:"component",attrs:{widget:n,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[t(e.getWidgetName(n),{key:n.id,tag:"component",attrs:{field:n,"form-model":e.formDataModel,designer:null,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)},q=[],I=n("c6e3"),N=n("8bbf"),P=n.n(N);const D=n("10ae");D.keys().map(e=>{let t=D(e).default;P.a.component(t.name,t)});var W=n("c029"),H={name:"VFormRender",componentName:"VFormRender",mixins:[I["a"],x["b"]],components:{...W["a"]},props:{formJson:{type:Object,default:()=>Object(w["b"])()},formData:{type:Object,default:()=>({})},optionData:{type:Object,default:()=>({})},previewState:{type:Boolean,default:!1}},provide(){return{refList:this.widgetRefList,sfRefList:this.subFormRefList,formConfig:this.formConfig,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig(){return this.formJsonObj.formConfig},widgetList(){return this.formJsonObj.widgetList},labelPosition(){return this.formConfig&&this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth(){return this.formConfig&&this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size(){return this.formConfig&&this.formConfig.size?this.formConfig.size:"medium"},customClass(){return this.formConfig&&this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject(e=!0){this.formId="vfRender"+Object(w["e"])(),e&&this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"},getWidgetName(e){return e.type+"-widget"},initLocale(){let e=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(e)},insertCustomStyleAndScriptNode(){this.formConfig&&this.formConfig.cssCode&&Object(w["j"])(this.formConfig.cssCode,this.previewState?"":this.formId),this.formConfig&&this.formConfig.functions&&Object(w["k"])(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel(e){e&&e.length>0&&e.forEach(e=>{this.buildDataFromWidget(e)})},buildDataFromWidget(e){if("container"===e.category)if("grid"===e.type)e.cols&&e.cols.length>0&&e.cols.forEach(e=>{this.buildDataFromWidget(e)});else if("table"===e.type)e.rows&&e.rows.length>0&&e.rows.forEach(e=>{e.cols&&e.cols.length>0&&e.cols.forEach(e=>{this.buildDataFromWidget(e)})});else if("tab"===e.type)e.tabs&&e.tabs.length>0&&e.tabs.forEach(e=>{e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach(e=>{this.buildDataFromWidget(e)})});else if("sub-form"===e.type){let t=e.options.name;if(this.formData.hasOwnProperty(t)){let e=this.formData[t];this.$set(this.formDataModel,t,Object(w["d"])(e))}else{let n={};e.options.showBlankRow?(e.widgetList.forEach(e=>{e.formItemFlag&&(n[e.options.name]=e.options.defaultValue)}),this.$set(this.formDataModel,t,[n])):this.$set(this.formDataModel,t,[])}}else"grid-col"===e.type||e.type,e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach(e=>{this.buildDataFromWidget(e)});else if(e.formItemFlag)if(this.formData.hasOwnProperty(e.options.name)){let t=this.formData[e.options.name];this.$set(this.formDataModel,e.options.name,Object(w["d"])(t))}else this.$set(this.formDataModel,e.options.name,e.options.defaultValue)},addFieldChangeEventHandler(){this.$off("fieldChange"),this.$on("fieldChange",(e,t,n,i,o)=>{this.handleFieldDataChange(e,t,n,i,o),this.$emit("formChange",e,t,n,this.formDataModel,i,o)})},addFieldValidateEventHandler(){this.$off("fieldValidation"),this.$on("fieldValidation",e=>{this.$refs.renderForm.validateField(e)})},registerFormToRefList(){this.widgetRefList["v_form_ref"]=this},handleFieldDataChange(e,t,n,i,o){if(this.formConfig&&this.formConfig.onFormDataChange){let r=new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange);r.call(this,e,t,n,this.formDataModel,i,o)}},handleOnCreated(){if(this.formConfig&&this.formConfig.onFormCreated){let e=new Function(this.formConfig.onFormCreated);e.call(this)}},handleOnMounted(){if(this.formConfig&&this.formConfig.onFormMounted){let e=new Function(this.formConfig.onFormMounted);e.call(this)}},findWidgetAndSetDisabled(e,t){let n=this.getWidgetRef(e);n?n.setDisabled(t):this.findWidgetOfSubFormAndSetDisabled(e,t)},findWidgetOfSubFormAndSetDisabled(e,t){this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.setDisabled(t)})},findWidgetAndSetHidden(e,t){let n=this.getWidgetRef(e);n?n.setHidden(t):this.findWidgetOfSubFormAndSetHidden(e,t)},findWidgetOfSubFormAndSetHidden(e,t){this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.setHidden(t)})},findWidgetNameInSubForm(e){let t=[],n=null,i=(t,i)=>{t.options&&t.options.name===e&&(n=i.options.name)};if(Object(w["s"])(this.widgetList,i),n){let i=this.getWidgetRef(n);if(i){let n=i.getRowIdData();n&&n.length>0&&n.forEach(n=>{t.push(e+"@row"+n)})}}return t},changeLanguage(e){Object(x["a"])(e)},getNativeForm(){return this.$refs["renderForm"]},getFormRef(){return this},getWidgetRef(e,t=!1){let n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},clearFormDataModel(){for(let e in this.formDataModel)delete this.formDataModel[e]},setFormJson(e){if(e)if("string"===typeof e||e.constructor===Object){let t=null;if(t="string"===typeof e?JSON.parse(e):e,!t.formConfig||!t.widgetList)return void this.$message.error("Invalid format of form json.");this.clearFormDataModel(),this.buildFormModel(t.widgetList),this.$set(this.formJsonObj,"formConfig",t.formConfig),this._provided.formConfig=t.formConfig,this.$set(this.formJsonObj,"widgetList",t.widgetList),this.insertCustomStyleAndScriptNode(),this.$nextTick(()=>{this.initFormObject(!1),this.handleOnMounted()})}else this.$message.error("Set form json failed.")},reloadOptionData(e){let t=[];e&&"string"===typeof e?t=[e]:e&&Array.isArray(e)&&(t=[...e]),this.broadcast("FieldWidget","reloadOptionItems",[t])},getFormData(e=!0){if(!e)return this.formDataModel;let t=function(){},n=new window.Promise((function(e,n){t=function(t,i){i?n(i):e(t)}}));return this.$refs["renderForm"].validate(e=>{e?t(this.formDataModel):t(this.formDataModel,this.i18nt("render.hint.validationFailed"))}),n},setFormData(e){Object.keys(this.formDataModel).forEach(t=>{e&&e.hasOwnProperty(t)&&(this.formDataModel[t]=Object(w["d"])(e[t]))}),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue(e){let t=this.getWidgetRef(e);if(t&&t.getValue)return t.getValue();if(!t){let t=[];return this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.getValue&&t.push(n.getValue())}),t}},setFieldValue(e,t){let n=this.getWidgetRef(e);n&&n.setValue&&n.setValue(t),n||this.findWidgetNameInSubForm(e).forEach(e=>{let n=this.getWidgetRef(e);n&&n.setValue&&n.setValue(t)})},getSubFormValues(e,t=!0){let n=this.subFormRefList[e];return n.getSubFormValues(t)},setSubFormValues(e,t){},disableForm(){let e=Object.keys(this.widgetRefList);e.forEach(e=>{let t=this.getWidgetRef(e);t&&(t.widget&&"sub-form"===t.widget.type?t.disableSubForm():t.setDisabled&&t.setDisabled(!0))})},enableForm(){let e=Object.keys(this.widgetRefList);e.forEach(e=>{let t=this.getWidgetRef(e);t&&(t.widget&&"sub-form"===t.widget.type?t.enableSubForm():t.setDisabled&&t.setDisabled(!1))})},resetForm(){let e=Object.keys(this.subFormRefList);e.forEach(e=>{this.subFormRefList[e].resetSubForm&&this.subFormRefList[e].resetSubForm()});let t=Object.keys(this.widgetRefList);t.forEach(e=>{let t=this.getWidgetRef(e);t&&!t.subFormItemFlag&&t.resetField&&t.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate(e){this.$refs.renderForm.clearValidate(e)},validateForm(e){this.$refs["renderForm"].validate(t=>{e(t)})},validateFields(){},disableWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!0):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetDisabled(e,!0)}))},enableWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!1):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetDisabled(e,!1)}))},hideWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!0):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetHidden(e,!0)}))},showWidgets(e){e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!1):Array.isArray(e)&&e.forEach(e=>{this.findWidgetAndSetHidden(e,!1)}))},getFieldWidgets(e=null){return e?Object(w["g"])(e):Object(w["g"])(this.formJsonObj.widgetList)},getContainerWidgets(e=null){return e?Object(w["f"])(e):Object(w["f"])(this.formJsonObj.widgetList)},addEC(e,t){this.externalComponents[e]=t},hasEC(e){return this.externalComponents.hasOwnProperty(e)},getEC(e){return this.externalComponents[e]}}},B=H,z=(n("35c4"),Object(O["a"])(B,j,q,!1,null,"7ce25032",null)),V=z.exports,U=n("9470"),G=n("b311"),K=n.n(G);const Y=function(e,t="vue"){let n=JSON.stringify(e);return"html"===t?`<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />\n\t<title>VForm Demo</title>\n\t<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.7/theme-chalk/index.min.css">\n\t<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.css?t=20210720">\n\t<style type="text/css">\n\t</style>\n</head>\n<body>\n\n <div id="app">\n\t <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n\t <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n\n<script type="text/javascript">\n if (!!window.ActiveXObject || "ActiveXObject" in window) { //IE load polyfill.js for Promise\n var scriptEle = document.createElement("script");\n scriptEle.type = "text/javascript";\n scriptEle.src = "https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"\n document.body.appendChild(scriptEle)\n }\n<\/script>\n<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"><\/script>\n<script src="https://cdn.staticfile.org/element-ui/2.15.7/index.min.js"><\/script>\n<script src="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.umd.min.js?t=20210720"><\/script>\n<script>\n\tnew Vue({\n el: '#app',\n data: {\n formJson: ${n},\n formData: {},\n optionData: {}\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then( function(formData) {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch( function(error) {\n // Form Validation Failed\n alert(error)\n })\n }\n }\n\t});\n<\/script>\n</body>\n</html>`:`<template>\n <div>\n <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n</template>\n<script>\n export default {\n data() {\n return {\n formJson: ${n},\n formData: {},\n optionData: {}\n }\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then(formData => {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch(error => {\n // Form Validation failed\n this.$message.error(error)\n })\n }\n }\n }\n<\/script>`};var J=n("71bc"),X=n("01ea");let Z;const Q={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function ee(e){Z?e(Z):Object(w["o"])(X["b"],()=>{Z=beautifier,e(Z)})}const te=function(e,t){let n=[],i=[],o=[],r=[];Object(w["s"])(t,s=>{Object(J["b"])(e,t,n)(s),Object(J["d"])(e,t,i)(s),Object(J["c"])(e,t,o)(s),Object(J["e"])(e,t,r)(s)});const s=Object(J["a"])(e,t),a=` import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'\n \n export default defineComponent({\n components: {},\n props: {},\n setup() {\n const state = reactive({\n ${e.modelName}: {\n ${n.join("\n")}\n },\n \n ${e.rulesName}: {\n ${i.join("\n")}\n },\n \n ${s.join("\n")}\n \n ${o.join("\n")}\n \n ${r.join("\n")}\n })\n \n const instance = getCurrentInstance()\n \n const submitForm = () => {\n instance.proxy.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n }\n \n const resetForm = () => {\n instance.proxy.$refs['vForm'].resetFields()\n }\n \n return {\n ...toRefs(state),\n submitForm,\n resetForm\n }\n }\n })`;return a};function ne(e,t){const n=e.options;let i=[];return t&&i.push(t),n.customClass&&n.customClass.length>0&&i.push(n.customClass.join(" ")),i.length>0?`class="${i.join(" ")}"`:""}const ie={grid:(e,t)=>{const n=ne(e),i=`<el-row ${n}>\n${e.cols.map(e=>{const n=e.options,i=n.responsive?"":`:span="${n.span}"`,o=n.responsive?`:md="${n.md}"`:"",r=n.responsive?`:sm="${n.sm}"`:"",s=n.responsive?`:xs="${n.xs}"`:"",a=n.offset?`:offset="${n.offset}"`:"",l=n.push?`:push="${n.push}"`:"",c=n.pull?`:pull="${n.pull}"`:"",d=ne(e,"grid-cell");return`<el-col ${i} ${o} ${r} ${s} ${a} ${l} ${c} ${d}>\n ${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}\n </el-col>`}).join("")}\n</el-row>`;return i},table:(e,t)=>{const n=ne(e,"table-layout"),i=`<div class="table-container">\n <table ${n}><tbody>\n ${e.rows.map(e=>`<tr>${e.cols.filter(e=>!e.merged).map(e=>{const n=e.options,i=ne(e,"table-cell"),o=isNaN(n.colspan)||1===n.colspan?"":`colspan="${n.colspan}"`,r=isNaN(n.rowspan)||1===n.rowspan?"":`rowspan="${n.rowspan}"`;let s=[];n.cellWidth&&s.push("width: "+n.cellWidth+" !important"),n.cellHeight&&s.push("height: "+n.cellHeight+" !important");let a=s.length>0?`style="${s.join(";")}"`:"";return`<td ${i} ${o} ${r} ${a}>${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}\n </td>`}).join("")}</tr>`).join("")}\n </tbody></table>\n</div>`;return i},tab:(e,t)=>{const n=ne(e),i=e.tabs&&e.tabs.length>0?`v-model="${e.options.name}ActiveTab"`:"",o=`<div class="tab-container">\n <el-tabs ${i} type="${e.displayType}" ${n}>\n ${e.tabs.map(e=>{const n=e.options,i=!0===n.disabled?"disabled":"";return`<el-tab-pane name="${n.name}" label="${n.label}" ${i}>\n ${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}</el-tab-pane>`}).join("")}\n </el-tabs>\n</div>`;return o},"sub-form":(e,t)=>{}};function oe(e,t){return ie[e.type]?ie[e.type](e,t):null}function re(e,t){let n=e.options;return{vModel:`v-model="${t.modelName}.${n.name}"`,readonly:n.readonly?'readonly="true"':"",disabled:n.disabled?':disabled="true"':"",size:n.size?`size="${n.size}"`:"",type:n.type?`type="${"number"===n.type?"text":n.type}"`:"",showPassword:n.showPassword?`:show-password="${n.showPassword}"`:"",placeholder:n.placeholder?`placeholder="${n.placeholder}"`:"",rows:Object(w["m"])(n.rows)&&!isNaN(n.rows)?`rows="${n.rows}"`:"",clearable:n.clearable?"clearable":"",minlength:Object(w["m"])(n.minLength)&&!isNaN(n.minLength)?`:minlength="${n.minLength}"`:"",maxlength:Object(w["m"])(n.maxLength)&&!isNaN(n.maxLength)?`:maxlength="${n.maxLength}"`:"",showWordLimit:n.showWordLimit?':show-word-limit="true"':"",prefixIcon:n.prefixIcon?`prefix-icon="${n.prefixIcon}"`:"",suffixIcon:n.suffixIcon?`suffix-icon="${n.suffixIcon}"`:"",controlsPosition:"right"===n.controlsPosition?'controls-position="right"':"",min:Object(w["m"])(n.min)&&!isNaN(n.min)?`:min="${n.min}"`:"",max:Object(w["m"])(n.max)&&!isNaN(n.max)?`:max="${n.max}"`:"",precision:Object(w["m"])(n.precision)&&!isNaN(n.precision)?`:precision="${n.precision}"`:"",step:Object(w["m"])(n.step)&&!isNaN(n.step)?`:step="${n.step}"`:"",filterable:n.filterable?"filterable":"",allowCreate:n.allowCreate?"allow-create":"",defaultFirstOption:n.filterable&&n.allowCreate?"default-first-option":"",multiple:n.multiple?"multiple":"",multipleLimit:!isNaN(n.multipleLimit)&&n.multipleLimit>0?`:multiple-limit="${n.multipleLimit}"`:"",automaticDropdown:n.automaticDropdown?"automatic-dropdown":"",remote:n.remote?"remote":"",format:n.format?`format="${n.format}"`:"",valueFormat:n.valueFormat?`value-format="${n.valueFormat}"`:"",editable:n.editable?`:editable="${n.editable}"`:"",startPlaceholder:n.startPlaceholder?`start-placeholder="${n.startPlaceholder}"`:"",endPlaceholder:n.endPlaceholder?`end-placeholder="${n.endPlaceholder}"`:"",activeText:n.activeText?`active-text="${n.activeText}"`:"",inactiveText:n.inactiveText?`inactive-text="${n.inactiveText}"`:"",activeColor:n.activeColor?`active-color="${n.activeColor}"`:"",inactiveColor:n.inactiveColor?`inactive-color="${n.inactiveColor}"`:"",switchWidth:isNaN(n.switchWidth)||40===n.switchWidth?"":`:width="${n.switchWidth}"`,rateMax:isNaN(n.max)||5===n.max?"":`:max="${n.max}"`,lowThreshold:isNaN(n.lowThreshold)||2===n.lowThreshold?"":`:low-threshold="${n.lowThreshold}"`,highThreshold:isNaN(n.highThreshold)||4===n.highThreshold?"":`:high-threshold="${n.highThreshold}"`,allowHalf:n.allowHalf?"allow-half":"",showText:n.showText?"show-text":"",showScore:n.showScore?"show-score":"",sliderMin:isNaN(n.min)||0===n.min?"":`:min="${n.min}"`,sliderMax:isNaN(n.max)||100===n.max?"":`:max="${n.max}"`,sliderStep:isNaN(n.step)||1===n.step?"":`:step="${n.step}"`,sliderRange:n.range?"range":"",sliderVertical:n.vertical?"vertical":"",uploadAction:n.uploadURL?`action="${n.uploadURL}"`:"",withCredentials:n.withCredentials?"with-credentials":"",multipleSelect:n.multipleSelect?"multiple":"",showFileList:n.showFileList?"show-file-list":"",limit:isNaN(n.limit)?"":`:limit="${n.limit}"`,uploadTipSlotChild:n.uploadTip?`<template #tip><div class="el-upload__tip">${n.uploadTip}</div></template>`:"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:n.type?`type="${n.type}"`:"",buttonPlain:n.plain?"plain":"",buttonRound:n.round?"round":"",buttonCircle:n.circle?"circle":"",buttonIcon:n.icon?`icon="${n.icon}"`:"",contentPosition:n.contentPosition&&"center"!==n.contentPosition?`content-position="${n.contentPosition}"`:"",appendButtonChild:n.appendButton?`<template #append><el-button class="${n.buttonIcon}" ${n.appendButtonDisabled?"disabled":""}></el-button></template>`:""}}function se(e,t){let n=e.options;const i=n.buttonStyle?"el-radio-button":"el-radio",o=n.border?"border":"",r=`style="{display: ${n.displayStyle}}"`;return`<${i} v-for="(item, index) in ${n.name}Options" :key="index" :label="item.value"\n :disabled="item.disabled" ${o} ${r}>{{item.label}}</${i}>`}function ae(e,t){let n=e.options;const i=n.buttonStyle?"el-checkbox-button":"el-checkbox",o=n.border?"border":"",r=`style="{display: ${n.displayStyle}}"`;return`<${i} v-for="(item, index) in ${n.name}Options" :key="index" :label="item.value"\n :disabled="item.disabled" ${o} ${r}>{{item.label}}</${i}>`}function le(e,t){let n=e.options;const i="el-option";return`<${i} v-for="(item, index) in ${n.name}Options" :key="index" :label="item.label"\n :value="item.value" :disabled="item.disabled"></${i}>`}const ce={input:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,showPassword:a,placeholder:l,clearable:c,minlength:d,maxlength:u,showWordLimit:h,prefixIcon:f,suffixIcon:p,appendButtonChild:g}=re(e,t);return`<el-input ${n} ${i} ${o} ${r} ${s} ${a} ${l} ${c}\n ${d} ${u} ${h} ${f} ${p}>${g}</el-input>`},textarea:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,showPassword:a,placeholder:l,rows:c,clearable:d,minlength:u,maxlength:h,showWordLimit:f}=re(e,t);return`<el-input type="textarea" ${n} ${i} ${o} ${r} ${s} ${a} ${l}\n ${c} ${d} ${u} ${h} ${f}></el-input>`},number:(e,t)=>{const{vModel:n,disabled:i,size:o,type:r,showPassword:s,placeholder:a,controlsPosition:l,min:c,max:d,precision:u,step:h}=re(e,t);return`<el-input-number ${n} class="full-width-input" ${i} ${o} ${r} ${s}\n ${a} ${l} ${c} ${d} ${u} ${h}></el-input-number>`},radio:(e,t)=>{const{vModel:n,disabled:i,size:o}=re(e,t),r=se(e,t);return`<el-radio-group ${n} ${i} ${o}>${r}</el-radio-group>`},checkbox:(e,t)=>{const{vModel:n,disabled:i,size:o}=re(e,t),r=ae(e,t);return`<el-checkbox-group ${n} ${i} ${o}>${r}</el-checkbox-group>`},select:(e,t)=>{const{vModel:n,disabled:i,size:o,clearable:r,filterable:s,allowCreate:a,defaultFirstOption:l,automaticDropdown:c,multiple:d,multipleLimit:u,remote:h,placeholder:f}=re(e,t),p=le(e,t);return`<el-select ${n} class="full-width-input" ${i} ${o} ${r} ${s}\n ${a} ${l} ${c} ${d} ${u} ${f}\n ${h}>${p}</el-select>`},time:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,placeholder:s,clearable:a,format:l,editable:c}=re(e,t);return`<el-time-picker ${n} class="full-width-input" ${i} ${o} ${r} ${l}\n value-format="HH:mm:ss" ${s} ${a} ${c}></el-time-picker>`},"time-range":(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,startPlaceholder:s,endPlaceholder:a,clearable:l,format:c,editable:d}=re(e,t);return`<el-time-picker is-range ${n} class="full-width-input" ${i} ${o} ${r} ${c}\n value-format="HH:mm:ss" ${s} ${a} ${l} ${d}></el-time-picker>`},date:(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,placeholder:a,clearable:l,format:c,valueFormat:d,editable:u}=re(e,t);return`<el-date-picker ${n} ${s} class="full-width-input" ${i} ${o} ${r} ${c}\n ${d} ${a} ${l} ${u}></el-date-picker>`},"date-range":(e,t)=>{const{vModel:n,readonly:i,disabled:o,size:r,type:s,startPlaceholder:a,endPlaceholder:l,clearable:c,format:d,valueFormat:u,editable:h}=re(e,t);return`<el-date-picker is-range ${n} ${s} class="full-width-input" ${i} ${o} ${r} ${d}\n ${u} ${a} ${l} ${c} ${h}></el-date-picker>`},switch:(e,t)=>{const{vModel:n,disabled:i,activeText:o,inactiveText:r,activeColor:s,inactiveColor:a,switchWidth:l}=re(e,t);return`<el-switch ${n} ${i} ${o} ${r} ${s} ${a}\n ${l}></el-switch>`},rate:(e,t)=>{const{vModel:n,disabled:i,rateMax:o,lowThreshold:r,highThreshold:s,allowHalf:a,showText:l,showScore:c}=re(e,t);return`<el-rate ${n} ${i} ${o} ${r} ${s} ${a}\n ${l} ${c}></el-rate>`},color:(e,t)=>{const{vModel:n,disabled:i,size:o}=re(e,t);return`<el-color-picker ${n} ${i} ${o}></el-color-picker>`},slider:(e,t)=>{const{vModel:n,disabled:i,sliderMin:o,sliderMax:r,sliderStep:s,sliderRange:a,sliderVertical:l}=re(e,t);return`<el-slider ${n} ${i} ${o} ${r} ${s} ${a}\n ${l}></el-slider>`},"picture-upload":(e,t)=>{const{vModel:n,disabled:i,uploadAction:o,withCredentials:r,multipleSelect:s,showFileList:a,limit:l,uploadTipSlotChild:c,pictureUploadIconChild:d}=re(e,t);let u=e.options;return`<el-upload :file-list="${u.name}FileList" :headers="${u.name}UploadHeaders" :data="${u.name}UploadData" \n ${i} ${o} list-type="picture-card" ${r} ${s} ${a} \n ${l}>${c} ${d}</el-upload>`},"file-upload":(e,t)=>{const{vModel:n,disabled:i,uploadAction:o,withCredentials:r,multipleSelect:s,showFileList:a,limit:l,uploadTipSlotChild:c,fileUploadIconChild:d}=re(e,t);let u=e.options;return`<el-upload :file-list="${u.name}FileList" :headers="${u.name}UploadHeaders" :data="${u.name}UploadData" \n ${i} ${o} list-type="picture-card" ${r} ${s} ${a} \n ${l}>${c} ${d}</el-upload>`},"rich-editor":(e,t)=>{const{vModel:n,disabled:i,placeholder:o}=re(e,t);return`<vue-editor ${n} ${i} ${o}></vue-editor>`},cascader:(e,t)=>{const{vModel:n,disabled:i,size:o,clearable:r,filterable:s,placeholder:a}=re(e,t);let l=e.options;const c=`:options="${l.name}Options"`;return`<el-cascader ${n} class="full-width-input" ${c} ${i} ${o} ${r}\n ${s} ${a}></el-cascader>`},"static-text":(e,t)=>`<div>${e.options.textContent}</div>`,"html-text":(e,t)=>`<div v-html="${e.options.htmlContent}"></div>`,button:(e,t)=>{const{buttonType:n,buttonPlain:i,buttonRound:o,buttonCircle:r,buttonIcon:s,disabled:a}=re(e,t);return`<el-button ${n} ${i} ${o} ${r} ${s}\n ${a}>${e.options.label}</el-button>`},divider:(e,t)=>{const{contentPosition:n}=re(e,t);return`<el-divider direction="horizontal" ${n}></el-divider>`}};function de(e,t){let n=e.options;const i=n.labelHidden?"":n.label,o=n.labelHidden?'label-width="0"':n.labelWidth?`label-width="${n.labelWidth}px"`:"",r=n.labelTooltip?`title="${n.labelTooltip}"`:"",s=`prop="${n.name}"`;let a=[];n.required&&a.push("required"),n.customClass&&n.customClass.length>0&&a.push(n.customClass.join(" ")),n.labelAlign?"label-left-align"!==n.labelAlign&&a.push(n.labelAlign):e.formItemFlag&&"label-left-align"!==t.labelAlign&&a.push(t.labelAlign),e.formItemFlag||a.push("static-content-item");const l=a.length>0?`class="${a.join(" ")}"`:"";let c=`<template #label><span class="custom-label">${"front"===n.labelIconPosition?n.labelTooltip?`<el-tooltip content="${n.labelTooltip}" effect="light"><i class="${n.labelIconClass}"></i></el-tooltip>${n.label}`:`<i class="${n.labelIconClass}"></i>${n.label}`:n.labelTooltip?`${n.label}<el-tooltip content="${n.labelTooltip}" effect="light"><i class="${n.labelIconClass}"></i></el-tooltip>`:`${n.label}<i class="${n.labelIconClass}"></i>`}\n</span></template>`;!n.labelIconClass&&(c="");const d=ce[e.type]?ce[e.type](e,t):null,u=!!e.formItemFlag,h=n.hidden?'v-show="false"':"";return u?`<el-form-item label="${i}" ${o} ${r} ${s} ${l}>\n ${c}\n ${d}\n</el-form-item>`:`<div ${l} ${h}>${d}</div>`}function ue(e,t,n=!1){const i=n?"@submit.prevent":"@submit.native.prevent";let o=[];t.forEach(t=>{"container"===t.category?o.push(oe(t,e)):o.push(de(t,e))});const r=` <el-form :model="${e.modelName}" ref="${e.refName}" :rules="${e.rulesName}"\n label-position="${e.labelPosition}" label-width="${e.labelWidth}px" size="${e.size||"medium"}"\n ${i}>\n ${o?o.join("\n"):""}\n</el-form>`;return r}const he=function(e){const t=' .el-input-number.full-width-input, .el-cascader.full-width-input {\n width: 100% !important;\n }\n \n .el-form-item--medium {\n .el-radio {\n line-height: 36px !important;\n }\n \n .el-rate{\n margin-top: 8px;\n }\n }\n\n .el-form-item--small {\n .el-radio {\n line-height: 32px !important;\n }\n \n .el-rate{\n margin-top: 6px;\n }\n }\n\n .el-form-item--mini {\n .el-radio {\n line-height: 28px !important;\n }\n \n .el-rate{\n margin-top: 4px;\n }\n }\n \n .clear-fix:before, .clear-fix:after {\n display: table;\n content: "";\n }\n\n .clear-fix:after {\n clear: both;\n }\n\n .float-right {\n float: right;\n }\n\n'+e.cssCode;return t},fe=function(e,t=!1){const n=` div.table-container {\n table.table-layout {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n \n td.table-cell {\n display: table-cell;\n height: 36px;\n border: 1px solid #e1e2e3;\n }\n }\n }\n \n div.tab-container {\n }\n \n .label-left-align ${t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {\n text-align: left;\n }\n\n .label-center-align ${t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {\n text-align: center;\n }\n\n .label-right-align ${t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {\n text-align: right;\n }\n \n .custom-label {\n }\n \n .static-content-item {\n min-height: 20px;\n display: flex;\n align-items: center;\n\n ${t?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"} {\n margin: 0;\n }\n }`;return n},pe=function(e,t){ie[e]=t},ge=function(e,t){ce[e]=t},me=function(e,t,n,i=!1){const o=n.html(ue(e,t,i),Q.html),r=n.js(i?te(e,t):Object(J["f"])(e,t),Q.js),s=n.css(he(e),Q.css),a=n.css(fe(e,i),Q.css);return`\x3c!-- \nCodes Generated By VForm:\nhttps://www.vform666.com\n--\x3e\n\n<template>\n${o}\n</template>\n\n<script>\n${r}\n<\/script>\n\n<style lang="scss">\n${s}\n</style>\n\n<style lang="scss" scoped>\n${a}\n</style>`};var be=n("21a6"),ve={name:"ToolbarPanel",mixins:[x["b"]],components:{VFormRender:V,CodeEditor:U["a"],Clipboard:K.a,SvgIcon:L},props:{designer:Object},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),toolbarWidth:420,showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],testFunc:"",importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}],select001:[{label:"辣椒",value:1},{label:"菠萝",value:2},{label:"丑橘子",value:3}]}}},computed:{formJson(){return{widgetList:Object(w["d"])(this.designer.widgetList),formConfig:Object(w["d"])(this.designer.formConfig)}},undoDisabled(){return!this.designer.undoEnabled()},redoDisabled(){return!this.designer.redoEnabled()},layoutType(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler(e){}}},mounted(){let e=this.designerConfig.toolbarMaxWidth||420,t=this.designerConfig.toolbarMinWidth||300,n=window.innerWidth-260-300-320-80;this.toolbarWidth=n>=e?e:n<=t?t:n,Object(w["a"])(()=>{this.$nextTick(()=>{let n=window.innerWidth-260-300-320-80;this.toolbarWidth=n>=e?e:n<=t?t:n})})},methods:{showToolButton(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},buildTreeNodeOfWidget(e,t){let n={id:e.id,label:e.options.label||e.type};t.push(n),void 0!==e.category&&(n.children=[],"grid"===e.type?e.cols.map(t=>{let i={id:t.id,label:t.options.name||e.type,children:[]};n.children.push(i),t.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,i.children)})}):"table"===e.type?e.rows.map(e=>{let t={id:e.id,label:"table-row",selectable:!1,children:[]};n.children.push(t),e.cols.map(e=>{if(e.merged)return;let n=t.children,i={id:e.id,label:"table-cell",children:[]};n.push(i),e.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,i.children)})})}):"tab"===e.type?e.tabs.map(t=>{let i={id:t.id,label:t.options.name||e.type,selectable:!1,children:[]};n.children.push(i),t.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,i.children)})}):("sub-form"===e.type||"container"===e.category)&&e.widgetList.map(e=>{this.buildTreeNodeOfWidget(e,n.children)}))},refreshNodeTree(){this.nodeTreeData.length=0,this.designer.widgetList.forEach(e=>{this.buildTreeNodeOfWidget(e,this.nodeTreeData)})},showNodeTreeDrawer(){this.refreshNodeTree(),this.showNodeTreeDrawerFlag=!0,this.$nextTick(()=>{this.designer.selectedId&&this.$refs.nodeTree.setCurrentKey(this.designer.selectedId)})},undoHistory(){this.designer.undoHistoryStep()},redoHistory(){this.designer.redoHistoryStep()},changeLayoutType(e){this.designer.changeLayoutType(e)},clearFormWidget(){this.designer.clearDesigner()},previewForm(){this.showPreviewDialogFlag=!0},saveAsFile(e,t){this.$prompt(this.i18nt("designer.hint.fileNameForSave"),this.i18nt("designer.hint.saveFileTitle"),{inputValue:t,closeOnClickModal:!1,inputPlaceholder:this.i18nt("designer.hint.fileNameInputPlaceholder")}).then(({value:n})=>{if(n||(n=t),1==Object(w["i"])("vscode"))return void this.vsSaveFile(n,e);const i=new Blob([e],{type:"text/plain;charset=utf-8"});Object(be["saveAs"])(i,n)}).catch(()=>{})},vsSaveFile(e,t){const n={cmd:"writeFile",data:{fileName:e,code:t}};window.parent.postMessage(n,"*")},importJson(){this.importTemplate=JSON.stringify(this.designer.getImportTemplate(),null," "),this.showImportJsonDialogFlag=!0},doJsonImport(){try{let e=JSON.parse(this.importTemplate);this.designer.loadFormJson(e),this.showImportJsonDialogFlag=!1,this.$message.success(this.i18nt("designer.hint.importJsonSuccess")),this.designer.emitHistoryChange(),this.designer.emitEvent("form-json-imported",[])}catch(e){this.$message.error(e+"")}},exportJson(){let e=Object(w["d"])(this.designer.widgetList),t=Object(w["d"])(this.designer.formConfig);this.jsonContent=JSON.stringify({widgetList:e,formConfig:t},null," "),this.jsonRawContent=JSON.stringify({widgetList:e,formConfig:t}),this.showExportJsonDialogFlag=!0},copyFormJson(e){Object(w["c"])(this.jsonRawContent,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormJson(){this.saveAsFile(this.jsonContent,`vform${Object(w["e"])()}.json`)},exportCode(){this.vueCode=Y(this.formJson),this.htmlCode=Y(this.formJson,"html"),this.showExportCodeDialogFlag=!0},copyVueCode(e){Object(w["c"])(this.vueCode,e,this.$message,this.i18nt("designer.hint.copyVueCodeSuccess"),this.i18nt("designer.hint.copyVueCodeFail"))},copyHtmlCode(e){Object(w["c"])(this.htmlCode,e,this.$message,this.i18nt("designer.hint.copyHtmlCodeSuccess"),this.i18nt("designer.hint.copyHtmlCodeFail"))},saveVueCode(){this.saveAsFile(this.vueCode,`vform${Object(w["e"])()}.vue`)},saveHtmlCode(){this.saveAsFile(this.htmlCode,`vform${Object(w["e"])()}.html`)},generateSFC(){ee(e=>{this.sfcCode=me(this.designer.formConfig,this.designer.widgetList,e),this.sfcCodeV3=me(this.designer.formConfig,this.designer.widgetList,e,!0),this.showExportSFCDialogFlag=!0})},copyV2SFC(e){Object(w["c"])(this.sfcCode,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},copyV3SFC(e){Object(w["c"])(this.sfcCodeV3,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},saveV2SFC(){this.saveAsFile(this.sfcCode,`vformV2-${Object(w["e"])()}.vue`)},saveV3SFC(){this.saveAsFile(this.sfcCodeV3,`vformV3-${Object(w["e"])()}.vue`)},getFormData(){this.$refs["preForm"].getFormData().then(e=>{this.formDataJson=JSON.stringify(e,null," "),this.formDataRawJson=JSON.stringify(e),this.showFormDataDialogFlag=!0}).catch(e=>{this.$message.error(e)})},copyFormDataJson(e){Object(w["c"])(this.formDataRawJson,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormData(){this.saveAsFile(this.htmlCode,`formData${Object(w["e"])()}.json`)},resetForm(){this.$refs["preForm"].resetForm()},setFormDisabled(){this.$refs["preForm"].disableForm()},setFormEnabled(){this.$refs["preForm"].enableForm()},printFormJson(){let e={widgetList:Object(w["d"])(this.designer.widgetList),formConfig:Object(w["d"])(this.designer.formConfig)};console.log(e)},testValidate(){console.log("test===",this.$refs["preForm"].validateForm())},testSetFormData(){let e={checkbox45524:[1,2]};this.$refs["preForm"].setFormData(e)},testReloadOptionData(){this.testOptionData["select001"].push({label:"aaa",value:888}),this.$refs.preForm.reloadOptionData("select001")},handleFormChange(e,t,n,i){},testOnAppendButtonClick(e){console.log("test",e)},testOnButtonClick(e){console.log("test",e)},findWidgetById(e){let t=null;return Object(w["q"])(this.designer.widgetList,n=>{n.id===e&&(t=n)}),t},onNodeTreeClick(e,t,n){if(void 0===e.selectable||e.selectable){const t=e.id,n=this.findWidgetById(t);n&&this.designer.setSelected(n)}else this.$message.info(this.i18nt("designer.hint.currentNodeCannotBeSelected"))}}},ye=ve,we=(n("7cad"),Object(O["a"])(ye,R,F,!1,null,"7cfa9630",null)),xe=we.exports,Ce=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"panel-container"},[t("el-tabs",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"active-name":e.activeTab}},[t("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.widgetSetting"),name:"1"}},[t("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[e.designer.selectedWidget&&!e.designer.selectedWidget.category?[t("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?t("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e(),e.designer.selectedWidget&&e.designer.selectedWidget.category?[t("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?t("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(n,i){return[e.hasPropEditor(i,n)?t(e.getPropEditor(i,n),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e()],2)],1),e.designer?t("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.formSetting"),name:"2"}},[t("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[t("form-setting",{attrs:{designer:e.designer,"form-config":e.formConfig}})],1)],1):e._e()],1),e.showWidgetEventDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editWidgetEventHandler"),visible:e.showWidgetEventDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showWidgetEventDialogFlag=t}}},[t("el-alert",{attrs:{type:"info",closable:!1,title:e.eventHeader}}),t("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.eventHandlerCode,callback:function(t){e.eventHandlerCode=t},expression:"eventHandlerCode"}}),t("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showWidgetEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},_e=[];const ke=n("0654");let Se={};ke.keys().map(e=>{let t=ke(e).default;Se[t.name]=t});var Oe=Se,Ee=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{staticClass:"setting-form",attrs:{model:e.formConfig,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-collapse",{staticClass:"setting-collapse",model:{value:e.formActiveCollapseNames,callback:function(t){e.formActiveCollapseNames=t},expression:"formActiveCollapseNames"}},[t("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.basicSetting")}},[t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formSize")}},[t("el-select",{model:{value:e.formConfig.size,callback:function(t){e.$set(e.formConfig,"size",t)},expression:"formConfig.size"}},e._l(e.formSizes,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelPosition")}},[t("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelPosition,callback:function(t){e.$set(e.formConfig,"labelPosition",t)},expression:"formConfig.labelPosition"}},[t("el-radio-button",{attrs:{label:"left"}},[e._v(e._s(e.i18nt("designer.setting.leftPosition")))]),t("el-radio-button",{attrs:{label:"top"}},[e._v(e._s(e.i18nt("designer.setting.topPosition")))])],1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[t("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelAlign,callback:function(t){e.$set(e.formConfig,"labelAlign",t)},expression:"formConfig.labelAlign"}},[t("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(e._s(e.i18nt("designer.setting.leftAlign")))]),t("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(e._s(e.i18nt("designer.setting.centerAlign")))]),t("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.formConfig.labelWidth,callback:function(t){e.$set(e.formConfig,"labelWidth",t)},expression:"formConfig.labelWidth"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formCss")}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editFormCss}},[e._v(e._s(e.i18nt("designer.setting.addCss")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[t("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.formConfig.customClass,callback:function(t){e.$set(e.formConfig,"customClass",t)},expression:"formConfig.customClass"}},e._l(e.cssClassList,(function(e,n){return t("el-option",{key:n,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.globalFunctions")}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editGlobalFunctions}},[e._v(e._s(e.i18nt("designer.setting.addEventHandler")))])],1),t("el-form-item",{attrs:{"label-width":"0"}},[t("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.formSFCSetting")))])],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formModelName")}},[t("el-input",{attrs:{type:"text"},model:{value:e.formConfig.modelName,callback:function(t){e.$set(e.formConfig,"modelName",t)},expression:"formConfig.modelName"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRefName")}},[t("el-input",{attrs:{type:"text"},model:{value:e.formConfig.refName,callback:function(t){e.$set(e.formConfig,"refName",t)},expression:"formConfig.refName"}})],1),t("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRulesName")}},[t("el-input",{attrs:{type:"text"},model:{value:e.formConfig.rulesName,callback:function(t){e.$set(e.formConfig,"rulesName",t)},expression:"formConfig.rulesName"}})],1)],1),e.showEventCollapse()?t("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.eventSetting")}},[t("el-form-item",{attrs:{label:"onFormCreated","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormCreated")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),t("el-form-item",{attrs:{label:"onFormMounted","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormMounted")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),t("el-form-item",{attrs:{label:"onFormDataChange","label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormDataChange")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)],1):e._e()],1)],1),e.showFormEventDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editFormEventHandler"),visible:e.showFormEventDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showFormEventDialogFlag=t}}},[t("el-alert",{attrs:{type:"info",closable:!1,title:"form."+e.eventParamsMap[e.curEventName]}}),t("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.formEventHandlerCode,callback:function(t){e.formEventHandlerCode=t},expression:"formEventHandlerCode"}}),t("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showFormEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveFormEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFormCssDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.formCss"),visible:e.showEditFormCssDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFormCssDialogFlag=t}}},[t("code-editor",{attrs:{mode:"css",readonly:!1},model:{value:e.formCssCode,callback:function(t){e.formCssCode=t},expression:"formCssCode"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showEditFormCssDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveFormCss}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFunctionsDialogFlag?t("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.globalFunctions"),visible:e.showEditFunctionsDialogFlag,"show-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFunctionsDialogFlag=t}}},[t("code-editor",{ref:"gfEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.functionsCode,callback:function(t){e.functionsCode=t},expression:"functionsCode"}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showEditFunctionsDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveGlobalFunctions}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},Le=[],Ae={name:"form-setting",mixins:[x["b"]],components:{CodeEditor:U["a"]},props:{designer:Object,formConfig:Object},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),formActiveCollapseNames:["1","2"],formSizes:[{label:"default",value:""},{label:"large",value:"large"},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}],showEditFormCssDialogFlag:!1,formCssCode:"",cssClassList:[],showEditFunctionsDialogFlag:!1,functionsCode:"",showFormEventDialogFlag:!1,formEventHandlerCode:"",curEventName:"",eventParamsMap:{onFormCreated:"onFormCreated() {",onFormMounted:"onFormMounted() {",onFormDataChange:"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"}}},created(){this.designer.handleEvent("form-json-imported",()=>{this.formCssCode=this.formConfig.cssCode,Object(w["j"])(this.formCssCode),this.extractCssClass(),this.designer.emitEvent("form-css-updated",Object(w["d"])(this.cssClassList))})},mounted(){setTimeout(()=>{this.formCssCode=this.formConfig.cssCode,Object(w["j"])(this.formCssCode),this.extractCssClass(),this.designer.emitEvent("form-css-updated",Object(w["d"])(this.cssClassList))},1200)},methods:{showEventCollapse(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},editFormCss(){this.formCssCode=this.designer.formConfig.cssCode,this.showEditFormCssDialogFlag=!0},extractCssClass(){let e=/\..*{/g,t=this.formCssCode.match(e),n=[];t&&t.length>0&&t.forEach(e=>{let t=e.split(",");t.length>0&&t.forEach(e=>{let t=e.trim();if(-1!==t.indexOf(".",1)){let e=t.substring(t.indexOf(".")+1,t.indexOf(".",1));e&&n.push(e.trim())}else if(-1!==t.indexOf(" ")){let e=t.substring(t.indexOf(".")+1,t.indexOf(" "));e&&n.push(e.trim())}else if(-1!==t.indexOf("{")){let e=t.substring(t.indexOf(".")+1,t.indexOf("{"));n.push(e.trim())}else{let e=t.substring(t.indexOf(".")+1);n.push(e.trim())}})}),this.cssClassList.splice(0,this.cssClassList.length),this.cssClassList=Array.from(new Set(n))},saveFormCss(){this.extractCssClass(),this.designer.formConfig.cssCode=this.formCssCode,Object(w["j"])(this.formCssCode),this.showEditFormCssDialogFlag=!1,this.designer.emitEvent("form-css-updated",Object(w["d"])(this.cssClassList))},editGlobalFunctions(){this.functionsCode=this.designer.formConfig.functions,this.showEditFunctionsDialogFlag=!0},saveGlobalFunctions(){const e=this.$refs.gfEditor.getEditorAnnotations();let t=!1;e&&e.length>0&&(e.forEach(e=>{"error"===e.type&&(t=!0)}),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.designer.formConfig.functions=this.functionsCode,Object(w["k"])(this.functionsCode),this.showEditFunctionsDialogFlag=!1)},editFormEventHandler(e){this.curEventName=e,this.formEventHandlerCode=this.formConfig[e],this.showFormEventDialogFlag=!0},saveFormEventHandler(){const e=this.$refs.ecEditor.getEditorAnnotations();let t=!1;e&&e.length>0&&(e.forEach(e=>{"error"===e.type&&(t=!0)}),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.formConfig[this.curEventName]=this.formEventHandlerCode,this.showFormEventDialogFlag=!1)}}},Me=Ae,$e=(n("8b48"),Object(O["a"])(Me,Ee,Le,!1,null,"43567e9b",null)),Te=$e.exports;const Re={name:"name-editor",label:"label-editor",labelAlign:"labelAlign-editor",type:"type-editor",defaultValue:"defaultValue-editor",placeholder:"placeholder-editor",startPlaceholder:"startPlaceholder-editor",endPlaceholder:"endPlaceholder-editor",columnWidth:"columnWidth-editor",size:"size-editor",showStops:"showStops-editor",displayStyle:"displayStyle-editor",buttonStyle:"buttonStyle-editor",border:"border-editor",labelWidth:"labelWidth-editor",prependText:"prependText-editor",appendText:"appendText-editor",labelHidden:"labelHidden-editor",rows:"rows-editor",required:"required-editor",requiredHint:"requiredHint-editor",validation:"validation-editor",validationHint:"validationHint-editor",readonly:"readonly-editor",disabled:"disabled-editor",hidden:"hidden-editor",clearable:"clearable-editor",editable:"editable-editor",showPassword:"showPassword-editor",textContent:"textContent-editor",fontSize:"fontSize-editor",htmlContent:"htmlContent-editor",format:"format-editor",valueFormat:"valueFormat-editor",filterable:"filterable-editor",allowCreate:"allowCreate-editor",remote:"remote-editor",automaticDropdown:"automaticDropdown-editor",checkStrictly:"checkStrictly-editor",showAllLevels:"showAllLevels-editor",multiple:"multiple-editor",multipleLimit:"multipleLimit-editor",contentPosition:"contentPosition-editor",optionItems:"optionItems-editor",uploadURL:"uploadURL-editor",uploadTip:"uploadTip-editor",withCredentials:"withCredentials-editor",multipleSelect:"multipleSelect-editor",limit:"limit-editor",fileMaxSize:"fileMaxSize-editor",fileTypes:"fileTypes-editor",customClass:"customClass-editor",showBlankRow:"showBlankRow-editor",showRowNumber:"showRowNumber-editor",cellWidth:"cellWidth-editor",cellHeight:"cellHeight-editor",colHeight:"colHeight-editor",gutter:"gutter-editor",responsive:"responsive-editor",span:"span-editor",offset:"offset-editor",push:"push-editor",pull:"pull-editor"},Fe={min:"min-editor",max:"max-editor",precision:"precision-editor",step:"step-editor",controlsPosition:"controlsPosition-editor",minLength:"minLength-editor",maxLength:"maxLength-editor",showWordLimit:"showWordLimit-editor",prefixIcon:"prefixIcon-editor",suffixIcon:"suffixIcon-editor",switchWidth:"switchWidth-editor",activeText:"activeText-editor",inactiveText:"inactiveText-editor",activeColor:"activeColor-editor",inactiveColor:"inactiveColor-editor",lowThreshold:"lowThreshold-editor",highThreshold:"highThreshold-editor",allowHalf:"allowHalf-editor",showText:"showText-editor",showScore:"showScore-editor",range:"range-editor",vertical:"vertical-editor",plain:"plain-editor",round:"round-editor",circle:"circle-editor",icon:"icon-editor",labelIconClass:"labelIconClass-editor",labelIconPosition:"labelIconPosition-editor",labelTooltip:"labelTooltip-editor",appendButton:"appendButton-editor",appendButtonDisabled:"appendButtonDisabled-editor",buttonIcon:"buttonIcon-editor"},je={onCreated:"onCreated-editor",onMounted:"onMounted-editor",onClick:"onClick-editor",onInput:"onInput-editor",onChange:"onChange-editor",onFocus:"onFocus-editor",onBlur:"onBlur-editor",onRemoteQuery:"onRemoteQuery-editor",onBeforeUpload:"onBeforeUpload-editor",onUploadSuccess:"onUploadSuccess-editor",onUploadError:"onUploadError-editor",onFileRemove:"onFileRemove-editor",onValidate:"onValidate-editor",onAppendButtonClick:"onAppendButtonClick-editor",onSubFormRowAdd:"onSubFormRowAdd-editor",onSubFormRowInsert:"onSubFormRowInsert-editor",onSubFormRowDelete:"onSubFormRowDelete-editor",onSubFormRowChange:"onSubFormRowChange-editor"};function qe(e,t){Re[e]=t}function Ie(e,t){je[e]=t}function Ne(e){return!!Re[e]||!!Fe[e]||!!je[e]}function Pe(e,t,n){P.a.component(t,n),qe(e,t)}function De(e,t,n){P.a.component(t,n),Ie(e,t)}var We={COMMON_PROPERTIES:Re,ADVANCED_PROPERTIES:Fe,EVENT_PROPERTIES:je};const{COMMON_PROPERTIES:He,ADVANCED_PROPERTIES:Be,EVENT_PROPERTIES:ze}=We;var Ve={name:"SettingPanel",componentName:"SettingPanel",mixins:[x["b"]],components:{CodeEditor:U["a"],FormSetting:Te,...Oe},props:{designer:Object,selectedWidget:Object,formConfig:Object},provide(){return{isSubFormChildWidget:()=>this.subFormChildWidgetFlag}},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),scrollerHeight:0,activeTab:"2",widgetActiveCollapseNames:["1","3"],formActiveCollapseNames:["1","2"],commonProps:He,advProps:Be,eventProps:ze,showWidgetEventDialogFlag:!1,eventHandlerCode:"",curEventName:"",eventHeader:"",subFormChildWidgetFlag:!1}},computed:{optionModel:{get(){return this.selectedWidget.options},set(e){this.selectedWidget.options=e}}},watch:{"designer.selectedWidget":{handler(e){e&&(this.activeTab="1")}},"selectedWidget.options":{deep:!0,handler(){this.designer.saveCurrentHistoryStep()}},formConfig:{deep:!0,handler(){this.designer.saveCurrentHistoryStep()}}},created(){this.$on("editEventHandler",(function(e,t){this.editEventHandler(e,t)})),this.designer.handleEvent("form-css-updated",e=>{this.designer.setCssClassList(e)}),this.designer.handleEvent("field-selected",e=>{this.subFormChildWidgetFlag=!!e&&"sub-form"===e.type})},mounted(){this.designer.selectedWidget?this.activeTab="1":this.activeTab="2",this.scrollerHeight=window.innerHeight-56-48+"px",Object(w["a"])(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56-48+"px"})})},methods:{showEventCollapse(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},hasPropEditor(e,t){if(!t)return!1;if(e.indexOf("-")<=-1){let t=this.selectedWidget.type+"-"+e;if(Ne(t))return!1}let n=e.replace(this.selectedWidget.type+"-","");return this.designer.hasConfig(this.selectedWidget,n)},getPropEditor(e,t){let n=e.replace(this.selectedWidget.type+"-",""),i=`${this.selectedWidget.type}-${n}-editor`;return this.$options.components[i]||this.$root.$options.components[i]?i:t},showCollapse(e){let t=!1;for(let n in e)if(e.hasOwnProperty(n)&&this.hasPropEditor(n,e[n])){t=!0;break}return t},editEventHandler(e,t){this.curEventName=e,this.eventHeader=`${this.optionModel.name}.${e}(${t.join(", ")}) {`,this.eventHandlerCode=this.selectedWidget.options[e]||"","onValidate"!==e||this.optionModel["onValidate"]||(this.eventHandlerCode=" /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n callback(new Error('error message')) //fail\n } else {\n callback(); //pass\n }\n */"),this.showWidgetEventDialogFlag=!0},saveEventHandler(){const e=this.$refs.ecEditor.getEditorAnnotations();let t=!1;e&&e.length>0&&(e.forEach(e=>{"error"===e.type&&(t=!0)}),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1)}}},Ue=Ve,Ge=(n("a16a"),Object(O["a"])(Ue,Ce,_e,!1,null,"7b80d175",null)),Ke=Ge.exports,Ye=function(){var e=this,t=e._self._c;return t("div",{staticClass:"form-widget-container"},[t("el-form",{staticClass:"full-height-width widget-form",class:[e.customClass,e.layoutType+"-layout"],attrs:{"label-position":e.labelPosition,size:e.size,"validate-on-rule-change":!1}},[0===e.designer.widgetList.length?t("div",{staticClass:"no-widget-hint"},[e._v(e._s(e.i18nt("designer.noWidgetHint")))]):e._e(),t("draggable",e._b({attrs:{list:e.designer.widgetList,handle:".drag-handler",move:e.checkMove},on:{end:e.onDragEnd,add:e.onDragAdd,update:e.onDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:300},!1),[t("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.designer.widgetList,(function(n,i){return["container"===n.category?[t(e.getWidgetName(n),{key:n.id,tag:"component",attrs:{widget:n,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null}})]:[t(e.getWidgetName(n),{key:n.id,tag:"component",attrs:{field:n,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null,"design-state":!0}})]]}))],2)],1)],1)],1)},Je=[];const Xe=n("8b30");Xe.keys().map(e=>{let t=Xe(e).default;P.a.component(t.name,t)});var Ze={name:"VFormWidget",componentName:"VFormWidget",mixins:[x["b"]],components:{Draggable:h.a,...W["a"]},props:{designer:Object,formConfig:Object,optionData:{type:Object,default:()=>({})}},provide(){return{refList:this.widgetRefList,formConfig:this.formConfig,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formModel}}},inject:["getDesignerConfig"],data(){return{formModel:{},widgetRefList:{}}},computed:{labelPosition(){return this.designer.formConfig&&this.designer.formConfig.labelPosition?this.designer.formConfig.labelPosition:"left"},size(){return this.designer.formConfig&&this.designer.formConfig.size?this.designer.formConfig.size:"medium"},customClass(){return this.designer.formConfig.customClass||""},layoutType(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler(e){}},"designer.formConfig":{deep:!0,handler(e){}}},created(){this.designer.initDesigner(!!this.getDesignerConfig().resetFormJson),this.designer.loadPresetCssCode(this.getDesignerConfig().presetCssCode)},mounted(){this.disableFirefoxDefaultDrop(),this.designer.registerFormWidget(this)},methods:{getWidgetName(e){return e.type+"-widget"},disableFirefoxDefaultDrop(){let e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");e&&(document.body.ondrop=function(e){e.stopPropagation(),e.preventDefault()})},onDragEnd(e){},onDragAdd(e){const t=e.newIndex;this.designer.widgetList[t]&&this.designer.setSelected(this.designer.widgetList[t]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",null)},onDragUpdate(){this.designer.emitHistoryChange()},checkMove(e){return this.designer.checkWidgetMove(e)},getFormData(){return this.formModel},getWidgetRef(e,t=!1){let n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getSelectedWidgetRef(){let e=this.designer.selectedWidgetName;return this.getWidgetRef(e)}}},Qe=Ze,et=(n("9c31"),Object(O["a"])(Qe,Ye,Je,!1,null,"7372c190",null)),tt=et.exports;function nt(e){let t=Object(w["d"])(Object(w["h"])());return{widgetList:[],formConfig:{cssCode:""},selectedId:null,selectedWidget:null,selectedWidgetName:null,vueInstance:e,formWidget:null,cssClassList:[],historyData:{index:-1,maxStep:20,steps:[]},initDesigner(e){this.widgetList=[],this.formConfig=Object(w["d"])(t),e||this.initHistoryData()},clearDesigner(e){let n=0===this.widgetList.length;this.widgetList=[],this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={},Object(w["p"])(this.formConfig,t),e||(n?this.saveCurrentHistoryStep():this.emitHistoryChange())},loadPresetCssCode(e){""===this.formConfig.cssCode&&e&&(this.formConfig.cssCode=e)},getLayoutType(){return this.formConfig.layoutType||"PC"},changeLayoutType(e){this.formConfig.layoutType=e},getImportTemplate(){return{widgetList:[],formConfig:Object(w["d"])(t)}},loadFormJson(e){let t=!1;return e&&e.widgetList&&(this.widgetList=e.widgetList,t=!0),e&&e.formConfig&&(Object(w["p"])(this.formConfig,e.formConfig),t=!0),t&&this.emitEvent("form-json-imported",[]),t},setSelected(e){e?(this.selectedWidget=e,e.id&&(this.selectedId=e.id,this.selectedWidgetName=e.options.name)):this.clearSelected()},updateSelectedWidgetNameAndLabel(e,t,n){this.selectedWidgetName=t,n&&Object.keys(e.options).indexOf("label")>-1&&(e.options.label=n)},clearSelected(){this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={}},checkWidgetMove(e){if(e.draggedContext&&e.draggedContext.element){let t=e.draggedContext.element.category;e.draggedContext.element.type;if(e.to&&"sub-form-table"===e.to.className&&"container"===t)return!1}return!0},checkFieldMove(e){if(e.draggedContext&&e.draggedContext.element){e.draggedContext.element.category;let t=e.draggedContext.element.type+"";if(e.to&&"sub-form-table"===e.to.className&&"slot"===t)return!1}return!0},appendTableRow(e){let t=e.rows.length,n=Object(w["d"])(e.rows[e.rows.length-1]);n.id="table-row-"+Object(w["e"])(),n.merged=!1,n.cols.forEach(e=>{e.id="table-cell-"+Object(w["e"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0}),e.rows.splice(t,0,n),this.emitHistoryChange()},appendTableCol(e){let t=e.rows[0].cols.length;e.rows.forEach(e=>{let n=Object(w["d"])(this.getContainerByType("table-cell"));n.id="table-cell-"+Object(w["e"])(),n.options.name=n.id,n.merged=!1,n.options.colspan=1,n.options.rowspan=1,n.widgetList.length=0,e.cols.splice(t,0,n)}),this.emitHistoryChange()},insertTableRow(e,t,n,i,o){let r=o?t:t+1;if(!o){let t=r,n=!1;while(t<e.rows.length){if(!e.rows[t].cols[i].merged){r=t,n=!0;break}t++}n||(r=e.rows.length)}let s=Object(w["d"])(e.rows[n]);s.id="table-row-"+Object(w["e"])(),s.merged=!1,s.cols.forEach(e=>{e.id="table-cell-"+Object(w["e"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0}),e.rows.splice(r,0,s);let a=0;while(r<e.rows.length-1&&a<e.rows[0].cols.length){const t=e.rows[r+1].cols[a],n=t.merged;if(n){let t=e.rows,n={},i=null;for(let e=r;e>=0;e--)if(!t[e].cols[a].merged&&t[e].cols[a].options.rowspan>1){i=e,n=t[e].cols[a];break}if(n.options){let t=n.options.rowspan+1;this.setPropsOfMergedRows(e.rows,i,a,n.options.colspan,t),a+=n.options.colspan}else a+=1}else a+=t.options.colspan||1}this.emitHistoryChange()},insertTableCol(e,t,n,i){let o=i?t:t+1;if(!i){let t=o,i=!1;while(t<e.rows[n].cols.length){if(!e.rows[n].cols[t].merged){o=t,i=!0;break}t++,i||(o=e.rows[n].cols.length)}}e.rows.forEach(e=>{let t=Object(w["d"])(this.getContainerByType("table-cell"));t.id="table-cell-"+Object(w["e"])(),t.options.name=t.id,t.merged=!1,t.options.colspan=1,t.options.rowspan=1,t.widgetList.length=0,e.cols.splice(o,0,t)});let r=0;while(o<e.rows[0].cols.length-1&&r<e.rows.length){const t=e.rows[r].cols[o+1],n=t.merged;if(n){let t=e.rows[r].cols,n={},i=null;for(let e=o;e>=0;e--)if(!t[e].merged&&t[e].options.colspan>1){i=e,n=t[e];break}if(n.options){let t=n.options.colspan+1;this.setPropsOfMergedCols(e.rows,r,i,t,n.options.rowspan),r+=n.options.rowspan}else r+=1}else r+=t.options.rowspan||1}this.emitHistoryChange()},setPropsOfMergedCols(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let o=n;o<n+i;o++)r!==t||o!==n?(e[r].cols[o].merged=!0,e[r].cols[o].options.colspan=i,e[r].cols[o].widgetList=[]):e[r].cols[o].options.colspan=i},setPropsOfMergedRows(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.rowspan=o,e[r].cols[s].widgetList=[]):e[r].cols[s].options.rowspan=o},setPropsOfSplitCol(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let t=n;t<n+i;t++)e[r].cols[t].merged=!1,e[r].cols[t].options.rowspan=1,e[r].cols[t].options.colspan=1},setPropsOfSplitRow(e,t,n,i,o){for(let r=t;r<t+o;r++)for(let t=n;t<n+i;t++)e[r].cols[t].merged=!1,e[r].cols[t].options.rowspan=1,e[r].cols[t].options.colspan=1},mergeTableCol(e,t,n,i,o,r){let s=o?i:i+t[i].options.colspan,a=o?i-1:i;if(o){let t=a;while(t>=0){if(!e[n].cols[t].merged){a=t;break}t--}}t[s].widgetList&&t[s].widgetList.length>0&&(t[a].widgetList&&0!==t[a].widgetList.length||(t[a].widgetList=Object(w["d"])(t[s].widgetList)));let l=1*t[s].options.colspan+1*t[a].options.colspan;this.setPropsOfMergedCols(e,n,a,l,r.options.rowspan),this.emitHistoryChange()},mergeTableWholeRow(e,t,n,i){let o=e[n].cols[0].options.rowspan,r=!1;for(let a=1;a<e[n].cols.length;a++)if(e[n].cols[a].options.rowspan!==o){r=!0;break}if(r)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow"));let s=t.filter(e=>!e.merged&&!!e.widgetList&&e.widgetList.length>0);s&&s.length>0&&s[0].id!==t[0].id&&(!t[0].widgetList||t[0].widgetList.length<=0)&&(t[0].widgetList=Object(w["d"])(s[0].widgetList)),this.setPropsOfMergedCols(e,n,0,t.length,t[i].options.rowspan),this.emitHistoryChange()},mergeTableRow(e,t,n,i,o){let r=i?t:t+o.options.rowspan,s=i?t-1:t;if(i){let t=s;while(t>=0){if(!e[t].cols[n].merged){s=t;break}t--}}e[r].cols[n].widgetList&&e[r].cols[n].widgetList.length>0&&(e[s].cols[n].widgetList&&0!==e[s].cols[n].widgetList.length||(e[s].cols[n].widgetList=Object(w["d"])(e[r].cols[n].widgetList)));let a=1*e[r].cols[n].options.rowspan+1*e[s].cols[n].options.rowspan;this.setPropsOfMergedRows(e,s,n,o.options.colspan,a),this.emitHistoryChange()},mergeTableWholeCol(e,t,n,i){let o=e[0].cols[i].options.colspan,r=!1;for(let l=1;l<e.length;l++)if(e[l].cols[i].options.colspan!==o){r=!0;break}if(r)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn"));let s=[];e.forEach(e=>{let t=e.cols[i];!t.merged&&t.widgetList&&t.widgetList.length>0&&s.push(t)});let a=e[0].cols[i];s&&s.length>0&&s[0].id!==a.id&&(!a.widgetList||a.widgetList.length<=0)&&(a.widgetList=Object(w["d"])(s[0].widgetList)),this.setPropsOfMergedRows(e,0,i,a.options.colspan,e.length),this.emitHistoryChange()},undoMergeTableCol(e,t,n,i,o){this.setPropsOfSplitCol(e,t,n,i,o),this.emitHistoryChange()},undoMergeTableRow(e,t,n,i,o){this.setPropsOfSplitRow(e,t,n,i,o),this.emitHistoryChange()},deleteTableWholeCol(e,t){let n=!0;if(e.forEach(t=>{t.cols[0].options.colspan!==e[0].cols.length&&(n=!1)}),n)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastColCannotBeDeleted"));let i=e[0].cols[t].options.colspan,o=!1;for(let r=1;r<e.length;r++)if(e[r].cols[t].options.colspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")):(e.forEach(e=>{e.cols.splice(t,i)}),this.emitHistoryChange())},deleteTableWholeRow(e,t){let n=!0;if(e[0].cols.forEach(t=>{t.options.rowspan!==e.length&&(n=!1)}),n)return void this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastRowCannotBeDeleted"));let i=e[t].cols[0].options.rowspan,o=!1;for(let r=1;r<e[t].cols.length;r++)if(e[t].cols[r].options.rowspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")):(e.splice(t,i),this.emitHistoryChange())},getContainerByType(e){let t=[...f,...p,...g,...m],n=null;return t.forEach(t=>{t.category&&t.type&&t.type===e&&(n=t)}),n},getFieldWidgetByType(e){let t=[...f,...p,...g,...m],n=null;return t.forEach(t=>{!t.category&&t.type&&t.type===e&&(n=t)}),n},hasConfig(e,t){let n=null;return n=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),!(!n||!n.options)&&Object.keys(n.options).indexOf(t)>-1},upgradeWidgetConfig(e){let t=null;t=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),t&&t.options&&Object.keys(t.options).forEach(n=>{e.hasOwnProperty(n)||(e.options[n]=Object(w["d"])(t.options[n]))})},upgradeFormConfig(e){Object.keys(this.formConfig).forEach(t=>{e.hasOwnProperty(t)||(e[t]=Object(w["d"])(this.formConfig[t]))})},cloneGridCol(e,t){let n=Object(w["d"])(this.getContainerByType("grid-col"));n.options.span=e.options.span;let i=Object(w["e"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)},cloneContainer(e){if("grid"===e.type){let t=Object(w["d"])(this.getContainerByType("grid"));return t.id=t.type+Object(w["e"])(),t.options.name=t.id,e.cols.forEach(e=>{let n=Object(w["d"])(this.getContainerByType("grid-col")),i=Object(w["e"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,n.options.span=e.options.span,t.cols.push(n)}),t}if("table"===e.type){let t=Object(w["d"])(this.getContainerByType("table"));return t.id=t.type+Object(w["e"])(),t.options.name=t.id,e.rows.forEach(e=>{let n=Object(w["d"])(e);n.id="table-row-"+Object(w["e"])(),n.cols.forEach(e=>{e.id="table-cell-"+Object(w["e"])(),e.options.name=e.id,e.widgetList=[]}),t.rows.push(n)}),t}return null},moveUpWidget(e,t){if(e){if(0===t)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveUpFirstChildHint"));let n=e[t];e.splice(t,1),e.splice(t-1,0,n)}},moveDownWidget(e,t){if(e){if(t===e.length-1)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveDownLastChildHint"));let n=e[t];e.splice(t,1),e.splice(t+1,0,n)}},copyNewFieldWidget(e){let t=Object(w["d"])(e),n=Object(w["e"])();return t.id=t.type.replace(/-/g,"")+n,t.options.name=t.id,t.options.label=t.options.label||t.type.toLowerCase(),delete t.displayName,t},copyNewContainerWidget(e){let t=Object(w["d"])(e);if(t.id=t.type.replace(/-/g,"")+Object(w["e"])(),t.options.name=t.id,"grid"===t.type){let e=Object(w["d"])(this.getContainerByType("grid-col")),n=Object(w["e"])();e.id="grid-col-"+n,e.options.name="gridCol"+n,t.cols.push(e),e=Object(w["d"])(e),n=Object(w["e"])(),e.id="grid-col-"+n,e.options.name="gridCol"+n,t.cols.push(e)}else if("table"===t.type){let e={cols:[]};e.id="table-row-"+Object(w["e"])(),e.merged=!1;let n=Object(w["d"])(this.getContainerByType("table-cell"));n.id="table-cell-"+Object(w["e"])(),n.options.name=n.id,n.merged=!1,n.options.colspan=1,n.options.rowspan=1,e.cols.push(n),t.rows.push(e)}else if("tab"===t.type){let e=Object(w["d"])(this.getContainerByType("tab-pane"));e.id="tab-pane-"+Object(w["e"])(),e.options.name="tab1",e.options.label="tab 1",t.tabs.push(e)}return delete t.displayName,t},addContainerByDbClick(e){let t=this.copyNewContainerWidget(e);this.widgetList.push(t),this.setSelected(t)},addFieldByDbClick(e){let t=this.copyNewFieldWidget(e);if(this.selectedWidget&&"tab"===this.selectedWidget.type){let e=this.selectedWidget.tabs[0];this.selectedWidget.tabs.forEach(t=>{t.options.active&&(e=t)}),e&&e.widgetList.push(t)}else this.selectedWidget&&this.selectedWidget.widgetList?this.selectedWidget.widgetList.push(t):this.widgetList.push(t);this.setSelected(t),this.emitHistoryChange()},deleteColOfGrid(e,t){e&&e.cols&&e.cols.splice(t,1)},addNewColOfGrid(e){const t=e.cols;let n=Object(w["d"])(this.getContainerByType("grid-col")),i=Object(w["e"])();if(n.id="grid-col-"+i,n.options.name="gridCol"+i,t&&t.length>0){let i=0;t.forEach(e=>{i+=e.options.span}),i>=24?(console.log("列栅格之和超出24"),e.cols.push(n)):(n.options.span=24-i>12?12:24-i,e.cols.push(n))}else e.cols=[n]},addTabPaneOfTabs(e){const t=e.tabs;let n=Object(w["d"])(this.getContainerByType("tab-pane"));n.id="tab-pane-"+Object(w["e"])(),n.options.name=n.id,n.options.label="tab "+(t.length+1),t.push(n)},deleteTabPaneOfTabs(e,t){e.tabs.splice(t,1)},emitEvent(e,t){this.vueInstance.$emit(e,t)},handleEvent(e,t){this.vueInstance.$on(e,e=>t(e))},setCssClassList(e){this.cssClassList=e},getCssClassList(){return this.cssClassList},registerFormWidget(e){this.formWidget=e},initHistoryData(){this.loadFormContentFromStorage(),this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(w["d"])(this.widgetList),formConfig:Object(w["d"])(this.formConfig)}},emitHistoryChange(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(w["d"])(this.widgetList),formConfig:Object(w["d"])(this.formConfig)},this.saveFormContentToStorage(),this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1))},saveCurrentHistoryStep(){this.historyData.steps[this.historyData.index]=Object(w["d"])({widgetList:this.widgetList,formConfig:this.formConfig}),this.saveFormContentToStorage()},undoHistoryStep(){0!==this.historyData.index&&this.historyData.index--,this.widgetList=Object(w["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(w["d"])(this.historyData.steps[this.historyData.index].formConfig)},redoHistoryStep(){this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,this.widgetList=Object(w["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(w["d"])(this.historyData.steps[this.historyData.index].formConfig)},undoEnabled(){return this.historyData.index>0&&this.historyData.steps.length>0},redoEnabled(){return this.historyData.index<this.historyData.steps.length-1},saveFormContentToStorage(){window.localStorage.setItem("widget__list__backup",JSON.stringify(this.widgetList)),window.localStorage.setItem("form__config__backup",JSON.stringify(this.formConfig))},loadFormContentFromStorage(){let e=window.localStorage.getItem("widget__list__backup");e&&(this.widgetList=JSON.parse(e));let t=window.localStorage.getItem("form__config__backup");t&&Object(w["p"])(this.formConfig,JSON.parse(t))}}}var it={name:"VFormDesigner",componentName:"VFormDesigner",mixins:[x["b"]],components:{WidgetPanel:T,ToolbarPanel:xe,SettingPanel:Ke,VFormWidget:tt,SvgIcon:L},props:{fieldListApi:{type:Object,default:null},bannedWidgets:{type:Array,default:()=>[]},designerConfig:{type:Object,default:()=>({languageMenu:!0,externalLink:!0,formTemplates:!0,eventCollapse:!0,widgetNameReadonly:!1,clearDesignerButton:!0,previewFormButton:!0,importJsonButton:!0,exportJsonButton:!0,exportCodeButton:!0,generateSFCButton:!0,toolbarMaxWidth:420,toolbarMinWidth:300,presetCssCode:"",resetFormJson:!1,formHeader:!0})}},data(){return{vFormVersion:X["d"],curLangName:"",vsCodeFlag:!1,caseName:"",docUrl:"https://www.vform666.com/document.html",gitUrl:"https://github.com/vform666/variant-form",chatUrl:"https://www.vform666.com/pages/chat-group/",subScribeUrl:"https://www.vform666.com/pages/pro/",scrollerHeight:0,designer:nt(this),fieldList:[]}},provide(){return{serverFieldList:this.fieldList,getDesignerConfig:()=>this.designerConfig,getBannedWidgets:()=>this.bannedWidgets}},created(){this.vsCodeFlag=1==Object(w["i"])("vscode"),this.caseName=Object(w["i"])("case")},mounted(){this.initLocale(),this.scrollerHeight=window.innerHeight-56-36+"px",Object(w["a"])(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56-36+"px"})}),this.loadCase(),this.loadFieldListFromServer()},methods:{showLink(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},showTitle(e){return console.log(this.designerConfig[e],"this.designerConfig[configName]"),console.log(this.designerConfig,"this.designerConfig"),void 0===this.designerConfig[e]||!!this.designerConfig[e]},openHome(){if(this.vsCodeFlag){const e={cmd:"openUrl",data:{url:"https://www.vform666.com/"}};window.parent.postMessage(e,"*")}},openUrl(e,t){if(this.vsCodeFlag){const e={cmd:"openUrl",data:{url:t}};window.parent.postMessage(e,"*")}else{let n=e.currentTarget;n.href=t}},loadCase(){this.caseName&&s.a.get(X["c"]+this.caseName+".txt").then(e=>{e.data.code?this.$message.error(this.i18nt("designer.hint.sampleLoadedFail")):(this.setFormJson(e.data),this.$message.success(this.i18nt("designer.hint.sampleLoadedSuccess")))}).catch(e=>{this.$message.error(this.i18nt("designer.hint.sampleLoadedFail")+":"+e)})},initLocale(){let e=localStorage.getItem("v_form_locale");e=this.vsCodeFlag?e||"en-US":e||"zh-CN",this.curLangName=this.i18nt("application."+e),this.changeLanguage(e)},loadFieldListFromServer(){if(!this.fieldListApi)return;let e=this.fieldListApi.headers||{};s.a.get(this.fieldListApi.URL,{headers:e}).then(e=>{let t=this.fieldListApi.labelKey||"label",n=this.fieldListApi.nameKey||"name";this.fieldList.splice(0,this.fieldList.length),e.data.forEach(e=>{this.fieldList.push({label:e[t],name:e[n]})})}).catch(e=>{this.$message.error(e)})},handleLanguageChanged(e){this.changeLanguage(e),this.curLangName=this.i18nt("application."+e)},changeLanguage(e){Object(x["a"])(e)},setFormJson(e){let t=!1;e&&("string"===typeof e?t=this.designer.loadFormJson(JSON.parse(e)):e.constructor===Object&&(t=this.designer.loadFormJson(e)),t&&this.designer.emitHistoryChange())},getFormJson(){return{widgetList:Object(w["d"])(this.designer.widgetList),formConfig:Object(w["d"])(this.designer.formConfig)}},clearDesigner(){this.$refs.toolbarRef.clearFormWidget()},refreshDesigner(){let e=this.getFormJson();this.designer.clearDesigner(!0),this.designer.loadFormJson(e)},previewForm(){this.$refs.toolbarRef.previewForm()},importJson(){this.$refs.toolbarRef.importJson()},exportJson(){this.$refs.toolbarRef.exportJson()},exportCode(){this.$refs.toolbarRef.exportCode()},generateSFC(){this.$refs.toolbarRef.generateSFC()},getFieldWidgets(e=null){return e?Object(w["g"])(e):Object(w["g"])(this.designer.widgetList)},getContainerWidgets(e=null){return e?Object(w["f"])(e):Object(w["f"])(this.designer.widgetList)},upgradeFormJson(e){if(e.widgetList&&e.formConfig)return Object(w["q"])(e.widgetList,e=>{this.designer.upgradeWidgetConfig(e)}),this.designer.upgradeFormConfig(e.formConfig),e;this.$message.error("Invalid form json!")},getWidgetRef(e,t=!1){return this.$refs["formRef"].getWidgetRef(e,t)},getSelectedWidgetRef(){return this.$refs["formRef"].getSelectedWidgetRef()}}},ot=it,rt=(n("cb41"),Object(O["a"])(ot,a,l,!1,null,"4b479876",null)),st=rt.exports;const at=function(e,t){return{props:{optionModel:Object},render(n){return n("el-form-item",{attrs:{label:Object(x["c"])(t)}},[n("el-input",{attrs:{type:"text"},model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}})])}}},lt=function(e,t){return{props:{optionModel:Object},render(n){return n("el-form-item",{attrs:{label:Object(x["c"])(t)}},[n("el-switch",{model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}})])}}},ct=function(e,t,n){return{props:{optionModel:Object},render(i){return i("el-form-item",{attrs:{label:Object(x["c"])(t)}},[i("el-radio-group",{model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}},[n.optionItems.map(e=>i("el-radio-button",{attrs:{label:e.value}},[e.label]))])])}}},dt=function(e,t,n){return{props:{optionModel:Object},render(i){return i("el-form-item",{attrs:{label:Object(x["c"])(t)}},[i("el-select",{model:{value:this.optionModel[e],callback:t=>{this.$set(this.optionModel,e,t)}}},[n.optionItems.map(e=>i("el-option",{attrs:{label:e.label,value:e.value}}))])])}}},ut=function(e,t){return{props:{optionModel:Object},mixins:[I["a"]],methods:{editEventHandler(){this.dispatch("SettingPanel","editEventHandler",[e,[...t]])}},render(t){return t("el-form-item",{attrs:{label:e,"label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:!0,round:!0},on:{click:this.editEventHandler}},[Object(x["c"])("designer.setting.addEventHandler")])])}}},ht={type:"card",category:"container",icon:"card",widgetList:[],options:{name:"",label:"card",hidden:!1,folded:!1,showFold:!0,cardWidth:"100%",shadow:"never",customClass:""}},ft={type:"alert",icon:"alert",formItemFlag:!1,options:{name:"",title:"Good things are coming...",type:"info",description:"",closable:!0,closeText:"",center:!0,showIcon:!1,effect:"light",hidden:!1,onClose:"",customClass:""}};var pt=function(){var e=this,t=e._self._c;return t("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[t("el-card",{key:e.widget.id,staticClass:"card-container",class:[e.selected?"selected":"",e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[t("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?t("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),t("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{add:t=>e.onContainerDragAdd(t,e.widget.widgetList),update:e.onContainerDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[t("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(n,i){return["container"===n.category?[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{widget:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[t(n.type+"-widget",{key:n.id,tag:"component",attrs:{field:n,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1)],1)],1)},gt=[],mt=n("61ca"),bt=n("cd36"),vt=n("26a6"),yt={name:"card-widget",componentName:"ContainerWidget",mixins:[x["b"],mt["a"],vt["a"]],inject:["refList"],components:{Draggable:h.a,ContainerWrapper:bt["default"],...W["a"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},created(){this.initRefList()},methods:{checkContainerMove(e){return!0},toggleCard(){this.widget.options.folded=!this.widget.options.folded},setFolded(e){this.widget.options.folded=!!e}}},wt=yt,xt=(n("94b6"),Object(O["a"])(wt,pt,gt,!1,null,"228afde5",null)),Ct=xt.exports,_t=function(){var e=this,t=e._self._c;return t("container-item-wrapper",{attrs:{widget:e.widget}},[t("el-card",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"card-container",class:[e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow}},[t("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?t("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),e.widget.widgetList&&e.widget.widgetList.length>0?[e._l(e.widget.widgetList,(function(n,i){return["container"===n.category?[t(e.getComponentByContainer(n),{key:i,tag:"component",attrs:{widget:n,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[t(n.type+"-widget",{key:i,tag:"component",attrs:{field:n,designer:null,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))]:e._e()],2)],1)},kt=[],St=n("d67f"),Ot=n("90c2"),Et=n("34f0"),Lt={name:"card-item",componentName:"ContainerItem",mixins:[I["a"],x["b"],St["a"],Et["a"]],components:{ContainerItemWrapper:Ot["default"],...W["a"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],computed:{customClass(){return this.widget.options.customClass||""}},created(){this.initRefList()},beforeDestroy(){this.unregisterFromRefList()},methods:{toggleCard(){this.widget.options.folded=!this.widget.options.folded}}},At=Lt,Mt=(n("f6ca"),Object(O["a"])(At,_t,kt,!1,null,"2a1af67f",null)),$t=Mt.exports;const Tt=function(e,t){const n=e.options,i=ne(e),o=n.cardWidth?`style="{width: ${n.cardWidth} !important}"`:"",r=`shadow="${n.shadow}"`,s=n.hidden?'v-show="false"':"",a=`<div class="card-container">\n <el-card ${i} ${o} ${r} ${s}>\n <div slot="header" class="clear-fix">\n <span>${n.label}</span>\n ${n.showFold?'<i class="float-right el-icon-arrow-down"></i>':""}\n </div>\n ${e.widgetList.map(e=>"container"===e.category?oe(e,t):de(e,t)).join("")}\n </el-card>\n</div>`;return a},Rt=function(e,t){const n=e.options,i=`title="${n.title}"`,o="type="+n.type,r=n.description?`description="${n.description}"`:"",s=`:closable="${n.closable}"`,a=n.closeText?`close-text="${n.closeText}"`:"",l=`:center="${n.center}"`,c=`:show-icon="${n.showIcon}"`,d=`effect="${n.effect}"`,u=`<el-alert ${i} ${o} ${r} ${s} ${a} ${l} \n ${c} ${d}>\n</el-alert>`;return u};var Ft=function(){var e=this,t=e._self._c;return t("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[t("el-alert",{ref:"fieldEditor",attrs:{title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect},on:{close:e.handleCloseCustomEvent}})],1)},jt=[],qt=n("828b"),It=n("2d11"),Nt={name:"alert-widget",componentName:"FieldWidget",mixins:[I["a"],It["a"],x["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:qt["default"]},created(){this.registerToRefList(),this.initEventHandler()},beforeDestroy(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent(){if(this.field.options.onClose){let e=new Function(this.field.options.onClose);e.call(this)}}}},Pt=Nt,Dt=Object(O["a"])(Pt,Ft,jt,!1,null,"b1f52dec",null),Wt=Dt.exports;const Ht=function(){b(ht),P.a.component(Ct.name,Ct),P.a.component($t.name,$t),Pe("card-folded","card-folded-editor",lt("folded","extension.setting.cardFolded")),Pe("card-showFold","card-showFold-editor",lt("showFold","extension.setting.cardShowFold")),Pe("card-cardWidth","card-cardWidth-editor",at("cardWidth","extension.setting.cardWidth"));let e=[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}];Pe("card-shadow","card-shadow-editor",dt("shadow","extension.setting.cardShadow",{optionItems:e})),pe("card",Tt),v(ft),P.a.component(Wt.name,Wt),Pe("alert-title","alert-title-editor",at("title","extension.setting.alertTitle"));let t=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];P.a.component("alert-type-editor",dt("type","extension.setting.alertType",{optionItems:t})),Pe("alert-description","alert-description-editor",at("description","extension.setting.description")),Pe("alert-closable","alert-closable-editor",lt("closable","extension.setting.closable")),Pe("alert-closeText","alert-closeText-editor",at("closeText","extension.setting.closeText")),Pe("alert-center","alert-center-editor",lt("center","extension.setting.center")),Pe("alert-showIcon","alert-showIcon-editor",lt("showIcon","extension.setting.showIcon"));let n=[{label:"light",value:"light"},{label:"dark",value:"dark"}];Pe("alert-effect","alert-effect-editor",ct("effect","extension.setting.effect",{optionItems:n})),De("alert-onClose","alert-onClose-editor",ut("onClose",[])),ge("alert",Rt)};P.a.directive("dialogDrag",{bind(e,t,n,i){const o=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");o.style.cursor="move";const s=r.currentStyle||window.getComputedStyle(r,null);o.onmousedown=e=>{const t=e.clientX-o.offsetLeft,n=e.clientY-o.offsetTop;let i,a;s.left.includes("%")?(i=+document.body.clientWidth*(+s.left.replace(/%/g,"")/100),a=+document.body.clientHeight*(+s.top.replace(/%/g,"")/100)):(i=+s.left.replace(/px/g,""),a=+s.top.replace(/px/g,"")),document.onmousemove=function(e){const o=e.clientX-t,s=e.clientY-n;r.style.left=o+i+"px",r.style.top=s+a+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),P.a.directive("dialogDragWidth",{bind(e,t,n,i){const o=t.value.$el.querySelector(".el-dialog");e.onmousedown=t=>{const n=t.clientX-e.offsetLeft;document.onmousemove=function(e){e.preventDefault();const t=e.clientX-n;o.style.width=t+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});n("985d"),n("0f59");Ht(),st.install=function(e){e.component(st.name,st)},V.install=function(e){e.component(V.name,V)};const Bt=[st,V],zt=e=>{window.axios=s.a,Bt.forEach(t=>{e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&zt(window.Vue);var Vt={install:zt,VFormDesigner:st,VFormRender:V};t["default"]=Vt},fb95:function(e,t,n){},fc6a:function(e,t,n){var i=n("44ad"),o=n("1d80");e.exports=function(e){return i(o(e))}},fc8b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.lowThreshold")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1,max:e.optionModel.highThreshold},model:{value:e.optionModel.lowThreshold,callback:function(t){e.$set(e.optionModel,"lowThreshold",t)},expression:"optionModel.lowThreshold"}})],1)},o=[],r=n("79fa"),s={name:"lowThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d66e35d0",null);t["default"]=c.exports},fcbf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.cellHeight")}},[t("el-input",{attrs:{type:"text"},model:{value:e.optionModel.cellHeight,callback:function(t){e.$set(e.optionModel,"cellHeight",t)},expression:"optionModel.cellHeight"}})],1)},o=[],r=n("79fa"),s={name:"cellHeight-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"52af6c29",null);t["default"]=c.exports},fd28:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-document",use:"icon-document-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-document"><defs><style type="text/css"></style></defs><path d="M979.478261 706.381913a44.521739 44.521739 0 0 1-11.842783 57.967304l-4.36313 2.849392-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808695l-8.102956 0.400696c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250435l405.325913 234.540522 1.335652 1.513739 1.335652-1.513739 405.281391-234.540522a44.521739 44.521739 0 0 1 60.861218 16.250435z m0-222.608696a44.521739 44.521739 0 0 1-11.842783 57.967305l-4.36313 2.849391-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808696l-8.102956 0.400695c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250434l405.325913 234.540521 1.335652 1.513739 1.335652-1.513739 405.281391-234.540521a44.521739 44.521739 0 0 1 60.861218 16.250434zM512 0c18.788174 0 36.864 6.099478 51.645217 17.185391l4.58574 3.739826 403.500521 199.68 5.609739 6.144c32.50087 35.439304 32.50087 89.889391 0 125.328696l-5.609739 6.144-403.500521 199.590957-4.541218 3.784347a86.238609 86.238609 0 0 1-43.675826 16.829218L512 578.782609c-18.788174 0-36.864-6.099478-51.645217-17.185392l-4.630261-3.784347L52.268522 358.221913l-5.609739-6.144a92.738783 92.738783 0 0 1 0-125.328696l5.609739-6.144L455.724522 20.925217l4.585739-3.739826c12.688696-9.48313 27.826087-15.315478 43.675826-16.829217z" fill="#008df0" p-id="5455" /></symbol>'});s.a.add(a);t["default"]=a},fd54:function(e,t,n){"use strict";n("3617")},fdbf:function(e,t,n){var i=n("04f8");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe5d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowCreate")}},[t("el-switch",{model:{value:e.optionModel.allowCreate,callback:function(t){e.$set(e.optionModel,"allowCreate",t)},expression:"optionModel.allowCreate"}})],1)},o=[],r=n("79fa"),s={name:"allowCreate-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7ea31b71",null);t["default"]=c.exports},fe7f:function(e,t,n){"use strict";n("756c")},feea:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[t("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[t("el-option",{attrs:{label:"daterange",value:"daterange"}}),t("el-option",{attrs:{label:"datetimerange",value:"datetimerange"}}),t("el-option",{attrs:{label:"monthrange",value:"monthrange"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"574545a5",null);t["default"]=c.exports},ff09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxValue")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)},o=[],r=n("79fa"),s={name:"max-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxValue:{get(){return this.optionModel["max"]},set(e){!e||isNaN(e)?this.optionModel.max=null:this.optionModel.max=Number(e)}}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"edcd3882",null);t["default"]=c.exports},ff66:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("el-form-item",{attrs:{label:e.i18nt("designer.setting.precision")}},[t("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.optionModel.precision,callback:function(t){e.$set(e.optionModel,"precision",t)},expression:"optionModel.precision"}})],1)},o=[],r=n("79fa"),s={name:"precision-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6d29eaf2",null);t["default"]=c.exports},ffcf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[e.optionModel.responsive?e._e():t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.span,callback:function(t){e.$set(e.optionModel,"span",e._n(t))},expression:"optionModel.span"}})],1),e.optionModel.responsive&&"PC"===e.formConfig.layoutType?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(PC)"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.md,callback:function(t){e.$set(e.optionModel,"md",e._n(t))},expression:"optionModel.md"}})],1):e._e(),e.optionModel.responsive&&"Pad"===e.formConfig.layoutType?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(Pad)"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.sm,callback:function(t){e.$set(e.optionModel,"sm",e._n(t))},expression:"optionModel.sm"}})],1):e._e(),e.optionModel.responsive&&"H5"===e.formConfig.layoutType?t("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(H5)"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.xs,callback:function(t){e.$set(e.optionModel,"xs",e._n(t))},expression:"optionModel.xs"}})],1):e._e()],1)},o=[],r=n("79fa"),s={name:"grid-col-span-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{formConfig(){return this.designer.formConfig}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"163e0823",null);t["default"]=c.exports}})["default"]})); |