diff --git a/ureport2-console/src/main/resources/asserts/js/designer.bundle.js b/ureport2-console/src/main/resources/asserts/js/designer.bundle.js index 6946246..9892662 100644 --- a/ureport2-console/src/main/resources/asserts/js/designer.bundle.js +++ b/ureport2-console/src/main/resources/asserts/js/designer.bundle.js @@ -12,14 +12,14 @@ Math.abs(t.doc.scrollLeft-c)>1&&(a=!0)),!a)break}return i}function Zn(t,e,n,o,i) var n=ds[t.keyCode],o=n;return null!=o&&!t.altGraphKey&&(t.altKey&&"Alt"!=n&&(o="Alt-"+o),(ya?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(o="Ctrl-"+o),(ya?t.ctrlKey:t.metaKey)&&"Cmd"!=n&&(o="Cmd-"+o),!e&&t.shiftKey&&"Shift"!=n&&(o="Shift-"+o),o)}function ir(t){return"string"==typeof t?gs[t]:t}function rr(t,e){for(var n=t.doc.sel.ranges,o=[],i=0;i=0;e--)Di(t.doc,"",o[e].from,o[e].to,"+delete");$n(t)})}function ar(t,e){var n=T(t.doc,e),o=lt(n);o!=n&&(e=N(o));var i=xt(o),r=i?i[0].level%2?vt(o):wt(o):0;return k(e,r)}function sr(t,e){for(var n,o=T(t.doc,e);n=at(o);)o=n.find(1,!0).line,e=null;var i=xt(o),r=i?i[0].level%2?wt(o):vt(o):o.text.length;return k(null==e?N(o):e,r)}function lr(t,e){var n=ar(t,e.line),o=T(t.doc,n.line),i=xt(o);if(!i||0==i[0].level){var r=Math.max(0,o.text.search(/\S/)),a=e.line==n.line&&e.ch<=r&&e.ch;return k(n.line,a?0:r)}return n}function ur(t,e,n){if("string"==typeof e&&(e=ys[e],!e))return!1;t.display.input.ensurePolled();var o=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=Ta}finally{t.display.shift=o,t.state.suppressEdits=!1}return i}function cr(t,e,n){for(var o=0;oi-400&&0==Q(Ms.pos,n)?o="triple":ps&&ps.time>i-400&&0==Q(ps.pos,n)?(o="double",Ms={time:i,pos:n}):(o="single",ps={time:i,pos:n});var a,s=t.doc.sel,u=ha?e.metaKey:e.ctrlKey;t.options.dragDrop&&Ra&&!t.isReadOnly()&&"single"==o&&(a=s.contains(n))>-1&&(Q((a=s.ranges[a]).from(),n)<0||n.xRel>0)&&(Q(a.to(),n)>0||n.xRel<0)?wr(t,e,n,u):vr(t,e,n,o,u)}function wr(t,e,n,o){var i=t.display,r=+new Date,a=co(t,function(s){ia&&(i.scroller.draggable=!1),t.state.draggingText=!1,Nt(document,"mouseup",a),Nt(i.scroller,"drop",a),Math.abs(e.clientX-s.clientX)+Math.abs(e.clientY-s.clientY)<10&&(jt(s),!o&&+new Date-200w&&i.push(new Bo(k(p,w),k(p,h(y,u,r))))}i.length||i.push(new Bo(n,n)),Ai(d,ko(g.ranges.slice(0,f).concat(i),f),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v=A,b=v.anchor,C=e;if("single"!=o){var E;E="double"==o?t.findWordAt(e):new Bo(k(e.line,0),Y(d,k(e.line+1,0))),Q(E.anchor,b)>0?(C=E.head,b=U(v.from(),E.anchor)):(C=E.anchor,b=_(v.to(),E.head))}var I=g.ranges.slice(0);I[f]=new Bo(Y(d,b),C),Ai(d,ko(I,f),xa)}}function s(e){var n=++v,i=Cn(t,e,!0,"rect"==o);if(i)if(0!=Q(i,m)){t.curOp.focus=r(),a(i);var l=Rn(u,d);(i.line>=l.to||i.linew.bottom?20:0;c&&setTimeout(co(t,function(){v==n&&(u.scroller.scrollTop+=c,s(e))}),50)}}function l(e){t.state.selectingText=!1,v=1/0,jt(e),u.input.focus(),Nt(document,"mousemove",b),Nt(document,"mouseup",C),d.history.lastSelOrigin=null}var u=t.display,d=t.doc;jt(e);var A,f,g=d.sel,p=g.ranges;if(i&&!e.shiftKey?(f=d.sel.contains(n),A=f>-1?p[f]:new Bo(n,n)):(A=d.sel.primary(),f=d.sel.primIndex),fa?e.shiftKey&&e.metaKey:e.altKey)o="rect",i||(A=new Bo(n,n)),n=Cn(t,e,!0,!0),f=-1;else if("double"==o){var M=t.findWordAt(n);A=t.display.shift||d.extend?ri(d,A,M.anchor,M.head):M}else if("triple"==o){var y=new Bo(k(n.line,0),Y(d,k(n.line+1,0)));A=t.display.shift||d.extend?ri(d,A,y.anchor,y.head):y}else A=ri(d,A,n);i?f==-1?(f=p.length,Ai(d,ko(p.concat([A]),f),{scroll:!1,origin:"*mouse"})):p.length>1&&p[f].empty()&&"single"==o&&!e.shiftKey?(Ai(d,ko(p.slice(0,f).concat(p.slice(f+1)),0),{scroll:!1,origin:"*mouse"}),g=d.sel):li(d,f,A,xa):(f=0,Ai(d,new So([A],0),xa),g=d.sel);var m=n,w=u.wrapper.getBoundingClientRect(),v=0,b=co(t,function(t){Ot(t)?s(t):l(t)}),C=co(t,l);t.state.selectingText=C,Ua(document,"mousemove",b),Ua(document,"mouseup",C)}function br(t,e,n,o){var i,r;try{i=e.clientX,r=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;o&&jt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(r>s.bottom||!kt(t,n))return Ut(e);r-=s.top-a.viewOffset;for(var l=0;l=i){var c=L(t.doc,r),d=t.options.gutters[l];return Lt(t,n,t,c,d,e),Ut(e)}}}function Cr(t,e){return br(t,e,"gutterClick",!0)}function Er(t,e){Ye(t.display,e)||Tr(t,e)||St(t,e,"contextmenu")||t.display.input.onContextMenu(e)}function Tr(t,e){return!!kt(t,"gutterContextMenu")&&br(t,e,"gutterContextMenu",!1)}function Ir(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),an(t)}function xr(t){function e(e,o,i,r){t.defaults[e]=o,i&&(n[e]=r?function(t,e,n){n!=vs&&i(t,e,n)}:i)}var n=t.optionHandlers;t.defineOption=e,t.Init=vs,e("value","",function(t,e){return t.setValue(e)},!0),e("mode",null,function(t,e){t.doc.modeOption=e,Oo(t)},!0),e("indentUnit",2,Oo,!0),e("indentWithTabs",!1),e("smartIndent",!0),e("tabSize",4,function(t){Ho(t),an(t),fo(t)},!0),e("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],o=t.doc.first;t.doc.iter(function(t){for(var i=0;;){var r=t.text.indexOf(e,i);if(r==-1)break;i=r+e.length,n.push(k(o,r))}o++});for(var i=n.length-1;i>=0;i--)Di(t.doc,e,n[i],k(n[i].line,n[i].ch+e.length))}}),e("specialChars",/[\u0000-\u001f\u007f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=vs&&t.refresh()}),e("specialCharPlaceholder",he,function(t){return t.refresh()},!0),e("electricChars",!0),e("inputStyle",Aa?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),e("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),e("rtlMoveVisually",!ga),e("wholeLineUpdateBefore",!0),e("theme","default",function(t){Ir(t),Dr(t)},!0),e("keyMap","default",function(t,e,n){var o=ir(e),i=n!=vs&&ir(n);i&&i.detach&&i.detach(t,o),o.attach&&o.attach(t,i||null)}),e("extraKeys",null),e("lineWrapping",!1,Lr,!0),e("gutters",[],function(t){Lo(t.options),Dr(t)},!0),e("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?wn(t.display)+"px":"0",t.refresh()},!0),e("coverGutterNextToScrollbar",!1,function(t){return Vn(t)},!0),e("scrollbarStyle","native",function(t){Wn(t),Vn(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),e("lineNumbers",!1,function(t){Lo(t.options),Dr(t)},!0),e("firstLineNumber",1,Dr,!0),e("lineNumberFormatter",function(t){return t},Dr,!0),e("showCursorWhenSelecting",!1,Tn,!0),e("resetSelectionOnContextMenu",!0),e("lineWiseCopyCut",!0),e("readOnly",!1,function(t,e){"nocursor"==e?(kn(t),t.display.input.blur(),t.display.disabled=!0):t.display.disabled=!1,t.display.input.readOnlyChanged(e)}),e("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),e("dragDrop",!0,Nr),e("allowDropFileTypes",null),e("cursorBlinkRate",530),e("cursorScrollMargin",0),e("cursorHeight",1,Tn,!0),e("singleCursorHeightPerLine",!0,Tn,!0),e("workTime",100),e("workDelay",100),e("flattenSpans",!0,Ho,!0),e("addModeClass",!1,Ho,!0),e("pollInterval",100),e("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),e("historyEventDelay",1250),e("viewportMargin",10,function(t){return t.refresh()},!0),e("maxHighlightLength",1e4,Ho,!0),e("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),e("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),e("autofocus",null)}function Dr(t){No(t),fo(t),Qn(t)}function Nr(t,e,n){var o=n&&n!=vs;if(!e!=!o){var i=t.display.dragFunctions,r=e?Ua:Nt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Lr(t){t.options.lineWrapping?(a(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(wa(t.display.wrapper,"CodeMirror-wrap"),pt(t)),bn(t),fo(t),an(t),setTimeout(function(){return Vn(t)},100)}function Sr(t,e){var n=this;if(!(this instanceof Sr))return new Sr(t,e);this.options=e=e?u(e):{},u(bs,e,!1),Lo(e);var o=e.value;"string"==typeof o&&(o=new ls(o,e.mode,null,e.lineSeparator)),this.doc=o;var i=new Sr.inputStyles[e.inputStyle](this),r=this.display=new E(t,o,i);r.wrapper.CodeMirror=this,No(this),Ir(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new d,keySeq:null,specialChars:null},e.autofocus&&!Aa&&r.input.focus(),na&&oa<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Br(this),Zi(),eo(this),this.curOp.forceUpdate=!0,Vo(this,o),e.autofocus&&!Aa||this.hasFocus()?setTimeout(l(Bn,this),20):kn(this);for(var a in Cs)Cs.hasOwnProperty(a)&&Cs[a](n,e[a],vs);jn(this),e.finishInit&&e.finishInit(this);for(var s=0;s400}var i=t.display;Ua(i.scroller,"mousedown",co(t,yr)),na&&oa<11?Ua(i.scroller,"dblclick",co(t,function(e){if(!St(t,e)){var n=Cn(t,e);if(n&&!Cr(t,e)&&!Ye(t.display,e)){jt(e);var o=t.findWordAt(n);ai(t.doc,o.anchor,o.head)}}})):Ua(i.scroller,"dblclick",function(e){return St(t,e)||jt(e)}),ma||Ua(i.scroller,"contextmenu",function(e){return Er(t,e)});var r,a={end:0};Ua(i.scroller,"touchstart",function(e){if(!St(t,e)&&!n(e)){i.input.ensurePolled(),clearTimeout(r);var o=+new Date;i.activeTouch={start:o,moved:!1,prev:o-a.end<=300?a:null},1==e.touches.length&&(i.activeTouch.left=e.touches[0].pageX,i.activeTouch.top=e.touches[0].pageY)}}),Ua(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ua(i.scroller,"touchend",function(n){var r=i.activeTouch;if(r&&!Ye(i,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=t.coordsChar(i.activeTouch,"page");a=!r.prev||o(r,r.prev)?new Bo(s,s):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(s):new Bo(k(s.line,0),Y(t.doc,k(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),jt(n)}e()}),Ua(i.scroller,"touchcancel",e),Ua(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Yn(t,i.scroller.scrollTop),On(t,i.scroller.scrollLeft,!0),Lt(t,"scroll",t))}),Ua(i.scroller,"mousewheel",function(e){return Fn(t,e)}),Ua(i.scroller,"DOMMouseScroll",function(e){return Fn(t,e)}),Ua(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(e){St(t,e)||Rt(e)},over:function(e){St(t,e)||(Wi(t,e),Rt(e))},start:function(e){return Gi(t,e)},drop:co(t,Vi),leave:function(e){St(t,e)||Ji(t)}};var s=i.input.getField();Ua(s,"keyup",function(e){return pr.call(t,e)}),Ua(s,"keydown",co(t,fr)),Ua(s,"keypress",co(t,Mr)),Ua(s,"focus",function(e){return Bn(t,e)}),Ua(s,"blur",function(e){return kn(t,e)})}function kr(t,e,n,o){var i,r=t.doc;null==n&&(n="add"),"smart"==n&&(r.mode.indent?i=te(t,e):n="prev");var a=t.options.tabSize,s=T(r,e),l=c(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,d=s.text.match(/^\s*/)[0];if(o||/\S/.test(s.text)){if("smart"==n&&(u=r.mode.indent(i,s.text.slice(d.length),s.text),u==Ta||u>150)){if(!o)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>r.first?c(T(r,e-1).text,null,a):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var A="",h=0;if(t.options.indentWithTabs)for(var g=Math.floor(u/a);g;--g)h+=a,A+="\t";if(h1)if(Ts&&Ts.text.join("\n")==e){if(o.ranges.length%Ts.text.length==0){l=[];for(var u=0;u=0;d--){var A=o.ranges[d],h=A.from(),f=A.to();A.empty()&&(n&&n>0?h=k(h.line,h.ch-n):t.state.overwrite&&!a?f=k(f.line,Math.min(T(r,f.line).text.length,f.ch+g(s).length)):Ts&&Ts.lineWise&&Ts.text.join("\n")==e&&(h=f=k(h.line,0))),c=t.curOp.updateInput;var M={from:h,to:f,text:l?l[d%l.length]:s,origin:i||(a?"paste":t.state.cutIncoming?"cut":"+input")};bi(t.doc,M),Ee(t,"inputRead",t,M)}e&&!a&&Ur(t,e),$n(t),t.curOp.updateInput=c,t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=!1}function _r(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||uo(e,function(){return jr(e,n,0,null,"paste")}),!0}function Ur(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,o=n.ranges.length-1;o>=0;o--){var i=n.ranges[o];if(!(i.head.ch>100||o&&n.ranges[o-1].head.line==i.head.line)){var r=t.getModeAt(i.head),a=!1;if(r.electricChars){for(var s=0;s-1){a=kr(t,i.head.line,"smart");break}}else r.electricInput&&r.electricInput.test(T(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=kr(t,i.head.line,"smart"));a&&Ee(t,"electricInput",t,i.head.line)}}}function Rr(t){for(var e=[],n=[],o=0;oo&&(kr(e,r.head.line,t,!0),o=r.head.line,i==e.doc.sel.primIndex&&$n(e));else{var a=r.from(),s=r.to(),l=Math.max(o,a.line);o=Math.min(e.lastLine(),s.line-(s.ch?0:1))+1;for(var u=l;u0&&li(e.doc,i,new Bo(a,c[i].to()),Ia)}}}),getTokenAt:function(t,e){return ie(this,t,e)},getLineTokens:function(t,e){return ie(this,k(t),e,!0)},getTokenTypeAt:function(t){t=Y(this.doc,t);var e,n=$t(this,T(this.doc,t.line)),o=0,i=(n.length-1)/2,r=t.ch;if(0==r)e=n[2];else for(;;){var a=o+i>>1;if((a?n[2*a-1]:0)>=r)i=a;else{if(!(n[2*a+1]r&&(t=r,i=!0),o=T(this.doc,t)}else o=t;return un(this,o,{top:0,left:0},e||"page",n).top+(i?this.doc.height-ft(o):0)},defaultTextHeight:function(){return Mn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,o,i){var r=this.display;t=An(this,Y(this.doc,t));var a=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),r.sizer.appendChild(e),"over"==o)a=t.top;else if("above"==o||"near"==o){var l=Math.max(r.wrapper.clientHeight,this.doc.height),u=Math.max(r.sizer.clientWidth,r.lineSpace.clientWidth);("above"==o||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(a=t.bottom),s+e.offsetWidth>u&&(s=u-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==i?(s=r.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(r.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&Zn(this,s,a,s+e.offsetWidth,a+e.offsetHeight)},triggerOnKeyDown:Ao(fr),triggerOnKeyPress:Ao(Mr),triggerOnKeyUp:pr,execCommand:function(t){if(ys.hasOwnProperty(t))return ys[t].call(null,this)},triggerElectric:Ao(function(t){Ur(this,t)}),findPosH:function(t,e,n,o){var i=this,r=1;e<0&&(r=-1,e=-e);for(var a=Y(this.doc,t),s=0;s0&&s(n.charAt(o-1));)--o;for(;i.5)&&bn(this),Lt(this,"refresh",this)}),swapDoc:Ao(function(t){var e=this.doc;return e.cm=null,Vo(this,t),an(this),this.display.input.reset(),this.scrollTo(t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,Ee(this,"swapDoc",this,e),e}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Qt(t),t.registerHelper=function(e,o,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][o]=i},t.registerGlobalHelper=function(e,o,i,r){t.registerHelper(e,o,r),n[e]._global.push({pred:i,val:r})}}function zr(t,e,n,o,i){function r(){var e=s+n;return!(e=t.first+t.size)&&(s=e,c=T(t,e))}function a(t){var e=(i?Tt:It)(c,l,n,!0);if(null==e){if(t||!r())return!1;l=i?(n<0?vt:wt)(c):n<0?c.text.length:0}else l=e;return!0}var s=e.line,l=e.ch,u=n,c=T(t,s);if("char"==o)a();else if("column"==o)a(!0);else if("word"==o||"group"==o)for(var d=null,A="group"==o,h=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||a(!f);f=!1){var g=c.text.charAt(l)||"\n",p=v(g,h)?"w":A&&"\n"==g?"n":!A||/\s/.test(g)?null:"p";if(!A||f||p||(p="s"),d&&d!=p){n<0&&(n=1,a());break}if(p&&(d=p),n>0&&!a(!f))break}var M=yi(t,k(s,l),e,u,!0);return Q(e,M)||(M.hitSide=!0),M}function Fr(t,e,n,o){var i,r=t.doc,a=e.left;if("page"==o){var s=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*Mn(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==o&&(i=n>0?e.bottom+3:e.top-3);for(var u;u=gn(t,a,i),u.outside;){if(n<0?i<=0:i>=r.height){u.hitSide=!0;break}i+=5*n}return u}function Pr(t,e){var n=Ze(t,e.line);if(!n||n.hidden)return null;var o=T(t.doc,e.line),i=We(n,o,e.line),r=xt(o),a="left";if(r){var s=Ct(r,e.ch);a=s%2?"right":"left"}var l=$e(i.map,e.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Vr(t,e){return e&&(t.bad=!0),t}function Gr(t,e,n,o,i){function r(t){return function(e){return e.id==t}}function a(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(null!=n)return void(s+=""==n?e.textContent.replace(/\u200b/g,""):n);var c,d=e.getAttribute("cm-marker");if(d){var A=t.findMarks(k(o,0),k(i+1,0),r(+d));return void(A.length&&(c=A[0].find())&&(s+=I(t.doc,c.from,c.to).join(u)))}if("false"==e.getAttribute("contenteditable"))return;for(var h=0;h=15&&(sa=!1,ia=!0);var Ma,ya=ha&&(ra||sa&&(null==pa||pa<12.11)),ma=$r||na&&oa>=9,wa=function(e,n){var o=e.className,i=t(n).exec(o);if(i){var r=o.slice(i.index+i[0].length);e.className=o.slice(0,i.index)+(r?i[1]+r:"")}};Ma=document.createRange?function(t,e,n,o){var i=document.createRange();return i.setEnd(o||t,n),i.setStart(t,e),i}:function(t,e,n){ var o=document.body.createTextRange();try{o.moveToElementText(t.parentNode)}catch(t){return o}return o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",e),o};var va=function(t){t.select()};da?va=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:na&&(va=function(t){try{t.select()}catch(t){}}),d.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var ba,Ca,Ea=30,Ta={toString:function(){return"CodeMirror.Pass"}},Ia={scroll:!1},xa={origin:"*mouse"},Da={origin:"+move"},Na=[""],La=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Sa=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Ba=!1,ka=!1,Qa=null,ja=function(){function t(t){return t<=247?n.charAt(t):1424<=t&&t<=1524?"R":1536<=t&&t<=1785?o.charAt(t-1536):1774<=t&&t<=2220?"r":8192<=t&&t<=8203?"w":8204==t?"b":"L"}function e(t,e,n){this.level=t,this.from=e,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",o="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/,u="L";return function(n){if(!i.test(n))return!1;for(var o=n.length,c=[],d=0;d=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pose},eatSpace:function(){for(var t=this,e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++t.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},backUp:function(t){this.pos-=t},column:function(){return this.lastColumnPos0?null:(o&&e!==!1&&(this.pos+=o[0].length),o)}var i=function(t){return n?t.toLowerCase():t},r=this.string.substr(this.pos,t.length);if(i(r)==i(t))return e!==!1&&(this.pos+=t.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}}},Qt(le),le.prototype.lineNo=function(){return N(this)};var Wa,Ja={},Xa={},Za=null,Ka=null,qa={left:0,right:0,top:0,bottom:0},$a=0,ts=null;na?ts=-.53:$r?ts=15:aa?ts=-.7:la&&(ts=-1/3);var es=function(t,e,n){this.cm=n;var i=this.vert=o("div",[o("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=o("div",[o("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");t(i),t(r),Ua(i,"scroll",function(){i.clientHeight&&e(i.scrollTop,"vertical")}),Ua(r,"scroll",function(){r.clientWidth&&e(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,na&&oa<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};es.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,o=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?o+"px":"0";var i=t.viewHeight-(e?o:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?o+"px":"0",this.horiz.style.left=t.barLeft+"px";var r=t.viewWidth-t.barLeft-(n?o:0);this.horiz.firstChild.style.width=t.scrollWidth-t.clientWidth+r+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==o&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?o:0,bottom:e?o:0}},es.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},es.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},es.prototype.zeroWidthHack=function(){var t=ha&&!ua?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new d,this.disableVert=new d},es.prototype.enableZeroWidthBar=function(t,e){function n(){var o=t.getBoundingClientRect(),i=document.elementFromPoint(o.left+1,o.bottom-1);i!=t?t.style.pointerEvents="none":e.set(1e3,n)}t.style.pointerEvents="auto",e.set(1e3,n)},es.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var ns=function(){};ns.prototype.update=function(){return{bottom:0,right:0}},ns.prototype.setScrollLeft=function(){},ns.prototype.setScrollTop=function(){},ns.prototype.clear=function(){};var os={native:es,null:ns},is=0,rs=function(t,e,n){var o=t.display;this.viewport=e,this.visible=Rn(o,t.doc,e),this.editorIsHidden=!o.wrapper.offsetWidth,this.wrapperHeight=o.wrapper.clientHeight,this.wrapperWidth=o.wrapper.clientWidth,this.oldDisplayWidth=Pe(t),this.force=n,this.dims=mn(t),this.events=[]};rs.prototype.signal=function(t,e){kt(t,e)&&this.events.push(arguments)},rs.prototype.finish=function(){for(var t=this,e=0;e=0&&Q(t,i.to())<=0)return o}return-1}},Bo.prototype={from:function(){return U(this.anchor,this.head)},to:function(){return _(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}},ki.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=this,o=t,i=t+e;o1||!(this.children[0]instanceof ki))){var l=[];this.collapse(l),this.children=[new ki(l)],this.children[0].parent=this}},collapse:function(t){for(var e=this,n=0;n50){for(var s=r.lines.length%25+25,l=s;l10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var o=this,i=0;ie.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&fo(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&gi(e.doc)),e&&Ee(e,"markerCleared",e,this),n&&no(e),this.parent&&this.parent.clear()}},Ri.prototype.find=function(t,e){var n=this;null==t&&"bookmark"==this.type&&(t=1);for(var o,i,r=0;r=0;u--)bi(o,i[u]);l?di(this,l):this.cm&&$n(this.cm)}),undo:ho(function(){Ei(this,"undo")}),redo:ho(function(){Ei(this,"redo")}),undoSelection:ho(function(){Ei(this,"undo",!0)}),redoSelection:ho(function(){Ei(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,o=0;o=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=Y(this,t),e=Y(this,e);var o=[],i=t.line;return this.iter(t.line,e.line+1,function(r){var a=r.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||o.push(l.marker.parent||l.marker)}++i}),o},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var o=0;ot?(e=t,!0):(t-=r,void++n)}),Y(this,k(n,e))},indexFromPos:function(t){t=Y(this,t);var e=t.ch;if(t.linee&&(e=t.from),null!=t.to&&t.to0)i=new k(i.line,i.ch+1),t.replaceRange(r.charAt(i.ch-1)+r.charAt(i.ch-2),k(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=T(t.doc,i.line-1).text;a&&(i=new k(i.line,1),t.replaceRange(r.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),k(i.line-1,a.length-1),i,"+transpose"))}n.push(new Bo(i,i))}t.setSelections(n)})},newlineAndIndent:function(t){return uo(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input"); e=t.listSelections();for(var o=0;ot.firstLine()&&(o=k(o.line-1,T(t.doc,o.line-1).length)),i.ch==T(t.doc,i.line).text.length&&i.linee.viewTo-1)return!1;var r,a,s;o.line==e.viewFrom||0==(r=En(t,o.line))?(a=N(e.view[0].line),s=e.view[0].node):(a=N(e.view[r].line),s=e.view[r-1].node.nextSibling);var l,u,c=En(t,i.line);if(c==e.view.length-1?(l=e.viewTo-1,u=e.lineDiv.lastChild):(l=N(e.view[c+1].line)-1,u=e.view[c+1].node.previousSibling),!s)return!1;for(var d=t.doc.splitLines(Gr(t,s,u,a,l)),A=I(t.doc,k(a,0),k(l,T(t.doc,l).text.length));d.length>1&&A.length>1;)if(g(d)==g(A))d.pop(),A.pop(),l--;else{if(d[0]!=A[0])break;d.shift(),A.shift(),a++}for(var h=0,f=0,p=d[0],M=A[0],y=Math.min(p.length,M.length);h1||d[0]||Q(b,C)?(Di(t.doc,d,b,C,"+input"),!0):void 0},Is.prototype.ensurePolled=function(){this.forceCompositionEnd()},Is.prototype.reset=function(){this.forceCompositionEnd()},Is.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.pollContent()||fo(this.cm),this.div.blur(),this.div.focus())},Is.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}!t.cm.isReadOnly()&&t.pollContent()||uo(t.cm,function(){return fo(t.cm)})},80))},Is.prototype.setUneditable=function(t){t.contentEditable="false"},Is.prototype.onKeyPress=function(t){t.preventDefault(),this.cm.isReadOnly()||co(this.cm,jr)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0)},Is.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Is.prototype.onContextMenu=function(){},Is.prototype.resetPosition=function(){},Is.prototype.needsContentAttribute=!0;var xs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new d,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};xs.prototype.init=function(t){function e(t){if(!St(i,t)){if(i.somethingSelected())Qr({lineWise:!1,text:i.getSelections()}),o.inaccurateSelection&&(o.prevInput="",o.inaccurateSelection=!1,a.value=Ts.text.join("\n"),va(a));else{if(!i.options.lineWiseCopyCut)return;var e=Rr(i);Qr({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,Ia):(o.prevInput="",a.value=e.text.join("\n"),va(a))}"cut"==t.type&&(i.state.cutIncoming=!0)}}var n=this,o=this,i=this.cm,r=this.wrapper=Or(),a=this.textarea=r.firstChild;t.wrapper.insertBefore(r,t.wrapper.firstChild),da&&(a.style.width="0px"),Ua(a,"input",function(){na&&oa>=9&&n.hasSelection&&(n.hasSelection=null),o.poll()}),Ua(a,"paste",function(t){St(i,t)||_r(t,i)||(i.state.pasteIncoming=!0,o.fastPoll())}),Ua(a,"cut",e),Ua(a,"copy",e),Ua(t.scroller,"paste",function(e){Ye(t,e)||St(i,e)||(i.state.pasteIncoming=!0,o.focus())}),Ua(t.lineSpace,"selectstart",function(e){Ye(t,e)||jt(e)}),Ua(a,"compositionstart",function(){var t=i.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Ua(a,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},xs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,o=In(t);if(t.options.moveInputWithCursor){var i=An(t,n.sel.primary().head,"div"),r=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-r.top)),o.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-r.left))}return o},xs.prototype.showSelection=function(t){var e=this.cm,o=e.display;n(o.cursorDiv,t.cursors),n(o.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},xs.prototype.reset=function(t){if(!this.contextMenuPending){var e,n,o=this.cm,i=o.doc;if(o.somethingSelected()){this.prevInput="";var r=i.sel.primary();e=Ha&&(r.to().line-r.from().line>100||(n=o.getSelection()).length>1e3);var a=e?"-":n||o.getSelection();this.textarea.value=a,o.state.focused&&va(this.textarea),na&&oa>=9&&(this.hasSelection=a)}else t||(this.prevInput=this.textarea.value="",na&&oa>=9&&(this.hasSelection=null));this.inaccurateSelection=e}},xs.prototype.getField=function(){return this.textarea},xs.prototype.supportsTouch=function(){return!1},xs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Aa||r()!=this.textarea))try{this.textarea.focus()}catch(t){}},xs.prototype.blur=function(){this.textarea.blur()},xs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},xs.prototype.receivedFocus=function(){this.slowPoll()},xs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},xs.prototype.fastPoll=function(){function t(){var o=n.poll();o||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,t))}var e=!1,n=this;n.pollingFast=!0,n.polling.set(20,t)},xs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,o=this.prevInput;if(this.contextMenuPending||!e.state.focused||Oa(n)&&!o&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==o&&!e.somethingSelected())return!1;if(na&&oa>=9&&this.hasSelection===i||ha&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var r=i.charCodeAt(0);if(8203!=r||o||(o="​"),8666==r)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(o.length,i.length);a1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},xs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},xs.prototype.onKeyPress=function(){na&&oa>=9&&(this.hasSelection=null),this.fastPoll()},xs.prototype.onContextMenu=function(t){function e(){if(null!=a.selectionStart){var t=i.somethingSelected(),e="​"+(t?a.value:"");a.value="⇚",a.value=e,o.prevInput=t?"":"​",a.selectionStart=1,a.selectionEnd=e.length,r.selForContextMenu=i.doc.sel}}function n(){if(o.contextMenuPending=!1,o.wrapper.style.cssText=d,a.style.cssText=c,na&&oa<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=a.selectionStart){(!na||na&&oa<9)&&e();var t=0,n=function(){r.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==o.prevInput?co(i,wi)(i):t++<10?r.detectingSelectAll=setTimeout(n,500):r.input.reset()};r.detectingSelectAll=setTimeout(n,200)}}var o=this,i=o.cm,r=i.display,a=o.textarea,s=Cn(i,t),l=r.scroller.scrollTop;if(s&&!sa){var u=i.options.resetSelectionOnContextMenu;u&&i.doc.sel.contains(s)==-1&&co(i,Ai)(i.doc,Qo(s),Ia);var c=a.style.cssText,d=o.wrapper.style.cssText;o.wrapper.style.cssText="position: absolute";var A=o.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-A.top-5)+"px; left: "+(t.clientX-A.left-5)+"px;\n z-index: 1000; background: "+(na?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var h;if(ia&&(h=window.scrollY),r.input.focus(),ia&&window.scrollTo(null,h),r.input.reset(),i.somethingSelected()||(a.value=o.prevInput=" "),o.contextMenuPending=!0,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll),na&&oa>=9&&e(),ma){Rt(t);var f=function(){Nt(window,"mouseup",f),setTimeout(n,20)};Ua(window,"mouseup",f)}else setTimeout(n,50)}},xs.prototype.readOnlyChanged=function(t){t||this.reset()},xs.prototype.setUneditable=function(){},xs.prototype.needsContentAttribute=!1,xr(Sr),Hr(Sr);var Ds="iter insert remove copy getEditor constructor".split(" ");for(var Ns in ls.prototype)ls.prototype.hasOwnProperty(Ns)&&A(Ds,Ns)<0&&(Sr.prototype[Ns]=function(t){return function(){return t.apply(this.doc,arguments)}}(ls.prototype[Ns]));return Qt(ls),Sr.inputStyles={textarea:xs,contenteditable:Is},Sr.defineMode=function(t){Sr.defaults.mode||"null"==t||(Sr.defaults.mode=t),Pt.apply(this,arguments)},Sr.defineMIME=Vt,Sr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Sr.defineMIME("text/plain","null"),Sr.defineExtension=function(t,e){Sr.prototype[t]=e},Sr.defineDocExtension=function(t,e){ls.prototype[t]=e},Sr.fromTextArea=Xr,Zr(Sr),Sr.version="5.23.0",Sr})},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n");this.container.append(o);var r=new ut.default;new u.default(o.get(0),function(){n.context=new s.default(this),n.context.fileInfo=r,n.buildTools(n.context),n.datasourcePanel=new nt.default(n.context),n.propertyPanel=new it.default(n.context),n.buildPropertyPanel(),this.bindSelectionEvent(function(t,e,o,i){n.propertyPanel.refresh(t,e,o,i);var r=!0,a=!1,s=void 0;try{for(var l,u=n.tools[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var c=l.value;c.refresh&&c.refresh(t,e,o,i)}}catch(t){a=!0,s=t}finally{try{!r&&u.return&&u.return()}finally{if(a)throw s}}}),n.printLine=new st.default(n.context);var t=n.context.reportDef.rows,e=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(e=(a=l.next()).done);e=!0){var u=a.value,c=u.band;c&&n.context.addRowHeader(u.rowNumber-1,c)}}catch(t){o=!0,i=t}finally{try{!e&&l.return&&l.return()}finally{if(o)throw i}}(0,ct.renderRowHeader)(n.context.hot,n.context)})}return r(t,[{key:"buildPropertyPanel",value:function(){var t="_prop_container",e="_datasource_container",n=$('
');this.container.prepend(n);var o=$(''),i=$('\n \n \n ');o.append(i),n.append(o),o.mousedown(function(t){t.preventDefault()});var r=$('
'),a=$('
'),s=$('
');r.append(a),r.append(s),a.append(this.propertyPanel.buildPanel()),s.append(this.datasourcePanel.buildPanel()),n.append(r),n.draggable(),i.click(function(){r.toggle();var t=r.css("display");t&&"none"!==t?(i.removeClass("glyphicon-circle-arrow-left"),i.addClass("glyphicon-circle-arrow-down")):(i.removeClass("glyphicon-circle-arrow-down"),i.addClass("glyphicon-circle-arrow-left"))})}},{key:"buildTools",value:function(t){var e=$('
');this.container.prepend(e),this.tools=[],this.tools.push(new V.default(t)),this.tools.push(new d.default(t)),this.tools.push(new h.default(t)),this.tools.push(new F.default(t)),this.tools.push(new m.default(t)),this.tools.push(new v.default(t)),this.tools.push(new H.default(t)),this.tools.push(new g.default(t)),this.tools.push(new M.default(t)),this.tools.push(new C.default(t)),this.tools.push(new W.default(t)),this.tools.push(new X.default(t)),this.tools.push(new T.default(t)),this.tools.push(new x.default(t)),this.tools.push(new N.default(t)),this.tools.push(new S.default(t)),this.tools.push(new k.default(t)),this.tools.push(new Y.default(t)),this.tools.push(new j.default(t)),this.tools.push(new K.default(t)),this.tools.push(new U.default(t)),this.tools.push(new tt.default(t));var n=!0,o=!1,i=void 0;try{for(var r,a=this.tools[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value;e.append(s.buildButton())}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}}}]),t}();e.default=dt},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n=t&&(a.rowNumber+=1)}}catch(t){n=!0,o=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw o}}}},{key:"adjustDelRowHeaders",value:function(t){var e=null,n=!0,o=!1,i=void 0;try{for(var r,a=this.rowHeaders[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value;s.rowNumber>t?s.rowNumber-=1:s.rowNumber===t&&(e=s)}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}if(e){var l=this.rowHeaders.indexOf(e);this.rowHeaders.splice(l,1)}}},{key:"addRowHeader",value:function(t,e){var n=null,o=!0,i=!1,r=void 0;try{for(var a,s=this.rowHeaders[Symbol.iterator]();!(o=(a=s.next()).done);o=!0){var l=a.value;if(l.rowNumber===t){n=l;break}}}catch(t){i=!0,r=t}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}if(n)n.band=e;else{var u={band:e,rowNumber:t};this.rowHeaders.push(u)}}},{key:"getCellName",value:function(t,e){return null!=t?this.LETTERS[e]+(t+1):this.LETTERS[e]}},{key:"getCell",value:function(t,e){var n=t+1+","+(e+1);return this.cellsMap.get(n)}},{key:"addCell",value:function(t){var e=t.rowNumber+","+t.columnNumber;this.cellsMap.set(e,t)}},{key:"removeCell",value:function(t){var e=t.rowNumber+","+t.columnNumber;this.cellsMap.delete(e)}},{key:"deleteCell",value:function(t,e){var n=t+","+e;this.cellsMap.delete(n)}},{key:"getSelectedCells",value:function(){var t=this.hot.getSelected();if(!t)return null;for(var e=t[0],n=t[1],o=t[2],i=t[3],r=[],a=e;a<=o;a++)for(var s=n;s<=i;s++){var l=this.hot.getCell(a,s,!0),u=r.indexOf(l);u===-1&&r.push(l)}return r}}]),t}());e.default=r},function(t,e){"use strict";function n(t){var e=a("消息提示",t);e.modal("show")}function o(t,e){var n=a("确认提示",t,[{name:"确认",click:function(){e.call(this)}}]);n.modal("show")}function i(t,e,n){var o=a(t,e,[{name:"确认",click:function(){n.call(this)}}]);o.modal("show")}function r(t,e,n,o,i){var r=a(t,e,n,i);if(r.modal("show"),o){var s=!0,l=!1,u=void 0;try{for(var c,d=o[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var A=c.value;r.on(A.name,A.callback)}}catch(t){l=!0,u=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}}function a(t,e,n,o){var i=this,r="modal-dialog"+(o?" modal-lg":""),a=$(''),l=$('
');a.append(l);var u=$('");a.append(s),this.paper=(0,u.default)(s.get(0),this.width,this.height);for(var l=n.fontSize+"pt "+(n.fontFamily?n.fontFamily:"宋体"),c=n.bold?"bold":"normal",A=n.italic?"italic":"normal",h=n.underline?"underline":"none",f={fill:r(n.forecolor),font:l,"font-weight":c,"font-style":A,"text-decoration":h},g=e.slashes,p=0;p=1e3&&delete s[l.shift()],l.push(a),s[a]=t[D](e,r),n?n(s[a]):s[a])}return i}function r(){return this.hex}function a(t,e){for(var n=[],o=0,i=t.length;i-2*!e>o;o+=2){var r=[{x:+t[o-2],y:+t[o-1]},{x:+t[o],y:+t[o+1]},{x:+t[o+2],y:+t[o+3]},{x:+t[o+4],y:+t[o+5]}];e?o?i-4==o?r[3]={x:+t[0],y:+t[1]}:i-2==o&&(r[2]={x:+t[0],y:+t[1]},r[3]={x:+t[2],y:+t[3]}):r[0]={x:+t[i-2],y:+t[i-1]}:i-4==o?r[3]=r[2]:o||(r[0]={x:+t[o],y:+t[o+1]}),n.push(["C",(-r[0].x+6*r[1].x+r[2].x)/6,(-r[0].y+6*r[1].y+r[2].y)/6,(r[1].x+6*r[2].x-r[3].x)/6,(r[1].y+6*r[2].y-r[3].y)/6,r[2].x,r[2].y])}return n}function s(t,e,n,o,i){var r=-3*e+9*n-9*o+3*i,a=t*r+6*e-12*n+6*o;return t*a-3*e+3*n}function l(t,e,n,o,i,r,a,l,u){null==u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,d=12,A=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,g=0;gf;)A/=2,h+=(cY(i,a)||Y(e,o)Y(r,s))){var l=(t*o-e*n)*(i-a)-(t-n)*(i*s-r*a),u=(t*o-e*n)*(r-s)-(e-o)*(i*s-r*a),c=(t-n)*(r-s)-(e-o)*(i-a);if(c){var d=l/c,A=u/c,h=+d.toFixed(2),f=+A.toFixed(2);if(!(h<+O(t,n).toFixed(2)||h>+Y(t,n).toFixed(2)||h<+O(i,a).toFixed(2)||h>+Y(i,a).toFixed(2)||f<+O(e,o).toFixed(2)||f>+Y(e,o).toFixed(2)||f<+O(r,s).toFixed(2)||f>+Y(r,s).toFixed(2)))return{x:d,y:A}}}}function d(t,n,o){var i=e.bezierBBox(t),r=e.bezierBBox(n);if(!e.isBBoxIntersect(i,r))return o?0:[];for(var a=l.apply(0,t),s=l.apply(0,n),u=Y(~~(a/5),1),d=Y(~~(s/5),1),A=[],h=[],f={},g=o?0:[],p=0;p=0&&I<=1.001&&x>=0&&x<=1.001&&(o?g++:g.push({x:T.x,y:T.y,t1:O(I,1),t2:O(x,1)}))}}return g}function A(t,n,o){t=e._path2curve(t),n=e._path2curve(n);for(var i,r,a,s,l,u,c,A,h,f,g=o?0:[],p=0,M=t.length;po)return o;for(;nr?n=i:o=i,i=(o-n)/2+n}return i}var u=3*e,c=3*(o-e)-u,d=1-u-c,A=3*n,h=3*(i-n)-A,f=1-A-h;return s(t,1/(200*r))}function p(t,e){var n=[],o={};if(this.ms=e,this.times=1,t){for(var i in t)t[E](i)&&(o[q(i)]=t[i],n.push(q(i)));n.sort(ct)}this.anim=o,this.top=n[n.length-1],this.percents=n}function M(n,o,i,r,a,s){i=q(i);var l,u,c,d,A,f,p=n.ms,M={},y={},m={};if(r)for(b=0,C=re.length;br*n.top){i=n.percents[b],A=n.percents[b-1]||0,p=p/n.top*(i-A),d=n.percents[b+1],l=n.anim[i];break}r&&o.attr(n.anim[n.percents[b]])}if(l){if(u)u.initstatus=r,u.start=new Date-u.ms*r;else{for(var T in l)if(l[E](T)&&(nt[E](T)||o.paper.customAttributes[E](T)))switch(M[T]=o.attr(T),null==M[T]&&(M[T]=et[T]),y[T]=l[T],nt[T]){case P:m[T]=(y[T]-M[T])/p;break;case"colour":M[T]=e.getRGB(M[T]);var I=e.getRGB(y[T]);m[T]={r:(I.r-M[T].r)/p,g:(I.g-M[T].g)/p,b:(I.b-M[T].b)/p};break;case"path":var x=Qt(M[T],y[T]),D=x[1];for(M[T]=x[0],m[T]=[],b=0,C=M[T].length;b',pt=Mt.firstChild,pt.style.behavior="url(#default#VML)",!pt||"object"!=typeof pt.adj)return e.type=S;Mt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=x,e.fn=w=x.prototype=e.prototype,e._id=0,e.is=function(t,e){return e=U.call(e),"finite"==e?!X[E](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||W.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,n,o,i,r,a){if(null==r){var s=t-o,l=n-i;return s||l?(180+180*R.atan2(-l,-s)/F+360)%360:0}return e.angle(t,n,r,a)-e.angle(o,i,r,a)},e.rad=function(t){return t%360*F/180},e.deg=function(t){return Math.round(180*t/F%360*1e3)/1e3},e.snapTo=function(t,n,o){if(o=e.is(o,"finite")?o:10,e.is(t,G)){for(var i=t.length;i--;)if(H(t[i]-n)<=o)return t[i]}else{t=+t;var r=n%t;if(rt-o)return n-r+t}return n};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*R.random()|0,n="x"==t?e:3&e|8;return n.toString(16)});e.setWindow=function(n){t("raphael.setWindow",e,T.win,n),T.win=n,T.doc=T.win.document,e._engine.initWin&&e._engine.initWin(T.win)};var yt=function(t){if(e.vml){var n,o=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write(""),r.close(),n=r.body}catch(t){n=createPopup().document.body}var a=n.createTextRange();yt=i(function(t){try{n.style.color=k(t).replace(o,S);var e=a.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=T.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",T.doc.body.appendChild(s),yt=i(function(t){return s.style.color=t,T.doc.defaultView.getComputedStyle(s,S).getPropertyValue("color")})}return yt(t)},mt=function(){return"hsb("+[this.h,this.s,this.b]+")"},wt=function(){return"hsl("+[this.h,this.s,this.l]+")"},vt=function(){return this.hex},bt=function(t,n,o){if(null==n&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(o=t.b,n=t.g,t=t.r),null==n&&e.is(t,V)){var i=e.getRGB(t);t=i.r,n=i.g,o=i.b}return(t>1||n>1||o>1)&&(t/=255,n/=255,o/=255),[t,n,o]},Ct=function(t,n,o,i){t*=255,n*=255,o*=255;var r={r:t,g:n,b:o,hex:e.rgb(t,n,o),toString:vt};return e.is(i,"finite")&&(r.opacity=i),r};e.color=function(t){var n;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=vt,t},e.hsb2rgb=function(t,e,n,o){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,o=t.o,t=t.h),t*=360;var i,r,a,s,l;return t=t%360/60,l=n*e,s=l*(1-H(t%2-1)),i=r=a=n-l,t=~~t,i+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],Ct(i,r,a,o)},e.hsl2rgb=function(t,e,n,o){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var i,r,a,s,l;return t=t%360/60,l=2*e*(n<.5?n:1-n),s=l*(1-H(t%2-1)),i=r=a=n-l/2,t=~~t,i+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],Ct(i,r,a,o)},e.rgb2hsb=function(t,e,n){n=bt(t,e,n),t=n[0],e=n[1],n=n[2];var o,i,r,a;return r=Y(t,e,n),a=r-O(t,e,n),o=0==a?null:r==t?(e-n)/a:r==e?(n-t)/a+2:(t-e)/a+4,o=(o+360)%6*60/360,i=0==a?0:a/r,{h:o,s:i,b:r,toString:mt}},e.rgb2hsl=function(t,e,n){n=bt(t,e,n),t=n[0],e=n[1],n=n[2];var o,i,r,a,s,l;return a=Y(t,e,n),s=O(t,e,n),l=a-s,o=0==l?null:a==t?(e-n)/l:a==e?(n-t)/l+2:(t-e)/l+4,o=(o+360)%6*60/360,r=(a+s)/2,i=0==l?0:r<.5?l/(2*r):l/(2-2*r),{h:o,s:i,l:r,toString:wt}},e._path2string=function(){return this.join(",").replace(rt,"$1")};e._preload=function(t,e){var n=T.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,T.doc.body.removeChild(this)},n.onerror=function(){T.doc.body.removeChild(this)},T.doc.body.appendChild(n),n.src=t};e.getRGB=i(function(t){if(!t||(t=k(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:r};!(it[E](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=yt(t));var n,o,i,a,s,l,u=t.match(J);return u?(u[2]&&(i=$(u[2].substring(5),16),o=$(u[2].substring(3,5),16),n=$(u[2].substring(1,3),16)),u[3]&&(i=$((s=u[3].charAt(3))+s,16),o=$((s=u[3].charAt(2))+s,16),n=$((s=u[3].charAt(1))+s,16)),u[4]&&(l=u[4][Q](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),u[5]?(l=u[5][Q](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsb2rgb(n,o,i,a)):u[6]?(l=u[6][Q](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsl2rgb(n,o,i,a)):(u={r:n,g:o,b:i,toString:r},u.hex="#"+(16777216|i|o<<8|n<<16).toString(16).slice(1),e.is(a,"finite")&&(u.opacity=a),u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}},e),e.hsb=i(function(t,n,o){return e.hsb2rgb(t,n,o).hex}),e.hsl=i(function(t,n,o){return e.hsl2rgb(t,n,o).hex}),e.rgb=i(function(t,e,n){function o(t){return t+.5|0}return"#"+(16777216|o(n)|o(e)<<8|o(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var n=Et(t);if(n.arr)return It(n.arr);var o={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return e.is(t,G)&&e.is(t[0],G)&&(i=It(t)),i.length||k(t).replace(at,function(t,e,n){var r=[],a=e.toLowerCase();if(n.replace(lt,function(t,e){e&&r.push(+e)}),"m"==a&&r.length>2&&(i.push([e][N](r.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)i.push([e][N](r));else for(;r.length>=o[a]&&(i.push([e][N](r.splice(0,o[a]))),o[a]););}),i.toString=e._path2string,n.arr=It(i),i},e.parseTransformString=i(function(t){if(!t)return null;var n=[];return e.is(t,G)&&e.is(t[0],G)&&(n=It(t)),n.length||k(t).replace(st,function(t,e,o){var i=[];U.call(e);o.replace(lt,function(t,e){e&&i.push(+e)}),n.push([e][N](i))}),n.toString=e._path2string,n});var Et=function(t){var e=Et.ps=Et.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[E](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};e.findDotsAtSegment=function(t,e,n,o,i,r,a,s,l){var u=1-l,c=z(u,3),d=z(u,2),A=l*l,h=A*l,f=c*t+3*d*l*n+3*u*l*l*i+h*a,g=c*e+3*d*l*o+3*u*l*l*r+h*s,p=t+2*l*(n-t)+A*(i-2*n+t),M=e+2*l*(o-e)+A*(r-2*o+e),y=n+2*l*(i-n)+A*(a-2*i+n),m=o+2*l*(r-o)+A*(s-2*r+o),w=u*t+l*n,v=u*e+l*o,b=u*i+l*a,C=u*r+l*s,E=90-180*R.atan2(p-y,M-m)/F;return(p>y||M=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},e.isBBoxIntersect=function(t,n){var o=e.isPointInsideBBox;return o(n,t.x,t.y)||o(n,t.x2,t.y)||o(n,t.x,t.y2)||o(n,t.x2,t.y2)||o(t,n.x,n.y)||o(t,n.x2,n.y)||o(t,n.x,n.y2)||o(t,n.x2,n.y2)||(t.xn.x||n.xt.x)&&(t.yn.y||n.yt.y)},e.pathIntersection=function(t,e){return A(t,e)},e.pathIntersectionNumber=function(t,e){return A(t,e,1)},e.isPointInsidePath=function(t,n,o){var i=e.pathBBox(t);return e.isPointInsideBBox(i,n,o)&&A(t,[["M",n,o],["H",i.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var Tt=e.pathBBox=function(t){var e=Et(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Qt(t);for(var o,i=0,r=0,a=[],s=[],l=0,u=t.length;l1&&(y=R.sqrt(y),n*=y,o*=y);var m=n*n,w=o*o,v=(a==s?-1:1)*R.sqrt(H((m*w-m*M*M-w*p*p)/(m*M*M+w*p*p))),b=v*n*M/o+(t+l)/2,C=v*-o*p/n+(e+u)/2,E=R.asin(((e-C)/o).toFixed(9)),T=R.asin(((u-C)/o).toFixed(9));E=tT&&(E-=2*F),!s&&T>E&&(T-=2*F)}var I=T-E;if(H(I)>A){var x=T,D=l,L=u;T=E+A*(s&&T>E?1:-1),l=b+n*R.cos(T),u=C+o*R.sin(T),f=St(l,u,n,o,r,0,s,D,L,[T,x,b,C])}I=T-E;var S=R.cos(E),B=R.sin(E),k=R.cos(T),j=R.sin(T),_=R.tan(I/4),U=4/3*n*_,Y=4/3*o*_,O=[t,e],z=[t+U*B,e-Y*S],P=[l+U*j,u-Y*k],V=[l,u];if(z[0]=2*O[0]-z[0],z[1]=2*O[1]-z[1],c)return[z,P,V][N](f);f=[z,P,V][N](f).join()[Q](",");for(var G=[],W=0,J=f.length;W"1e12"&&(A=.5),H(h)>"1e12"&&(h=.5),A>0&&A<1&&(l=Bt(t,e,n,o,i,r,a,s,A),g.push(l.x),f.push(l.y)),h>0&&h<1&&(l=Bt(t,e,n,o,i,r,a,s,h),g.push(l.x),f.push(l.y)),u=r-2*o+e-(s-2*r+o),c=2*(o-e)-2*(r-o),d=e-o,A=(-c+R.sqrt(c*c-4*u*d))/2/u,h=(-c-R.sqrt(c*c-4*u*d))/2/u,H(A)>"1e12"&&(A=.5),H(h)>"1e12"&&(h=.5),A>0&&A<1&&(l=Bt(t,e,n,o,i,r,a,s,A),g.push(l.x),f.push(l.y)),h>0&&h<1&&(l=Bt(t,e,n,o,i,r,a,s,h),g.push(l.x),f.push(l.y)),{min:{x:O[D](0,g),y:O[D](0,f)},max:{x:Y[D](0,g),y:Y[D](0,f)}}}),Qt=e._path2curve=i(function(t,e){var n=!e&&Et(t);if(!e&&n.curve)return It(n.curve);for(var o=Dt(t),i=e&&Dt(e),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,n){var o,i,r={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in r)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][N](St[D](0,[e.x,e.y][N](t.slice(1))));break;case"S":"C"==n||"S"==n?(o=2*e.x-e.bx,i=2*e.y-e.by):(o=e.x,i=e.y),t=["C",o,i][N](t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][N](Lt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][N](Lt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][N](Nt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][N](Nt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][N](Nt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][N](Nt(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)c[e]="A",i&&(d[e]="A"),t.splice(e++,0,["C"][N](n.splice(0,6)));t.splice(e,1),g=Y(o.length,i&&i.length||0)}},u=function(t,e,n,r,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],g=Y(o.length,i&&i.length||0))},c=[],d=[],A="",h="",f=0,g=Y(o.length,i&&i.length||0);fi){if(n&&!A.start){if(c=$t(a,s,l[1],l[2],l[3],l[4],l[5],l[6],i-h),d+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],r)return d;A.start=d,d=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),h+=u,a=+l[5],s=+l[6];continue}if(!t&&!n)return c=$t(a,s,l[1],l[2],l[3],l[4],l[5],l[6],i-h),{x:c.x,y:c.y,alpha:c.alpha}}h+=u,a=+l[5],s=+l[6]}d+=l.shift()+l}return A.end=d,c=t?h:n?A:e.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},ee=te(1),ne=te(),oe=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ne,e.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return oe(t,e).end;var o=oe(t,n,1);return e?oe(o,e).end:o},Xt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Xt.getPointAtLength=function(t){var e=this.getPath();if(e)return ne(e,t)},Xt.getPath=function(){var t,n=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(t=n(this)),t},Xt.getSubpath=function(t,n){var o=this.getPath();if(o)return e.getSubpath(o,t,n)};var ie=e.easing_formulas={linear:function(t){return t},"<":function(t){return z(t,1.7)},">":function(t){return z(t,.48)},"<>":function(t){var e=.48-t/1.04,n=R.sqrt(.1734+e*e),o=n-e,i=z(H(o),1/3)*(o<0?-1:1),r=-n-e,a=z(H(r),1/3)*(r<0?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:z(2,-10*t)*R.sin((t-.075)*(2*F)/.3)+1},bounce:function(t){var e,n=7.5625,o=2.75;return t<1/o?e=n*t*t:t<2/o?(t-=1.5/o,e=n*t*t+.75):t<2.5/o?(t-=2.25/o,e=n*t*t+.9375):(t-=2.625/o,e=n*t*t+.984375),e}};ie.easeIn=ie["ease-in"]=ie["<"],ie.easeOut=ie["ease-out"]=ie[">"],ie.easeInOut=ie["ease-in-out"]=ie["<>"],ie["back-in"]=ie.backIn,ie["back-out"]=ie.backOut;var re=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var n=+new Date,o=0;o1&&!i.next){for(a in A)A[E](a)&&(g[a]=i.totalOrigin[a]);i.el.attr(g),M(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&M(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}re.length&&ae(se)},le=function(t){return t>255?255:t<0?0:t};Xt.animateWith=function(t,n,o,i,r,a){var s=this;if(s.removed)return a&&a.call(s),s;var l=o instanceof p?o:e.animation(o,i,r,a);M(l,s,l.percents[0],null,s.attr());for(var u=0,c=re.length;ul&&(l=c)}l+="%",!t[l].callback&&(t[l].callback=i)}return new p(t,n)},Xt.animate=function(t,n,o,i){var r=this;if(r.removed)return i&&i.call(r),r;var a=t instanceof p?t:e.animation(t,n,o,i);return M(a,r,a.percents[0],null,r.attr()),r},Xt.setTime=function(t,e){return t&&null!=e&&this.status(t,O(e,t.ms)/t.ms),this},Xt.status=function(t,e){var n,o,i=[],r=0;if(null!=e)return M(t,this,-1,O(e,1)),this;for(n=re.length;r1)for(var o=0,i=n.length;o.5)-1;l(A-.5,2)+l(h-.5,2)>.25&&(h=r.sqrt(.25-l(A-.5,2))*i+.5)&&.5!=h&&(h=h.toFixed(5)-1e-5*i)}return d}),i=i.split(/\s*\-\s*/),"linear"==u){var w=i.shift();if(w=-o(w),isNaN(w))return null;var v=[0,0,r.cos(t.rad(w)),r.sin(t.rad(w))],b=1/(a(s(v[2]),s(v[3]))||1);v[2]*=b,v[3]*=b,v[2]<0&&(v[0]=-v[2],v[2]=0),v[3]<0&&(v[1]=-v[3],v[3]=0)}var C=t._parseDots(i);if(!C)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){y=p(u+"Gradient",{id:c}),e.gradient=y,p(y,"radial"==u?{fx:A,fy:h}:{x1:v[0],y1:v[1],x2:v[2],y2:v[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(y);for(var E=0,T=C.length;E1?k.opacity/100:k.opacity});case"stroke":k=t.getRGB(g),l.setAttribute(f,k.hex),"stroke"==f&&k[e]("opacity")&&p(l,{"stroke-opacity":k.opacity>1?k.opacity/100:k.opacity}),"stroke"==f&&o._.arrows&&("startString"in o._.arrows&&v(o,o._.arrows.startString),"endString"in o._.arrows&&v(o,o._.arrows.endString,1));break;case"gradient":("circle"==o.type||"ellipse"==o.type||"r"!=n(g).charAt())&&M(o,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&p(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){Q=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,d)),Q&&(j=Q.getElementsByTagName("stop"),p(j[j.length-1],{"stop-opacity":g}));break}default:"font-size"==f&&(g=i(g,10)+"px");var _=f.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});l.style[_]=g,o._.dirty=1,l.setAttribute(f,g)}}I(o,r),l.style.visibility=A},T=1.2,I=function(o,r){if("text"==o.type&&(r[e]("text")||r[e]("font")||r[e]("font-size")||r[e]("x")||r[e]("y"))){var a=o.attrs,s=o.node,l=s.firstChild?i(t._g.doc.defaultView.getComputedStyle(s.firstChild,d).getPropertyValue("font-size"),10):10;if(r[e]("text")){for(a.text=r.text;s.firstChild;)s.removeChild(s.firstChild);for(var u,c=n(r.text).split("\n"),A=[],h=0,f=c.length;h"));var X=G.getBoundingClientRect();y.W=A.w=(X.right-X.left)/W,y.H=A.h=(X.bottom-X.top)/W,y.X=A.x,y.Y=A.y+y.H/2,("x"in l||"y"in l)&&(y.path.v=t.format("m{0},{1}l{2},{1}",r(A.x*w),r(A.y*w),r(A.x*w)+1));for(var Z=["x","y","text","font","font-family","font-weight","font-style","font-size"],K=0,q=Z.length;K.25&&(n=i.sqrt(.25-s(e-.5,2))*(2*(n>.5)-1)+.5),u=e+h+n),f}),r=r.split(/\s*\-\s*/),"linear"==l){var c=r.shift();if(c=-o(c),isNaN(c))return null}var d=t._parseDots(r);if(!d)return null;if(e=e.shape||e.node,d.length){e.removeChild(a),a.on=!0,a.method="none",a.color=d[0].color,a.color2=d[d.length-1].color;for(var A=[],g=0,p=d.length;g')}}catch(t){S=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e.container,o=e.height,i=e.width,r=e.x,a=e.y;if(!n)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),u=l.style;return r=r||0,a=a||0,i=i||512,o=o||342,s.width=i,s.height=o,i==+i&&(i+="px"),o==+o&&(o+="px"),s.coordsize=1e3*w+h+1e3*w,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),u.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,o),1==n?(t._g.doc.body.appendChild(l),u.left=r+"px",u.top=a+"px",u.position="absolute"):n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var B=t.st;for(var k in L)L[e](k)&&!B[e](k)&&(B[k]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(k))}}.apply(e,o),!(void 0!==i&&(t.exports=i))}])})},function(t,e,n){var o;!function(){function i(t){return t instanceof HTMLElement||t instanceof SVGElement}function r(t){if(!i(t))throw new Error("an HTMLElement or SVGElement is required; got "+t)}function a(t){return t&&0==t.lastIndexOf("http",0)&&t.lastIndexOf(window.location.host)==-1}function s(t,e){r(t);var n=t.querySelectorAll("image"),o=n.length,i=function(){0===o&&e()};i();for(var s=0;s0)return e[i]}return console.error("Unknown font format for "+t+"; Fonts may not be working correctly"),"application/octet-stream"}function i(t){function e(e){function n(){var t=s.response,n=r(t);a(e,n)}function o(t){console.warn("Failed to load font from: "+e.url),console.warn(t),l+=e.text+"\n",i()}function a(e,n){var o='url("data:'+e.format+";base64,"+n+'")';l+=e.text.replace(e.fontUrlRegexp,o)+"\n",setTimeout(function(){i(t)},0)}var s=new XMLHttpRequest;s.addEventListener("load",n),s.addEventListener("error",o),s.addEventListener("abort",o),s.open("GET",e.url),s.responseType="arraybuffer",s.send()}if(t.length>0){var o=t.pop();e(o)}else n(l)}function r(t){for(var e="",n=new Uint8Array(t),o=n.byteLength,i=0;i";var o=document.createElement("defs");if(o.appendChild(e),c.insertBefore(o,c.firstChild),n){var i=s.innerHTML;i=i.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href'),n(i,r,a)}}var r,a,s=document.createElement("div"),c=t.cloneNode(!0);if("svg"==t.tagName)r=e.width||u(t,c,"width"),a=e.height||u(t,c,"height");else{if(!t.getBBox)return void console.error("Attempted to render non-SVG element",t);var d=t.getBBox();r=d.x+d.width,a=d.y+d.height,c.setAttribute("transform",c.getAttribute("transform").replace(/translate\(.*?\)/,""));var A=document.createElementNS("http://www.w3.org/2000/svg","svg");A.appendChild(c),c=A}c.setAttribute("version","1.1"),c.getAttribute("xmlns")||c.setAttributeNS(o,"xmlns","http://www.w3.org/2000/svg"),c.getAttribute("xmlns:xlink")||c.setAttributeNS(o,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.responsive?(c.removeAttribute("width"),c.removeAttribute("height"),c.setAttribute("preserveAspectRatio","xMinYMin meet")):(c.setAttribute("width",r*e.scale),c.setAttribute("height",a*e.scale)),c.setAttribute("viewBox",[e.left||0,e.top||0,r,a].join(" "));for(var h=c.querySelectorAll("foreignObject > *"),f=0;f=i}function s(){var t=this.getSelected();if(!t)return!0;var e=t[1],n=t[3],o=Math.abs(e-n)+1,i=this.countCols();return o>=i}function l(){var t=this.getSelected();return!t||0===t.length}Object.defineProperty(e,"__esModule",{value:!0}),e.contextMenuConfigure=void 0;var u=n(48),c=n(55),d=n(57),A=n(58),h=n(59),f=n(56),g=n(60),p=o(g);e.contextMenuConfigure={callback:function(t,e){var n=this,o=this;if("insert_row_above"===t)c.doInsertRow.call(this,!0);else if("insert_row_below"===t)c.doInsertRow.call(this);else if("insert_col_left"===t)d.doInsertCol.call(this,!0);else if("insert_col_right"===t)d.doInsertCol.call(this);else if("del_row"===t)A.doDeleteRow.call(this);else if("del_col"===t)h.doDeleteCol.call(this);else if("clean_content"===t)!function(){var t=n.getSelected(),e=t[0],a=t[2],s=t[1],l=t[3],c=r(o.context,e,a,s,l,"content");u.undoManager.add({redo:function(){c=r(o.context,e,a,s,l,"content")},undo:function(){i(o.context,e,a,s,l,c,"content")}})}();else if("clean_style"===t)!function(){var t=n.getSelected(),e=t[0],a=t[2],s=t[1],l=t[3],c=r(o.context,e,a,s,l,"style");u.undoManager.add({redo:function(){c=r(o.context,e,a,s,l,"style")},undo:function(){i(o.context,e,a,s,l,c,"style")}})}();else if("clean"===t)!function(){var t=n.getSelected(),e=t[0],a=t[2],s=t[1],l=t[3],c=r(o.context,e,a,s,l,"all");u.undoManager.add({redo:function(){c=r(o.context,e,a,s,l,"all")},undo:function(){i(o.context,e,a,s,l,c,"all")}})}();else if("repeat_row_header"===t){for(var a=this.getSelected(),s=a[0],l=a[2],g=this.context,p=s;p<=l;p++)g.addRowHeader(p,"headerrepeat");(0,f.renderRowHeader)(this,g),(0,u.setDirty)()}else if("repeat_row_footer"===t){for(var M=this.getSelected(),y=M[0],m=M[2],w=this.context,v=y;v<=m;v++)w.addRowHeader(v,"footerrepeat");(0,f.renderRowHeader)(this,w),(0,u.setDirty)()}else if("repeat_cancel"===t){for(var b=this.getSelected(),C=b[0],E=b[2],T=this.context,I=C;I<=E;I++)T.adjustDelRowHeaders(I);(0,f.renderRowHeader)(this,T),(0,u.setDirty)()}},items:{insert_row_above:{name:' 插入行(上)'},insert_row_below:{name:' 插入行(下)'},insert_col_left:{name:' 插入列(前)'},insert_col_right:{name:' 插入列(后)'},del_row:{name:' 删除行',disabled:a},del_col:{name:' 删除列',disabled:s},repeat_row_header:{name:' 重复表头',disabled:a},repeat_row_footer:{name:' 重复表尾',disabled:a},repeat_cancel:{name:' 取消重复',disabled:a},clean_content:{name:' 清空内容',disabled:l},clean_style:{name:' 清空格式',disabled:l},clean:{name:' 清空所有',disabled:l}}}},function(t,e,n){"use strict";function o(t){var e=this.getSelected();if(!e)return void(0,s.alert)("请先选中行!");var n=e[0],o=e[2],l=n;l=n>o?t?o:n+1:t?n:o+1;var u=this.getSettings().rowHeights,c=u.concat([]);c.splice(l,0,25),this.alter("insert_row",l),this.context.adjustInsertRowHeaders(l),(0,a.renderRowHeader)(this,this.context),i(this,l),this.updateSettings({rowHeights:c,manualRowResize:c}),(0,r.resetTableData)(this),(0,r.setDirty)();var d=this,A=this.context,h=this.context.cellsMap,f=[],g=25;r.undoManager.add({redo:function(){u=d.getSettings().rowHeights,c=u.concat([]),c.splice(l,0,g),d.alter("insert_row",l),d.context.adjustInsertRowHeaders(l),(0,a.renderRowHeader)(d,d.context);var t=[],e=!0,n=!1,o=void 0;try{for(var i,s=h.values()[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var p=i.value,M=p.rowNumber-1;M>=l&&t.push(p)}}catch(t){n=!0,o=t}finally{try{!e&&s.return&&s.return()}finally{if(n)throw o}}var y=!0,m=!1,w=void 0;try{for(var v,b=t[Symbol.iterator]();!(y=(v=b.next()).done);y=!0){var C=v.value;A.removeCell(C)}}catch(t){m=!0,w=t}finally{try{!y&&b.return&&b.return()}finally{if(m)throw w}}var E=!0,T=!1,I=void 0;try{for(var x,D=t[Symbol.iterator]();!(E=(x=D.next()).done);E=!0){var N=x.value;N.rowNumber=N.rowNumber+1,A.addCell(N)}}catch(t){T=!0,I=t}finally{try{!E&&D.return&&D.return()}finally{if(T)throw I}}var L=!0,S=!1,B=void 0;try{for(var k,Q=f[Symbol.iterator]();!(L=(k=Q.next()).done);L=!0){var j=k.value;A.addCell(j)}}catch(t){S=!0,B=t}finally{try{!L&&Q.return&&Q.return()}finally{if(S)throw B}}d.updateSettings({rowHeights:c,manualRowResize:c}),(0,r.resetTableData)(d),(0,r.setDirty)()},undo:function(){f.splice(0,f.length),u=d.getSettings().rowHeights,c=u.concat([]),g=c[l],c.splice(l,1),d.alter("remove_row",l),d.context.adjustDelRowHeaders(l),(0,a.renderRowHeader)(d,d.context),d.updateSettings({rowHeights:c,manualRowResize:c});for(var t=d.countCols(),e=0;el&&o.push(m)}}catch(t){s=!0,p=t}finally{try{!i&&y.return&&y.return()}finally{if(s)throw p}}var v=!0,b=!1,C=void 0;try{for(var E,T=o[Symbol.iterator]();!(v=(E=T.next()).done);v=!0){var I=E.value;A.removeCell(I)}}catch(t){b=!0,C=t}finally{try{!v&&T.return&&T.return()}finally{if(b)throw C}}var x=!0,D=!1,N=void 0;try{for(var L,S=o[Symbol.iterator]();!(x=(L=S.next()).done);x=!0){var B=L.value;B.rowNumber=B.rowNumber-1,A.addCell(B)}}catch(t){D=!0,N=t}finally{try{!x&&S.return&&S.return()}finally{if(D)throw N}}(0,r.resetTableData)(d),(0,r.setDirty)()}})}function i(t,e){var n=t.countCols(),o=(t.countRows(),t.context),i=o.cellsMap,a=[],s=!0,l=!1,u=void 0;try{for(var c,d=i.values()[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var A=c.value,h=A.rowNumber-1;h>=e&&a.push(A)}}catch(t){l=!0,u=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}var f=!0,g=!1,p=void 0;try{for(var M,y=a[Symbol.iterator]();!(f=(M=y.next()).done);f=!0){var m=M.value;o.removeCell(m)}}catch(t){g=!0,p=t}finally{try{!f&&y.return&&y.return()}finally{if(g)throw p}}var w=!0,v=!1,b=void 0;try{for(var C,E=a[Symbol.iterator]();!(w=(C=E.next()).done);w=!0){var T=C.value;T.rowNumber=T.rowNumber+1,o.addCell(T)}}catch(t){v=!0,b=t}finally{try{!w&&E.return&&E.return()}finally{if(v)throw b}}for(var I=0;IHR":"footerrepeat"===A.band&&(a="FR");break}}}catch(t){l=!0,u=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}o.push(r+a)}t.updateSettings({rowHeaders:o})}Object.defineProperty(e,"__esModule",{value:!0}),e.renderRowHeader=n},function(t,e,n){"use strict";function o(t){var e=this.getSelected();if(!e)return void alert("请先选中列!");var n=e[1],o=e[3],r=n;r=n>o?t?o:n+1:t?n:o+1;var a=this.getSettings().colWidths,s=a.concat([]);s.splice(r,0,98),this.alter("insert_col",r);var l=this.context,u=this.context.cellsMap,c=[],d=!0,A=!1,h=void 0;try{for(var f,g=u.values()[Symbol.iterator]();!(d=(f=g.next()).done);d=!0){var p=f.value,M=p.columnNumber-1;M>=r&&c.push(p)}}catch(t){A=!0,h=t}finally{try{!d&&g.return&&g.return()}finally{if(A)throw h}}var y=!0,m=!1,w=void 0;try{for(var v,b=c[Symbol.iterator]();!(y=(v=b.next()).done);y=!0){var C=v.value;l.removeCell(C)}}catch(t){m=!0,w=t}finally{try{!y&&b.return&&b.return()}finally{if(m)throw w}}var E=!0,T=!1,I=void 0;try{for(var x,D=c[Symbol.iterator]();!(E=(x=D.next()).done);E=!0){var N=x.value;N.columnNumber=N.columnNumber+1,l.addCell(N)}}catch(t){T=!0,I=t}finally{try{!E&&D.return&&D.return()}finally{if(T)throw I}}for(var L=this.countRows(),S=0;S=r&&c.push(A)}}catch(t){e=!0,n=t}finally{try{!t&&d.return&&d.return()}finally{if(e)throw n}}var f=!0,g=!1,p=void 0;try{for(var M,y=c[Symbol.iterator]();!(f=(M=y.next()).done);f=!0){var m=M.value;l.removeCell(m)}}catch(t){g=!0,p=t}finally{try{!f&&y.return&&y.return()}finally{if(g)throw p}}var w=!0,v=!1,b=void 0;try{for(var C,E=c[Symbol.iterator]();!(w=(C=E.next()).done);w=!0){var T=C.value;T.columnNumber=T.columnNumber+1,l.addCell(T)}}catch(t){v=!0,b=t}finally{try{!w&&E.return&&E.return()}finally{if(v)throw b}}var I=!0,x=!1,D=void 0;try{for(var N,L=Q[Symbol.iterator]();!(I=(N=L.next()).done);I=!0){var S=N.value;l.addCell(S)}}catch(t){x=!0,D=t}finally{try{!I&&L.return&&L.return()}finally{if(x)throw D}}k.updateSettings({colWidths:s,manualColumnResize:s}),(0,i.resetTableData)(k),(0,i.setDirty)()},undo:function(){Q.splice(0,Q.length),a=k.getSettings().colWidths,s=a.concat([]),j=s[r],s.splice(r,1),k.alter("remove_col",r),k.updateSettings({colWidths:s,manualColumnResize:s});for(var t=k.countRows(),e=0;er&&c.push(g)}}catch(t){d=!0,A=t}finally{try{!o&&f.return&&f.return()}finally{if(d)throw A}}var M=!0,y=!1,m=void 0;try{for(var w,v=c[Symbol.iterator]();!(M=(w=v.next()).done);M=!0){var b=w.value;l.removeCell(b)}}catch(t){y=!0,m=t}finally{try{!M&&v.return&&v.return()}finally{if(y)throw m}}var C=!0,E=!1,T=void 0;try{for(var I,x=c[Symbol.iterator]();!(C=(I=x.next()).done);C=!0){var D=I.value;D.columnNumber=D.columnNumber-1,l.addCell(D)}}catch(t){E=!0,T=t}finally{try{!C&&x.return&&x.return()}finally{if(E)throw T}}(0,i.resetTableData)(k),(0,i.setDirty)()}})}Object.defineProperty(e,"__esModule",{value:!0}),e.doInsertCol=o;var i=n(48)},function(t,e,n){"use strict";function o(){var t=this.getSelected(),e=this.context;if(!t)return void(0,a.alert)("请先选中行!");var n=t[0],o=t[2];if(o=n&&w<=o)d.splice(v,1);else if(y<=n&&w>=o){var b=o-n+1,C=m-b;0===C&&(C=1),1===C&&1===M.colspan?d.splice(v,1):d[v]={col:M.col,row:y,rowspan:C,colspan:M.colspan}}else if(y>o){var E=o-n+1;d[v]={col:M.col,row:y-E,rowspan:M.rowspan,colspan:M.colspan}}}}catch(t){h=!0,f=t}finally{try{!A&&p.return&&p.return()}finally{if(h)throw f}}this.updateSettings({mergeCells:[]});var T=o-n+1,I=l.concat([]),x=l.concat([]);x.splice(n,T);for(var D=this.countCols(),N=[],L=o;L>=n;L--){for(var S=0;S=o&&Q.push(O)}}catch(t){_=!0,U=t}finally{try{!j&&Y.return&&Y.return()}finally{if(_)throw U}}var z=!0,F=!1,P=void 0;try{for(var V,G=Q[Symbol.iterator]();!(z=(V=G.next()).done);z=!0){var W=V.value;e.removeCell(W)}}catch(t){F=!0,P=t}finally{try{!z&&G.return&&G.return()}finally{if(F)throw P}}var J=!0,X=!1,Z=void 0;try{for(var K,q=Q[Symbol.iterator]();!(J=(K=q.next()).done);J=!0){var $=K.value;$.rowNumber=$.rowNumber-T,e.addCell($)}}catch(t){X=!0,Z=t}finally{try{!J&&q.return&&q.return()}finally{if(X)throw Z}}this.updateSettings({rowHeights:x,mergeCells:d}),(0,i.resetTableData)(this),(0,i.setDirty)();var tt=this;i.undoManager.add({redo:function(){l=tt.getSettings().rowHeights,u=tt.getSettings().mergeCells,c=[],d=u.concat([]);var t=!0,a=!1,s=void 0;try{for(var A,h=u[Symbol.iterator]();!(t=(A=h.next()).done);t=!0){var f=A.value;c.push(Object.assign({},f));var g=f.row,p=f.rowspan,M=g+p-1,y=d.indexOf(f);if(g>=n&&M<=o)d.splice(y,1);else if(g<=n&&M>=o){var m=o-n+1,w=p-m;0===w&&(w=1),1===w&&1===f.colspan?d.splice(y,1):d[y]={col:f.col,row:g,rowspan:w,colspan:f.colspan}}else if(g>o){var v=o-n+1;d[y]={col:f.col,row:g-v,rowspan:f.rowspan,colspan:f.colspan}}}}catch(t){a=!0,s=t}finally{try{!t&&h.return&&h.return()}finally{if(a)throw s}}tt.updateSettings({mergeCells:[]}),I=l.concat([]),x=l.concat([]),x.splice(n,T),D=tt.countCols(),N.splice(0,N.length);for(var b=o;b>=n;b--){for(var C=0;C=o&&Q.push(U)}}catch(t){S=!0,B=t}finally{try{!L&&_.return&&_.return()}finally{if(S)throw B}}var Y=!0,O=!1,H=void 0;try{for(var z,F=Q[Symbol.iterator]();!(Y=(z=F.next()).done);Y=!0){var P=z.value;e.removeCell(P)}}catch(t){O=!0,H=t}finally{try{!Y&&F.return&&F.return()}finally{if(O)throw H}}var V=!0,G=!1,W=void 0;try{for(var J,X=Q[Symbol.iterator]();!(V=(J=X.next()).done);V=!0){var Z=J.value;Z.rowNumber=Z.rowNumber-T,e.addCell(Z)}}catch(t){G=!0,W=t}finally{try{!V&&X.return&&X.return()}finally{if(G)throw W}}tt.updateSettings({rowHeights:x,mergeCells:d}),(0,i.resetTableData)(tt),(0,i.setDirty)()},undo:function(){for(var t=o;t>=n;t--)tt.alter("insert_row",t),tt.context.adjustInsertRowHeaders(t);(0,r.renderRowHeader)(tt,tt.context),Q.splice(0,Q.length);var a=!0,s=!1,l=void 0;try{for(var u,d=k.values()[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var A=u.value,h=A.rowNumber-1;h>=n&&Q.push(A)}}catch(t){s=!0,l=t}finally{try{!a&&d.return&&d.return()}finally{if(s)throw l}}var f=!0,g=!1,p=void 0;try{for(var M,y=Q[Symbol.iterator]();!(f=(M=y.next()).done);f=!0){var m=M.value;e.removeCell(m)}}catch(t){g=!0,p=t}finally{try{!f&&y.return&&y.return()}finally{if(g)throw p}}var w=!0,v=!1,b=void 0;try{for(var C,E=Q[Symbol.iterator]();!(w=(C=E.next()).done);w=!0){var x=C.value;x.rowNumber=x.rowNumber+T,e.addCell(x)}}catch(t){v=!0,b=t}finally{try{!w&&E.return&&E.return()}finally{if(v)throw b}}var D=!0,L=!1,S=void 0;try{for(var B,j=N[Symbol.iterator]();!(D=(B=j.next()).done);D=!0){var _=B.value;e.addCell(_)}}catch(t){L=!0,S=t}finally{try{!D&&j.return&&j.return()}finally{if(L)throw S}}tt.updateSettings({rowHeights:I,mergeCells:c}),(0,i.resetTableData)(tt),(0,i.setDirty)()}})}Object.defineProperty(e,"__esModule",{value:!0}),e.doDeleteRow=o;var i=n(48),r=n(56),a=n(46)},function(t,e,n){"use strict";function o(){var t=this.getSelected(),e=this.context;if(!t)return void(0,r.alert)("请先选中行!");var n=t[1],o=t[3];if(o=n&&m<=o)c.splice(w,1);else if(M<=n&&m>=o){var v=o-n+1,b=y-v;0===b&&(b=1),1===b&&1===p.rowspan?c.splice(w,1):c[w]={col:M,row:p.row,rowspan:p.rowspan,colspan:b}}else if(M>o){var C=o-n+1;c[w]={row:p.row,col:M-C,rowspan:p.rowspan,colspan:p.colspan}}}}catch(t){A=!0,h=t}finally{try{!d&&g.return&&g.return()}finally{if(A)throw h}}this.updateSettings({mergeCells:[]});var E=o-n+1,T=s.concat([]),I=s.concat([]);I.splice(n,E);for(var x=this.countRows(),D=[],N=o;N>=n;N--){this.alter("remove_col",N);for(var L=0;L=o&&k.push(Y)}}catch(t){j=!0,_=t}finally{try{!Q&&R.return&&R.return()}finally{if(j)throw _}}var H=!0,z=!1,F=void 0;try{for(var P,V=k[Symbol.iterator]();!(H=(P=V.next()).done);H=!0){var G=P.value;e.removeCell(G)}}catch(t){z=!0,F=t}finally{try{!H&&V.return&&V.return()}finally{if(z)throw F}}var W=!0,J=!1,X=void 0;try{for(var Z,K=k[Symbol.iterator]();!(W=(Z=K.next()).done);W=!0){var q=Z.value;q.columnNumber=q.columnNumber-E,e.addCell(q)}}catch(t){J=!0,X=t}finally{try{!W&&K.return&&K.return()}finally{if(J)throw X}}this.updateSettings({colWidths:I,mergeCells:c}),(0,i.resetTableData)(this),(0,i.setDirty)();var $=this;i.undoManager.add({redo:function(){s=$.getSettings().colWidths,l=$.getSettings().mergeCells,u=[],c=l.concat([]);var t=!0,r=!1,a=void 0;try{for(var d,A=l[Symbol.iterator]();!(t=(d=A.next()).done);t=!0){var h=d.value;u.push(Object.assign({},h));var f=h.col,g=h.colspan,p=f+g-1,M=c.indexOf(h);if(f>=n&&p<=o)c.splice(M,1);else if(f<=n&&p>=o){var y=o-n+1,m=g-y;0===m&&(m=1),1===m&&1===h.rowspan?c.splice(M,1):c[M]={col:f,row:h.row,rowspan:h.rowspan,colspan:m}}else if(f>o){var w=o-n+1;c[M]={row:h.row,col:f-w,rowspan:h.rowspan,colspan:h.colspan}}}}catch(t){r=!0,a=t}finally{try{!t&&A.return&&A.return()}finally{if(r)throw a}}$.updateSettings({mergeCells:[]}),T=s.concat([]),I=s.concat([]),I.splice(n,E),x=$.countRows(),D.splice(0,D.length);for(var v=o;v>=n;v--){for(var b=0;b=o&&k.push(_)}}catch(t){L=!0,S=t}finally{try{!N&&j.return&&j.return()}finally{if(L)throw S}}var R=!0,Y=!1,O=void 0;try{for(var H,z=k[Symbol.iterator]();!(R=(H=z.next()).done);R=!0){var F=H.value;e.removeCell(F)}}catch(t){Y=!0,O=t}finally{try{!R&&z.return&&z.return()}finally{if(Y)throw O}}var P=!0,V=!1,G=void 0;try{for(var W,J=k[Symbol.iterator]();!(P=(W=J.next()).done);P=!0){var X=W.value;X.columnNumber=X.columnNumber-E,e.addCell(X)}}catch(t){V=!0,G=t}finally{try{!P&&J.return&&J.return()}finally{if(V)throw G}}$.updateSettings({colWidths:I,mergeCells:c}),(0,i.resetTableData)($),(0,i.setDirty)()},undo:function(){for(var t=o;t>=n;t--)$.alter("insert_col",t);k.splice(0,k.length);var r=!0,a=!1,s=void 0;try{for(var l,c=B.values()[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var d=l.value,A=d.columnNumber-1;A>=n&&k.push(d)}}catch(t){a=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw s}}var h=!0,f=!1,g=void 0;try{for(var p,M=k[Symbol.iterator]();!(h=(p=M.next()).done);h=!0){var y=p.value;e.removeCell(y)}}catch(t){f=!0,g=t}finally{try{!h&&M.return&&M.return()}finally{if(f)throw g}}var m=!0,w=!1,v=void 0;try{for(var b,C=k[Symbol.iterator]();!(m=(b=C.next()).done);m=!0){var I=b.value;I.columnNumber=I.columnNumber+E,e.addCell(I)}}catch(t){w=!0,v=t}finally{try{!m&&C.return&&C.return()}finally{if(w)throw v}}var x=!0,N=!1,L=void 0;try{for(var S,Q=D[Symbol.iterator]();!(x=(S=Q.next()).done);x=!0){var j=S.value;e.addCell(j)}}catch(t){N=!0,L=t}finally{try{!x&&Q.return&&Q.return()}finally{if(N)throw L}}$.updateSettings({colWidths:T,mergeCells:u}),(0,i.resetTableData)($),(0,i.setDirty)()}})}Object.defineProperty(e,"__esModule",{value:!0}),e.doDeleteCol=o;var i=n(48),r=n(46)},function(t,e,n){(function(e){!function(e,o){t.exports=o(n(62),n(165),n(227),n(228))}(this,function(t,e,n,o){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=209)}([function(t,e,n){"use strict";function o(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=t;){if(n===e){o=t;break}t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t=t.host:(n++,t=t.parentNode)}return o}function i(t,e,n){for(;null!=t&&t!==n;){if(t.nodeType===Node.ELEMENT_NODE&&(e.indexOf(t.nodeName)>-1||e.indexOf(t)>-1))return t;t=t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t.parentNode}return null}function r(t,e,n){for(var o=[];t&&(t=i(t,e,n),t&&(!n||n.contains(t)));)o.push(t),t=t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t.parentNode;var r=o.length;return r?o[r-1]:null}function a(t,e){var n=t.parentNode,o=[];for("string"==typeof e?o=Array.prototype.slice.call(document.querySelectorAll(e),0):o.push(e);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function s(t){function e(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName===o.toUpperCase()}var n,o="hot-table",i=!1;for(n=l(t);null!=n;){if(e(n)){i=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i=e(n.host))break;n=n.host}n=n.parentNode}return i}function l(t){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(t):t}function u(t){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(t):t}function c(t){var e=0;if(t.previousSibling)for(;t=t.previousSibling;)++e;return e}function d(t,e){var n=document.querySelector(".ht_clone_"+t);return n?n.contains(e):null}function A(t){var e=0,n=[];if(!t||!t.length)return n;for(;t[e];)n.push(t[e]),e++;return n}function h(t,e){return X(t,e)}function f(t,e){return Z(t,e)}function g(t,e){return K(t,e)}function p(t,e){if(3===t.nodeType)e.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,o=n.length-1;o>=0;o--)p(n[o],t)}function M(t){for(var e;e=t.lastChild;)t.removeChild(e)}function y(t,e){it.test(e)?t.innerHTML=e:m(t,e)}function m(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?rt?n.textContent=e:n.data=e:(M(t),t.appendChild(document.createTextNode(e)))}function w(t){for(var e=t;u(e)!==document.documentElement;){if(null===e)return!1;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(e.host){if(e.host.impl)return w(e.host.impl);if(e.host)return w(e.host);throw new Error("Lost in Web Components world")}return!1}if("none"===e.style.display)return!1;e=e.parentNode}return!0}function v(t){var e,n,o,i,r;if(i=document.documentElement,(0,$.hasCaptionProblem)()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName)return r=t.getBoundingClientRect(),{top:r.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)};for(e=t.offsetLeft,n=t.offsetTop,o=t;(t=t.offsetParent)&&t!==document.body;)e+=t.offsetLeft,n+=t.offsetTop,o=t;return o&&"fixed"===o.style.position&&(e+=window.pageXOffset||i.scrollLeft,n+=window.pageYOffset||i.scrollTop),{left:e,top:n}}function b(){var t=window.scrollY;return void 0===t&&(t=document.documentElement.scrollTop),t}function C(){var t=window.scrollX;return void 0===t&&(t=document.documentElement.scrollLeft),t}function E(t){return t===window?b():t.scrollTop}function T(t){return t===window?C():t.scrollLeft}function I(t){for(var e,n,o,i=t.parentNode,r=["auto","scroll"],a="",s="",l="",u="";i&&i.style&&document.body!==i;){if(e=i.style.overflow,n=i.style.overflowX,o=i.style.overflowY,"scroll"==e||"scroll"==n||"scroll"==o)return i;if(window.getComputedStyle&&(a=window.getComputedStyle(i),s=a.getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),u=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===u||"scroll"===l))return i;if(i.clientHeight<=i.scrollHeight&&(r.indexOf(o)!==-1||r.indexOf(e)!==-1||r.indexOf(s)!==-1||r.indexOf(l)!==-1))return i;if(i.clientWidth<=i.scrollWidth&&(r.indexOf(n)!==-1||r.indexOf(e)!==-1||r.indexOf(s)!==-1||r.indexOf(u)!==-1))return i;i=i.parentNode}return window}function x(t){for(var e=t.parentNode;e&&e.style&&document.body!==e;){if("visible"!==e.style.overflow&&""!==e.style.overflow)return e;if(window.getComputedStyle){var n=window.getComputedStyle(e);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return e}e=e.parentNode}return window}function D(t,e){if(t){if(t!==window){var n,o=t.style[e];return""!==o&&void 0!==o?o:(n=N(t),""!==n[e]&&void 0!==n[e]?n[e]:void 0)}if("width"===e)return window.innerWidth+"px";if("height"===e)return window.innerHeight+"px"}}function N(t){return t.currentStyle||document.defaultView.getComputedStyle(t)}function L(t){return t.offsetWidth}function S(t){return(0,$.hasCaptionProblem)()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName?t.offsetHeight+t.firstChild.offsetHeight:t.offsetHeight}function B(t){return t.clientHeight||t.innerHeight}function k(t){return t.clientWidth||t.innerWidth}function Q(t,e,n){window.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function j(t,e,n){window.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function _(t){if(t.selectionStart)return t.selectionStart;if(document.selection){t.focus();var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange(),o=n.duplicate();return n.moveToBookmark(e.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function U(t){if(t.selectionEnd)return t.selectionEnd;if(document.selection){var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange();return n.text.indexOf(e.text)+e.text.length}return 0}function R(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(t=document.selection.createRange().text),t}function Y(t,e,n){if(void 0===n&&(n=e),t.setSelectionRange){t.focus();try{t.setSelectionRange(e,n)}catch(r){var o=t.parentNode,i=o.style.display;o.style.display="block",t.setSelectionRange(e,n),o.style.display=i}}else if(t.createTextRange){var r=t.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r.select()}}function O(){var t=document.createElement("div");t.style.height="200px",t.style.width="100%";var e=document.createElement("div");e.style.boxSizing="content-box",e.style.height="150px",e.style.left="0px",e.style.overflow="hidden",e.style.position="absolute",e.style.top="0px",e.style.width="200px",e.style.visibility="hidden",e.appendChild(t),(document.body||document.documentElement).appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return n==o&&(o=e.clientWidth),(document.body||document.documentElement).removeChild(e),n-o}function H(){return void 0===ot&&(ot=O()),ot}function z(t){return t.offsetWidth!==t.clientWidth}function F(t){return t.offsetHeight!==t.clientHeight}function P(t,e,n){(0,q.isIE8)()||(0,q.isIE9)()?(t.style.top=n,t.style.left=e):(0,q.isSafari)()?t.style["-webkit-transform"]="translate3d("+e+","+n+",0)":t.style.transform="translate3d("+e+","+n+",0)"}function V(t){var e;return t.style.transform&&""!==(e=t.style.transform)?["transform",e]:t.style["-webkit-transform"]&&""!==(e=t.style["-webkit-transform"])?["-webkit-transform",e]:-1}function G(t){t.style.transform&&""!==t.style.transform?t.style.transform="":t.style["-webkit-transform"]&&""!==t.style["-webkit-transform"]&&(t.style["-webkit-transform"]="")}function W(t){var e=["INPUT","SELECT","TEXTAREA"];return t&&(e.indexOf(t.nodeName)>-1||"true"===t.contentEditable)}function J(t){return W(t)&&t.className.indexOf("handsontableInput")==-1&&t.className.indexOf("copyPaste")==-1}e.__esModule=!0,e.HTML_CHARACTERS=void 0,e.getParent=o,e.closest=i,e.closestDown=r,e.isChildOf=a,e.isChildOfWebComponentTable=s,e.polymerWrap=l,e.polymerUnwrap=u,e.index=c,e.overlayContainsElement=d,e.hasClass=h,e.addClass=f,e.removeClass=g,e.removeTextNodes=p,e.empty=M,e.fastInnerHTML=y,e.fastInnerText=m,e.isVisible=w,e.offset=v,e.getWindowScrollTop=b,e.getWindowScrollLeft=C,e.getScrollTop=E,e.getScrollLeft=T,e.getScrollableElement=I,e.getTrimmingContainer=x,e.getStyle=D,e.getComputedStyle=N,e.outerWidth=L,e.outerHeight=S,e.innerHeight=B,e.innerWidth=k,e.addEvent=Q,e.removeEvent=j,e.getCaretPosition=_,e.getSelectionEndPosition=U,e.getSelectionText=R,e.setCaretPosition=Y,e.getScrollbarWidth=H,e.hasVerticalScrollbar=z,e.hasHorizontalScrollbar=F,e.setOverlayPosition=P,e.getCssTransform=V,e.resetCssTransform=G,e.isInput=W,e.isOutsideInput=J;var X,Z,K,q=n(25),$=n(34),tt=!!document.documentElement.classList;if(tt){var et=function(){var t=document.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")}();X=function(t,e){return""!==e&&t.classList.contains(e)},Z=function(t,e){var n=0;if("string"==typeof e&&(e=e.split(" ")),e=A(e),et)t.classList.add.apply(t.classList,e);else for(;e&&e[n];)t.classList.add(e[n]),n++},K=function(t,e){var n=0;if("string"==typeof e&&(e=e.split(" ")),e=A(e),et)t.classList.remove.apply(t.classList,e);else for(;e&&e[n];)t.classList.remove(e[n]),n++}}else{var nt=function(t){return new RegExp("(\\s|^)"+t+"(\\s|$)")};X=function(t,e){return!!t.className.match(nt(e))},Z=function(t,e){var n=0,o=t.className;if("string"==typeof e&&(e=e.split(" ")),""===o)o=e.join(" ");else for(;e&&e[n];)nt(e[n]).test(o)||(o+=" "+e[n]),n++;t.className=o},K=function(t,e){var n=0,o=t.className;for("string"==typeof e&&(e=e.split(" "));e&&e[n];)o=o.replace(nt(e[n])," ").trim(),n++;t.className!==o&&(t.className=o)}}var ot,it=e.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,rt=!!document.createTextNode("test").textContent},function(t,e,n){"use strict";function o(t){for(var e=0,n=t.length;ee?t:e},Array.isArray(t)?t[0]:void 0)}function A(t){return a(t,function(t,e){return t1?e-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:"value",i="_"+n,r=(e={_touched:!1},o(e,i,t),o(e,"isTouched",function(){return this._touched}),e);return Object.defineProperty(r,n,{get:function(){return this[i]},set:function(t){this._touched=!0,this[i]=t},enumerable:!0,configurable:!0}),r}function y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.__esModule=!0;var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.duckSchema=i,e.inherit=r,e.extend=a,e.deepExtend=s,e.deepClone=l,e.clone=u,e.mixin=c,e.isObjectEquals=d,e.isObject=A,e.defineGetter=h,e.objectEach=f,e.getProperty=g,e.deepObjectSize=p,e.createObjectPropListener=M,e.hasOwnProperty=y;var w=n(1)},function(t,e,n){var o=n(13),i=n(44),r=n(32),a=n(33),s=n(29),l="prototype",u=function(t,e,n){var c,d,A,h,f=t&u.F,g=t&u.G,p=t&u.S,M=t&u.P,y=t&u.B,m=g?o:p?o[e]||(o[e]={}):(o[e]||{})[l],w=g?i:i[e]||(i[e]={}),v=w[l]||(w[l]={});g&&(n=e);for(c in n)d=!f&&m&&void 0!==m[c],A=(d?m:n)[c],h=y&&d?s(A,o):M&&"function"==typeof A?s(Function.call,A):A,m&&a(m,c,A,t&u.U),w[c]!=A&&r(w,c,h),M&&v[c]!=A&&(v[c]=A)};o.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){var n="HOT-TABLE",o=void 0,i=void 0,r=void 0,a=void 0,c=void 0,A=void 0;if(e.isTargetWebComponent=!1,e.realTarget=e.target,A=e.stopImmediatePropagation,e.stopImmediatePropagation=function(){A.apply(this),(0,u.stopImmediatePropagation)(this)},!d.isHotTableEnv)return e;for(e=(0,s.polymerWrap)(e),c=e.path?e.path.length:0;c--;){if(e.path[c].nodeName===n)o=!0;else if(o&&e.path[c].shadowRoot){a=e.path[c];break}0!==c||a||(a=e.path[c])}return a||(a=e.target),e.isTargetWebComponent=!0,(0,l.isWebComponentSupportedNatively)()?e.realTarget=e.srcElement||e.toElement:(t instanceof Core||t instanceof Walkontable)&&(t instanceof Core?i=t.view?t.view.wt.wtTable.TABLE:null:t instanceof Walkontable&&(i=t.wtTable.TABLE.parentNode.parentNode),r=(0,s.closest)(e.target,[n],i),r?e.realTarget=i.querySelector(n)||e.target:e.realTarget=e.target),Object.defineProperty(e,"target",{get:function(){return(0,s.polymerWrap)(a)},enumerable:!0,configurable:!0}),e}function r(){return c}e.__esModule=!0;var a=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;o(this,t),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}return a(t,[{key:"addEventListener",value:function(t,e,n){function o(t){t=i(a,t),n.call(this,t)}var r=this,a=this.context;return this.context.eventListeners.push({element:t,event:e,callback:n,callbackProxy:o}),window.addEventListener?t.addEventListener(e,o,!1):t.attachEvent("on"+e,o),c++,function(){r.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){for(var o=this.context.eventListeners.length,i=void 0;o--;)if(i=this.context.eventListeners[o],i.event==e&&i.element==t){if(n&&n!=i.callback)continue;this.context.eventListeners.splice(o,1),i.element.removeEventListener?i.element.removeEventListener(i.event,i.callbackProxy,!1):i.element.detachEvent("on"+i.event,i.callbackProxy),c--}}},{key:"clearEvents",value:function(){if(this.context)for(var t=this.context.eventListeners.length;t--;){var e=this.context.eventListeners[t];e&&this.removeEventListener(e.element,e.event,e.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(t,e){var n,o={bubbles:!0,cancelable:"mousemove"!==e,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents"),n.initMouseEvent(e,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode)):n=document.createEventObject(),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent("on"+e,n)}}]),t}();e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){t=(0,d.toUpperCaseFirst)(t),u.default.getSingleton().add("construct",function(){var n=void 0;A.has(this)||A.set(this,{}),n=A.get(this),n[t]||(n[t]=new e(this))}),u.default.getSingleton().add("afterDestroy",function(){if(A.has(this)){var t=A.get(this);(0,c.objectEach)(t,function(t){return t.destroy()}),A.delete(this)}})}function r(t,e){if("string"!=typeof e)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,d.toUpperCaseFirst)(e);if(A.has(t)&&A.get(t)[n])return A.get(t)[n]}function a(t){return A.has(t)?Object.keys(A.get(t)):[]}function s(t,e){ -var n=null;return A.has(t)&&(0,c.objectEach)(A.get(t),function(t,o){t===e&&(n=o)}),n}e.__esModule=!0,e.getPluginName=e.getRegistredPluginNames=e.getPlugin=e.registerPlugin=void 0;var l=n(8),u=o(l),c=n(2),d=n(27),A=new WeakMap;e.registerPlugin=i,e.getPlugin=r,e.getRegistredPluginNames=a,e.getPluginName=s},function(t,e,n){"use strict";function o(t){var e="undefined"==typeof t?"undefined":s(t);return"number"==e?!isNaN(t)&&isFinite(t):"string"==e?!!t.length&&(1==t.length?/\d/.test(t):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(t)):"object"==e&&!(!t||"number"!=typeof t.valueOf()||t instanceof Date)}function i(t,e,n){var o=-1;for("function"==typeof e?(n=e,e=t):o=t-1;++o<=e&&n(o)!==!1;);}function r(t,e,n){var o=t+1;for("function"==typeof e&&(n=e,e=0);--o>=e&&n(o)!==!1;);}function a(t,e){return e=parseInt(e.toString().replace("%",""),10),e=parseInt(t*e/100,10)}e.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isNumeric=o,e.rangeEach=i,e.rangeEachReverse=r,e.valueAccordingPercent=a},function(t,e,n){"use strict";function o(t){t.isImmediatePropagationEnabled=!1,t.cancelBubble=!0}function i(t){return t.isImmediatePropagationEnabled===!1}function r(t){"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function a(t){return t.pageX?t.pageX:t.clientX+(0,c.getWindowScrollLeft)()}function s(t){return t.pageY?t.pageY:t.clientY+(0,c.getWindowScrollTop)()}function l(t){return 2===t.button}function u(t){return 0===t.button}e.__esModule=!0,e.stopImmediatePropagation=o,e.isImmediatePropagationStopped=i,e.stopPropagation=r,e.pageX=a,e.pageY=s,e.isRightClick=l,e.isLeftClick=u;var c=n(0)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return t?(t.pluginHookBucket||(t.pluginHookBucket=this.createEmptyBucket()),t.pluginHookBucket):this.globalBucket}},{key:"add",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(e))(0,r.arrayEach)(e,function(e){return n.add(t,e,o)});else{var i=this.getBucket(o);if("undefined"==typeof i[t]&&(this.register(t),i[t]=[]),e.skip=!1,i[t].indexOf(e)===-1){var a=!1;e.initialHook&&(0,r.arrayEach)(i[t],function(n,o){if(n.initialHook)return i[t][o]=e,a=!0,!1}),a||i[t].push(e)}}return this}},{key:"once",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(e)?(0,r.arrayEach)(e,function(e){return n.once(t,e,o)}):(e.runOnce=!0,this.add(t,e,o))}},{key:"remove",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return"undefined"!=typeof o[t]&&o[t].indexOf(e)>=0&&(e.skip=!0,!0)}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(e);return!(void 0===n[t]||!n[t].length)}},{key:"run",value:function(t,e,n,o,i,r,a,s){var l=this.globalBucket[e],u=-1,c=l?l.length:0;if(c)for(;++u0&&void 0!==arguments[0]?arguments[0]:null;(0,a.objectEach)(this.getBucket(t),function(t,e,n){return n[e].length=0})}},{key:"register",value:function(t){this.isRegistered(t)||s.push(t)}},{key:"deregister",value:function(t){this.isRegistered(t)&&s.splice(s.indexOf(t),1)}},{key:"isRegistered",value:function(t){return s.indexOf(t)>=0}},{key:"getRegistered",value:function(){return s}}]),t}(),u=new l;e.default=l},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"==typeof t)return t;if(!E(t))throw Error('No registered renderer found under "'+t+'" name');return C(t)}e.__esModule=!0,e.getRegisteredRenderers=e.getRegisteredRendererNames=e.hasRenderer=e.getRenderer=e.registerRenderer=void 0;var r=n(51),a=o(r),s=n(260),l=o(s),u=n(261),c=o(u),d=n(262),A=o(d),h=n(263),f=o(h),g=n(264),p=o(g),M=n(265),y=o(M),m=n(266),w=o(m),v=(0,a.default)("renderers"),b=v.register,C=v.getItem,E=v.hasItem,T=v.getNames,I=v.getValues;b("base",l.default),b("autocomplete",c.default),b("checkbox",A.default),b("html",f.default),b("numeric",p.default),b("password",y.default),b("text",w.default),e.registerRenderer=b,e.getRenderer=i,e.hasRenderer=E,e.getRegisteredRendererNames=T,e.getRegisteredRenderers=I},function(t,e,n){var o=n(82)("wks"),i=n(49),r=n(13).Symbol,a="function"==typeof r,s=t.exports=function(t){return o[t]||(o[t]=a&&r[t]||(a?r:i)("Symbol."+t))};s.store=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Viewport=e.TableRenderer=e.Table=e.Settings=e.Selection=e.Scroll=e.Overlays=e.Event=e.Core=e.default=e.Border=e.TopLeftCornerOverlay=e.TopOverlay=e.LeftOverlay=e.DebugOverlay=e.RowFilter=e.ColumnFilter=e.CellRange=e.CellCoords=e.ViewportRowsCalculator=e.ViewportColumnsCalculator=void 0,n(96),n(113),n(122),n(123),n(107),n(121),n(104),n(105),n(106),n(95),n(118),n(116),n(114),n(119),n(120),n(115),n(117),n(108),n(109),n(110),n(112),n(111),n(93),n(94),n(89),n(92),n(91),n(90),n(68),n(98),n(99),n(101),n(100),n(97),n(103),n(102),n(124),n(127),n(125),n(126),n(129),n(128),n(131),n(130);var i=n(135),r=o(i),a=n(136),s=o(a),l=n(42),u=o(l),c=n(69),d=o(c),A=n(139),h=o(A),f=n(140),g=o(f),p=n(185),M=o(p),y=n(186),m=o(y),w=n(187),v=o(w),b=n(188),C=o(b),E=n(134),T=o(E),I=n(137),x=o(I),D=n(138),N=o(D),L=n(141),S=o(L),B=n(142),k=o(B),Q=n(189),j=o(Q),_=n(143),U=o(_),R=n(144),Y=o(R),O=n(145),H=o(O),z=n(146),F=o(z);e.ViewportColumnsCalculator=r.default,e.ViewportRowsCalculator=s.default,e.CellCoords=u.default,e.CellRange=d.default,e.ColumnFilter=h.default,e.RowFilter=g.default,e.DebugOverlay=M.default,e.LeftOverlay=m.default,e.TopOverlay=v.default,e.TopLeftCornerOverlay=C.default,e.Border=T.default,e.default=x.default,e.Core=x.default,e.Event=N.default,e.Overlays=S.default,e.Scroll=k.default,e.Selection=j.default,e.Settings=U.default,e.Table=Y.default,e.TableRenderer=H.default,e.Viewport=F.default},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n=0&&c.splice(c.indexOf(this.pluginName),1),c.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(t,e){u.get(this).hooks[t]=u.get(this).hooks[t]||[];var n=u.get(this).hooks[t];this.hot.addHook(t,e),n.push(e),u.get(this).hooks[t]=n}},{key:"removeHooks",value:function(t){var e=this;(0,a.arrayEach)(u.get(this).hooks[t]||[],function(n){e.hot.removeHook(t,n)})}},{key:"clearHooks",value:function(){var t=this,e=u.get(this).hooks;(0,r.objectEach)(e,function(e,n){return t.removeHooks(n)}),e.length=0}},{key:"callOnPluginsReady",value:function(t){this.isPluginsReady?t():this.pluginsInitializedCallbacks.push(t)}},{key:"onAfterPluginsInitialized",value:function(){(0,a.arrayEach)(this.pluginsInitializedCallbacks,function(t){return t()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var t=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,r.objectEach)(this,function(e,n){"hot"!==n&&"t"!==n&&(t[n]=null)}),delete this.t,delete this.hot}}]),t}();e.default=d},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){var e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(t){return t.guid in e||(e[t.guid]=new n(t)),e[t.guid]},d.default.getSingleton().add("afterDestroy",function(){e={}})}function r(t,e){var n=void 0;if("function"==typeof t)Q.get(t)||s(null,t),n=Q.get(t);else{if("string"!=typeof t)throw Error('Only strings and functions can be passed as "editor" parameter');n=U(t)}if(!n)throw Error('No editor registered under name "'+t+'"');return n.getInstance(e)}function a(t){if(!R(t))throw Error('No registered editor found under "'+t+'" name');return U(t).getConstructor()}function s(t,e){var n=new i(e);"string"==typeof t&&_(t,n),Q.set(e,n)}e.__esModule=!0,e.getRegisteredEditors=e.getRegisteredEditorNames=e.hasEditor=e.getEditorInstance=e.getEditor=e.registerEditor=void 0,e.RegisteredEditor=i,e._getEditorInstance=r;var l=n(51),u=o(l),c=n(8),d=o(c),A=n(36),h=o(A),f=n(147),g=o(f),p=n(202),M=o(p),y=n(203),m=o(y),w=n(204),v=o(w),b=n(148),C=o(b),E=n(205),T=o(E),I=n(206),x=o(I),D=n(207),N=o(D),L=n(208),S=o(L),B=n(43),k=o(B),Q=new WeakMap,j=(0,u.default)("editors"),_=j.register,U=j.getItem,R=j.hasItem,Y=j.getNames,O=j.getValues;s("base",h.default),s("autocomplete",g.default),s("checkbox",M.default),s("date",m.default),s("dropdown",v.default),s("handsontable",C.default),s("mobile",T.default),s("numeric",x.default),s("password",N.default),s("select",S.default),s("text",k.default),e.registerEditor=s,e.getEditor=a,e.getEditorInstance=r,e.hasEditor=R,e.getRegisteredEditorNames=Y,e.getRegisteredEditors=O},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";function o(t){return 32==t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}function i(t){var e=[l.ARROW_DOWN,l.ARROW_UP,l.ARROW_LEFT,l.ARROW_RIGHT,l.HOME,l.END,l.DELETE,l.BACKSPACE,l.F1,l.F2,l.F3,l.F4,l.F5,l.F6,l.F7,l.F8,l.F9,l.F10,l.F11,l.F12,l.TAB,l.PAGE_DOWN,l.PAGE_UP,l.ENTER,l.ESCAPE,l.SHIFT,l.CAPS_LOCK,l.ALT];return e.indexOf(t)!==-1}function r(t){return[l.CONTROL_LEFT,224,l.COMMAND_LEFT,l.COMMAND_RIGHT].indexOf(t)!==-1}function a(t,e){var n=e.split("|"),o=!1;return(0,s.arrayEach)(n,function(e){if(t===l[e])return o=!0,!1}),o}e.__esModule=!0,e.KEY_CODES=void 0,e.isPrintableChar=o,e.isMetaKey=i,e.isCtrlKey=r,e.isKey=a;var s=n(1),l=e.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},function(t,e,n){"use strict";function o(t){return{start:t.getTopLeftCorner(),end:t.getBottomRightCorner()}}function i(t){return(0,b.hasClass)(t,"htSeparator")}function r(t){return(0,b.hasClass)(t,"htSubmenu")}function a(t){return(0,b.hasClass)(t,"htDisabled")}function s(t){return(0,b.hasClass)(t,"htSelectionDisabled")}function l(t){var e=t.getSelected();return e?e[0]<0?null:e:null}function u(t,e){return t.indexOf(e)!=-1?t:(t=t.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),t+=" "+e)}function c(t,e){return t.indexOf(e)!=-1?t:(t=t.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),t+=" "+e)}function d(t,e){for(var n={},o=t.from.row;o<=t.to.row;o++)for(var i=t.from.col;i<=t.to.col;i++)n[o]||(n[o]=[]),n[o][i]=e(o,i);return n}function A(t,e,n,o,i){if(t.from.row==t.to.row&&t.from.col==t.to.col)h(t.from.row,t.from.col,e,n,o,i);else for(var r=t.from.row;r<=t.to.row;r++)for(var a=t.from.col;a<=t.to.col;a++)h(r,a,e,n,o,i)}function h(t,e,n,o,i,r){var a=i(t,e),s=o;a.className&&(s="vertical"===n?u(a.className,o):c(a.className,o)),r(t,e,"className",s)}function f(t,e){var n=!1;return t&&t.forAll(function(t,o){if(e(t,o))return n=!0,!1}),n}function g(t){return''+String.fromCharCode(10003)+""+t}function p(t,e){return!t.hidden||!("function"==typeof t.hidden&&t.hidden.call(e))}function M(t,e){for(var n=t.slice(0),o=0;o0?e[e.length-1].name!==t.name&&e.push(t):e.push(t)}),e}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.KEY,n=t.slice(0);return n=M(n,e),n=y(n,e),n=m(n)}e.__esModule=!0,e.normalizeSelection=o,e.isSeparator=i,e.hasSubMenu=r,e.isDisabled=a,e.isSelectionDisabled=s,e.getValidSelection=l,e.prepareVerticalAlignClass=u,e.prepareHorizontalAlignClass=c,e.getAlignmentClasses=d,e.align=A,e.checkSelectionConsistency=f,e.markLabelAsSelected=g,e.isItemHidden=p,e.filterSeparators=w;var v=n(1),b=n(0),C=n(70)},function(t,e,n){var o=n(15);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var o=n(18),i=n(160),r=n(85),a=Object.defineProperty;e.f=n(21)?Object.defineProperty:function(t,e,n){if(o(t),e=r(e,!0),o(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";function o(t){var e=void 0;switch("undefined"==typeof t?"undefined":l(t)){case"string":case"number":e=""+t;break;case"object":e=null===t?"":t.toString();break;case"undefined":e="";break;default:e=t.toString()}return e}function i(t){return"undefined"!=typeof t}function r(t){return"undefined"==typeof t}function a(t){return null===t||""===t||r(t)}function s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}e.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.stringify=o,e.isDefined=i,e.isUndefined=r,e.isEmpty=a,e.isRegExp=s},function(t,e,n){t.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(76),i=n(30);t.exports=function(t){return o(i(t))}},function(t,e,n){var o=n(61),i=Math.min;t.exports=function(t){return t>0?i(o(t),9007199254740991):0}},function(t,e,n){"use strict";function o(){return l}function i(){return u}function r(){return c}function a(){return d}function s(t){return t||(t=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)}e.__esModule=!0,e.isIE8=o,e.isIE9=i,e.isSafari=r,e.isChrome=a,e.isMobileBrowser=s;var l=!document.createTextNode("test").textContent,u=!!document.documentMode,c=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),d=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"==typeof t)return t;if(!y(t))throw Error('No registered validator found under "'+t+'" name');return M(t)}e.__esModule=!0,e.getRegisteredValidators=e.getRegisteredValidatorNames=e.hasValidator=e.getValidator=e.registerValidator=void 0;var r=n(51),a=o(r),s=n(271),l=o(s),u=n(272),c=o(u),d=n(273),A=o(d),h=n(274),f=o(h),g=(0,a.default)("validators"),p=g.register,M=g.getItem,y=g.hasItem,m=g.getNames,w=g.getValues;p("autocomplete",l.default),p("date",c.default),p("numeric",A.default),p("time",f.default),e.registerValidator=p,e.getValidator=i,e.hasValidator=y,e.getRegisteredValidatorNames=m,e.getRegisteredValidators=w},function(t,e,n){"use strict";function o(t){return t[0].toUpperCase()+t.substr(1)}function i(){for(var t=[],e=arguments.length,n=Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return(""+t).replace(/(?:\\)?\[([^[\]]+)]/g,function(t,n){return"\\"===t.charAt(0)?t.substr(1,t.length-1):void 0===e[n]?"":e[n]})}function l(t){return t+="",t.replace(c,"")}e.__esModule=!0,e.toUpperCaseFirst=o,e.equalsIgnoreCase=i,e.randomString=r,e.isPercentValue=a,e.substitute=s,e.stripTags=l;var u=n(20),c=(n(6),/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],e=this.shouldBeRendered();this.clone&&(this.needFullRender||e)&&this.clone.draw(t),this.needFullRender=e}},{key:"reset",value:function(){if(this.clone){var t=this.clone.wtTable.holder,e=this.clone.wtTable.hider,n=t.style,o=e.style,i=t.parentNode.style;(0,l.arrayEach)([n,o,i],function(t){t.width="",t.height=""})}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),t}();e.default=f},function(t,e,n){var o=n(71);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,i){return t.call(e,n,o,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var o=n(19),i=n(40);t.exports=n(21)?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(13),i=n(32),r=n(22),a=n(49)("src"),s="toString",l=Function[s],u=(""+l).split(s);n(44).inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(r(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(r(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===o?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||l.call(this)})},function(t,e,n){"use strict";function o(t){return h.call(window,t)}function i(t){f.call(window,t)}function r(){return"ontouchstart"in window}function a(){var t=document.createElement("div");return!(!t.createShadowRoot||!t.createShadowRoot.toString().match(/\[native code\]/))}function s(){var t=document.createElement("TABLE");t.style.borderSpacing=0,t.style.borderWidth=0,t.style.padding=0;var e=document.createElement("TBODY");t.appendChild(e),e.appendChild(document.createElement("TR")),e.firstChild.appendChild(document.createElement("TD")),e.firstChild.firstChild.innerHTML="t
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding=0,n.style.margin=0,t.insertBefore(n,e),document.body.appendChild(t),p=t.offsetHeight<2*t.lastChild.offsetHeight,document.body.removeChild(t)}function l(){return void 0===p&&s(),p}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return M?M:M="object"===("undefined"==typeof Intl?"undefined":c(Intl))?new Intl.Collator(t,e).compare:"function"==typeof String.prototype.localeCompare?function(t,e){return(""+t).localeCompare(e)}:function(t,e){return t===e?0:t>e?-1:1}}e.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.requestAnimationFrame=o,e.cancelAnimationFrame=i,e.isTouchSupported=r,e.isWebComponentSupportedNatively=a,e.hasCaptionProblem=l,e.getComparisonFunction=u;for(var d=0,A=["ms","moz","webkit","o"],h=window.requestAnimationFrame,f=window.cancelAnimationFrame,g=0;g1&&void 0!==arguments[1]?arguments[1]:200,o=0,i={lastCallThrottled:!0},r=null;return e}function r(t){function e(){s=r}function n(){return s?(s--,t.apply(this,arguments)):a.apply(this,arguments)}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=i(t,o),s=r;return n.clearHits=e,n}function a(t){function e(){var e=this,r=arguments;return o&&clearTimeout(o),o=setTimeout(function(){i=t.apply(e,r)},n),i}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null,i=void 0;return e}function s(){for(var t=arguments.length,e=Array(t),n=0;n1?e-1:0),o=1;o=n?t.apply(this,s):e(s)}}var n=t.length;return e([])}function c(t){function e(o){return function(){for(var i=arguments.length,r=Array(i),a=0;a=n?t.apply(this,s):e(s)}}var n=t.length;return e([])}e.__esModule=!0,e.isFunction=o,e.throttle=i,e.throttleAfterHits=r,e.debounce=a,e.pipe=s,e.partial=l,e.curry=u,e.curryRight=c;var d=n(1)},function(t,e,n){"use strict";function o(t){this.instance=t,this.state=a.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}e.__esModule=!0,e.EditorState=void 0;var i=n(11),r=n(20),a=e.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};o.prototype._fireCallbacks=function(t){this._closeCallback&&(this._closeCallback(t),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(t){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented")},o.prototype.prepare=function(t,e,n,o,i,r){this.TD=o,this.row=t,this.col=e,this.prop=n,this.originalValue=i,this.cellProperties=r;var s=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body&&!s?document.activeElement.blur():s&&document.body.focus(),this.state=a.VIRGIN},o.prototype.extend=function(){function t(){n.apply(this,arguments)}function e(t,e){function n(){}return n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t}var n=this.constructor;return e(t,n)},o.prototype.saveValue=function(t,e){var n=void 0,o=void 0;e?(n=this.instance.getSelected(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],t,n[2],n[3],"edit")},o.prototype.beginEditing=function(t,e){this.state==a.VIRGIN&&(this.instance.view.scrollViewport(new i.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=a.EDITING,t="string"==typeof t?t:this.originalValue,this.setValue((0,r.stringify)(t)),this.open(e),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},o.prototype.finishEditing=function(t,e,n){var o,i=this;if(n){var r=this._closeCallback;this._closeCallback=function(t){r&&r(t),n(t),i.instance.view.render()}; -}if(!this.isWaiting()){if(this.state==a.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){i._fireCallbacks(!0)},0));if(this.state==a.EDITING){if(t)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=a.WAITING,this.saveValue(o,e),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(t){i.state=a.FINISHED,i.discardEditor(t)}):(this.state=a.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=a.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(t){this.state===a.FINISHED&&(t===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=a.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=a.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===a.WAITING},o.prototype.checkEditorSection=function(){var t=this.instance.countRows(),e="";return this.row=t-this.instance.getSettings().fixedRowsBottom?e=this.col=t.getSetting("totalRows")||this.col>=t.getSetting("totalColumns"))}},{key:"isEqual",value:function(t){return t===this||this.row===t.row&&this.col===t.col}},{key:"isSouthEastOf",value:function(t){return this.row>=t.row&&this.col>=t.col}},{key:"isNorthWestOf",value:function(t){return this.row<=t.row&&this.col<=t.col}},{key:"isSouthWestOf",value:function(t){return this.row>=t.row&&this.col<=t.col}},{key:"isNorthEastOf",value:function(t){return this.row<=t.row&&this.col>=t.col}}]),t}();e.default=r},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(0),r=n(183),a=o(r),s=n(36),l=o(s),u=n(4),c=o(u),d=n(16),A=n(7),h=l.default.prototype.extend();h.prototype.init=function(){var t=this;this.createElements(),this.eventManager=new c.default(this),this.bindEvents(),this.autoResize=(0,a.default)(),this.instance.addHook("afterDestroy",function(){t.destroy()})},h.prototype.getValue=function(){return this.TEXTAREA.value},h.prototype.setValue=function(t){this.TEXTAREA.value=t};var f=function(t){var e,n=this,o=n.getActiveEditor();if(e=(t.ctrlKey||t.metaKey)&&!t.altKey,t.target===o.TEXTAREA&&!(0,A.isImmediatePropagationStopped)(t)){if(17===t.keyCode||224===t.keyCode||91===t.keyCode||93===t.keyCode)return void(0,A.stopImmediatePropagation)(t);switch(t.keyCode){case d.KEY_CODES.ARROW_RIGHT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(t.keyCode))&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(t.keyCode))&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.ARROW_UP:case d.KEY_CODES.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(t.keyCode))&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.ENTER:var r=o.instance.getSelected(),a=!(r[0]===r[2]&&r[1]===r[3]);if(e&&!a||t.altKey){if(o.isOpened()){var s=(0,i.getCaretPosition)(o.TEXTAREA),l=o.getValue(),u=l.slice(0,s)+"\n"+l.slice(s);o.setValue(u),(0,i.setCaretPosition)(o.TEXTAREA,s+1)}else o.beginEditing(o.originalValue+"\n");(0,A.stopImmediatePropagation)(t)}t.preventDefault();break;case d.KEY_CODES.A:case d.KEY_CODES.X:case d.KEY_CODES.C:case d.KEY_CODES.V:e&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.BACKSPACE:case d.KEY_CODES.DELETE:case d.KEY_CODES.HOME:case d.KEY_CODES.END:(0,A.stopImmediatePropagation)(t)}[d.KEY_CODES.ARROW_UP,d.KEY_CODES.ARROW_RIGHT,d.KEY_CODES.ARROW_DOWN,d.KEY_CODES.ARROW_LEFT].indexOf(t.keyCode)===-1&&o.autoResize.resize(String.fromCharCode(t.keyCode))}};h.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",f)},h.prototype.close=function(t){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",f)},h.prototype.focus=function(){this.TEXTAREA.focus(),(0,i.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},h.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,i.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,i.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var t=this;this.instance._registerTimeout(setTimeout(function(){t.refreshDimensions()},0))},h.prototype.getEditedCell=function(){var t,e=this.checkEditorSection();switch(e){case"top":t=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":t=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":t=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":t=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":t=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:t=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return t!=-1&&t!=-2?t:void 0},h.prototype.refreshValue=function(){var t=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=t,this.setValue(t),this.refreshDimensions()},h.prototype.refreshDimensions=function(){if(this.state===s.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close(!0);var t,e=(0,i.offset)(this.TD),n=(0,i.offset)(this.instance.rootElement),o=(0,i.getScrollableElement)(this.TD),r=this.instance.countRows(),a=e.top===n.top?0:1,l=e.top-n.top-a-(o.scrollTop||0),u=e.left-n.left-1-(o.scrollLeft||0),c=this.instance.getSettings(),d=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),A=this.checkEditorSection(),h=this.TD.style.backgroundColor;switch(A){case"top":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(d&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===r-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1),t&&t!=-1?this.textareaParentStyle[t[0]]=t[1]:(0,i.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=u+"px";var f=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,g=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,p=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),M=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),y=(0,i.getScrollbarWidth)(),m=this.TD.offsetTop+f-M,w=this.TD.offsetLeft+g-p,v=(0,i.innerWidth)(this.TD)-8,b=(0,i.hasVerticalScrollbar)(o)?y:0,C=(0,i.hasHorizontalScrollbar)(o)?y:0,E=this.instance.view.maximumVisibleElementWidth(w)-9-b,T=this.TD.scrollHeight+1,I=Math.max(this.instance.view.maximumVisibleElementHeight(m)-C,23),x=(0,i.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=x.fontSize,this.TEXTAREA.style.fontFamily=x.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=h?h:(0,i.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(T,I),maxHeight:I,minWidth:Math.min(v,E),maxWidth:E},!0),this.textareaParentStyle.display="block"}},h.prototype.bindEvents=function(){var t=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(t){(0,A.stopPropagation)(t)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(t){(0,A.stopPropagation)(t)}),this.instance.addHook("afterScrollHorizontally",function(){t.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){t.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){t.refreshDimensions(),t.focus()}),this.instance.addHook("afterRowResize",function(){t.refreshDimensions(),t.focus()}),this.instance.addHook("afterDestroy",function(){t.eventManager.destroy()})},h.prototype.destroy=function(){this.eventManager.destroy()},e.default=h},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports={}},function(t,e,n){var o=n(49)("meta"),i=n(15),r=n(22),a=n(19).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(31)(function(){return l(Object.preventExtensions({}))}),c=function(t){a(t,o,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,o)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[o].i},A=function(t,e){if(!r(t,o)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[o].w},h=function(t){return u&&f.NEED&&l(t)&&!r(t,o)&&c(t),t},f=t.exports={KEY:o,NEED:!1,fastKey:d,getWeak:A,onFreeze:h}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var o=n(19).f,i=n(22),r=n(10)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,r)&&o(t,r,{configurable:!0,value:e})}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){var t={};return(0,w.objectEach)(Q,function(e,n){t[n]=e()}),t}function a(t,e){k.indexOf(t)===-1&&(Q[t]=e)}e.__esModule=!0,e.ITEMS=e.UNDO=e.SEPARATOR=e.ROW_BELOW=e.ROW_ABOVE=e.REMOVE_ROW=e.REMOVE_COLUMN=e.REDO=e.READ_ONLY=e.COLUMN_RIGHT=e.COLUMN_LEFT=e.CLEAR_COLUMN=e.ALIGNMENT=void 0;var s,l=n(223);Object.defineProperty(e,"ALIGNMENT",{enumerable:!0,get:function(){return l.KEY}});var u=n(224);Object.defineProperty(e,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=n(225);Object.defineProperty(e,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var d=n(226);Object.defineProperty(e,"COLUMN_RIGHT",{enumerable:!0,get:function(){return d.KEY}});var A=n(227);Object.defineProperty(e,"READ_ONLY",{enumerable:!0,get:function(){return A.KEY}});var h=n(228);Object.defineProperty(e,"REDO",{enumerable:!0,get:function(){return h.KEY}});var f=n(229);Object.defineProperty(e,"REMOVE_COLUMN",{enumerable:!0,get:function(){return f.KEY}});var g=n(230);Object.defineProperty(e,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var p=n(231);Object.defineProperty(e,"ROW_ABOVE",{enumerable:!0,get:function(){return p.KEY}});var M=n(232);Object.defineProperty(e,"ROW_BELOW",{enumerable:!0,get:function(){return M.KEY}});var y=n(70);Object.defineProperty(e,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var m=n(233);Object.defineProperty(e,"UNDO",{enumerable:!0,get:function(){return m.KEY}}),e.predefinedItems=r,e.addItem=a;var w=n(2),v=o(l),b=o(u),C=o(c),E=o(d),T=o(A),I=o(h),x=o(f),D=o(g),N=o(p),L=o(M),S=o(y),B=o(m),k=e.ITEMS=[p.KEY,M.KEY,c.KEY,d.KEY,u.KEY,g.KEY,f.KEY,m.KEY,h.KEY,A.KEY,l.KEY,y.KEY],Q=(s={},i(s,y.KEY,S.default),i(s,p.KEY,N.default),i(s,M.KEY,L.default),i(s,c.KEY,C.default),i(s,d.KEY,E.default),i(s,u.KEY,b.default),i(s,g.KEY,D.default),i(s,f.KEY,x.default),i(s,m.KEY,B.default),i(s,h.KEY,I.default),i(s,A.KEY,T.default),i(s,l.KEY,v.default),s)},function(t,e,n){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"common";r.has(s)||r.set(s,new Map);var l=r.get(s);return{register:t,getItem:e,hasItem:n,getNames:i,getValues:a}}e.__esModule=!0,e.default=i;var r=e.collection=new Map},function(t,e){t.exports=function(t,e,n,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var o=n(29),i=n(76),r=n(41),a=n(24),s=n(278);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,d=6==t,A=5==t||d,h=e||s;return function(e,s,f){for(var g,p,M=r(e),y=i(M),m=o(s,f,3),w=a(y.length),v=0,b=n?h(e,w):l?h(e,0):void 0;w>v;v++)if((A||v in y)&&(g=y[v],p=m(g,v,M),t))if(n)b[v]=p;else if(p)switch(t){case 3:return!0;case 5:return g;case 6:return v;case 2:b.push(g)}else if(c)return!1;return d?-1:u||c?c:b}}},function(t,e,n){"use strict";var o=n(13),i=n(3),r=n(33),a=n(59),s=n(46),l=n(56),u=n(52),c=n(15),d=n(31),A=n(77),h=n(48),f=n(281);t.exports=function(t,e,n,g,p,M){var y=o[t],m=y,w=p?"set":"add",v=m&&m.prototype,b={},C=function(t){var e=v[t];r(v,t,"delete"==t?function(t){return!(M&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(M&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return M&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof m&&(M||v.forEach&&!d(function(){(new m).entries().next()}))){var E=new m,T=E[w](M?{}:-0,1)!=E,I=d(function(){E.has(1)}),x=A(function(t){new m(t)}),D=!M&&d(function(){for(var t=new m,e=5;e--;)t[w](e,e);return!t.has(-0)});x||(m=e(function(e,n){u(e,m,t);var o=f(new y,e,m);return void 0!=n&&l(n,p,o[w],o),o}),m.prototype=v,v.constructor=m),(I||D)&&(C("delete"),C("has"),p&&C("get")),(D||T)&&C(w),M&&v.clear&&delete v.clear}else m=g.getConstructor(e,t,p,w),a(m.prototype,n),s.NEED=!0;return h(m,t),b[t]=m,i(i.G+i.W+i.F*(m!=y),b),M||g.setStrong(m,t,p),m}},function(t,e,n){"use strict";var o=n(32),i=n(33),r=n(31),a=n(30),s=n(10);t.exports=function(t,e,n){var l=s(t),u=n(a,l,""[t]),c=u[0],d=u[1];r(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,c),o(RegExp.prototype,l,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)}))}},function(t,e,n){var o=n(29),i=n(165),r=n(161),a=n(18),s=n(24),l=n(176),u={},c={},e=t.exports=function(t,e,n,d,A){var h,f,g,p,M=A?function(){return t}:l(t),y=o(n,d,e?2:1),m=0;if("function"!=typeof M)throw TypeError(t+" is not iterable!");if(r(M)){for(h=s(t.length);h>m;m++)if(p=e?y(a(f=t[m])[0],f[1]):y(t[m]),p===u||p===c)return p}else for(g=M.call(t);!(f=g.next()).done;)if(p=i(g,y,f.value,e),p===u||p===c)return p};e.BREAK=u,e.RETURN=c},function(t,e){t.exports=!1},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(33);t.exports=function(t,e,n){for(var i in e)o(t,i,e[i],n);return t}},function(t,e,n){var o=n(61),i=Math.max,r=Math.min;t.exports=function(t,e){return t=o(t),t<0?i(t+e,0):r(t,e)}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(e,n){e.exports=t},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if(!B(t))throw Error('You declared cell type "'+t+'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method');return S(t)}function r(t,e){var n=e.editor,o=e.renderer,i=e.validator;n&&(0,l.registerEditor)(t,n),o&&(0,u.registerRenderer)(t,o),i&&(0,c.registerValidator)(t,i),L(t,e)}e.__esModule=!0,e.getRegisteredCellTypes=e.getRegisteredCellTypeNames=e.hasCellType=e.getCellType=e.registerCellType=void 0;var a=n(51),s=o(a),l=n(14),u=n(9),c=n(26),d=n(190),A=o(d),h=n(191),f=o(h),g=n(192),p=o(g),M=n(193),y=o(M),m=n(194),w=o(m),v=n(195),b=o(v),C=n(196),E=o(C),T=n(197),I=o(T),x=n(198),D=o(x),N=(0,s.default)("cellTypes"),L=N.register,S=N.getItem,B=N.hasItem,k=N.getNames,Q=N.getValues;r("autocomplete",A.default),r("checkbox",f.default),r("date",p.default),r("dropdown",y.default),r("handsontable",w.default),r("numeric",b.default),r("password",E.default),r("text",I.default),r("time",D.default),e.registerCellType=r,e.getCellType=i,e.hasCellType=B,e.getRegisteredCellTypeNames=k,e.getRegisteredCellTypes=Q},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=0;a--)if(null===t[a])t.splice(a,1);else{var s=t[a][0],l=D.propToCol(t[a][1]),d=z.getCellMeta(s,l);if("numeric"===d.type&&"string"==typeof t[a][3]&&t[a][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(t[a][3])||d.format)){var f=t[a][3].length;(0,h.isUndefined)(d.language)?u.default.culture("en-US"):t[a][3].indexOf(".")===f-3&&t[a][3].indexOf(",")===-1?u.default.culture("en-US"):u.default.culture(d.language);var g=u.default.cultureData(u.default.culture());g.delimiters;u.default.validate(t[a][3])&&!isNaN(t[a][3])?t[a][3]=parseFloat(t[a][3]):t[a][3]=(0,u.default)().unformat(t[a][3])||t[a][3]}z.getCellValidator(d)&&(r.addValidatorToQueue(),z.validateCell(t[a][3],d,function(e,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");if(o===!1&&n.allowInvalid===!1){t.splice(e,1),n.valid=!0;var i=z.getCell(n.row,n.col);(0,c.removeClass)(i,z.getSettings().invalidCellClassName),--e}r.removeValidatorFormQueue()}}(a,d),e))}r.checkIfQueueIsEmpty()}function r(t,e){var n=t.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==t[n]){if(null!=t[n][2]||null!=t[n][3]){if(m.settings.allowInsertRow)for(;t[n][0]>z.countRows()-1;){var i=D.createRow(void 0,void 0,e);if(0===i){o=!0;break}}if(!o){if("array"===z.dataType&&(!m.settings.columns||0===m.settings.columns.length)&&m.settings.allowInsertColumn)for(;D.propToCol(t[n][1])>z.countCols()-1;)D.createCol(void 0,void 0,e);D.set(t[n][0],t[n][1],t[n][3])}}}else t.splice(n,1)}z.forceFullRender=!0,j.adjustRowsAndCols(),z.runHooks("beforeChangeRender",t,e),U.refreshBorders(null,!0),z.view.wt.wtOverlays.adjustElementsSize(),z.runHooks("afterChange",t,e||"edit");var r=z.getActiveEditor();r&&(0,h.isDefined)(r.refreshValue)&&r.refreshValue()}}function l(t,e,n){return"object"===("undefined"==typeof t?"undefined":s(t))?t:[[t,e,n]]}function g(t){if((0,v.hasOwnProperty)(t,"type")){var e,n={};"object"===s(t.type)?e=t.type:"string"==typeof t.type&&(e=(0,Y.getCellType)(t.type));for(var o in e)(0,v.hasOwnProperty)(e,o)&&!(0,v.hasOwnProperty)(t,o)&&(n[o]=e[o]);return n}}function M(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}var m,D,L,j,U,H,z=this,F=function(){},P=new w.default(z);(0,v.extend)(F.prototype,R.default.prototype),(0,v.extend)(F.prototype,e),(0,v.extend)(F.prototype,g(e)),this.rootElement=t,this.isHotTableEnv=(0,c.isChildOfWebComponentTable)(this.rootElement),w.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,t.insertBefore(this.container,t.firstChild),this.guid="ht_"+(0,I.randomString)();var V=(0,k.getTranslator)(z);L=new S.default(z),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),m={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new F,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},j={alter:function(t,e,n,o,r){function a(t,e,n,o){var r=function(){var t=void 0;return"array"===o?t=[]:"object"===o&&(t={}),t},a=(0,b.arrayMap)(new Array(n),function(){return r()});a.unshift(e,0),t.splice.apply(t,i(a))}var s;switch(n=n||1,t){case"insert_row":var l=z.countSourceRows();if(z.getSettings().maxRows===l)return;e=(0,h.isDefined)(e)?e:l,s=D.createRow(e,n,o),a(m.cellSettings,e,n,"array"),s&&(U.isSelected()&&m.selRange.from.row>=e?(m.selRange.from.row+=s,U.transformEnd(s,0)):U.refreshBorders());break;case"insert_col":s=D.createCol(e,n,o);for(var u=0,c=z.countSourceRows();u=e?(m.selRange.from.col+=s,U.transformEnd(0,s)):U.refreshBorders()}break;case"remove_row":D.removeRow(e,n,o),m.cellSettings.splice(e,n);var A=z.countRows(),f=z.getSettings().fixedRowsTop;f>=e+1&&(z.getSettings().fixedRowsTop-=Math.min(n,f-e));var g=z.getSettings().fixedRowsBottom;g&&e>=A-g&&(z.getSettings().fixedRowsBottom-=Math.min(n,g)),j.adjustRowsAndCols(),U.refreshBorders();break;case"remove_col":var p=V.toPhysicalColumn(e);D.removeCol(e,n,o);for(var M=0,y=z.countSourceRows();M=e+1&&(z.getSettings().fixedColumnsLeft-=Math.min(n,w-e)),Array.isArray(z.getSettings().colHeaders)&&("undefined"==typeof p&&(p=-1),z.getSettings().colHeaders.splice(p,n)),j.adjustRowsAndCols(),U.refreshBorders();break;default:throw new Error('There is no such action "'+t+'"')}r||j.adjustRowsAndCols()},adjustRowsAndCols:function(){if(m.settings.minRows){var t=z.countRows();if(tr-1?(l=r-1,s=!0,c>l&&(c=l)):c>r-1&&(c=r-1,s=!0,l>c&&(l=c)),u>a-1?(u=a-1,s=!0,d>u&&(d=u)):d>a-1&&(d=a-1,s=!0,u>d&&(u=d)),s&&z.selectCell(l,u,c,d)}z.view&&z.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(t,e,n,o,r,a,l){var u,c,d,A,f=[],g={};if(c=e.length,0===c)return!1;var p,M,y,w;({row:null===n?null:n.row,col:null===n?null:n.col});switch(r){case"shift_down":for(p=n?n.col-t.col+1:0,M=n?n.row-t.row+1:0,e=(0,B.translateRowsToColumns)(e),d=0,A=e.length,y=Math.max(A,p);d1&&void 0!==arguments[1]?arguments[1]:null,o=e[t%e.length];return null!==n?o[n%o.length]:o},k=e.length,Q=n?n.row-t.row+1:0;for(c=n?Q:Math.max(k,Q),u=0;un.row&&Q>k||!m.settings.allowInsertRow&&g.row>z.countRows()-1||g.row>=m.settings.maxRows);u++){var j=u-x,_=S(j).length,U=n?n.col-t.col+1:0;if(A=n?U:Math.max(_,U),g.col=t.col,L=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.autofill"!==o||!L.skipRowOnPaste){for(D=0,d=0;dn.col&&U>_||!m.settings.allowInsertColumn&&g.col>z.countCols()-1||g.col>=m.settings.maxCols);d++)if(L=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!L.skipColumnOnPaste)if(L.readOnly)g.col++;else{var R=d-D,Y=S(j,R),O=z.getDataAtCell(g.row,g.col),H={row:j,col:R};if("Autofill.fill"===o){var F=z.runHooks("beforeAutofillInsidePopulate",H,a,e,l,{},I);F&&(Y=(0,h.isUndefined)(F.value)?Y:F.value)}if(null!==Y&&"object"===("undefined"==typeof Y?"undefined":s(Y)))if(null===O||"object"!==("undefined"==typeof O?"undefined":s(O)))N=!1;else{var P=(0,v.duckSchema)(O[0]||O),V=(0,v.duckSchema)(Y[0]||Y);(0,v.isObjectEquals)(P,V)?Y=(0,v.deepClone)(Y):N=!1}else null!==O&&"object"===("undefined"==typeof O?"undefined":s(O))&&(N=!1);N&&f.push([g.row,g.col,Y]),N=!0,g.col++}else D++,g.col++,A++;g.row++}else x++,g.row++,c++}z.setDataAtCell(f,null,null,o||"populateFromArray")}}},this.selection=U={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];z.selection.selectedHeader.rows=t,z.selection.selectedHeader.cols=e,z.selection.selectedHeader.corner=n},begin:function(){z.selection.inProgress=!0},finish:function(){var t=z.getSelected();z.runHooks("afterSelectionEnd",t[0],t[1],t[2],t[3]),z.runHooks("afterSelectionEndByProp",t[0],z.colToProp(t[1]),t[2],z.colToProp(t[3])),z.selection.inProgress=!1},isInProgress:function(){return z.selection.inProgress},setRangeStart:function(t,e){z.runHooks("beforeSetRangeStart",t),m.selRange=new Q.CellRange(t,t,t),U.setRangeEnd(t,null,e)},setRangeStartOnly:function(t){z.runHooks("beforeSetRangeStartOnly",t),m.selRange=new Q.CellRange(t,t,t)},setRangeEnd:function(t,e,n){if(null!==m.selRange){var o,i=!1,r=!0,a=z.view.wt.wtTable.getFirstVisibleRow(),s=z.view.wt.wtTable.getFirstVisibleColumn(),l={row:null,col:null};z.runHooks("beforeSetRangeEnd",t),z.selection.begin(),l.row=t.row<0?a:t.row,l.col=t.col<0?s:t.col,m.selRange.to=new Q.CellCoords(l.row,l.col),m.settings.multiSelect||(m.selRange.from=t),z.view.wt.selections.current.clear(),o=z.getCellMeta(m.selRange.highlight.row,m.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(o===!1||Array.isArray(o)&&o.indexOf("current")===-1)&&z.view.wt.selections.current.add(m.selRange.highlight),z.view.wt.selections.area.clear(),(o===!1||Array.isArray(o)&&o.indexOf("area")===-1)&&U.isMultiple()&&(z.view.wt.selections.area.add(m.selRange.from),z.view.wt.selections.area.add(m.selRange.to)),(m.settings.currentHeaderClassName||m.settings.currentRowClassName||m.settings.currentColClassName)&&(z.view.wt.selections.highlight.clear(),z.view.wt.selections.highlight.add(m.selRange.from),z.view.wt.selections.highlight.add(m.selRange.to));var u=(0,v.createObjectPropListener)("value");z.runHooks("afterSelection",m.selRange.from.row,m.selRange.from.col,m.selRange.to.row,m.selRange.to.col,u),z.runHooks("afterSelectionByProp",m.selRange.from.row,D.colToProp(m.selRange.from.col),m.selRange.to.row,D.colToProp(m.selRange.to.col),u),(0===m.selRange.from.row&&m.selRange.to.row===z.countRows()-1&&z.countRows()>1||0===m.selRange.from.col&&m.selRange.to.col===z.countCols()-1&&z.countCols()>1)&&(i=!0),(t.row<0||t.col<0)&&(r=!1),u.isTouched()&&(e=!u.value),e!==!1&&!i&&r&&(m.selRange.from&&!U.isMultiple()?z.view.scrollViewport(m.selRange.from):z.view.scrollViewport(t)),U.selectedHeader.rows&&U.selectedHeader.cols?(0,c.addClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]):U.selectedHeader.rows?((0,c.removeClass)(z.rootElement,"ht__selection--columns"),(0,c.addClass)(z.rootElement,"ht__selection--rows")):U.selectedHeader.cols?((0,c.removeClass)(z.rootElement,"ht__selection--rows"),(0,c.addClass)(z.rootElement,"ht__selection--columns")):(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),U.refreshBorders(null,n)}},refreshBorders:function(t,e){e||H.destroyEditor(t),z.view.render(),U.isSelected()&&!e&&H.prepareEditor()},isMultiple:function t(){var t=!(m.selRange.to.col===m.selRange.from.col&&m.selRange.to.row===m.selRange.from.row),e=z.runHooks("afterIsMultipleSelection",t);if(t)return e},transformStart:function(t,e,n,o){var i,r,a,s,l=new Q.CellCoords(t,e),u=0,c=0;z.runHooks("modifyTransformStart",l),i=z.countRows(),r=z.countCols(),s=z.getSettings().fixedRowsBottom,m.selRange.highlight.row+t>i-1?n&&m.settings.minSpareRows>0&&!(s&&m.selRange.highlight.row>=i-s-1)?(z.alter("insert_row",i),i=z.countRows()):m.settings.autoWrapCol&&(l.row=1-i,l.col=m.selRange.highlight.col+l.col==r-1?1-r:1):m.settings.autoWrapCol&&m.selRange.highlight.row+l.row<0&&m.selRange.highlight.col+l.col>=0&&(l.row=i-1,l.col=m.selRange.highlight.col+l.col==0?r-1:-1),m.selRange.highlight.col+l.col>r-1?n&&m.settings.minSpareCols>0?(z.alter("insert_col",r),r=z.countCols()):m.settings.autoWrapRow&&(l.row=m.selRange.highlight.row+l.row==i-1?1-i:1, -l.col=1-r):m.settings.autoWrapRow&&m.selRange.highlight.col+l.col<0&&m.selRange.highlight.row+l.row>=0&&(l.row=m.selRange.highlight.row+l.row==0?i-1:-1,l.col=r-1),a=new Q.CellCoords(m.selRange.highlight.row+l.row,m.selRange.highlight.col+l.col),a.row<0?(u=-1,a.row=0):a.row>0&&a.row>=i&&(u=1,a.row=i-1),a.col<0?(c=-1,a.col=0):a.col>0&&a.col>=r&&(c=1,a.col=r-1),z.runHooks("afterModifyTransformStart",a,u,c),U.setRangeStart(a,o)},transformEnd:function(t,e){var n,o,i,r=new Q.CellCoords(t,e),a=0,s=0;z.runHooks("modifyTransformEnd",r),n=z.countRows(),o=z.countCols(),i=new Q.CellCoords(m.selRange.to.row+r.row,m.selRange.to.col+r.col),i.row<0?(a=-1,i.row=0):i.row>0&&i.row>=n&&(a=1,i.row=n-1),i.col<0?(s=-1,i.col=0):i.col>0&&i.col>=o&&(s=1,i.col=o-1),z.runHooks("afterModifyTransformEnd",i,a,s),U.setRangeEnd(i,!0)},isSelected:function(){return null!==m.selRange},inInSelection:function(t){return!!U.isSelected()&&m.selRange.includes(t)},deselect:function(){U.isSelected()&&(z.selection.inProgress=!1,m.selRange=null,z.view.wt.selections.current.clear(),z.view.wt.selections.area.clear(),(m.settings.currentHeaderClassName||m.settings.currentRowClassName||m.settings.currentColClassName)&&z.view.wt.selections.highlight.clear(),H.destroyEditor(),U.refreshBorders(),(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),z.runHooks("afterDeselect"))},selectAll:function(){m.settings.multiSelect&&(U.setSelectedHeaders(!0,!0,!0),U.setRangeStart(new Q.CellCoords(0,0)),U.setRangeEnd(new Q.CellCoords(z.countRows()-1,z.countCols()-1),!1))},empty:function(){if(U.isSelected()){var t,e,n=m.selRange.getTopLeftCorner(),o=m.selRange.getBottomRightCorner(),i=[];for(t=n.row;t<=o.row;t++)for(e=n.col;e<=o.col;e++)z.getCellMeta(t,e).readOnly||i.push([t,e,""]);z.setDataAtCell(i)}}},this.init=function(){L.setData(m.settings.data),z.runHooks("beforeInit"),(0,f.isMobileBrowser)()&&(0,c.addClass)(z.rootElement,"mobile"),this.updateSettings(m.settings,!0),this.view=new N.default(this),H=new y.default(z,m,U,D),this.forceFullRender=!0,z.runHooks("init"),this.view.render(),"object"===s(m.firstRun)&&(z.runHooks("afterChange",m.firstRun[0],m.firstRun[1]),m.firstRun=!1),z.runHooks("afterInit")},this.validateCell=function(t,e,n,o){function i(t){var o=e.visualCol,i=e.visualRow,r=z.getCell(i,o,!0);r&&"TH"!=r.nodeName&&z.view.wt.wtSettings.settings.cellRenderer(i,o,r),n(t)}var r=z.getCellValidator(e);(0,h.isRegExp)(r)&&(r=function(t){return function(e,n){n(t.test(e))}}(r)),(0,A.isFunction)(r)?(t=z.runHooks("beforeValidate",t,e.visualRow,e.prop,o),z._registerTimeout(setTimeout(function(){r.call(e,t,function(n){n=z.runHooks("afterValidate",n,t,e.visualRow,e.prop,o),e.valid=n,i(n),z.runHooks("postAfterValidate",n,t,e.visualRow,e.prop,o)})},0))):z._registerTimeout(setTimeout(function(){e.valid=!0,i(e.valid)},0))},this.setDataAtCell=function(t,e,n,i){var a,u,c,d=l(t,e,n),A=[];for(a=0,u=d.length;a-1?((0,A.isFunction)(t[o])||Array.isArray(t[o]))&&(t[o].initialHook=!0,z.addHook(o,t[o])):!e&&(0,v.hasOwnProperty)(t,o)&&(F.prototype[o]=t[o]));void 0===t.data&&void 0===m.settings.data?z.loadData(null):void 0!==t.data?z.loadData(t.data):void 0!==t.columns&&D.createMap(),r=z.countCols();var a=t.columns||F.prototype.columns;if(a&&(0,A.isFunction)(a)&&(r=z.countSourceCols(),n=!0),void 0===t.cell&&void 0===t.cells&&void 0===t.columns||(m.cellSettings.length=0),r>0){var s=void 0,l=void 0;for(o=0,i=0;o-1||w.indexOf("overflow")>-1)?z.rootElement.setAttribute("style",w):(z.rootElement.style.height="",z.rootElement.style.overflow="")}else void 0!==M&&(z.rootElement.style.height=M+"px",z.rootElement.style.overflow="hidden");if("undefined"!=typeof t.width){var b=t.width;(0,A.isFunction)(b)&&(b=b()),z.rootElement.style.width=b+"px"}e||(D.clearLengthCache(),z.view&&z.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),z.runHooks("afterUpdateSettings")),j.adjustRowsAndCols(),z.view&&!m.firstRun&&(z.forceFullRender=!0,U.refreshBorders(null,!0)),e||!z.view||""!==p&&""!==M&&void 0!==M||p===M||z.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var t=z.getSelected();if(F.prototype.getValue){if((0,A.isFunction)(F.prototype.getValue))return F.prototype.getValue.call(z);if(t)return z.getData()[t[0]][F.prototype.getValue]}else if(t)return z.getDataAtCell(t[0],t[1])},this.getSettings=function(){return m.settings},this.clear=function(){U.selectAll(),U.empty()},this.alter=function(t,e,n,o,i){j.alter(t,e,n,o,i)},this.getCell=function(t,e,n){return z.view.getCellAtCoords(new Q.CellCoords(t,e),n)},this.getCoords=function(t){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,t)},this.colToProp=function(t){return D.colToProp(t)},this.propToCol=function(t){return D.propToCol(t)},this.toVisualRow=function(t){return V.toVisualRow(t)},this.toVisualColumn=function(t){return V.toVisualColumn(t)},this.toPhysicalRow=function(t){return V.toPhysicalRow(t)},this.toPhysicalColumn=function(t){return V.toPhysicalColumn(t)},this.getDataAtCell=function(t,e){return D.get(t,D.colToProp(e))},this.getDataAtRowProp=function(t,e){return D.get(t,e)},this.getDataAtCol=function(t){var e=[];return e.concat.apply(e,i(D.getRange(new Q.CellCoords(0,t),new Q.CellCoords(m.settings.data.length-1,t),D.DESTINATION_RENDERER)))},this.getDataAtProp=function(t){var e,n=[];return e=D.getRange(new Q.CellCoords(0,D.propToCol(t)),new Q.CellCoords(m.settings.data.length-1,D.propToCol(t)),D.DESTINATION_RENDERER),n.concat.apply(n,i(e))},this.getSourceData=function(t,e,n,o){var i=void 0;return i=void 0===t?L.getData():L.getByRange(new Q.CellCoords(t,e),new Q.CellCoords(n,o))},this.getSourceDataArray=function(t,e,n,o){var i=void 0;return i=void 0===t?L.getData(!0):L.getByRange(new Q.CellCoords(t,e),new Q.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(t){return L.getAtColumn(t)},this.getSourceDataAtRow=function(t){return L.getAtRow(t)},this.getSourceDataAtCell=function(t,e){return L.getAtCell(t,e)},this.getDataAtRow=function(t){var e=D.getRange(new Q.CellCoords(t,0),new Q.CellCoords(t,this.countCols()-1),D.DESTINATION_RENDERER);return e[0]||[]},this.getDataType=function(t,e,n,o){var i=this,r=null,a=null;void 0===t&&(t=0,n=this.countRows(),e=0,o=this.countCols()),void 0===n&&(n=t),void 0===o&&(o=e);var s="mixed";return(0,x.rangeEach)(Math.min(t,n),Math.max(t,n),function(t){var n=!0;return(0,x.rangeEach)(Math.min(e,o),Math.max(e,o),function(e){var o=i.getCellMeta(t,e);return a=o.type,r?n=r===a:r=a,n}),s=n?a:"mixed",n}),s},this.removeCellMeta=function(t,e,n){var o=z.getCellMeta(t,e);void 0!=o[n]&&delete m.cellSettings[t][e][n]},this.spliceCellsMeta=function(t,e){for(var n,o=arguments.length,i=Array(o>2?o-2:0),r=2;r=0;){for(var i=z.countCols()-1;i>=0;)e.addValidatorToQueue(),z.validateCell(z.getDataAtCell(o,i),z.getCellMeta(o,i),function(t){if("boolean"!=typeof t)throw new Error("Validation error: result is not boolean");t===!1&&(e.valid=!1),e.removeValidatorFormQueue()},"validateCells"),i--;o--}e.checkIfQueueIsEmpty()},this.getRowHeader=function(t){var e=m.settings.rowHeaders;return void 0!==t&&(t=z.runHooks("modifyRowHeader",t)),void 0===t?(e=[],(0,x.rangeEach)(z.countRows()-1,function(t){e.push(z.getRowHeader(t))})):Array.isArray(e)&&void 0!==e[t]?e=e[t]:(0,A.isFunction)(e)?e=e(t):e&&"string"!=typeof e&&"number"!=typeof e&&(e=t+1),e},this.hasRowHeaders=function(){return!!m.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==m.settings.colHeaders&&null!==m.settings.colHeaders)return!!m.settings.colHeaders;for(var t=0,e=z.countCols();t=0;){if(e=z.runHooks("modifyRow",n),z.isEmptyRow(e))o++;else if(t)break;n--}return o},this.countEmptyCols=function(t){if(z.countRows()<1)return 0;for(var e=z.countCols()-1,n=0;e>=0;){if(z.isEmptyCol(e))n++;else if(t)break;e--}return n},this.isEmptyRow=function(t){return m.settings.isEmptyRow.call(z,t)},this.isEmptyCol=function(t){return m.settings.isEmptyCol.call(z,t)},this.selectCell=function(t,e,n,o,i,r){var a;if(r=(0,h.isUndefined)(r)||r===!0,"number"!=typeof t||t<0||t>=z.countRows())return!1;if("number"!=typeof e||e<0||e>=z.countCols())return!1;if((0,h.isDefined)(n)){if("number"!=typeof n||n<0||n>=z.countRows())return!1;if("number"!=typeof o||o<0||o>=z.countCols())return!1}return a=new Q.CellCoords(t,e),m.selRange=new Q.CellRange(a,a,a),r&&z.listen(),(0,h.isUndefined)(n)?U.setRangeEnd(m.selRange.from,i):U.setRangeEnd(new Q.CellCoords(n,o),i),z.selection.finish(),!0},this.selectCellByProp=function(t,e,n,o,i){var r;return arguments[1]=D.propToCol(arguments[1]),(0,h.isDefined)(arguments[3])&&(arguments[3]=D.propToCol(arguments[3])),(r=z).selectCell.apply(r,arguments)},this.deselectCell=function(){U.deselect()},this.scrollViewportTo=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t&&(t<0||t>=z.countRows()))return!1;if(void 0!==e&&(e<0||e>=z.countCols()))return!1;var i=!1;return void 0!==t&&void 0!==e&&(z.view.wt.wtOverlays.topOverlay.scrollTo(t,n),z.view.wt.wtOverlays.leftOverlay.scrollTo(e,o),i=!0),"number"==typeof t&&"number"!=typeof e&&(z.view.wt.wtOverlays.topOverlay.scrollTo(t,n),i=!0),"number"==typeof e&&"number"!=typeof t&&(z.view.wt.wtOverlays.leftOverlay.scrollTo(e,o),i=!0),i},this.destroy=function(){z._clearTimeouts(),z.view&&z.view.destroy(),L&&L.destroy(),L=null,(0,c.empty)(z.rootElement),P.destroy(),z.runHooks("afterDestroy"),_.default.getSingleton().destroy(z);for(var t in z)(0,v.hasOwnProperty)(z,t)&&((0,A.isFunction)(z[t])?z[t]=M:"guid"!==t&&(z[t]=null));D&&D.destroy(),D=null,m=null,j=null,U=null,H=null,z=null,F=null},this.getActiveEditor=function(){return H.getActiveEditor()},this.getPlugin=function(t){return(0,C.getPlugin)(this,t)},this.getInstance=function(){return z},this.addHook=function(t,e){_.default.getSingleton().add(t,e,z)},this.hasHook=function(t){return _.default.getSingleton().has(t,z)},this.addHookOnce=function(t,e){_.default.getSingleton().once(t,e,z)},this.removeHook=function(t,e){_.default.getSingleton().remove(t,e,z)},this.runHooks=function(t,e,n,o,i,r,a){return _.default.getSingleton().run(z,t,e,n,o,i,r,a)},this.timeouts=[],this._registerTimeout=function(t){this.timeouts.push(t)},this._clearTimeouts=function(){for(var t=0,e=this.timeouts.length;t0;)o=(e-1)%h,n=String.fromCharCode(65+o)+n,e=parseInt((e-o)/h,10);return n}function i(t){var e=0;if(t)for(var n=0,o=t.length-1;n0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((t||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(t){var e=document,n=e.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(t)+"px",n}},{key:"createTable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document,n=e.createDocumentFragment(),o=e.createElement("table"),i=e.createElement("thead"),a=e.createElement("tbody"),s=e.createElement("colgroup"),l=e.createElement("tr"),u=e.createElement("th");return this.isVertical()&&o.appendChild(s),this.isHorizontal()&&(l.appendChild(u),i.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(i),this.isVertical()&&a.appendChild(l),o.appendChild(a),(0,r.addClass)(o,t),n.appendChild(o),{fragment:n,table:o,tHead:i,tBody:a,colGroup:s,tr:l,th:u}}},{key:"createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document,n=e.createDocumentFragment(),o=e.createElement("div");return t="htGhostTable htAutoSize "+t.trim(),(0,r.addClass)(o,t),n.appendChild(o),{fragment:n,container:o}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),t}();e.default=s},function(t,e,n){"use strict";var o=n(37),i=n(167),r=n(45),a=n(23);t.exports=n(166)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n=e&&o.col<=n&&i.col>=n}},{key:"includesRange",value:function(t){return this.includes(t.getTopLeftCorner())&&this.includes(t.getBottomRightCorner())}},{key:"isEqual",value:function(t){return Math.min(this.from.row,this.to.row)==Math.min(t.from.row,t.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(t.from.row,t.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(t.from.col,t.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(t.from.col,t.to.col)}},{key:"overlaps",value:function(t){return t.isSouthEastOf(this.getTopLeftCorner())&&t.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(t){return this.getTopLeftCorner().isSouthEastOf(t)||this.getBottomRightCorner().isSouthEastOf(t)}},{key:"isNorthWestOf",value:function(t){return this.getTopLeftCorner().isNorthWestOf(t)||this.getBottomRightCorner().isNorthWestOf(t)}},{key:"expand",value:function(t){var e=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.rown.row||t.col>n.col)&&(this.from=new s.default(Math.min(e.row,t.row),Math.min(e.col,t.col)),this.to=new s.default(Math.max(n.row,t.row),Math.max(n.col,t.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var n=this.getTopLeftCorner(),o=this.getBottomRightCorner(),i=(this.getTopRightCorner(),this.getBottomLeftCorner(),e.getTopLeftCorner()),r=e.getBottomRightCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),u=Math.max(o.row,r.row),c=Math.max(o.col,r.col),d=new s.default(a,l),A=new s.default(u,c),h=new t(d,d,A).isCorner(this.from,e),f=e.isEqual(new t(d,d,A)); +E.alert)(gt),gt}T+="",T+="",T+=""}else if("simple"===O.type)T+="",T+="",T+="";else if("image"===O.type)T+='',T+="",T+="",T+="",T+="";else if("zxing"===O.type)T+='",T+="",T+="";else if("slash"===O.type){T+="";var pt=O.slashes,Mt=!0,yt=!1,mt=void 0;try{for(var wt,vt=pt[Symbol.iterator]();!(Mt=(wt=vt.next()).done);Mt=!0){var bt=wt.value;T+=''}}catch(t){yt=!0,mt=t}finally{try{!Mt&&vt.return&&vt.return()}finally{if(yt)throw mt}}T+="",T+="",T+="",T+=""}var Ct=N.conditionPropertyItems||[],Et=!0,Tt=!1,It=void 0;try{for(var xt,Dt=Ct[Symbol.iterator]();!(Et=(xt=Dt.next()).done);Et=!0){var Nt=xt.value;T+='0){var kt=!0,Qt=!1,jt=void 0;try{for(var _t,Ut=Nt.linkParameters[Symbol.iterator]();!(kt=(_t=Ut.next()).done);kt=!0){var Rt=_t.value;T+='',T+="",T+=""}}catch(t){Qt=!0,jt=t}finally{try{!kt&&Ut.return&&Ut.return()}finally{if(Qt)throw jt}}}var Yt=Nt.cellStyle;Yt&&(T+=d(Yt,!0)),T+=c(Nt.conditions),T+=""}}catch(t){Tt=!0,It=t}finally{try{!Et&&Dt.return&&Dt.return()}finally{if(Tt)throw It}}T+=""}}i+=T,i+=r,i+=a;var Ot=t.reportDef.header;Ot&&(Ot.left||Ot.center||Ot.right)&&(i+="
"),Ot.center&&(i+="
"),Ot.right&&(i+=""),i+="
");var Ht=t.reportDef.footer;Ht&&(Ht.left||Ht.center||Ht.right)&&(i+="
"),Ht.center&&(i+="
"),Ht.right&&(i+=""),i+="
");var zt="",Ft=t.reportDef.datasources,Pt=!0,Vt=!1,Gt=void 0;try{for(var Wt,Jt=Ft[Symbol.iterator]();!(Pt=(Wt=Jt.next()).done);Pt=!0){var Xt=Wt.value,Zt='',Zt+="";var ie=!0,re=!1,ae=void 0;try{for(var se,le=oe.fields[Symbol.iterator]();!(ie=(se=le.next()).done);ie=!0){var ue=se.value;Zt+=''}}catch(t){re=!0,ae=t}finally{try{!ie&&le.return&&le.return()}finally{if(re)throw ae}}var ce=!0,de=!1,Ae=void 0;try{for(var he,fe=oe.parameters[Symbol.iterator]();!(ce=(he=fe.next()).done);ce=!0){var ge=he.value;Zt+=''}}catch(t){de=!0,Ae=t}finally{try{!ce&&fe.return&&fe.return()}finally{if(de)throw Ae}}Zt+=""}}catch(t){$t=!0,te=t}finally{try{!qt&&ne.return&&ne.return()}finally{if($t)throw te}}}else if("spring"===Kt){Zt+=' bean="'+Xt.beanId+'">';var pe=!0,Me=!1,ye=void 0;try{for(var me,we=Xt.datasets[Symbol.iterator]();!(pe=(me=we.next()).done);pe=!0){var ve=me.value;Zt+='';var be=!0,Ce=!1,Ee=void 0;try{for(var Te,Ie=ve.fields[Symbol.iterator]();!(be=(Te=Ie.next()).done);be=!0){var xe=Te.value;Zt+=''}}catch(t){Ce=!0,Ee=t}finally{try{!be&&Ie.return&&Ie.return()}finally{if(Ce)throw Ee}}Zt+=""}}catch(t){Me=!0,ye=t}finally{try{!pe&&we.return&&we.return()}finally{if(Me)throw ye}}}else if("buildin"===Kt){Zt+=">";var De=!0,Ne=!1,Le=void 0;try{for(var Se,Be=Xt.datasets[Symbol.iterator]();!(De=(Se=Be.next()).done);De=!0){var ke=Se.value;Zt+='',Zt+="";var Qe=!0,je=!1,_e=void 0;try{for(var Ue,Re=ke.fields[Symbol.iterator]();!(Qe=(Ue=Re.next()).done);Qe=!0){var Ye=Ue.value;Zt+=''}}catch(t){je=!0,_e=t}finally{try{!Qe&&Re.return&&Re.return()}finally{if(je)throw _e}}var Oe=!0,He=!1,ze=void 0;try{for(var Fe,Pe=ke.parameters[Symbol.iterator]();!(Oe=(Fe=Pe.next()).done);Oe=!0){var Ve=Fe.value;Zt+=''}}catch(t){He=!0,ze=t}finally{try{!Oe&&Pe.return&&Pe.return()}finally{if(He)throw ze}}Zt+=""}}catch(t){Ne=!0,Le=t}finally{try{!De&&Be.return&&Be.return()}finally{if(Ne)throw Le}}}Zt+="",zt+=Zt}}catch(t){Vt=!0,Gt=t}finally{try{!Pt&&Jt.return&&Jt.return()}finally{if(Vt)throw Gt}}i+=zt;var Ge=t.reportDef.paper;return i+='':">",e+="",e+=""):(e+=s.left?'':">",e+=""),e+=""}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}}return e}function d(t,e){var n="');var i=t.rightBorder;i&&"none"!==i.style&&(n+='');var r=t.topBorder;r&&"none"!==r.style&&(n+='');var a=t.bottomBorder;return a&&"none"!==a.style&&(n+=''),n+=""}function A(t){var e=t.replace(/[<>&"]/g,function(t){return{"<":"<",">":">","&":"&",'"':"""}[t]});return e}function h(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null!=n?n[2]:null}function f(t){var e=2.834646*t;return Math.round(e)}function g(t){var e=.352778*t;return Math.round(e)}function p(t){var e=1.33*t;return Math.round(e)}function M(t){var e=.75*t;return Math.round(e)}function y(){$("#__save_btn").removeClass("disabled")}function m(){$("#__save_btn").addClass("disabled")}function w(t,e){if("number"==typeof t&&(t=new Date(t)),"string"==typeof t)return t;var n={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in n)new RegExp("("+o+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return e}function v(){return{A0:{width:841,height:1189},A1:{width:594,height:841},A2:{width:420,height:594},A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210},A6:{width:105,height:148},A7:{width:74,height:105},A8:{width:52,height:74},A9:{width:37,height:52},A10:{width:26,height:37},B0:{width:1e3,height:1414},B1:{width:707,height:1e3},B2:{width:500,height:707},B3:{width:353,height:500},B4:{width:250,height:353},B5:{width:176,height:250},B6:{width:125,height:176},B7:{width:88,height:125},B8:{width:62,height:88},B9:{width:44,height:62},B10:{width:31,height:44}}}Object.defineProperty(e,"__esModule",{value:!0}),e.undoManager=void 0,e.showLoading=i,e.hideLoading=r,e.resetTableData=a,e.buildNewCellDef=s,e.tableToXml=l,e.encode=A,e.getParameter=h,e.mmToPoint=f,e.pointToMM=g,e.pointToPixel=p,e.pixelToPoint=M,e.setDirty=y,e.resetDirty=m,e.formatDate=w,e.buildPageSizeList=v;var b=n(49),C=o(b),E=n(46);e.undoManager=new C.default},function(t,e,n){var o;!function(){"use strict";function i(t,e,n){return t.splice(e,!n||1+n-e+(!(n<0^e>=0)&&(n<0||-1)*t.length)),t.length}var r=function(){var t,e,n=[],o=-1,r=0,a=!1;return e=function(t,e){return t&&"function"==typeof t[e]?(a=!0,t[e](),a=!1,this):this},{add:function(e){return a?this:(n.splice(o+1,n.length-o),n.push(e),r&&n.length>r&&i(n,0,-(r+1)),o=n.length-1,t&&t(),this)},setCallback:function(e){t=e},undo:function(){var i=n[o];return i?(e(i,"undo"),o-=1,t&&t(),this):this},redo:function(){var i=n[o+1];return i?(e(i,"redo"),o+=1,t&&t(),this):this},clear:function(){var e=n.length;n=[],o=-1,t&&e>0&&t()},hasUndo:function(){return o!==-1},hasRedo:function(){return o');c.append(g)}else if("slash"===d)A="斜线表头",s.crossTabWidget||(s.crossTabWidget=new a.default(this.context,e,n,s)),s.crossTabWidget.doDraw(s);else if("zxing"===d){var p=window._server+"/res/asserts/icons/qrcode.svg";A="二维码","barcode"===u.category&&(A="条码",p=window._server+"/res/asserts/icons/barcode.svg");var M=u.width,y=u.height,m=$('');c.append(m)}else A=u.value||"";if(c.prop("title",A),"simple"===d){var w=c.text();w&&""!==w&&(w=w.replace(new RegExp("\r\n","gm"),"
"),w=w.replace(new RegExp("\n","gm"),"
"),c.html(w))}if(c.css({"word-break":"break-all","line-height":"normal","white-space":"nowrap"}),"Down"===s.expand){var v=window._server+"/res/asserts/icons/expr-expand-down.svg";"dataset"===d&&(v=window._server+"/res/asserts/icons/expand-down.svg"),c.prepend('')}else if("Right"===s.expand){var b=window._server+"/res/asserts/icons/expr-expand-right.svg";"dataset"===d&&(b=window._server+"/res/asserts/icons/expand-right.svg"),c.prepend('')}else if("dataset"===d){var C=window._server+"/res/asserts/icons/property.svg";c.prepend('')}else if("expression"===d){var E=window._server+"/res/asserts/icons/expression.svg";c.prepend('')}l.align&&c.css("text-align",l.align),l.valign&&c.css("vertical-align",l.valign),l.bold&&c.css("font-weight","bold"),l.italic&&c.css("font-style","italic"),l.underline&&c.css("text-decoration","underline"),l.forecolor&&c.css("color","rgb("+l.forecolor+")"),l.bgcolor&&c.css("background-color","rgb("+l.bgcolor+")"),l.fontSize&&c.css("font-size",l.fontSize+"pt"),l.fontFamily&&c.css("font-family",l.fontFamily);var T=l.leftBorder;if(T)if(""===T||"none"===T.style)c.css({"border-left":""});else{var I="double",x=T.width;x=null===x||void 0===x||""===x?0:parseInt(x),"solid"!==T.style&&x>0&&(I=T.style,x++);var D=I+" "+x+"px rgb("+T.color+")";c.css({"border-left":D})}var N=l.rightBorder;if(N)if(""===N||"none"===N.style)c.css({"border-right":""});else{var L=N.style+" "+N.width+"px rgb("+N.color+")";c.css({"border-right":L})}var S=l.topBorder;if(S)if(""===S||"none"===S.style)c.css({"border-top":""});else{var B="double",k=S.width;k=null===k||void 0===k||""===k?0:parseInt(k),"solid"!==S.style&&k>0&&(B=S.style,k++);var Q=B+" "+k+"px rgb("+S.color+")";c.css({"border-top":Q})}var j=l.bottomBorder;if(j)if(""===j||"none"===j.style)c.css({"border-bottom":""});else{var _=j.style+" "+j.width+"px rgb("+j.color+")";c.css({"border-bottom":_})}}}}Object.defineProperty(e,"__esModule",{value:!0}),e.afterRenderer=i;var r=n(51),a=o(r)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){t=t.split(",");var e=parseInt(t[0]),n=parseInt(t[1]),o=parseInt(t[2]);return"#"+a(e)+a(n)+a(o)}function a(t){var e=t.toString(16);return 1==e.length?"0"+e:e}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n1?this.hot.getColWidth(this.colIndex+(this.colSpan-1)):parseInt(p/5);var M=i;M-=this.rowSpan>1?parseInt(this.hot.getRowHeight(this.rowIndex+(this.rowSpan-1))/2)+5:parseInt(M/2),u.push({degree:g,x:p,y:M,text:"项目"+l}),l++;for(var y=0;y
");a.append(s),this.paper=(0,u.default)(s.get(0),this.width,this.height);for(var l=n.fontSize+"pt "+(n.fontFamily?n.fontFamily:"宋体"),c=n.bold?"bold":"normal",A=n.italic?"italic":"normal",h=n.underline?"underline":"none",f={fill:r(n.forecolor),font:l,"font-weight":c,"font-style":A,"text-decoration":h},g=e.slashes,p=0;p=1e3&&delete s[l.shift()],l.push(a),s[a]=t[D](e,r),n?n(s[a]):s[a])}return i}function r(){return this.hex}function a(t,e){for(var n=[],o=0,i=t.length;i-2*!e>o;o+=2){var r=[{x:+t[o-2],y:+t[o-1]},{x:+t[o],y:+t[o+1]},{x:+t[o+2],y:+t[o+3]},{x:+t[o+4],y:+t[o+5]}];e?o?i-4==o?r[3]={x:+t[0],y:+t[1]}:i-2==o&&(r[2]={x:+t[0],y:+t[1]},r[3]={x:+t[2],y:+t[3]}):r[0]={x:+t[i-2],y:+t[i-1]}:i-4==o?r[3]=r[2]:o||(r[0]={x:+t[o],y:+t[o+1]}),n.push(["C",(-r[0].x+6*r[1].x+r[2].x)/6,(-r[0].y+6*r[1].y+r[2].y)/6,(r[1].x+6*r[2].x-r[3].x)/6,(r[1].y+6*r[2].y-r[3].y)/6,r[2].x,r[2].y])}return n}function s(t,e,n,o,i){var r=-3*e+9*n-9*o+3*i,a=t*r+6*e-12*n+6*o;return t*a-3*e+3*n}function l(t,e,n,o,i,r,a,l,u){null==u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,d=12,A=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,g=0;gf;)A/=2,h+=(cY(i,a)||Y(e,o)Y(r,s))){var l=(t*o-e*n)*(i-a)-(t-n)*(i*s-r*a),u=(t*o-e*n)*(r-s)-(e-o)*(i*s-r*a),c=(t-n)*(r-s)-(e-o)*(i-a);if(c){var d=l/c,A=u/c,h=+d.toFixed(2),f=+A.toFixed(2);if(!(h<+O(t,n).toFixed(2)||h>+Y(t,n).toFixed(2)||h<+O(i,a).toFixed(2)||h>+Y(i,a).toFixed(2)||f<+O(e,o).toFixed(2)||f>+Y(e,o).toFixed(2)||f<+O(r,s).toFixed(2)||f>+Y(r,s).toFixed(2)))return{x:d,y:A}}}}function d(t,n,o){var i=e.bezierBBox(t),r=e.bezierBBox(n);if(!e.isBBoxIntersect(i,r))return o?0:[];for(var a=l.apply(0,t),s=l.apply(0,n),u=Y(~~(a/5),1),d=Y(~~(s/5),1),A=[],h=[],f={},g=o?0:[],p=0;p=0&&I<=1.001&&x>=0&&x<=1.001&&(o?g++:g.push({x:T.x,y:T.y,t1:O(I,1),t2:O(x,1)}))}}return g}function A(t,n,o){t=e._path2curve(t),n=e._path2curve(n);for(var i,r,a,s,l,u,c,A,h,f,g=o?0:[],p=0,M=t.length;po)return o;for(;nr?n=i:o=i,i=(o-n)/2+n}return i}var u=3*e,c=3*(o-e)-u,d=1-u-c,A=3*n,h=3*(i-n)-A,f=1-A-h;return s(t,1/(200*r))}function p(t,e){var n=[],o={};if(this.ms=e,this.times=1,t){for(var i in t)t[E](i)&&(o[q(i)]=t[i],n.push(q(i)));n.sort(ct)}this.anim=o,this.top=n[n.length-1],this.percents=n}function M(n,o,i,r,a,s){i=q(i);var l,u,c,d,A,f,p=n.ms,M={},y={},m={};if(r)for(b=0,C=re.length;br*n.top){i=n.percents[b],A=n.percents[b-1]||0,p=p/n.top*(i-A),d=n.percents[b+1],l=n.anim[i];break}r&&o.attr(n.anim[n.percents[b]])}if(l){if(u)u.initstatus=r,u.start=new Date-u.ms*r;else{for(var T in l)if(l[E](T)&&(nt[E](T)||o.paper.customAttributes[E](T)))switch(M[T]=o.attr(T),null==M[T]&&(M[T]=et[T]),y[T]=l[T],nt[T]){case P:m[T]=(y[T]-M[T])/p;break;case"colour":M[T]=e.getRGB(M[T]);var I=e.getRGB(y[T]);m[T]={r:(I.r-M[T].r)/p,g:(I.g-M[T].g)/p,b:(I.b-M[T].b)/p};break;case"path":var x=Qt(M[T],y[T]),D=x[1];for(M[T]=x[0],m[T]=[],b=0,C=M[T].length;b',pt=Mt.firstChild,pt.style.behavior="url(#default#VML)",!pt||"object"!=typeof pt.adj)return e.type=S;Mt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=x,e.fn=w=x.prototype=e.prototype,e._id=0,e.is=function(t,e){return e=U.call(e),"finite"==e?!X[E](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||W.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,n,o,i,r,a){if(null==r){var s=t-o,l=n-i;return s||l?(180+180*R.atan2(-l,-s)/F+360)%360:0}return e.angle(t,n,r,a)-e.angle(o,i,r,a)},e.rad=function(t){return t%360*F/180},e.deg=function(t){return Math.round(180*t/F%360*1e3)/1e3},e.snapTo=function(t,n,o){if(o=e.is(o,"finite")?o:10,e.is(t,G)){for(var i=t.length;i--;)if(H(t[i]-n)<=o)return t[i]}else{t=+t;var r=n%t;if(rt-o)return n-r+t}return n};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*R.random()|0,n="x"==t?e:3&e|8;return n.toString(16)});e.setWindow=function(n){t("raphael.setWindow",e,T.win,n),T.win=n,T.doc=T.win.document,e._engine.initWin&&e._engine.initWin(T.win)};var yt=function(t){if(e.vml){var n,o=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write(""),r.close(),n=r.body}catch(t){n=createPopup().document.body}var a=n.createTextRange();yt=i(function(t){try{n.style.color=k(t).replace(o,S);var e=a.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=T.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",T.doc.body.appendChild(s),yt=i(function(t){return s.style.color=t,T.doc.defaultView.getComputedStyle(s,S).getPropertyValue("color")})}return yt(t)},mt=function(){return"hsb("+[this.h,this.s,this.b]+")"},wt=function(){return"hsl("+[this.h,this.s,this.l]+")"},vt=function(){return this.hex},bt=function(t,n,o){if(null==n&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(o=t.b,n=t.g,t=t.r),null==n&&e.is(t,V)){var i=e.getRGB(t);t=i.r,n=i.g,o=i.b}return(t>1||n>1||o>1)&&(t/=255,n/=255,o/=255),[t,n,o]},Ct=function(t,n,o,i){t*=255,n*=255,o*=255;var r={r:t,g:n,b:o,hex:e.rgb(t,n,o),toString:vt};return e.is(i,"finite")&&(r.opacity=i),r};e.color=function(t){var n;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=vt,t},e.hsb2rgb=function(t,e,n,o){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,o=t.o,t=t.h),t*=360;var i,r,a,s,l;return t=t%360/60,l=n*e,s=l*(1-H(t%2-1)),i=r=a=n-l,t=~~t,i+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],Ct(i,r,a,o)},e.hsl2rgb=function(t,e,n,o){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var i,r,a,s,l;return t=t%360/60,l=2*e*(n<.5?n:1-n),s=l*(1-H(t%2-1)),i=r=a=n-l/2,t=~~t,i+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],Ct(i,r,a,o)},e.rgb2hsb=function(t,e,n){n=bt(t,e,n),t=n[0],e=n[1],n=n[2];var o,i,r,a;return r=Y(t,e,n),a=r-O(t,e,n),o=0==a?null:r==t?(e-n)/a:r==e?(n-t)/a+2:(t-e)/a+4,o=(o+360)%6*60/360,i=0==a?0:a/r,{h:o,s:i,b:r,toString:mt}},e.rgb2hsl=function(t,e,n){n=bt(t,e,n),t=n[0],e=n[1],n=n[2];var o,i,r,a,s,l;return a=Y(t,e,n),s=O(t,e,n),l=a-s,o=0==l?null:a==t?(e-n)/l:a==e?(n-t)/l+2:(t-e)/l+4,o=(o+360)%6*60/360,r=(a+s)/2,i=0==l?0:r<.5?l/(2*r):l/(2-2*r),{h:o,s:i,l:r,toString:wt}},e._path2string=function(){return this.join(",").replace(rt,"$1")};e._preload=function(t,e){var n=T.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,T.doc.body.removeChild(this)},n.onerror=function(){T.doc.body.removeChild(this)},T.doc.body.appendChild(n),n.src=t};e.getRGB=i(function(t){if(!t||(t=k(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:r};!(it[E](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=yt(t));var n,o,i,a,s,l,u=t.match(J);return u?(u[2]&&(i=$(u[2].substring(5),16),o=$(u[2].substring(3,5),16),n=$(u[2].substring(1,3),16)),u[3]&&(i=$((s=u[3].charAt(3))+s,16),o=$((s=u[3].charAt(2))+s,16),n=$((s=u[3].charAt(1))+s,16)),u[4]&&(l=u[4][Q](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),u[5]?(l=u[5][Q](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsb2rgb(n,o,i,a)):u[6]?(l=u[6][Q](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsl2rgb(n,o,i,a)):(u={r:n,g:o,b:i,toString:r},u.hex="#"+(16777216|i|o<<8|n<<16).toString(16).slice(1),e.is(a,"finite")&&(u.opacity=a),u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}},e),e.hsb=i(function(t,n,o){return e.hsb2rgb(t,n,o).hex}),e.hsl=i(function(t,n,o){return e.hsl2rgb(t,n,o).hex}),e.rgb=i(function(t,e,n){function o(t){return t+.5|0}return"#"+(16777216|o(n)|o(e)<<8|o(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var n=Et(t);if(n.arr)return It(n.arr);var o={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return e.is(t,G)&&e.is(t[0],G)&&(i=It(t)),i.length||k(t).replace(at,function(t,e,n){var r=[],a=e.toLowerCase();if(n.replace(lt,function(t,e){e&&r.push(+e)}),"m"==a&&r.length>2&&(i.push([e][N](r.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)i.push([e][N](r));else for(;r.length>=o[a]&&(i.push([e][N](r.splice(0,o[a]))),o[a]););}),i.toString=e._path2string,n.arr=It(i),i},e.parseTransformString=i(function(t){if(!t)return null;var n=[];return e.is(t,G)&&e.is(t[0],G)&&(n=It(t)),n.length||k(t).replace(st,function(t,e,o){var i=[];U.call(e);o.replace(lt,function(t,e){e&&i.push(+e)}),n.push([e][N](i))}),n.toString=e._path2string,n});var Et=function(t){var e=Et.ps=Et.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[E](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};e.findDotsAtSegment=function(t,e,n,o,i,r,a,s,l){var u=1-l,c=z(u,3),d=z(u,2),A=l*l,h=A*l,f=c*t+3*d*l*n+3*u*l*l*i+h*a,g=c*e+3*d*l*o+3*u*l*l*r+h*s,p=t+2*l*(n-t)+A*(i-2*n+t),M=e+2*l*(o-e)+A*(r-2*o+e),y=n+2*l*(i-n)+A*(a-2*i+n),m=o+2*l*(r-o)+A*(s-2*r+o),w=u*t+l*n,v=u*e+l*o,b=u*i+l*a,C=u*r+l*s,E=90-180*R.atan2(p-y,M-m)/F;return(p>y||M=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},e.isBBoxIntersect=function(t,n){var o=e.isPointInsideBBox;return o(n,t.x,t.y)||o(n,t.x2,t.y)||o(n,t.x,t.y2)||o(n,t.x2,t.y2)||o(t,n.x,n.y)||o(t,n.x2,n.y)||o(t,n.x,n.y2)||o(t,n.x2,n.y2)||(t.xn.x||n.xt.x)&&(t.yn.y||n.yt.y)},e.pathIntersection=function(t,e){return A(t,e)},e.pathIntersectionNumber=function(t,e){return A(t,e,1)},e.isPointInsidePath=function(t,n,o){var i=e.pathBBox(t);return e.isPointInsideBBox(i,n,o)&&A(t,[["M",n,o],["H",i.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var Tt=e.pathBBox=function(t){var e=Et(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Qt(t);for(var o,i=0,r=0,a=[],s=[],l=0,u=t.length;l1&&(y=R.sqrt(y),n*=y,o*=y);var m=n*n,w=o*o,v=(a==s?-1:1)*R.sqrt(H((m*w-m*M*M-w*p*p)/(m*M*M+w*p*p))),b=v*n*M/o+(t+l)/2,C=v*-o*p/n+(e+u)/2,E=R.asin(((e-C)/o).toFixed(9)),T=R.asin(((u-C)/o).toFixed(9));E=tT&&(E-=2*F),!s&&T>E&&(T-=2*F)}var I=T-E;if(H(I)>A){var x=T,D=l,L=u;T=E+A*(s&&T>E?1:-1),l=b+n*R.cos(T),u=C+o*R.sin(T),f=St(l,u,n,o,r,0,s,D,L,[T,x,b,C])}I=T-E;var S=R.cos(E),B=R.sin(E),k=R.cos(T),j=R.sin(T),_=R.tan(I/4),U=4/3*n*_,Y=4/3*o*_,O=[t,e],z=[t+U*B,e-Y*S],P=[l+U*j,u-Y*k],V=[l,u];if(z[0]=2*O[0]-z[0],z[1]=2*O[1]-z[1],c)return[z,P,V][N](f);f=[z,P,V][N](f).join()[Q](",");for(var G=[],W=0,J=f.length;W"1e12"&&(A=.5),H(h)>"1e12"&&(h=.5),A>0&&A<1&&(l=Bt(t,e,n,o,i,r,a,s,A),g.push(l.x),f.push(l.y)),h>0&&h<1&&(l=Bt(t,e,n,o,i,r,a,s,h),g.push(l.x),f.push(l.y)),u=r-2*o+e-(s-2*r+o),c=2*(o-e)-2*(r-o),d=e-o,A=(-c+R.sqrt(c*c-4*u*d))/2/u,h=(-c-R.sqrt(c*c-4*u*d))/2/u,H(A)>"1e12"&&(A=.5),H(h)>"1e12"&&(h=.5),A>0&&A<1&&(l=Bt(t,e,n,o,i,r,a,s,A),g.push(l.x),f.push(l.y)),h>0&&h<1&&(l=Bt(t,e,n,o,i,r,a,s,h),g.push(l.x),f.push(l.y)),{min:{x:O[D](0,g),y:O[D](0,f)},max:{x:Y[D](0,g),y:Y[D](0,f)}}}),Qt=e._path2curve=i(function(t,e){var n=!e&&Et(t);if(!e&&n.curve)return It(n.curve);for(var o=Dt(t),i=e&&Dt(e),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,n){var o,i,r={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in r)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][N](St[D](0,[e.x,e.y][N](t.slice(1))));break;case"S":"C"==n||"S"==n?(o=2*e.x-e.bx,i=2*e.y-e.by):(o=e.x,i=e.y),t=["C",o,i][N](t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][N](Lt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][N](Lt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][N](Nt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][N](Nt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][N](Nt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][N](Nt(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)c[e]="A",i&&(d[e]="A"),t.splice(e++,0,["C"][N](n.splice(0,6)));t.splice(e,1),g=Y(o.length,i&&i.length||0)}},u=function(t,e,n,r,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],g=Y(o.length,i&&i.length||0))},c=[],d=[],A="",h="",f=0,g=Y(o.length,i&&i.length||0);fi){if(n&&!A.start){if(c=$t(a,s,l[1],l[2],l[3],l[4],l[5],l[6],i-h),d+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],r)return d;A.start=d,d=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),h+=u,a=+l[5],s=+l[6];continue}if(!t&&!n)return c=$t(a,s,l[1],l[2],l[3],l[4],l[5],l[6],i-h),{x:c.x,y:c.y,alpha:c.alpha}}h+=u,a=+l[5],s=+l[6]}d+=l.shift()+l}return A.end=d,c=t?h:n?A:e.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},ee=te(1),ne=te(),oe=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ne,e.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return oe(t,e).end;var o=oe(t,n,1);return e?oe(o,e).end:o},Xt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Xt.getPointAtLength=function(t){var e=this.getPath();if(e)return ne(e,t)},Xt.getPath=function(){var t,n=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(t=n(this)),t},Xt.getSubpath=function(t,n){var o=this.getPath();if(o)return e.getSubpath(o,t,n)};var ie=e.easing_formulas={linear:function(t){return t},"<":function(t){return z(t,1.7)},">":function(t){return z(t,.48)},"<>":function(t){var e=.48-t/1.04,n=R.sqrt(.1734+e*e),o=n-e,i=z(H(o),1/3)*(o<0?-1:1),r=-n-e,a=z(H(r),1/3)*(r<0?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:z(2,-10*t)*R.sin((t-.075)*(2*F)/.3)+1},bounce:function(t){var e,n=7.5625,o=2.75;return t<1/o?e=n*t*t:t<2/o?(t-=1.5/o,e=n*t*t+.75):t<2.5/o?(t-=2.25/o,e=n*t*t+.9375):(t-=2.625/o,e=n*t*t+.984375),e}};ie.easeIn=ie["ease-in"]=ie["<"],ie.easeOut=ie["ease-out"]=ie[">"],ie.easeInOut=ie["ease-in-out"]=ie["<>"],ie["back-in"]=ie.backIn,ie["back-out"]=ie.backOut;var re=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var n=+new Date,o=0;o1&&!i.next){for(a in A)A[E](a)&&(g[a]=i.totalOrigin[a]);i.el.attr(g),M(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&M(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}re.length&&ae(se)},le=function(t){return t>255?255:t<0?0:t};Xt.animateWith=function(t,n,o,i,r,a){var s=this;if(s.removed)return a&&a.call(s),s;var l=o instanceof p?o:e.animation(o,i,r,a);M(l,s,l.percents[0],null,s.attr());for(var u=0,c=re.length;ul&&(l=c)}l+="%",!t[l].callback&&(t[l].callback=i)}return new p(t,n)},Xt.animate=function(t,n,o,i){var r=this;if(r.removed)return i&&i.call(r),r;var a=t instanceof p?t:e.animation(t,n,o,i);return M(a,r,a.percents[0],null,r.attr()),r},Xt.setTime=function(t,e){return t&&null!=e&&this.status(t,O(e,t.ms)/t.ms),this},Xt.status=function(t,e){var n,o,i=[],r=0;if(null!=e)return M(t,this,-1,O(e,1)),this;for(n=re.length;r1)for(var o=0,i=n.length;o.5)-1;l(A-.5,2)+l(h-.5,2)>.25&&(h=r.sqrt(.25-l(A-.5,2))*i+.5)&&.5!=h&&(h=h.toFixed(5)-1e-5*i)}return d}),i=i.split(/\s*\-\s*/),"linear"==u){var w=i.shift();if(w=-o(w),isNaN(w))return null;var v=[0,0,r.cos(t.rad(w)),r.sin(t.rad(w))],b=1/(a(s(v[2]),s(v[3]))||1);v[2]*=b,v[3]*=b,v[2]<0&&(v[0]=-v[2],v[2]=0),v[3]<0&&(v[1]=-v[3],v[3]=0)}var C=t._parseDots(i);if(!C)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){y=p(u+"Gradient",{id:c}),e.gradient=y,p(y,"radial"==u?{fx:A,fy:h}:{x1:v[0],y1:v[1],x2:v[2],y2:v[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(y);for(var E=0,T=C.length;E1?k.opacity/100:k.opacity});case"stroke":k=t.getRGB(g),l.setAttribute(f,k.hex),"stroke"==f&&k[e]("opacity")&&p(l,{"stroke-opacity":k.opacity>1?k.opacity/100:k.opacity}),"stroke"==f&&o._.arrows&&("startString"in o._.arrows&&v(o,o._.arrows.startString),"endString"in o._.arrows&&v(o,o._.arrows.endString,1));break;case"gradient":("circle"==o.type||"ellipse"==o.type||"r"!=n(g).charAt())&&M(o,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&p(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){Q=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,d)),Q&&(j=Q.getElementsByTagName("stop"),p(j[j.length-1],{"stop-opacity":g}));break}default:"font-size"==f&&(g=i(g,10)+"px");var _=f.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});l.style[_]=g,o._.dirty=1,l.setAttribute(f,g)}}I(o,r),l.style.visibility=A},T=1.2,I=function(o,r){if("text"==o.type&&(r[e]("text")||r[e]("font")||r[e]("font-size")||r[e]("x")||r[e]("y"))){var a=o.attrs,s=o.node,l=s.firstChild?i(t._g.doc.defaultView.getComputedStyle(s.firstChild,d).getPropertyValue("font-size"),10):10;if(r[e]("text")){for(a.text=r.text;s.firstChild;)s.removeChild(s.firstChild);for(var u,c=n(r.text).split("\n"),A=[],h=0,f=c.length;h"));var X=G.getBoundingClientRect();y.W=A.w=(X.right-X.left)/W,y.H=A.h=(X.bottom-X.top)/W,y.X=A.x,y.Y=A.y+y.H/2,("x"in l||"y"in l)&&(y.path.v=t.format("m{0},{1}l{2},{1}",r(A.x*w),r(A.y*w),r(A.x*w)+1));for(var Z=["x","y","text","font","font-family","font-weight","font-style","font-size"],K=0,q=Z.length;K.25&&(n=i.sqrt(.25-s(e-.5,2))*(2*(n>.5)-1)+.5),u=e+h+n),f}),r=r.split(/\s*\-\s*/),"linear"==l){var c=r.shift();if(c=-o(c),isNaN(c))return null}var d=t._parseDots(r);if(!d)return null;if(e=e.shape||e.node,d.length){e.removeChild(a),a.on=!0,a.method="none",a.color=d[0].color,a.color2=d[d.length-1].color;for(var A=[],g=0,p=d.length;g')}}catch(t){S=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e.container,o=e.height,i=e.width,r=e.x,a=e.y;if(!n)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),u=l.style;return r=r||0,a=a||0,i=i||512,o=o||342,s.width=i,s.height=o,i==+i&&(i+="px"),o==+o&&(o+="px"),s.coordsize=1e3*w+h+1e3*w,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),u.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,o),1==n?(t._g.doc.body.appendChild(l),u.left=r+"px",u.top=a+"px",u.position="absolute"):n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var B=t.st;for(var k in L)L[e](k)&&!B[e](k)&&(B[k]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(k))}}.apply(e,o),!(void 0!==i&&(t.exports=i))}])})},function(t,e,n){var o;!function(){function i(t){return t instanceof HTMLElement||t instanceof SVGElement}function r(t){if(!i(t))throw new Error("an HTMLElement or SVGElement is required; got "+t)}function a(t){return t&&0==t.lastIndexOf("http",0)&&t.lastIndexOf(window.location.host)==-1}function s(t,e){r(t);var n=t.querySelectorAll("image"),o=n.length,i=function(){0===o&&e()};i();for(var s=0;s0)return e[i]}return console.error("Unknown font format for "+t+"; Fonts may not be working correctly"),"application/octet-stream"}function i(t){function e(e){function n(){var t=s.response,n=r(t);a(e,n)}function o(t){console.warn("Failed to load font from: "+e.url),console.warn(t),l+=e.text+"\n",i()}function a(e,n){var o='url("data:'+e.format+";base64,"+n+'")';l+=e.text.replace(e.fontUrlRegexp,o)+"\n",setTimeout(function(){i(t)},0)}var s=new XMLHttpRequest;s.addEventListener("load",n),s.addEventListener("error",o),s.addEventListener("abort",o),s.open("GET",e.url),s.responseType="arraybuffer",s.send()}if(t.length>0){var o=t.pop();e(o)}else n(l)}function r(t){for(var e="",n=new Uint8Array(t),o=n.byteLength,i=0;i";var o=document.createElement("defs");if(o.appendChild(e),c.insertBefore(o,c.firstChild),n){var i=s.innerHTML;i=i.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href'),n(i,r,a)}}var r,a,s=document.createElement("div"),c=t.cloneNode(!0);if("svg"==t.tagName)r=e.width||u(t,c,"width"),a=e.height||u(t,c,"height");else{if(!t.getBBox)return void console.error("Attempted to render non-SVG element",t);var d=t.getBBox();r=d.x+d.width,a=d.y+d.height,c.setAttribute("transform",c.getAttribute("transform").replace(/translate\(.*?\)/,""));var A=document.createElementNS("http://www.w3.org/2000/svg","svg");A.appendChild(c),c=A}c.setAttribute("version","1.1"),c.getAttribute("xmlns")||c.setAttributeNS(o,"xmlns","http://www.w3.org/2000/svg"),c.getAttribute("xmlns:xlink")||c.setAttributeNS(o,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.responsive?(c.removeAttribute("width"),c.removeAttribute("height"),c.setAttribute("preserveAspectRatio","xMinYMin meet")):(c.setAttribute("width",r*e.scale),c.setAttribute("height",a*e.scale)),c.setAttribute("viewBox",[e.left||0,e.top||0,r,a].join(" "));for(var h=c.querySelectorAll("foreignObject > *"),f=0;f=i}function s(){var t=this.getSelected();if(!t)return!0;var e=t[1],n=t[3],o=Math.abs(e-n)+1,i=this.countCols();return o>=i}function l(){var t=this.getSelected();return!t||0===t.length}Object.defineProperty(e,"__esModule",{value:!0}),e.contextMenuConfigure=void 0;var u=n(48),c=n(55),d=n(57),A=n(58),h=n(59),f=n(56),g=n(60),p=o(g);e.contextMenuConfigure={callback:function(t,e){var n=this,o=this;if("insert_row_above"===t)c.doInsertRow.call(this,!0);else if("insert_row_below"===t)c.doInsertRow.call(this);else if("insert_col_left"===t)d.doInsertCol.call(this,!0);else if("insert_col_right"===t)d.doInsertCol.call(this);else if("del_row"===t)A.doDeleteRow.call(this);else if("del_col"===t)h.doDeleteCol.call(this);else if("clean_content"===t)!function(){var t=n.getSelected(),e=t[0],a=t[2],s=t[1],l=t[3],c=r(o.context,e,a,s,l,"content");u.undoManager.add({redo:function(){c=r(o.context,e,a,s,l,"content")},undo:function(){i(o.context,e,a,s,l,c,"content")}})}();else if("clean_style"===t)!function(){var t=n.getSelected(),e=t[0],a=t[2],s=t[1],l=t[3],c=r(o.context,e,a,s,l,"style");u.undoManager.add({redo:function(){c=r(o.context,e,a,s,l,"style")},undo:function(){i(o.context,e,a,s,l,c,"style")}})}();else if("clean"===t)!function(){var t=n.getSelected(),e=t[0],a=t[2],s=t[1],l=t[3],c=r(o.context,e,a,s,l,"all");u.undoManager.add({redo:function(){c=r(o.context,e,a,s,l,"all")},undo:function(){i(o.context,e,a,s,l,c,"all")}})}();else if("repeat_row_header"===t){for(var a=this.getSelected(),s=a[0],l=a[2],g=this.context,p=s;p<=l;p++)g.addRowHeader(p,"headerrepeat");(0,f.renderRowHeader)(this,g),(0,u.setDirty)()}else if("repeat_row_footer"===t){for(var M=this.getSelected(),y=M[0],m=M[2],w=this.context,v=y;v<=m;v++)w.addRowHeader(v,"footerrepeat");(0,f.renderRowHeader)(this,w),(0,u.setDirty)()}else if("repeat_cancel"===t){for(var b=this.getSelected(),C=b[0],E=b[2],T=this.context,I=C;I<=E;I++)T.adjustDelRowHeaders(I);(0,f.renderRowHeader)(this,T),(0,u.setDirty)()}},items:{insert_row_above:{name:' 插入行(上)'},insert_row_below:{name:' 插入行(下)'},insert_col_left:{name:' 插入列(前)'},insert_col_right:{name:' 插入列(后)'},del_row:{name:' 删除行',disabled:a},del_col:{name:' 删除列',disabled:s},repeat_row_header:{name:' 重复表头',disabled:a},repeat_row_footer:{name:' 重复表尾',disabled:a},repeat_cancel:{name:' 取消重复',disabled:a},clean_content:{name:' 清空内容',disabled:l},clean_style:{name:' 清空格式',disabled:l},clean:{name:' 清空所有',disabled:l}}}},function(t,e,n){"use strict";function o(t){var e=this.getSelected();if(!e)return void(0,s.alert)("请先选中行!");var n=e[0],o=e[2],l=n;l=n>o?t?o:n+1:t?n:o+1;var u=this.getSettings().rowHeights,c=u.concat([]);c.splice(l,0,25),this.alter("insert_row",l),this.context.adjustInsertRowHeaders(l),(0,a.renderRowHeader)(this,this.context),i(this,l),this.updateSettings({rowHeights:c,manualRowResize:c}),(0,r.resetTableData)(this),(0,r.setDirty)();var d=this,A=this.context,h=this.context.cellsMap,f=[],g=25;r.undoManager.add({redo:function(){u=d.getSettings().rowHeights,c=u.concat([]),c.splice(l,0,g),d.alter("insert_row",l),d.context.adjustInsertRowHeaders(l),(0,a.renderRowHeader)(d,d.context);var t=[],e=!0,n=!1,o=void 0;try{for(var i,s=h.values()[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var p=i.value,M=p.rowNumber-1;M>=l&&t.push(p)}}catch(t){n=!0,o=t}finally{try{!e&&s.return&&s.return()}finally{if(n)throw o}}var y=!0,m=!1,w=void 0;try{for(var v,b=t[Symbol.iterator]();!(y=(v=b.next()).done);y=!0){var C=v.value;A.removeCell(C)}}catch(t){m=!0,w=t}finally{try{!y&&b.return&&b.return()}finally{if(m)throw w}}var E=!0,T=!1,I=void 0;try{for(var x,D=t[Symbol.iterator]();!(E=(x=D.next()).done);E=!0){var N=x.value;N.rowNumber=N.rowNumber+1,A.addCell(N)}}catch(t){T=!0,I=t}finally{try{!E&&D.return&&D.return()}finally{if(T)throw I}}var L=!0,S=!1,B=void 0;try{for(var k,Q=f[Symbol.iterator]();!(L=(k=Q.next()).done);L=!0){var j=k.value;A.addCell(j)}}catch(t){S=!0,B=t}finally{try{!L&&Q.return&&Q.return()}finally{if(S)throw B}}d.updateSettings({rowHeights:c,manualRowResize:c}),(0,r.resetTableData)(d),(0,r.setDirty)()},undo:function(){f.splice(0,f.length),u=d.getSettings().rowHeights,c=u.concat([]),g=c[l],c.splice(l,1),d.alter("remove_row",l),d.context.adjustDelRowHeaders(l),(0,a.renderRowHeader)(d,d.context),d.updateSettings({rowHeights:c,manualRowResize:c});for(var t=d.countCols(),e=0;el&&o.push(m)}}catch(t){s=!0,p=t}finally{try{!i&&y.return&&y.return()}finally{if(s)throw p}}var v=!0,b=!1,C=void 0;try{for(var E,T=o[Symbol.iterator]();!(v=(E=T.next()).done);v=!0){var I=E.value;A.removeCell(I)}}catch(t){b=!0,C=t}finally{try{!v&&T.return&&T.return()}finally{if(b)throw C}}var x=!0,D=!1,N=void 0;try{for(var L,S=o[Symbol.iterator]();!(x=(L=S.next()).done);x=!0){var B=L.value;B.rowNumber=B.rowNumber-1,A.addCell(B)}}catch(t){D=!0,N=t}finally{try{!x&&S.return&&S.return()}finally{if(D)throw N}}(0,r.resetTableData)(d),(0,r.setDirty)()}})}function i(t,e){var n=t.countCols(),o=(t.countRows(),t.context),i=o.cellsMap,a=[],s=!0,l=!1,u=void 0;try{for(var c,d=i.values()[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var A=c.value,h=A.rowNumber-1;h>=e&&a.push(A)}}catch(t){l=!0,u=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}var f=!0,g=!1,p=void 0;try{for(var M,y=a[Symbol.iterator]();!(f=(M=y.next()).done);f=!0){var m=M.value;o.removeCell(m)}}catch(t){g=!0,p=t}finally{try{!f&&y.return&&y.return()}finally{if(g)throw p}}var w=!0,v=!1,b=void 0;try{for(var C,E=a[Symbol.iterator]();!(w=(C=E.next()).done);w=!0){var T=C.value;T.rowNumber=T.rowNumber+1,o.addCell(T); +}}catch(t){v=!0,b=t}finally{try{!w&&E.return&&E.return()}finally{if(v)throw b}}for(var I=0;IHR":"footerrepeat"===A.band&&(a="FR");break}}}catch(t){l=!0,u=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}o.push(r+a)}t.updateSettings({rowHeaders:o})}Object.defineProperty(e,"__esModule",{value:!0}),e.renderRowHeader=n},function(t,e,n){"use strict";function o(t){var e=this.getSelected();if(!e)return void alert("请先选中列!");var n=e[1],o=e[3],r=n;r=n>o?t?o:n+1:t?n:o+1;var a=this.getSettings().colWidths,s=a.concat([]);s.splice(r,0,98),this.alter("insert_col",r);var l=this.context,u=this.context.cellsMap,c=[],d=!0,A=!1,h=void 0;try{for(var f,g=u.values()[Symbol.iterator]();!(d=(f=g.next()).done);d=!0){var p=f.value,M=p.columnNumber-1;M>=r&&c.push(p)}}catch(t){A=!0,h=t}finally{try{!d&&g.return&&g.return()}finally{if(A)throw h}}var y=!0,m=!1,w=void 0;try{for(var v,b=c[Symbol.iterator]();!(y=(v=b.next()).done);y=!0){var C=v.value;l.removeCell(C)}}catch(t){m=!0,w=t}finally{try{!y&&b.return&&b.return()}finally{if(m)throw w}}var E=!0,T=!1,I=void 0;try{for(var x,D=c[Symbol.iterator]();!(E=(x=D.next()).done);E=!0){var N=x.value;N.columnNumber=N.columnNumber+1,l.addCell(N)}}catch(t){T=!0,I=t}finally{try{!E&&D.return&&D.return()}finally{if(T)throw I}}for(var L=this.countRows(),S=0;S=r&&c.push(A)}}catch(t){e=!0,n=t}finally{try{!t&&d.return&&d.return()}finally{if(e)throw n}}var f=!0,g=!1,p=void 0;try{for(var M,y=c[Symbol.iterator]();!(f=(M=y.next()).done);f=!0){var m=M.value;l.removeCell(m)}}catch(t){g=!0,p=t}finally{try{!f&&y.return&&y.return()}finally{if(g)throw p}}var w=!0,v=!1,b=void 0;try{for(var C,E=c[Symbol.iterator]();!(w=(C=E.next()).done);w=!0){var T=C.value;T.columnNumber=T.columnNumber+1,l.addCell(T)}}catch(t){v=!0,b=t}finally{try{!w&&E.return&&E.return()}finally{if(v)throw b}}var I=!0,x=!1,D=void 0;try{for(var N,L=Q[Symbol.iterator]();!(I=(N=L.next()).done);I=!0){var S=N.value;l.addCell(S)}}catch(t){x=!0,D=t}finally{try{!I&&L.return&&L.return()}finally{if(x)throw D}}k.updateSettings({colWidths:s,manualColumnResize:s}),(0,i.resetTableData)(k),(0,i.setDirty)()},undo:function(){Q.splice(0,Q.length),a=k.getSettings().colWidths,s=a.concat([]),j=s[r],s.splice(r,1),k.alter("remove_col",r),k.updateSettings({colWidths:s,manualColumnResize:s});for(var t=k.countRows(),e=0;er&&c.push(g)}}catch(t){d=!0,A=t}finally{try{!o&&f.return&&f.return()}finally{if(d)throw A}}var M=!0,y=!1,m=void 0;try{for(var w,v=c[Symbol.iterator]();!(M=(w=v.next()).done);M=!0){var b=w.value;l.removeCell(b)}}catch(t){y=!0,m=t}finally{try{!M&&v.return&&v.return()}finally{if(y)throw m}}var C=!0,E=!1,T=void 0;try{for(var I,x=c[Symbol.iterator]();!(C=(I=x.next()).done);C=!0){var D=I.value;D.columnNumber=D.columnNumber-1,l.addCell(D)}}catch(t){E=!0,T=t}finally{try{!C&&x.return&&x.return()}finally{if(E)throw T}}(0,i.resetTableData)(k),(0,i.setDirty)()}})}Object.defineProperty(e,"__esModule",{value:!0}),e.doInsertCol=o;var i=n(48)},function(t,e,n){"use strict";function o(){var t=this.getSelected(),e=this.context;if(!t)return void(0,a.alert)("请先选中行!");var n=t[0],o=t[2];if(o=n&&w<=o)d.splice(v,1);else if(y<=n&&w>=o){var b=o-n+1,C=m-b;0===C&&(C=1),1===C&&1===M.colspan?d.splice(v,1):d[v]={col:M.col,row:y,rowspan:C,colspan:M.colspan}}else if(y>o){var E=o-n+1;d[v]={col:M.col,row:y-E,rowspan:M.rowspan,colspan:M.colspan}}}}catch(t){h=!0,f=t}finally{try{!A&&p.return&&p.return()}finally{if(h)throw f}}this.updateSettings({mergeCells:[]});var T=o-n+1,I=l.concat([]),x=l.concat([]);x.splice(n,T);for(var D=this.countCols(),N=[],L=o;L>=n;L--){for(var S=0;S=o&&Q.push(O)}}catch(t){_=!0,U=t}finally{try{!j&&Y.return&&Y.return()}finally{if(_)throw U}}var z=!0,F=!1,P=void 0;try{for(var V,G=Q[Symbol.iterator]();!(z=(V=G.next()).done);z=!0){var W=V.value;e.removeCell(W)}}catch(t){F=!0,P=t}finally{try{!z&&G.return&&G.return()}finally{if(F)throw P}}var J=!0,X=!1,Z=void 0;try{for(var K,q=Q[Symbol.iterator]();!(J=(K=q.next()).done);J=!0){var $=K.value;$.rowNumber=$.rowNumber-T,e.addCell($)}}catch(t){X=!0,Z=t}finally{try{!J&&q.return&&q.return()}finally{if(X)throw Z}}this.updateSettings({rowHeights:x,mergeCells:d}),(0,i.resetTableData)(this),(0,i.setDirty)();var tt=this;i.undoManager.add({redo:function(){l=tt.getSettings().rowHeights,u=tt.getSettings().mergeCells,c=[],d=u.concat([]);var t=!0,a=!1,s=void 0;try{for(var A,h=u[Symbol.iterator]();!(t=(A=h.next()).done);t=!0){var f=A.value;c.push(Object.assign({},f));var g=f.row,p=f.rowspan,M=g+p-1,y=d.indexOf(f);if(g>=n&&M<=o)d.splice(y,1);else if(g<=n&&M>=o){var m=o-n+1,w=p-m;0===w&&(w=1),1===w&&1===f.colspan?d.splice(y,1):d[y]={col:f.col,row:g,rowspan:w,colspan:f.colspan}}else if(g>o){var v=o-n+1;d[y]={col:f.col,row:g-v,rowspan:f.rowspan,colspan:f.colspan}}}}catch(t){a=!0,s=t}finally{try{!t&&h.return&&h.return()}finally{if(a)throw s}}tt.updateSettings({mergeCells:[]}),I=l.concat([]),x=l.concat([]),x.splice(n,T),D=tt.countCols(),N.splice(0,N.length);for(var b=o;b>=n;b--){for(var C=0;C=o&&Q.push(U)}}catch(t){S=!0,B=t}finally{try{!L&&_.return&&_.return()}finally{if(S)throw B}}var Y=!0,O=!1,H=void 0;try{for(var z,F=Q[Symbol.iterator]();!(Y=(z=F.next()).done);Y=!0){var P=z.value;e.removeCell(P)}}catch(t){O=!0,H=t}finally{try{!Y&&F.return&&F.return()}finally{if(O)throw H}}var V=!0,G=!1,W=void 0;try{for(var J,X=Q[Symbol.iterator]();!(V=(J=X.next()).done);V=!0){var Z=J.value;Z.rowNumber=Z.rowNumber-T,e.addCell(Z)}}catch(t){G=!0,W=t}finally{try{!V&&X.return&&X.return()}finally{if(G)throw W}}tt.updateSettings({rowHeights:x,mergeCells:d}),(0,i.resetTableData)(tt),(0,i.setDirty)()},undo:function(){for(var t=o;t>=n;t--)tt.alter("insert_row",t),tt.context.adjustInsertRowHeaders(t);(0,r.renderRowHeader)(tt,tt.context),Q.splice(0,Q.length);var a=!0,s=!1,l=void 0;try{for(var u,d=k.values()[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var A=u.value,h=A.rowNumber-1;h>=n&&Q.push(A)}}catch(t){s=!0,l=t}finally{try{!a&&d.return&&d.return()}finally{if(s)throw l}}var f=!0,g=!1,p=void 0;try{for(var M,y=Q[Symbol.iterator]();!(f=(M=y.next()).done);f=!0){var m=M.value;e.removeCell(m)}}catch(t){g=!0,p=t}finally{try{!f&&y.return&&y.return()}finally{if(g)throw p}}var w=!0,v=!1,b=void 0;try{for(var C,E=Q[Symbol.iterator]();!(w=(C=E.next()).done);w=!0){var x=C.value;x.rowNumber=x.rowNumber+T,e.addCell(x)}}catch(t){v=!0,b=t}finally{try{!w&&E.return&&E.return()}finally{if(v)throw b}}var D=!0,L=!1,S=void 0;try{for(var B,j=N[Symbol.iterator]();!(D=(B=j.next()).done);D=!0){var _=B.value;e.addCell(_)}}catch(t){L=!0,S=t}finally{try{!D&&j.return&&j.return()}finally{if(L)throw S}}tt.updateSettings({rowHeights:I,mergeCells:c}),(0,i.resetTableData)(tt),(0,i.setDirty)()}})}Object.defineProperty(e,"__esModule",{value:!0}),e.doDeleteRow=o;var i=n(48),r=n(56),a=n(46)},function(t,e,n){"use strict";function o(){var t=this.getSelected(),e=this.context;if(!t)return void(0,r.alert)("请先选中行!");var n=t[1],o=t[3];if(o=n&&m<=o)c.splice(w,1);else if(M<=n&&m>=o){var v=o-n+1,b=y-v;0===b&&(b=1),1===b&&1===p.rowspan?c.splice(w,1):c[w]={col:M,row:p.row,rowspan:p.rowspan,colspan:b}}else if(M>o){var C=o-n+1;c[w]={row:p.row,col:M-C,rowspan:p.rowspan,colspan:p.colspan}}}}catch(t){A=!0,h=t}finally{try{!d&&g.return&&g.return()}finally{if(A)throw h}}this.updateSettings({mergeCells:[]});var E=o-n+1,T=s.concat([]),I=s.concat([]);I.splice(n,E);for(var x=this.countRows(),D=[],N=o;N>=n;N--){this.alter("remove_col",N);for(var L=0;L=o&&k.push(Y)}}catch(t){j=!0,_=t}finally{try{!Q&&R.return&&R.return()}finally{if(j)throw _}}var H=!0,z=!1,F=void 0;try{for(var P,V=k[Symbol.iterator]();!(H=(P=V.next()).done);H=!0){var G=P.value;e.removeCell(G)}}catch(t){z=!0,F=t}finally{try{!H&&V.return&&V.return()}finally{if(z)throw F}}var W=!0,J=!1,X=void 0;try{for(var Z,K=k[Symbol.iterator]();!(W=(Z=K.next()).done);W=!0){var q=Z.value;q.columnNumber=q.columnNumber-E,e.addCell(q)}}catch(t){J=!0,X=t}finally{try{!W&&K.return&&K.return()}finally{if(J)throw X}}this.updateSettings({colWidths:I,mergeCells:c}),(0,i.resetTableData)(this),(0,i.setDirty)();var $=this;i.undoManager.add({redo:function(){s=$.getSettings().colWidths,l=$.getSettings().mergeCells,u=[],c=l.concat([]);var t=!0,r=!1,a=void 0;try{for(var d,A=l[Symbol.iterator]();!(t=(d=A.next()).done);t=!0){var h=d.value;u.push(Object.assign({},h));var f=h.col,g=h.colspan,p=f+g-1,M=c.indexOf(h);if(f>=n&&p<=o)c.splice(M,1);else if(f<=n&&p>=o){var y=o-n+1,m=g-y;0===m&&(m=1),1===m&&1===h.rowspan?c.splice(M,1):c[M]={col:f,row:h.row,rowspan:h.rowspan,colspan:m}}else if(f>o){var w=o-n+1;c[M]={row:h.row,col:f-w,rowspan:h.rowspan,colspan:h.colspan}}}}catch(t){r=!0,a=t}finally{try{!t&&A.return&&A.return()}finally{if(r)throw a}}$.updateSettings({mergeCells:[]}),T=s.concat([]),I=s.concat([]),I.splice(n,E),x=$.countRows(),D.splice(0,D.length);for(var v=o;v>=n;v--){for(var b=0;b=o&&k.push(_)}}catch(t){L=!0,S=t}finally{try{!N&&j.return&&j.return()}finally{if(L)throw S}}var R=!0,Y=!1,O=void 0;try{for(var H,z=k[Symbol.iterator]();!(R=(H=z.next()).done);R=!0){var F=H.value;e.removeCell(F)}}catch(t){Y=!0,O=t}finally{try{!R&&z.return&&z.return()}finally{if(Y)throw O}}var P=!0,V=!1,G=void 0;try{for(var W,J=k[Symbol.iterator]();!(P=(W=J.next()).done);P=!0){var X=W.value;X.columnNumber=X.columnNumber-E,e.addCell(X)}}catch(t){V=!0,G=t}finally{try{!P&&J.return&&J.return()}finally{if(V)throw G}}$.updateSettings({colWidths:I,mergeCells:c}),(0,i.resetTableData)($),(0,i.setDirty)()},undo:function(){for(var t=o;t>=n;t--)$.alter("insert_col",t);k.splice(0,k.length);var r=!0,a=!1,s=void 0;try{for(var l,c=B.values()[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var d=l.value,A=d.columnNumber-1;A>=n&&k.push(d)}}catch(t){a=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw s}}var h=!0,f=!1,g=void 0;try{for(var p,M=k[Symbol.iterator]();!(h=(p=M.next()).done);h=!0){var y=p.value;e.removeCell(y)}}catch(t){f=!0,g=t}finally{try{!h&&M.return&&M.return()}finally{if(f)throw g}}var m=!0,w=!1,v=void 0;try{for(var b,C=k[Symbol.iterator]();!(m=(b=C.next()).done);m=!0){var I=b.value;I.columnNumber=I.columnNumber+E,e.addCell(I)}}catch(t){w=!0,v=t}finally{try{!m&&C.return&&C.return()}finally{if(w)throw v}}var x=!0,N=!1,L=void 0;try{for(var S,Q=D[Symbol.iterator]();!(x=(S=Q.next()).done);x=!0){var j=S.value;e.addCell(j)}}catch(t){N=!0,L=t}finally{try{!x&&Q.return&&Q.return()}finally{if(N)throw L}}$.updateSettings({colWidths:T,mergeCells:u}),(0,i.resetTableData)($),(0,i.setDirty)()}})}Object.defineProperty(e,"__esModule",{value:!0}),e.doDeleteCol=o;var i=n(48),r=n(46)},function(t,e,n){(function(e){!function(e,o){t.exports=o(n(62),n(165),n(227),n(228))}(this,function(t,e,n,o){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=209)}([function(t,e,n){"use strict";function o(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=t;){if(n===e){o=t;break}t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t=t.host:(n++,t=t.parentNode)}return o}function i(t,e,n){for(;null!=t&&t!==n;){if(t.nodeType===Node.ELEMENT_NODE&&(e.indexOf(t.nodeName)>-1||e.indexOf(t)>-1))return t;t=t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t.parentNode}return null}function r(t,e,n){for(var o=[];t&&(t=i(t,e,n),t&&(!n||n.contains(t)));)o.push(t),t=t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t.parentNode;var r=o.length;return r?o[r-1]:null}function a(t,e){var n=t.parentNode,o=[];for("string"==typeof e?o=Array.prototype.slice.call(document.querySelectorAll(e),0):o.push(e);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function s(t){function e(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName===o.toUpperCase()}var n,o="hot-table",i=!1;for(n=l(t);null!=n;){if(e(n)){i=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i=e(n.host))break;n=n.host}n=n.parentNode}return i}function l(t){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(t):t}function u(t){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(t):t}function c(t){var e=0;if(t.previousSibling)for(;t=t.previousSibling;)++e;return e}function d(t,e){var n=document.querySelector(".ht_clone_"+t);return n?n.contains(e):null}function A(t){var e=0,n=[];if(!t||!t.length)return n;for(;t[e];)n.push(t[e]),e++;return n}function h(t,e){return X(t,e)}function f(t,e){return Z(t,e)}function g(t,e){return K(t,e)}function p(t,e){if(3===t.nodeType)e.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,o=n.length-1;o>=0;o--)p(n[o],t)}function M(t){for(var e;e=t.lastChild;)t.removeChild(e)}function y(t,e){it.test(e)?t.innerHTML=e:m(t,e)}function m(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?rt?n.textContent=e:n.data=e:(M(t),t.appendChild(document.createTextNode(e)))}function w(t){for(var e=t;u(e)!==document.documentElement;){if(null===e)return!1;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(e.host){if(e.host.impl)return w(e.host.impl);if(e.host)return w(e.host);throw new Error("Lost in Web Components world")}return!1}if("none"===e.style.display)return!1;e=e.parentNode}return!0}function v(t){var e,n,o,i,r;if(i=document.documentElement,(0,$.hasCaptionProblem)()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName)return r=t.getBoundingClientRect(),{top:r.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)};for(e=t.offsetLeft,n=t.offsetTop,o=t;(t=t.offsetParent)&&t!==document.body;)e+=t.offsetLeft,n+=t.offsetTop,o=t;return o&&"fixed"===o.style.position&&(e+=window.pageXOffset||i.scrollLeft,n+=window.pageYOffset||i.scrollTop),{left:e,top:n}}function b(){var t=window.scrollY;return void 0===t&&(t=document.documentElement.scrollTop),t}function C(){var t=window.scrollX;return void 0===t&&(t=document.documentElement.scrollLeft),t}function E(t){return t===window?b():t.scrollTop}function T(t){return t===window?C():t.scrollLeft}function I(t){for(var e,n,o,i=t.parentNode,r=["auto","scroll"],a="",s="",l="",u="";i&&i.style&&document.body!==i;){if(e=i.style.overflow,n=i.style.overflowX,o=i.style.overflowY,"scroll"==e||"scroll"==n||"scroll"==o)return i;if(window.getComputedStyle&&(a=window.getComputedStyle(i),s=a.getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),u=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===u||"scroll"===l))return i;if(i.clientHeight<=i.scrollHeight&&(r.indexOf(o)!==-1||r.indexOf(e)!==-1||r.indexOf(s)!==-1||r.indexOf(l)!==-1))return i;if(i.clientWidth<=i.scrollWidth&&(r.indexOf(n)!==-1||r.indexOf(e)!==-1||r.indexOf(s)!==-1||r.indexOf(u)!==-1))return i;i=i.parentNode}return window}function x(t){for(var e=t.parentNode;e&&e.style&&document.body!==e;){if("visible"!==e.style.overflow&&""!==e.style.overflow)return e;if(window.getComputedStyle){var n=window.getComputedStyle(e);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return e}e=e.parentNode}return window}function D(t,e){if(t){if(t!==window){var n,o=t.style[e];return""!==o&&void 0!==o?o:(n=N(t),""!==n[e]&&void 0!==n[e]?n[e]:void 0)}if("width"===e)return window.innerWidth+"px";if("height"===e)return window.innerHeight+"px"}}function N(t){return t.currentStyle||document.defaultView.getComputedStyle(t)}function L(t){return t.offsetWidth}function S(t){return(0,$.hasCaptionProblem)()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName?t.offsetHeight+t.firstChild.offsetHeight:t.offsetHeight}function B(t){return t.clientHeight||t.innerHeight}function k(t){return t.clientWidth||t.innerWidth}function Q(t,e,n){window.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function j(t,e,n){window.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function _(t){if(t.selectionStart)return t.selectionStart;if(document.selection){t.focus();var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange(),o=n.duplicate();return n.moveToBookmark(e.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function U(t){if(t.selectionEnd)return t.selectionEnd;if(document.selection){var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange();return n.text.indexOf(e.text)+e.text.length}return 0}function R(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(t=document.selection.createRange().text),t}function Y(t,e,n){if(void 0===n&&(n=e),t.setSelectionRange){t.focus();try{t.setSelectionRange(e,n)}catch(r){var o=t.parentNode,i=o.style.display;o.style.display="block",t.setSelectionRange(e,n),o.style.display=i}}else if(t.createTextRange){var r=t.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r.select()}}function O(){var t=document.createElement("div");t.style.height="200px",t.style.width="100%";var e=document.createElement("div");e.style.boxSizing="content-box",e.style.height="150px",e.style.left="0px",e.style.overflow="hidden",e.style.position="absolute",e.style.top="0px",e.style.width="200px",e.style.visibility="hidden",e.appendChild(t),(document.body||document.documentElement).appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return n==o&&(o=e.clientWidth),(document.body||document.documentElement).removeChild(e),n-o}function H(){return void 0===ot&&(ot=O()),ot}function z(t){return t.offsetWidth!==t.clientWidth}function F(t){return t.offsetHeight!==t.clientHeight}function P(t,e,n){(0,q.isIE8)()||(0,q.isIE9)()?(t.style.top=n,t.style.left=e):(0,q.isSafari)()?t.style["-webkit-transform"]="translate3d("+e+","+n+",0)":t.style.transform="translate3d("+e+","+n+",0)"}function V(t){var e;return t.style.transform&&""!==(e=t.style.transform)?["transform",e]:t.style["-webkit-transform"]&&""!==(e=t.style["-webkit-transform"])?["-webkit-transform",e]:-1}function G(t){t.style.transform&&""!==t.style.transform?t.style.transform="":t.style["-webkit-transform"]&&""!==t.style["-webkit-transform"]&&(t.style["-webkit-transform"]="")}function W(t){var e=["INPUT","SELECT","TEXTAREA"];return t&&(e.indexOf(t.nodeName)>-1||"true"===t.contentEditable)}function J(t){return W(t)&&t.className.indexOf("handsontableInput")==-1&&t.className.indexOf("copyPaste")==-1}e.__esModule=!0,e.HTML_CHARACTERS=void 0,e.getParent=o,e.closest=i,e.closestDown=r,e.isChildOf=a,e.isChildOfWebComponentTable=s,e.polymerWrap=l,e.polymerUnwrap=u,e.index=c,e.overlayContainsElement=d,e.hasClass=h,e.addClass=f,e.removeClass=g,e.removeTextNodes=p,e.empty=M,e.fastInnerHTML=y,e.fastInnerText=m,e.isVisible=w,e.offset=v,e.getWindowScrollTop=b,e.getWindowScrollLeft=C,e.getScrollTop=E,e.getScrollLeft=T,e.getScrollableElement=I,e.getTrimmingContainer=x,e.getStyle=D,e.getComputedStyle=N,e.outerWidth=L,e.outerHeight=S,e.innerHeight=B,e.innerWidth=k,e.addEvent=Q,e.removeEvent=j,e.getCaretPosition=_,e.getSelectionEndPosition=U,e.getSelectionText=R,e.setCaretPosition=Y,e.getScrollbarWidth=H,e.hasVerticalScrollbar=z,e.hasHorizontalScrollbar=F,e.setOverlayPosition=P,e.getCssTransform=V,e.resetCssTransform=G,e.isInput=W,e.isOutsideInput=J;var X,Z,K,q=n(25),$=n(34),tt=!!document.documentElement.classList;if(tt){var et=function(){var t=document.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")}();X=function(t,e){return""!==e&&t.classList.contains(e)},Z=function(t,e){var n=0;if("string"==typeof e&&(e=e.split(" ")),e=A(e),et)t.classList.add.apply(t.classList,e);else for(;e&&e[n];)t.classList.add(e[n]),n++},K=function(t,e){var n=0;if("string"==typeof e&&(e=e.split(" ")),e=A(e),et)t.classList.remove.apply(t.classList,e);else for(;e&&e[n];)t.classList.remove(e[n]),n++}}else{var nt=function(t){return new RegExp("(\\s|^)"+t+"(\\s|$)")};X=function(t,e){return!!t.className.match(nt(e))},Z=function(t,e){var n=0,o=t.className;if("string"==typeof e&&(e=e.split(" ")),""===o)o=e.join(" ");else for(;e&&e[n];)nt(e[n]).test(o)||(o+=" "+e[n]),n++;t.className=o},K=function(t,e){var n=0,o=t.className;for("string"==typeof e&&(e=e.split(" "));e&&e[n];)o=o.replace(nt(e[n])," ").trim(),n++;t.className!==o&&(t.className=o)}}var ot,it=e.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,rt=!!document.createTextNode("test").textContent},function(t,e,n){"use strict";function o(t){for(var e=0,n=t.length;ee?t:e},Array.isArray(t)?t[0]:void 0)}function A(t){return a(t,function(t,e){return t1?e-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:"value",i="_"+n,r=(e={_touched:!1},o(e,i,t),o(e,"isTouched",function(){return this._touched}),e);return Object.defineProperty(r,n,{get:function(){return this[i]},set:function(t){this._touched=!0,this[i]=t},enumerable:!0,configurable:!0}),r}function y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.__esModule=!0;var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.duckSchema=i,e.inherit=r,e.extend=a,e.deepExtend=s,e.deepClone=l,e.clone=u,e.mixin=c,e.isObjectEquals=d,e.isObject=A,e.defineGetter=h,e.objectEach=f,e.getProperty=g,e.deepObjectSize=p,e.createObjectPropListener=M,e.hasOwnProperty=y;var w=n(1)},function(t,e,n){var o=n(13),i=n(44),r=n(32),a=n(33),s=n(29),l="prototype",u=function(t,e,n){var c,d,A,h,f=t&u.F,g=t&u.G,p=t&u.S,M=t&u.P,y=t&u.B,m=g?o:p?o[e]||(o[e]={}):(o[e]||{})[l],w=g?i:i[e]||(i[e]={}),v=w[l]||(w[l]={});g&&(n=e);for(c in n)d=!f&&m&&void 0!==m[c],A=(d?m:n)[c],h=y&&d?s(A,o):M&&"function"==typeof A?s(Function.call,A):A,m&&a(m,c,A,t&u.U),w[c]!=A&&r(w,c,h),M&&v[c]!=A&&(v[c]=A)};o.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){var n="HOT-TABLE",o=void 0,i=void 0,r=void 0,a=void 0,c=void 0,A=void 0;if(e.isTargetWebComponent=!1,e.realTarget=e.target,A=e.stopImmediatePropagation,e.stopImmediatePropagation=function(){A.apply(this),(0,u.stopImmediatePropagation)(this)},!d.isHotTableEnv)return e;for(e=(0,s.polymerWrap)(e),c=e.path?e.path.length:0;c--;){if(e.path[c].nodeName===n)o=!0;else if(o&&e.path[c].shadowRoot){a=e.path[c];break}0!==c||a||(a=e.path[c])}return a||(a=e.target),e.isTargetWebComponent=!0,(0,l.isWebComponentSupportedNatively)()?e.realTarget=e.srcElement||e.toElement:(t instanceof Core||t instanceof Walkontable)&&(t instanceof Core?i=t.view?t.view.wt.wtTable.TABLE:null:t instanceof Walkontable&&(i=t.wtTable.TABLE.parentNode.parentNode),r=(0,s.closest)(e.target,[n],i),r?e.realTarget=i.querySelector(n)||e.target:e.realTarget=e.target),Object.defineProperty(e,"target",{get:function(){return(0,s.polymerWrap)(a)},enumerable:!0,configurable:!0}),e}function r(){return c}e.__esModule=!0;var a=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;o(this,t),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}return a(t,[{key:"addEventListener",value:function(t,e,n){function o(t){t=i(a,t),n.call(this,t)}var r=this,a=this.context;return this.context.eventListeners.push({element:t,event:e,callback:n,callbackProxy:o}),window.addEventListener?t.addEventListener(e,o,!1):t.attachEvent("on"+e,o),c++,function(){r.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){for(var o=this.context.eventListeners.length,i=void 0;o--;)if(i=this.context.eventListeners[o],i.event==e&&i.element==t){if(n&&n!=i.callback)continue;this.context.eventListeners.splice(o,1),i.element.removeEventListener?i.element.removeEventListener(i.event,i.callbackProxy,!1):i.element.detachEvent("on"+i.event,i.callbackProxy),c--}}},{key:"clearEvents",value:function(){if(this.context)for(var t=this.context.eventListeners.length;t--;){var e=this.context.eventListeners[t];e&&this.removeEventListener(e.element,e.event,e.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(t,e){var n,o={bubbles:!0,cancelable:"mousemove"!==e,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents"),n.initMouseEvent(e,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode)):n=document.createEventObject(),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent("on"+e,n)}}]),t}();e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){t=(0,d.toUpperCaseFirst)(t),u.default.getSingleton().add("construct",function(){var n=void 0;A.has(this)||A.set(this,{}),n=A.get(this),n[t]||(n[t]=new e(this))}),u.default.getSingleton().add("afterDestroy",function(){if(A.has(this)){var t=A.get(this);(0,c.objectEach)(t,function(t){return t.destroy()}),A.delete(this)}})}function r(t,e){if("string"!=typeof e)throw Error('Only strings can be passed as "plugin" parameter'); +var n=(0,d.toUpperCaseFirst)(e);if(A.has(t)&&A.get(t)[n])return A.get(t)[n]}function a(t){return A.has(t)?Object.keys(A.get(t)):[]}function s(t,e){var n=null;return A.has(t)&&(0,c.objectEach)(A.get(t),function(t,o){t===e&&(n=o)}),n}e.__esModule=!0,e.getPluginName=e.getRegistredPluginNames=e.getPlugin=e.registerPlugin=void 0;var l=n(8),u=o(l),c=n(2),d=n(27),A=new WeakMap;e.registerPlugin=i,e.getPlugin=r,e.getRegistredPluginNames=a,e.getPluginName=s},function(t,e,n){"use strict";function o(t){var e="undefined"==typeof t?"undefined":s(t);return"number"==e?!isNaN(t)&&isFinite(t):"string"==e?!!t.length&&(1==t.length?/\d/.test(t):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(t)):"object"==e&&!(!t||"number"!=typeof t.valueOf()||t instanceof Date)}function i(t,e,n){var o=-1;for("function"==typeof e?(n=e,e=t):o=t-1;++o<=e&&n(o)!==!1;);}function r(t,e,n){var o=t+1;for("function"==typeof e&&(n=e,e=0);--o>=e&&n(o)!==!1;);}function a(t,e){return e=parseInt(e.toString().replace("%",""),10),e=parseInt(t*e/100,10)}e.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isNumeric=o,e.rangeEach=i,e.rangeEachReverse=r,e.valueAccordingPercent=a},function(t,e,n){"use strict";function o(t){t.isImmediatePropagationEnabled=!1,t.cancelBubble=!0}function i(t){return t.isImmediatePropagationEnabled===!1}function r(t){"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function a(t){return t.pageX?t.pageX:t.clientX+(0,c.getWindowScrollLeft)()}function s(t){return t.pageY?t.pageY:t.clientY+(0,c.getWindowScrollTop)()}function l(t){return 2===t.button}function u(t){return 0===t.button}e.__esModule=!0,e.stopImmediatePropagation=o,e.isImmediatePropagationStopped=i,e.stopPropagation=r,e.pageX=a,e.pageY=s,e.isRightClick=l,e.isLeftClick=u;var c=n(0)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return t?(t.pluginHookBucket||(t.pluginHookBucket=this.createEmptyBucket()),t.pluginHookBucket):this.globalBucket}},{key:"add",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(e))(0,r.arrayEach)(e,function(e){return n.add(t,e,o)});else{var i=this.getBucket(o);if("undefined"==typeof i[t]&&(this.register(t),i[t]=[]),e.skip=!1,i[t].indexOf(e)===-1){var a=!1;e.initialHook&&(0,r.arrayEach)(i[t],function(n,o){if(n.initialHook)return i[t][o]=e,a=!0,!1}),a||i[t].push(e)}}return this}},{key:"once",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(e)?(0,r.arrayEach)(e,function(e){return n.once(t,e,o)}):(e.runOnce=!0,this.add(t,e,o))}},{key:"remove",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return"undefined"!=typeof o[t]&&o[t].indexOf(e)>=0&&(e.skip=!0,!0)}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(e);return!(void 0===n[t]||!n[t].length)}},{key:"run",value:function(t,e,n,o,i,r,a,s){var l=this.globalBucket[e],u=-1,c=l?l.length:0;if(c)for(;++u0&&void 0!==arguments[0]?arguments[0]:null;(0,a.objectEach)(this.getBucket(t),function(t,e,n){return n[e].length=0})}},{key:"register",value:function(t){this.isRegistered(t)||s.push(t)}},{key:"deregister",value:function(t){this.isRegistered(t)&&s.splice(s.indexOf(t),1)}},{key:"isRegistered",value:function(t){return s.indexOf(t)>=0}},{key:"getRegistered",value:function(){return s}}]),t}(),u=new l;e.default=l},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"==typeof t)return t;if(!E(t))throw Error('No registered renderer found under "'+t+'" name');return C(t)}e.__esModule=!0,e.getRegisteredRenderers=e.getRegisteredRendererNames=e.hasRenderer=e.getRenderer=e.registerRenderer=void 0;var r=n(51),a=o(r),s=n(260),l=o(s),u=n(261),c=o(u),d=n(262),A=o(d),h=n(263),f=o(h),g=n(264),p=o(g),M=n(265),y=o(M),m=n(266),w=o(m),v=(0,a.default)("renderers"),b=v.register,C=v.getItem,E=v.hasItem,T=v.getNames,I=v.getValues;b("base",l.default),b("autocomplete",c.default),b("checkbox",A.default),b("html",f.default),b("numeric",p.default),b("password",y.default),b("text",w.default),e.registerRenderer=b,e.getRenderer=i,e.hasRenderer=E,e.getRegisteredRendererNames=T,e.getRegisteredRenderers=I},function(t,e,n){var o=n(82)("wks"),i=n(49),r=n(13).Symbol,a="function"==typeof r,s=t.exports=function(t){return o[t]||(o[t]=a&&r[t]||(a?r:i)("Symbol."+t))};s.store=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Viewport=e.TableRenderer=e.Table=e.Settings=e.Selection=e.Scroll=e.Overlays=e.Event=e.Core=e.default=e.Border=e.TopLeftCornerOverlay=e.TopOverlay=e.LeftOverlay=e.DebugOverlay=e.RowFilter=e.ColumnFilter=e.CellRange=e.CellCoords=e.ViewportRowsCalculator=e.ViewportColumnsCalculator=void 0,n(96),n(113),n(122),n(123),n(107),n(121),n(104),n(105),n(106),n(95),n(118),n(116),n(114),n(119),n(120),n(115),n(117),n(108),n(109),n(110),n(112),n(111),n(93),n(94),n(89),n(92),n(91),n(90),n(68),n(98),n(99),n(101),n(100),n(97),n(103),n(102),n(124),n(127),n(125),n(126),n(129),n(128),n(131),n(130);var i=n(135),r=o(i),a=n(136),s=o(a),l=n(42),u=o(l),c=n(69),d=o(c),A=n(139),h=o(A),f=n(140),g=o(f),p=n(185),M=o(p),y=n(186),m=o(y),w=n(187),v=o(w),b=n(188),C=o(b),E=n(134),T=o(E),I=n(137),x=o(I),D=n(138),N=o(D),L=n(141),S=o(L),B=n(142),k=o(B),Q=n(189),j=o(Q),_=n(143),U=o(_),R=n(144),Y=o(R),O=n(145),H=o(O),z=n(146),F=o(z);e.ViewportColumnsCalculator=r.default,e.ViewportRowsCalculator=s.default,e.CellCoords=u.default,e.CellRange=d.default,e.ColumnFilter=h.default,e.RowFilter=g.default,e.DebugOverlay=M.default,e.LeftOverlay=m.default,e.TopOverlay=v.default,e.TopLeftCornerOverlay=C.default,e.Border=T.default,e.default=x.default,e.Core=x.default,e.Event=N.default,e.Overlays=S.default,e.Scroll=k.default,e.Selection=j.default,e.Settings=U.default,e.Table=Y.default,e.TableRenderer=H.default,e.Viewport=F.default},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n=0&&c.splice(c.indexOf(this.pluginName),1),c.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(t,e){u.get(this).hooks[t]=u.get(this).hooks[t]||[];var n=u.get(this).hooks[t];this.hot.addHook(t,e),n.push(e),u.get(this).hooks[t]=n}},{key:"removeHooks",value:function(t){var e=this;(0,a.arrayEach)(u.get(this).hooks[t]||[],function(n){e.hot.removeHook(t,n)})}},{key:"clearHooks",value:function(){var t=this,e=u.get(this).hooks;(0,r.objectEach)(e,function(e,n){return t.removeHooks(n)}),e.length=0}},{key:"callOnPluginsReady",value:function(t){this.isPluginsReady?t():this.pluginsInitializedCallbacks.push(t)}},{key:"onAfterPluginsInitialized",value:function(){(0,a.arrayEach)(this.pluginsInitializedCallbacks,function(t){return t()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var t=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,r.objectEach)(this,function(e,n){"hot"!==n&&"t"!==n&&(t[n]=null)}),delete this.t,delete this.hot}}]),t}();e.default=d},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){var e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(t){return t.guid in e||(e[t.guid]=new n(t)),e[t.guid]},d.default.getSingleton().add("afterDestroy",function(){e={}})}function r(t,e){var n=void 0;if("function"==typeof t)Q.get(t)||s(null,t),n=Q.get(t);else{if("string"!=typeof t)throw Error('Only strings and functions can be passed as "editor" parameter');n=U(t)}if(!n)throw Error('No editor registered under name "'+t+'"');return n.getInstance(e)}function a(t){if(!R(t))throw Error('No registered editor found under "'+t+'" name');return U(t).getConstructor()}function s(t,e){var n=new i(e);"string"==typeof t&&_(t,n),Q.set(e,n)}e.__esModule=!0,e.getRegisteredEditors=e.getRegisteredEditorNames=e.hasEditor=e.getEditorInstance=e.getEditor=e.registerEditor=void 0,e.RegisteredEditor=i,e._getEditorInstance=r;var l=n(51),u=o(l),c=n(8),d=o(c),A=n(36),h=o(A),f=n(147),g=o(f),p=n(202),M=o(p),y=n(203),m=o(y),w=n(204),v=o(w),b=n(148),C=o(b),E=n(205),T=o(E),I=n(206),x=o(I),D=n(207),N=o(D),L=n(208),S=o(L),B=n(43),k=o(B),Q=new WeakMap,j=(0,u.default)("editors"),_=j.register,U=j.getItem,R=j.hasItem,Y=j.getNames,O=j.getValues;s("base",h.default),s("autocomplete",g.default),s("checkbox",M.default),s("date",m.default),s("dropdown",v.default),s("handsontable",C.default),s("mobile",T.default),s("numeric",x.default),s("password",N.default),s("select",S.default),s("text",k.default),e.registerEditor=s,e.getEditor=a,e.getEditorInstance=r,e.hasEditor=R,e.getRegisteredEditorNames=Y,e.getRegisteredEditors=O},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";function o(t){return 32==t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}function i(t){var e=[l.ARROW_DOWN,l.ARROW_UP,l.ARROW_LEFT,l.ARROW_RIGHT,l.HOME,l.END,l.DELETE,l.BACKSPACE,l.F1,l.F2,l.F3,l.F4,l.F5,l.F6,l.F7,l.F8,l.F9,l.F10,l.F11,l.F12,l.TAB,l.PAGE_DOWN,l.PAGE_UP,l.ENTER,l.ESCAPE,l.SHIFT,l.CAPS_LOCK,l.ALT];return e.indexOf(t)!==-1}function r(t){return[l.CONTROL_LEFT,224,l.COMMAND_LEFT,l.COMMAND_RIGHT].indexOf(t)!==-1}function a(t,e){var n=e.split("|"),o=!1;return(0,s.arrayEach)(n,function(e){if(t===l[e])return o=!0,!1}),o}e.__esModule=!0,e.KEY_CODES=void 0,e.isPrintableChar=o,e.isMetaKey=i,e.isCtrlKey=r,e.isKey=a;var s=n(1),l=e.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},function(t,e,n){"use strict";function o(t){return{start:t.getTopLeftCorner(),end:t.getBottomRightCorner()}}function i(t){return(0,b.hasClass)(t,"htSeparator")}function r(t){return(0,b.hasClass)(t,"htSubmenu")}function a(t){return(0,b.hasClass)(t,"htDisabled")}function s(t){return(0,b.hasClass)(t,"htSelectionDisabled")}function l(t){var e=t.getSelected();return e?e[0]<0?null:e:null}function u(t,e){return t.indexOf(e)!=-1?t:(t=t.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),t+=" "+e)}function c(t,e){return t.indexOf(e)!=-1?t:(t=t.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),t+=" "+e)}function d(t,e){for(var n={},o=t.from.row;o<=t.to.row;o++)for(var i=t.from.col;i<=t.to.col;i++)n[o]||(n[o]=[]),n[o][i]=e(o,i);return n}function A(t,e,n,o,i){if(t.from.row==t.to.row&&t.from.col==t.to.col)h(t.from.row,t.from.col,e,n,o,i);else for(var r=t.from.row;r<=t.to.row;r++)for(var a=t.from.col;a<=t.to.col;a++)h(r,a,e,n,o,i)}function h(t,e,n,o,i,r){var a=i(t,e),s=o;a.className&&(s="vertical"===n?u(a.className,o):c(a.className,o)),r(t,e,"className",s)}function f(t,e){var n=!1;return t&&t.forAll(function(t,o){if(e(t,o))return n=!0,!1}),n}function g(t){return''+String.fromCharCode(10003)+""+t}function p(t,e){return!t.hidden||!("function"==typeof t.hidden&&t.hidden.call(e))}function M(t,e){for(var n=t.slice(0),o=0;o0?e[e.length-1].name!==t.name&&e.push(t):e.push(t)}),e}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.KEY,n=t.slice(0);return n=M(n,e),n=y(n,e),n=m(n)}e.__esModule=!0,e.normalizeSelection=o,e.isSeparator=i,e.hasSubMenu=r,e.isDisabled=a,e.isSelectionDisabled=s,e.getValidSelection=l,e.prepareVerticalAlignClass=u,e.prepareHorizontalAlignClass=c,e.getAlignmentClasses=d,e.align=A,e.checkSelectionConsistency=f,e.markLabelAsSelected=g,e.isItemHidden=p,e.filterSeparators=w;var v=n(1),b=n(0),C=n(70)},function(t,e,n){var o=n(15);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var o=n(18),i=n(160),r=n(85),a=Object.defineProperty;e.f=n(21)?Object.defineProperty:function(t,e,n){if(o(t),e=r(e,!0),o(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";function o(t){var e=void 0;switch("undefined"==typeof t?"undefined":l(t)){case"string":case"number":e=""+t;break;case"object":e=null===t?"":t.toString();break;case"undefined":e="";break;default:e=t.toString()}return e}function i(t){return"undefined"!=typeof t}function r(t){return"undefined"==typeof t}function a(t){return null===t||""===t||r(t)}function s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}e.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.stringify=o,e.isDefined=i,e.isUndefined=r,e.isEmpty=a,e.isRegExp=s},function(t,e,n){t.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(76),i=n(30);t.exports=function(t){return o(i(t))}},function(t,e,n){var o=n(61),i=Math.min;t.exports=function(t){return t>0?i(o(t),9007199254740991):0}},function(t,e,n){"use strict";function o(){return l}function i(){return u}function r(){return c}function a(){return d}function s(t){return t||(t=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)}e.__esModule=!0,e.isIE8=o,e.isIE9=i,e.isSafari=r,e.isChrome=a,e.isMobileBrowser=s;var l=!document.createTextNode("test").textContent,u=!!document.documentMode,c=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),d=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"==typeof t)return t;if(!y(t))throw Error('No registered validator found under "'+t+'" name');return M(t)}e.__esModule=!0,e.getRegisteredValidators=e.getRegisteredValidatorNames=e.hasValidator=e.getValidator=e.registerValidator=void 0;var r=n(51),a=o(r),s=n(271),l=o(s),u=n(272),c=o(u),d=n(273),A=o(d),h=n(274),f=o(h),g=(0,a.default)("validators"),p=g.register,M=g.getItem,y=g.hasItem,m=g.getNames,w=g.getValues;p("autocomplete",l.default),p("date",c.default),p("numeric",A.default),p("time",f.default),e.registerValidator=p,e.getValidator=i,e.hasValidator=y,e.getRegisteredValidatorNames=m,e.getRegisteredValidators=w},function(t,e,n){"use strict";function o(t){return t[0].toUpperCase()+t.substr(1)}function i(){for(var t=[],e=arguments.length,n=Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return(""+t).replace(/(?:\\)?\[([^[\]]+)]/g,function(t,n){return"\\"===t.charAt(0)?t.substr(1,t.length-1):void 0===e[n]?"":e[n]})}function l(t){return t+="",t.replace(c,"")}e.__esModule=!0,e.toUpperCaseFirst=o,e.equalsIgnoreCase=i,e.randomString=r,e.isPercentValue=a,e.substitute=s,e.stripTags=l;var u=n(20),c=(n(6),/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],e=this.shouldBeRendered();this.clone&&(this.needFullRender||e)&&this.clone.draw(t),this.needFullRender=e}},{key:"reset",value:function(){if(this.clone){var t=this.clone.wtTable.holder,e=this.clone.wtTable.hider,n=t.style,o=e.style,i=t.parentNode.style;(0,l.arrayEach)([n,o,i],function(t){t.width="",t.height=""})}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),t}();e.default=f},function(t,e,n){var o=n(71);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,i){return t.call(e,n,o,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var o=n(19),i=n(40);t.exports=n(21)?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(13),i=n(32),r=n(22),a=n(49)("src"),s="toString",l=Function[s],u=(""+l).split(s);n(44).inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(r(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(r(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===o?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||l.call(this)})},function(t,e,n){"use strict";function o(t){return h.call(window,t)}function i(t){f.call(window,t)}function r(){return"ontouchstart"in window}function a(){var t=document.createElement("div");return!(!t.createShadowRoot||!t.createShadowRoot.toString().match(/\[native code\]/))}function s(){var t=document.createElement("TABLE");t.style.borderSpacing=0,t.style.borderWidth=0,t.style.padding=0;var e=document.createElement("TBODY");t.appendChild(e),e.appendChild(document.createElement("TR")),e.firstChild.appendChild(document.createElement("TD")),e.firstChild.firstChild.innerHTML="t
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding=0,n.style.margin=0,t.insertBefore(n,e),document.body.appendChild(t),p=t.offsetHeight<2*t.lastChild.offsetHeight,document.body.removeChild(t)}function l(){return void 0===p&&s(),p}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return M?M:M="object"===("undefined"==typeof Intl?"undefined":c(Intl))?new Intl.Collator(t,e).compare:"function"==typeof String.prototype.localeCompare?function(t,e){return(""+t).localeCompare(e)}:function(t,e){return t===e?0:t>e?-1:1}}e.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.requestAnimationFrame=o,e.cancelAnimationFrame=i,e.isTouchSupported=r,e.isWebComponentSupportedNatively=a,e.hasCaptionProblem=l,e.getComparisonFunction=u;for(var d=0,A=["ms","moz","webkit","o"],h=window.requestAnimationFrame,f=window.cancelAnimationFrame,g=0;g1&&void 0!==arguments[1]?arguments[1]:200,o=0,i={lastCallThrottled:!0},r=null;return e}function r(t){function e(){s=r}function n(){return s?(s--,t.apply(this,arguments)):a.apply(this,arguments)}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=i(t,o),s=r;return n.clearHits=e,n}function a(t){function e(){var e=this,r=arguments;return o&&clearTimeout(o),o=setTimeout(function(){i=t.apply(e,r)},n),i}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null,i=void 0;return e}function s(){for(var t=arguments.length,e=Array(t),n=0;n1?e-1:0),o=1;o=n?t.apply(this,s):e(s)}}var n=t.length;return e([])}function c(t){function e(o){return function(){for(var i=arguments.length,r=Array(i),a=0;a=n?t.apply(this,s):e(s)}}var n=t.length;return e([])}e.__esModule=!0,e.isFunction=o,e.throttle=i,e.throttleAfterHits=r,e.debounce=a,e.pipe=s,e.partial=l,e.curry=u,e.curryRight=c;var d=n(1)},function(t,e,n){"use strict";function o(t){this.instance=t,this.state=a.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}e.__esModule=!0,e.EditorState=void 0;var i=n(11),r=n(20),a=e.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};o.prototype._fireCallbacks=function(t){this._closeCallback&&(this._closeCallback(t),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(t){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented")},o.prototype.prepare=function(t,e,n,o,i,r){this.TD=o,this.row=t,this.col=e,this.prop=n,this.originalValue=i,this.cellProperties=r;var s=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body&&!s?document.activeElement.blur():s&&document.body.focus(),this.state=a.VIRGIN},o.prototype.extend=function(){function t(){n.apply(this,arguments)}function e(t,e){function n(){}return n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t}var n=this.constructor;return e(t,n)},o.prototype.saveValue=function(t,e){var n=void 0,o=void 0;e?(n=this.instance.getSelected(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],t,n[2],n[3],"edit")},o.prototype.beginEditing=function(t,e){this.state==a.VIRGIN&&(this.instance.view.scrollViewport(new i.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=a.EDITING,t="string"==typeof t?t:this.originalValue,this.setValue((0,r.stringify)(t)),this.open(e),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},o.prototype.finishEditing=function(t,e,n){ +var o,i=this;if(n){var r=this._closeCallback;this._closeCallback=function(t){r&&r(t),n(t),i.instance.view.render()}}if(!this.isWaiting()){if(this.state==a.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){i._fireCallbacks(!0)},0));if(this.state==a.EDITING){if(t)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=a.WAITING,this.saveValue(o,e),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(t){i.state=a.FINISHED,i.discardEditor(t)}):(this.state=a.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=a.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(t){this.state===a.FINISHED&&(t===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=a.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=a.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===a.WAITING},o.prototype.checkEditorSection=function(){var t=this.instance.countRows(),e="";return this.row=t-this.instance.getSettings().fixedRowsBottom?e=this.col=t.getSetting("totalRows")||this.col>=t.getSetting("totalColumns"))}},{key:"isEqual",value:function(t){return t===this||this.row===t.row&&this.col===t.col}},{key:"isSouthEastOf",value:function(t){return this.row>=t.row&&this.col>=t.col}},{key:"isNorthWestOf",value:function(t){return this.row<=t.row&&this.col<=t.col}},{key:"isSouthWestOf",value:function(t){return this.row>=t.row&&this.col<=t.col}},{key:"isNorthEastOf",value:function(t){return this.row<=t.row&&this.col>=t.col}}]),t}();e.default=r},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(0),r=n(183),a=o(r),s=n(36),l=o(s),u=n(4),c=o(u),d=n(16),A=n(7),h=l.default.prototype.extend();h.prototype.init=function(){var t=this;this.createElements(),this.eventManager=new c.default(this),this.bindEvents(),this.autoResize=(0,a.default)(),this.instance.addHook("afterDestroy",function(){t.destroy()})},h.prototype.getValue=function(){return this.TEXTAREA.value},h.prototype.setValue=function(t){this.TEXTAREA.value=t};var f=function(t){var e,n=this,o=n.getActiveEditor();if(e=(t.ctrlKey||t.metaKey)&&!t.altKey,t.target===o.TEXTAREA&&!(0,A.isImmediatePropagationStopped)(t)){if(17===t.keyCode||224===t.keyCode||91===t.keyCode||93===t.keyCode)return void(0,A.stopImmediatePropagation)(t);switch(t.keyCode){case d.KEY_CODES.ARROW_RIGHT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(t.keyCode))&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(t.keyCode))&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.ARROW_UP:case d.KEY_CODES.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(t.keyCode))&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.ENTER:var r=o.instance.getSelected(),a=!(r[0]===r[2]&&r[1]===r[3]);if(e&&!a||t.altKey){if(o.isOpened()){var s=(0,i.getCaretPosition)(o.TEXTAREA),l=o.getValue(),u=l.slice(0,s)+"\n"+l.slice(s);o.setValue(u),(0,i.setCaretPosition)(o.TEXTAREA,s+1)}else o.beginEditing(o.originalValue+"\n");(0,A.stopImmediatePropagation)(t)}t.preventDefault();break;case d.KEY_CODES.A:case d.KEY_CODES.X:case d.KEY_CODES.C:case d.KEY_CODES.V:e&&(0,A.stopImmediatePropagation)(t);break;case d.KEY_CODES.BACKSPACE:case d.KEY_CODES.DELETE:case d.KEY_CODES.HOME:case d.KEY_CODES.END:(0,A.stopImmediatePropagation)(t)}[d.KEY_CODES.ARROW_UP,d.KEY_CODES.ARROW_RIGHT,d.KEY_CODES.ARROW_DOWN,d.KEY_CODES.ARROW_LEFT].indexOf(t.keyCode)===-1&&o.autoResize.resize(String.fromCharCode(t.keyCode))}};h.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",f)},h.prototype.close=function(t){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",f)},h.prototype.focus=function(){this.TEXTAREA.focus(),(0,i.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},h.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,i.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,i.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var t=this;this.instance._registerTimeout(setTimeout(function(){t.refreshDimensions()},0))},h.prototype.getEditedCell=function(){var t,e=this.checkEditorSection();switch(e){case"top":t=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":t=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":t=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":t=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":t=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:t=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return t!=-1&&t!=-2?t:void 0},h.prototype.refreshValue=function(){var t=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=t,this.setValue(t),this.refreshDimensions()},h.prototype.refreshDimensions=function(){if(this.state===s.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close(!0);var t,e=(0,i.offset)(this.TD),n=(0,i.offset)(this.instance.rootElement),o=(0,i.getScrollableElement)(this.TD),r=this.instance.countRows(),a=e.top===n.top?0:1,l=e.top-n.top-a-(o.scrollTop||0),u=e.left-n.left-1-(o.scrollLeft||0),c=this.instance.getSettings(),d=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),A=this.checkEditorSection(),h=this.TD.style.backgroundColor;switch(A){case"top":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(d&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===r-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1),t&&t!=-1?this.textareaParentStyle[t[0]]=t[1]:(0,i.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=u+"px";var f=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,g=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,p=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),M=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),y=(0,i.getScrollbarWidth)(),m=this.TD.offsetTop+f-M,w=this.TD.offsetLeft+g-p,v=(0,i.innerWidth)(this.TD)-8,b=(0,i.hasVerticalScrollbar)(o)?y:0,C=(0,i.hasHorizontalScrollbar)(o)?y:0,E=this.instance.view.maximumVisibleElementWidth(w)-9-b,T=this.TD.scrollHeight+1,I=Math.max(this.instance.view.maximumVisibleElementHeight(m)-C,23),x=(0,i.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=x.fontSize,this.TEXTAREA.style.fontFamily=x.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=h?h:(0,i.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(T,I),maxHeight:I,minWidth:Math.min(v,E),maxWidth:E},!0),this.textareaParentStyle.display="block"}},h.prototype.bindEvents=function(){var t=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(t){(0,A.stopPropagation)(t)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(t){(0,A.stopPropagation)(t)}),this.instance.addHook("afterScrollHorizontally",function(){t.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){t.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){t.refreshDimensions(),t.focus()}),this.instance.addHook("afterRowResize",function(){t.refreshDimensions(),t.focus()}),this.instance.addHook("afterDestroy",function(){t.eventManager.destroy()})},h.prototype.destroy=function(){this.eventManager.destroy()},e.default=h},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports={}},function(t,e,n){var o=n(49)("meta"),i=n(15),r=n(22),a=n(19).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(31)(function(){return l(Object.preventExtensions({}))}),c=function(t){a(t,o,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,o)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[o].i},A=function(t,e){if(!r(t,o)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[o].w},h=function(t){return u&&f.NEED&&l(t)&&!r(t,o)&&c(t),t},f=t.exports={KEY:o,NEED:!1,fastKey:d,getWeak:A,onFreeze:h}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var o=n(19).f,i=n(22),r=n(10)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,r)&&o(t,r,{configurable:!0,value:e})}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){var t={};return(0,w.objectEach)(Q,function(e,n){t[n]=e()}),t}function a(t,e){k.indexOf(t)===-1&&(Q[t]=e)}e.__esModule=!0,e.ITEMS=e.UNDO=e.SEPARATOR=e.ROW_BELOW=e.ROW_ABOVE=e.REMOVE_ROW=e.REMOVE_COLUMN=e.REDO=e.READ_ONLY=e.COLUMN_RIGHT=e.COLUMN_LEFT=e.CLEAR_COLUMN=e.ALIGNMENT=void 0;var s,l=n(223);Object.defineProperty(e,"ALIGNMENT",{enumerable:!0,get:function(){return l.KEY}});var u=n(224);Object.defineProperty(e,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=n(225);Object.defineProperty(e,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var d=n(226);Object.defineProperty(e,"COLUMN_RIGHT",{enumerable:!0,get:function(){return d.KEY}});var A=n(227);Object.defineProperty(e,"READ_ONLY",{enumerable:!0,get:function(){return A.KEY}});var h=n(228);Object.defineProperty(e,"REDO",{enumerable:!0,get:function(){return h.KEY}});var f=n(229);Object.defineProperty(e,"REMOVE_COLUMN",{enumerable:!0,get:function(){return f.KEY}});var g=n(230);Object.defineProperty(e,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var p=n(231);Object.defineProperty(e,"ROW_ABOVE",{enumerable:!0,get:function(){return p.KEY}});var M=n(232);Object.defineProperty(e,"ROW_BELOW",{enumerable:!0,get:function(){return M.KEY}});var y=n(70);Object.defineProperty(e,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var m=n(233);Object.defineProperty(e,"UNDO",{enumerable:!0,get:function(){return m.KEY}}),e.predefinedItems=r,e.addItem=a;var w=n(2),v=o(l),b=o(u),C=o(c),E=o(d),T=o(A),I=o(h),x=o(f),D=o(g),N=o(p),L=o(M),S=o(y),B=o(m),k=e.ITEMS=[p.KEY,M.KEY,c.KEY,d.KEY,u.KEY,g.KEY,f.KEY,m.KEY,h.KEY,A.KEY,l.KEY,y.KEY],Q=(s={},i(s,y.KEY,S.default),i(s,p.KEY,N.default),i(s,M.KEY,L.default),i(s,c.KEY,C.default),i(s,d.KEY,E.default),i(s,u.KEY,b.default),i(s,g.KEY,D.default),i(s,f.KEY,x.default),i(s,m.KEY,B.default),i(s,h.KEY,I.default),i(s,A.KEY,T.default),i(s,l.KEY,v.default),s)},function(t,e,n){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"common";r.has(s)||r.set(s,new Map);var l=r.get(s);return{register:t,getItem:e,hasItem:n,getNames:i,getValues:a}}e.__esModule=!0,e.default=i;var r=e.collection=new Map},function(t,e){t.exports=function(t,e,n,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var o=n(29),i=n(76),r=n(41),a=n(24),s=n(278);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,d=6==t,A=5==t||d,h=e||s;return function(e,s,f){for(var g,p,M=r(e),y=i(M),m=o(s,f,3),w=a(y.length),v=0,b=n?h(e,w):l?h(e,0):void 0;w>v;v++)if((A||v in y)&&(g=y[v],p=m(g,v,M),t))if(n)b[v]=p;else if(p)switch(t){case 3:return!0;case 5:return g;case 6:return v;case 2:b.push(g)}else if(c)return!1;return d?-1:u||c?c:b}}},function(t,e,n){"use strict";var o=n(13),i=n(3),r=n(33),a=n(59),s=n(46),l=n(56),u=n(52),c=n(15),d=n(31),A=n(77),h=n(48),f=n(281);t.exports=function(t,e,n,g,p,M){var y=o[t],m=y,w=p?"set":"add",v=m&&m.prototype,b={},C=function(t){var e=v[t];r(v,t,"delete"==t?function(t){return!(M&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(M&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return M&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof m&&(M||v.forEach&&!d(function(){(new m).entries().next()}))){var E=new m,T=E[w](M?{}:-0,1)!=E,I=d(function(){E.has(1)}),x=A(function(t){new m(t)}),D=!M&&d(function(){for(var t=new m,e=5;e--;)t[w](e,e);return!t.has(-0)});x||(m=e(function(e,n){u(e,m,t);var o=f(new y,e,m);return void 0!=n&&l(n,p,o[w],o),o}),m.prototype=v,v.constructor=m),(I||D)&&(C("delete"),C("has"),p&&C("get")),(D||T)&&C(w),M&&v.clear&&delete v.clear}else m=g.getConstructor(e,t,p,w),a(m.prototype,n),s.NEED=!0;return h(m,t),b[t]=m,i(i.G+i.W+i.F*(m!=y),b),M||g.setStrong(m,t,p),m}},function(t,e,n){"use strict";var o=n(32),i=n(33),r=n(31),a=n(30),s=n(10);t.exports=function(t,e,n){var l=s(t),u=n(a,l,""[t]),c=u[0],d=u[1];r(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,c),o(RegExp.prototype,l,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)}))}},function(t,e,n){var o=n(29),i=n(165),r=n(161),a=n(18),s=n(24),l=n(176),u={},c={},e=t.exports=function(t,e,n,d,A){var h,f,g,p,M=A?function(){return t}:l(t),y=o(n,d,e?2:1),m=0;if("function"!=typeof M)throw TypeError(t+" is not iterable!");if(r(M)){for(h=s(t.length);h>m;m++)if(p=e?y(a(f=t[m])[0],f[1]):y(t[m]),p===u||p===c)return p}else for(g=M.call(t);!(f=g.next()).done;)if(p=i(g,y,f.value,e),p===u||p===c)return p};e.BREAK=u,e.RETURN=c},function(t,e){t.exports=!1},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(33);t.exports=function(t,e,n){for(var i in e)o(t,i,e[i],n);return t}},function(t,e,n){var o=n(61),i=Math.max,r=Math.min;t.exports=function(t,e){return t=o(t),t<0?i(t+e,0):r(t,e)}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(e,n){e.exports=t},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if(!B(t))throw Error('You declared cell type "'+t+'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method');return S(t)}function r(t,e){var n=e.editor,o=e.renderer,i=e.validator;n&&(0,l.registerEditor)(t,n),o&&(0,u.registerRenderer)(t,o),i&&(0,c.registerValidator)(t,i),L(t,e)}e.__esModule=!0,e.getRegisteredCellTypes=e.getRegisteredCellTypeNames=e.hasCellType=e.getCellType=e.registerCellType=void 0;var a=n(51),s=o(a),l=n(14),u=n(9),c=n(26),d=n(190),A=o(d),h=n(191),f=o(h),g=n(192),p=o(g),M=n(193),y=o(M),m=n(194),w=o(m),v=n(195),b=o(v),C=n(196),E=o(C),T=n(197),I=o(T),x=n(198),D=o(x),N=(0,s.default)("cellTypes"),L=N.register,S=N.getItem,B=N.hasItem,k=N.getNames,Q=N.getValues;r("autocomplete",A.default),r("checkbox",f.default),r("date",p.default),r("dropdown",y.default),r("handsontable",w.default),r("numeric",b.default),r("password",E.default),r("text",I.default),r("time",D.default),e.registerCellType=r,e.getCellType=i,e.hasCellType=B,e.getRegisteredCellTypeNames=k,e.getRegisteredCellTypes=Q},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=0;a--)if(null===t[a])t.splice(a,1);else{var s=t[a][0],l=D.propToCol(t[a][1]),d=z.getCellMeta(s,l);if("numeric"===d.type&&"string"==typeof t[a][3]&&t[a][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(t[a][3])||d.format)){var f=t[a][3].length;(0,h.isUndefined)(d.language)?u.default.culture("en-US"):t[a][3].indexOf(".")===f-3&&t[a][3].indexOf(",")===-1?u.default.culture("en-US"):u.default.culture(d.language);var g=u.default.cultureData(u.default.culture());g.delimiters;u.default.validate(t[a][3])&&!isNaN(t[a][3])?t[a][3]=parseFloat(t[a][3]):t[a][3]=(0,u.default)().unformat(t[a][3])||t[a][3]}z.getCellValidator(d)&&(r.addValidatorToQueue(),z.validateCell(t[a][3],d,function(e,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");if(o===!1&&n.allowInvalid===!1){t.splice(e,1),n.valid=!0;var i=z.getCell(n.row,n.col);(0,c.removeClass)(i,z.getSettings().invalidCellClassName),--e}r.removeValidatorFormQueue()}}(a,d),e))}r.checkIfQueueIsEmpty()}function r(t,e){var n=t.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==t[n]){if(null!=t[n][2]||null!=t[n][3]){if(m.settings.allowInsertRow)for(;t[n][0]>z.countRows()-1;){var i=D.createRow(void 0,void 0,e);if(0===i){o=!0;break}}if(!o){if("array"===z.dataType&&(!m.settings.columns||0===m.settings.columns.length)&&m.settings.allowInsertColumn)for(;D.propToCol(t[n][1])>z.countCols()-1;)D.createCol(void 0,void 0,e);D.set(t[n][0],t[n][1],t[n][3])}}}else t.splice(n,1)}z.forceFullRender=!0,j.adjustRowsAndCols(),z.runHooks("beforeChangeRender",t,e),U.refreshBorders(null,!0),z.view.wt.wtOverlays.adjustElementsSize(),z.runHooks("afterChange",t,e||"edit");var r=z.getActiveEditor();r&&(0,h.isDefined)(r.refreshValue)&&r.refreshValue()}}function l(t,e,n){return"object"===("undefined"==typeof t?"undefined":s(t))?t:[[t,e,n]]}function g(t){if((0,v.hasOwnProperty)(t,"type")){var e,n={};"object"===s(t.type)?e=t.type:"string"==typeof t.type&&(e=(0,Y.getCellType)(t.type));for(var o in e)(0,v.hasOwnProperty)(e,o)&&!(0,v.hasOwnProperty)(t,o)&&(n[o]=e[o]);return n}}function M(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}var m,D,L,j,U,H,z=this,F=function(){},P=new w.default(z);(0,v.extend)(F.prototype,R.default.prototype),(0,v.extend)(F.prototype,e),(0,v.extend)(F.prototype,g(e)),this.rootElement=t,this.isHotTableEnv=(0,c.isChildOfWebComponentTable)(this.rootElement),w.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,t.insertBefore(this.container,t.firstChild),this.guid="ht_"+(0,I.randomString)();var V=(0,k.getTranslator)(z);L=new S.default(z),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),m={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new F,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},j={alter:function(t,e,n,o,r){function a(t,e,n,o){var r=function(){var t=void 0;return"array"===o?t=[]:"object"===o&&(t={}),t},a=(0,b.arrayMap)(new Array(n),function(){return r()});a.unshift(e,0),t.splice.apply(t,i(a))}var s;switch(n=n||1,t){case"insert_row":var l=z.countSourceRows();if(z.getSettings().maxRows===l)return;e=(0,h.isDefined)(e)?e:l,s=D.createRow(e,n,o),a(m.cellSettings,e,n,"array"),s&&(U.isSelected()&&m.selRange.from.row>=e?(m.selRange.from.row+=s,U.transformEnd(s,0)):U.refreshBorders());break;case"insert_col":s=D.createCol(e,n,o);for(var u=0,c=z.countSourceRows();u=e?(m.selRange.from.col+=s,U.transformEnd(0,s)):U.refreshBorders()}break;case"remove_row":D.removeRow(e,n,o),m.cellSettings.splice(e,n);var A=z.countRows(),f=z.getSettings().fixedRowsTop;f>=e+1&&(z.getSettings().fixedRowsTop-=Math.min(n,f-e));var g=z.getSettings().fixedRowsBottom;g&&e>=A-g&&(z.getSettings().fixedRowsBottom-=Math.min(n,g)),j.adjustRowsAndCols(),U.refreshBorders();break;case"remove_col":var p=V.toPhysicalColumn(e);D.removeCol(e,n,o);for(var M=0,y=z.countSourceRows();M=e+1&&(z.getSettings().fixedColumnsLeft-=Math.min(n,w-e)),Array.isArray(z.getSettings().colHeaders)&&("undefined"==typeof p&&(p=-1),z.getSettings().colHeaders.splice(p,n)),j.adjustRowsAndCols(),U.refreshBorders();break;default:throw new Error('There is no such action "'+t+'"')}r||j.adjustRowsAndCols()},adjustRowsAndCols:function(){if(m.settings.minRows){var t=z.countRows();if(tr-1?(l=r-1,s=!0,c>l&&(c=l)):c>r-1&&(c=r-1,s=!0,l>c&&(l=c)),u>a-1?(u=a-1,s=!0,d>u&&(d=u)):d>a-1&&(d=a-1,s=!0,u>d&&(u=d)),s&&z.selectCell(l,u,c,d)}z.view&&z.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(t,e,n,o,r,a,l){var u,c,d,A,f=[],g={};if(c=e.length,0===c)return!1;var p,M,y,w;({row:null===n?null:n.row,col:null===n?null:n.col});switch(r){case"shift_down":for(p=n?n.col-t.col+1:0,M=n?n.row-t.row+1:0,e=(0,B.translateRowsToColumns)(e),d=0,A=e.length,y=Math.max(A,p);d1&&void 0!==arguments[1]?arguments[1]:null,o=e[t%e.length];return null!==n?o[n%o.length]:o},k=e.length,Q=n?n.row-t.row+1:0;for(c=n?Q:Math.max(k,Q),u=0;un.row&&Q>k||!m.settings.allowInsertRow&&g.row>z.countRows()-1||g.row>=m.settings.maxRows);u++){var j=u-x,_=S(j).length,U=n?n.col-t.col+1:0;if(A=n?U:Math.max(_,U),g.col=t.col,L=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.autofill"!==o||!L.skipRowOnPaste){for(D=0,d=0;dn.col&&U>_||!m.settings.allowInsertColumn&&g.col>z.countCols()-1||g.col>=m.settings.maxCols);d++)if(L=z.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!L.skipColumnOnPaste)if(L.readOnly)g.col++;else{var R=d-D,Y=S(j,R),O=z.getDataAtCell(g.row,g.col),H={row:j,col:R};if("Autofill.fill"===o){var F=z.runHooks("beforeAutofillInsidePopulate",H,a,e,l,{},I);F&&(Y=(0,h.isUndefined)(F.value)?Y:F.value)}if(null!==Y&&"object"===("undefined"==typeof Y?"undefined":s(Y)))if(null===O||"object"!==("undefined"==typeof O?"undefined":s(O)))N=!1;else{var P=(0,v.duckSchema)(O[0]||O),V=(0,v.duckSchema)(Y[0]||Y);(0,v.isObjectEquals)(P,V)?Y=(0,v.deepClone)(Y):N=!1}else null!==O&&"object"===("undefined"==typeof O?"undefined":s(O))&&(N=!1);N&&f.push([g.row,g.col,Y]),N=!0,g.col++}else D++,g.col++,A++;g.row++}else x++,g.row++,c++}z.setDataAtCell(f,null,null,o||"populateFromArray")}}},this.selection=U={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];z.selection.selectedHeader.rows=t,z.selection.selectedHeader.cols=e,z.selection.selectedHeader.corner=n},begin:function(){z.selection.inProgress=!0},finish:function(){var t=z.getSelected();z.runHooks("afterSelectionEnd",t[0],t[1],t[2],t[3]),z.runHooks("afterSelectionEndByProp",t[0],z.colToProp(t[1]),t[2],z.colToProp(t[3])),z.selection.inProgress=!1},isInProgress:function(){return z.selection.inProgress},setRangeStart:function(t,e){z.runHooks("beforeSetRangeStart",t),m.selRange=new Q.CellRange(t,t,t),U.setRangeEnd(t,null,e)},setRangeStartOnly:function(t){z.runHooks("beforeSetRangeStartOnly",t),m.selRange=new Q.CellRange(t,t,t)},setRangeEnd:function(t,e,n){if(null!==m.selRange){var o,i=!1,r=!0,a=z.view.wt.wtTable.getFirstVisibleRow(),s=z.view.wt.wtTable.getFirstVisibleColumn(),l={row:null,col:null};z.runHooks("beforeSetRangeEnd",t),z.selection.begin(),l.row=t.row<0?a:t.row,l.col=t.col<0?s:t.col,m.selRange.to=new Q.CellCoords(l.row,l.col),m.settings.multiSelect||(m.selRange.from=t),z.view.wt.selections.current.clear(),o=z.getCellMeta(m.selRange.highlight.row,m.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(o===!1||Array.isArray(o)&&o.indexOf("current")===-1)&&z.view.wt.selections.current.add(m.selRange.highlight),z.view.wt.selections.area.clear(),(o===!1||Array.isArray(o)&&o.indexOf("area")===-1)&&U.isMultiple()&&(z.view.wt.selections.area.add(m.selRange.from),z.view.wt.selections.area.add(m.selRange.to)),(m.settings.currentHeaderClassName||m.settings.currentRowClassName||m.settings.currentColClassName)&&(z.view.wt.selections.highlight.clear(),z.view.wt.selections.highlight.add(m.selRange.from),z.view.wt.selections.highlight.add(m.selRange.to));var u=(0,v.createObjectPropListener)("value");z.runHooks("afterSelection",m.selRange.from.row,m.selRange.from.col,m.selRange.to.row,m.selRange.to.col,u),z.runHooks("afterSelectionByProp",m.selRange.from.row,D.colToProp(m.selRange.from.col),m.selRange.to.row,D.colToProp(m.selRange.to.col),u),(0===m.selRange.from.row&&m.selRange.to.row===z.countRows()-1&&z.countRows()>1||0===m.selRange.from.col&&m.selRange.to.col===z.countCols()-1&&z.countCols()>1)&&(i=!0),(t.row<0||t.col<0)&&(r=!1),u.isTouched()&&(e=!u.value),e!==!1&&!i&&r&&(m.selRange.from&&!U.isMultiple()?z.view.scrollViewport(m.selRange.from):z.view.scrollViewport(t)),U.selectedHeader.rows&&U.selectedHeader.cols?(0,c.addClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]):U.selectedHeader.rows?((0,c.removeClass)(z.rootElement,"ht__selection--columns"),(0,c.addClass)(z.rootElement,"ht__selection--rows")):U.selectedHeader.cols?((0,c.removeClass)(z.rootElement,"ht__selection--rows"),(0,c.addClass)(z.rootElement,"ht__selection--columns")):(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),U.refreshBorders(null,n)}},refreshBorders:function(t,e){e||H.destroyEditor(t),z.view.render(),U.isSelected()&&!e&&H.prepareEditor()},isMultiple:function t(){var t=!(m.selRange.to.col===m.selRange.from.col&&m.selRange.to.row===m.selRange.from.row),e=z.runHooks("afterIsMultipleSelection",t);if(t)return e},transformStart:function(t,e,n,o){var i,r,a,s,l=new Q.CellCoords(t,e),u=0,c=0;z.runHooks("modifyTransformStart",l),i=z.countRows(),r=z.countCols(),s=z.getSettings().fixedRowsBottom,m.selRange.highlight.row+t>i-1?n&&m.settings.minSpareRows>0&&!(s&&m.selRange.highlight.row>=i-s-1)?(z.alter("insert_row",i),i=z.countRows()):m.settings.autoWrapCol&&(l.row=1-i,l.col=m.selRange.highlight.col+l.col==r-1?1-r:1):m.settings.autoWrapCol&&m.selRange.highlight.row+l.row<0&&m.selRange.highlight.col+l.col>=0&&(l.row=i-1,l.col=m.selRange.highlight.col+l.col==0?r-1:-1), +m.selRange.highlight.col+l.col>r-1?n&&m.settings.minSpareCols>0?(z.alter("insert_col",r),r=z.countCols()):m.settings.autoWrapRow&&(l.row=m.selRange.highlight.row+l.row==i-1?1-i:1,l.col=1-r):m.settings.autoWrapRow&&m.selRange.highlight.col+l.col<0&&m.selRange.highlight.row+l.row>=0&&(l.row=m.selRange.highlight.row+l.row==0?i-1:-1,l.col=r-1),a=new Q.CellCoords(m.selRange.highlight.row+l.row,m.selRange.highlight.col+l.col),a.row<0?(u=-1,a.row=0):a.row>0&&a.row>=i&&(u=1,a.row=i-1),a.col<0?(c=-1,a.col=0):a.col>0&&a.col>=r&&(c=1,a.col=r-1),z.runHooks("afterModifyTransformStart",a,u,c),U.setRangeStart(a,o)},transformEnd:function(t,e){var n,o,i,r=new Q.CellCoords(t,e),a=0,s=0;z.runHooks("modifyTransformEnd",r),n=z.countRows(),o=z.countCols(),i=new Q.CellCoords(m.selRange.to.row+r.row,m.selRange.to.col+r.col),i.row<0?(a=-1,i.row=0):i.row>0&&i.row>=n&&(a=1,i.row=n-1),i.col<0?(s=-1,i.col=0):i.col>0&&i.col>=o&&(s=1,i.col=o-1),z.runHooks("afterModifyTransformEnd",i,a,s),U.setRangeEnd(i,!0)},isSelected:function(){return null!==m.selRange},inInSelection:function(t){return!!U.isSelected()&&m.selRange.includes(t)},deselect:function(){U.isSelected()&&(z.selection.inProgress=!1,m.selRange=null,z.view.wt.selections.current.clear(),z.view.wt.selections.area.clear(),(m.settings.currentHeaderClassName||m.settings.currentRowClassName||m.settings.currentColClassName)&&z.view.wt.selections.highlight.clear(),H.destroyEditor(),U.refreshBorders(),(0,c.removeClass)(z.rootElement,["ht__selection--rows","ht__selection--columns"]),z.runHooks("afterDeselect"))},selectAll:function(){m.settings.multiSelect&&(U.setSelectedHeaders(!0,!0,!0),U.setRangeStart(new Q.CellCoords(0,0)),U.setRangeEnd(new Q.CellCoords(z.countRows()-1,z.countCols()-1),!1))},empty:function(){if(U.isSelected()){var t,e,n=m.selRange.getTopLeftCorner(),o=m.selRange.getBottomRightCorner(),i=[];for(t=n.row;t<=o.row;t++)for(e=n.col;e<=o.col;e++)z.getCellMeta(t,e).readOnly||i.push([t,e,""]);z.setDataAtCell(i)}}},this.init=function(){L.setData(m.settings.data),z.runHooks("beforeInit"),(0,f.isMobileBrowser)()&&(0,c.addClass)(z.rootElement,"mobile"),this.updateSettings(m.settings,!0),this.view=new N.default(this),H=new y.default(z,m,U,D),this.forceFullRender=!0,z.runHooks("init"),this.view.render(),"object"===s(m.firstRun)&&(z.runHooks("afterChange",m.firstRun[0],m.firstRun[1]),m.firstRun=!1),z.runHooks("afterInit")},this.validateCell=function(t,e,n,o){function i(t){var o=e.visualCol,i=e.visualRow,r=z.getCell(i,o,!0);r&&"TH"!=r.nodeName&&z.view.wt.wtSettings.settings.cellRenderer(i,o,r),n(t)}var r=z.getCellValidator(e);(0,h.isRegExp)(r)&&(r=function(t){return function(e,n){n(t.test(e))}}(r)),(0,A.isFunction)(r)?(t=z.runHooks("beforeValidate",t,e.visualRow,e.prop,o),z._registerTimeout(setTimeout(function(){r.call(e,t,function(n){n=z.runHooks("afterValidate",n,t,e.visualRow,e.prop,o),e.valid=n,i(n),z.runHooks("postAfterValidate",n,t,e.visualRow,e.prop,o)})},0))):z._registerTimeout(setTimeout(function(){e.valid=!0,i(e.valid)},0))},this.setDataAtCell=function(t,e,n,i){var a,u,c,d=l(t,e,n),A=[];for(a=0,u=d.length;a-1?((0,A.isFunction)(t[o])||Array.isArray(t[o]))&&(t[o].initialHook=!0,z.addHook(o,t[o])):!e&&(0,v.hasOwnProperty)(t,o)&&(F.prototype[o]=t[o]));void 0===t.data&&void 0===m.settings.data?z.loadData(null):void 0!==t.data?z.loadData(t.data):void 0!==t.columns&&D.createMap(),r=z.countCols();var a=t.columns||F.prototype.columns;if(a&&(0,A.isFunction)(a)&&(r=z.countSourceCols(),n=!0),void 0===t.cell&&void 0===t.cells&&void 0===t.columns||(m.cellSettings.length=0),r>0){var s=void 0,l=void 0;for(o=0,i=0;o-1||w.indexOf("overflow")>-1)?z.rootElement.setAttribute("style",w):(z.rootElement.style.height="",z.rootElement.style.overflow="")}else void 0!==M&&(z.rootElement.style.height=M+"px",z.rootElement.style.overflow="hidden");if("undefined"!=typeof t.width){var b=t.width;(0,A.isFunction)(b)&&(b=b()),z.rootElement.style.width=b+"px"}e||(D.clearLengthCache(),z.view&&z.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),z.runHooks("afterUpdateSettings")),j.adjustRowsAndCols(),z.view&&!m.firstRun&&(z.forceFullRender=!0,U.refreshBorders(null,!0)),e||!z.view||""!==p&&""!==M&&void 0!==M||p===M||z.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var t=z.getSelected();if(F.prototype.getValue){if((0,A.isFunction)(F.prototype.getValue))return F.prototype.getValue.call(z);if(t)return z.getData()[t[0]][F.prototype.getValue]}else if(t)return z.getDataAtCell(t[0],t[1])},this.getSettings=function(){return m.settings},this.clear=function(){U.selectAll(),U.empty()},this.alter=function(t,e,n,o,i){j.alter(t,e,n,o,i)},this.getCell=function(t,e,n){return z.view.getCellAtCoords(new Q.CellCoords(t,e),n)},this.getCoords=function(t){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,t)},this.colToProp=function(t){return D.colToProp(t)},this.propToCol=function(t){return D.propToCol(t)},this.toVisualRow=function(t){return V.toVisualRow(t)},this.toVisualColumn=function(t){return V.toVisualColumn(t)},this.toPhysicalRow=function(t){return V.toPhysicalRow(t)},this.toPhysicalColumn=function(t){return V.toPhysicalColumn(t)},this.getDataAtCell=function(t,e){return D.get(t,D.colToProp(e))},this.getDataAtRowProp=function(t,e){return D.get(t,e)},this.getDataAtCol=function(t){var e=[];return e.concat.apply(e,i(D.getRange(new Q.CellCoords(0,t),new Q.CellCoords(m.settings.data.length-1,t),D.DESTINATION_RENDERER)))},this.getDataAtProp=function(t){var e,n=[];return e=D.getRange(new Q.CellCoords(0,D.propToCol(t)),new Q.CellCoords(m.settings.data.length-1,D.propToCol(t)),D.DESTINATION_RENDERER),n.concat.apply(n,i(e))},this.getSourceData=function(t,e,n,o){var i=void 0;return i=void 0===t?L.getData():L.getByRange(new Q.CellCoords(t,e),new Q.CellCoords(n,o))},this.getSourceDataArray=function(t,e,n,o){var i=void 0;return i=void 0===t?L.getData(!0):L.getByRange(new Q.CellCoords(t,e),new Q.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(t){return L.getAtColumn(t)},this.getSourceDataAtRow=function(t){return L.getAtRow(t)},this.getSourceDataAtCell=function(t,e){return L.getAtCell(t,e)},this.getDataAtRow=function(t){var e=D.getRange(new Q.CellCoords(t,0),new Q.CellCoords(t,this.countCols()-1),D.DESTINATION_RENDERER);return e[0]||[]},this.getDataType=function(t,e,n,o){var i=this,r=null,a=null;void 0===t&&(t=0,n=this.countRows(),e=0,o=this.countCols()),void 0===n&&(n=t),void 0===o&&(o=e);var s="mixed";return(0,x.rangeEach)(Math.min(t,n),Math.max(t,n),function(t){var n=!0;return(0,x.rangeEach)(Math.min(e,o),Math.max(e,o),function(e){var o=i.getCellMeta(t,e);return a=o.type,r?n=r===a:r=a,n}),s=n?a:"mixed",n}),s},this.removeCellMeta=function(t,e,n){var o=z.getCellMeta(t,e);void 0!=o[n]&&delete m.cellSettings[t][e][n]},this.spliceCellsMeta=function(t,e){for(var n,o=arguments.length,i=Array(o>2?o-2:0),r=2;r=0;){for(var i=z.countCols()-1;i>=0;)e.addValidatorToQueue(),z.validateCell(z.getDataAtCell(o,i),z.getCellMeta(o,i),function(t){if("boolean"!=typeof t)throw new Error("Validation error: result is not boolean");t===!1&&(e.valid=!1),e.removeValidatorFormQueue()},"validateCells"),i--;o--}e.checkIfQueueIsEmpty()},this.getRowHeader=function(t){var e=m.settings.rowHeaders;return void 0!==t&&(t=z.runHooks("modifyRowHeader",t)),void 0===t?(e=[],(0,x.rangeEach)(z.countRows()-1,function(t){e.push(z.getRowHeader(t))})):Array.isArray(e)&&void 0!==e[t]?e=e[t]:(0,A.isFunction)(e)?e=e(t):e&&"string"!=typeof e&&"number"!=typeof e&&(e=t+1),e},this.hasRowHeaders=function(){return!!m.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==m.settings.colHeaders&&null!==m.settings.colHeaders)return!!m.settings.colHeaders;for(var t=0,e=z.countCols();t=0;){if(e=z.runHooks("modifyRow",n),z.isEmptyRow(e))o++;else if(t)break;n--}return o},this.countEmptyCols=function(t){if(z.countRows()<1)return 0;for(var e=z.countCols()-1,n=0;e>=0;){if(z.isEmptyCol(e))n++;else if(t)break;e--}return n},this.isEmptyRow=function(t){return m.settings.isEmptyRow.call(z,t)},this.isEmptyCol=function(t){return m.settings.isEmptyCol.call(z,t)},this.selectCell=function(t,e,n,o,i,r){var a;if(r=(0,h.isUndefined)(r)||r===!0,"number"!=typeof t||t<0||t>=z.countRows())return!1;if("number"!=typeof e||e<0||e>=z.countCols())return!1;if((0,h.isDefined)(n)){if("number"!=typeof n||n<0||n>=z.countRows())return!1;if("number"!=typeof o||o<0||o>=z.countCols())return!1}return a=new Q.CellCoords(t,e),m.selRange=new Q.CellRange(a,a,a),r&&z.listen(),(0,h.isUndefined)(n)?U.setRangeEnd(m.selRange.from,i):U.setRangeEnd(new Q.CellCoords(n,o),i),z.selection.finish(),!0},this.selectCellByProp=function(t,e,n,o,i){var r;return arguments[1]=D.propToCol(arguments[1]),(0,h.isDefined)(arguments[3])&&(arguments[3]=D.propToCol(arguments[3])),(r=z).selectCell.apply(r,arguments)},this.deselectCell=function(){U.deselect()},this.scrollViewportTo=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t&&(t<0||t>=z.countRows()))return!1;if(void 0!==e&&(e<0||e>=z.countCols()))return!1;var i=!1;return void 0!==t&&void 0!==e&&(z.view.wt.wtOverlays.topOverlay.scrollTo(t,n),z.view.wt.wtOverlays.leftOverlay.scrollTo(e,o),i=!0),"number"==typeof t&&"number"!=typeof e&&(z.view.wt.wtOverlays.topOverlay.scrollTo(t,n),i=!0),"number"==typeof e&&"number"!=typeof t&&(z.view.wt.wtOverlays.leftOverlay.scrollTo(e,o),i=!0),i},this.destroy=function(){z._clearTimeouts(),z.view&&z.view.destroy(),L&&L.destroy(),L=null,(0,c.empty)(z.rootElement),P.destroy(),z.runHooks("afterDestroy"),_.default.getSingleton().destroy(z);for(var t in z)(0,v.hasOwnProperty)(z,t)&&((0,A.isFunction)(z[t])?z[t]=M:"guid"!==t&&(z[t]=null));D&&D.destroy(),D=null,m=null,j=null,U=null,H=null,z=null,F=null},this.getActiveEditor=function(){return H.getActiveEditor()},this.getPlugin=function(t){return(0,C.getPlugin)(this,t)},this.getInstance=function(){return z},this.addHook=function(t,e){_.default.getSingleton().add(t,e,z)},this.hasHook=function(t){return _.default.getSingleton().has(t,z)},this.addHookOnce=function(t,e){_.default.getSingleton().once(t,e,z)},this.removeHook=function(t,e){_.default.getSingleton().remove(t,e,z)},this.runHooks=function(t,e,n,o,i,r,a){return _.default.getSingleton().run(z,t,e,n,o,i,r,a)},this.timeouts=[],this._registerTimeout=function(t){this.timeouts.push(t)},this._clearTimeouts=function(){for(var t=0,e=this.timeouts.length;t0;)o=(e-1)%h,n=String.fromCharCode(65+o)+n,e=parseInt((e-o)/h,10);return n}function i(t){var e=0;if(t)for(var n=0,o=t.length-1;n0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((t||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(t){var e=document,n=e.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(t)+"px",n}},{key:"createTable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document,n=e.createDocumentFragment(),o=e.createElement("table"),i=e.createElement("thead"),a=e.createElement("tbody"),s=e.createElement("colgroup"),l=e.createElement("tr"),u=e.createElement("th");return this.isVertical()&&o.appendChild(s),this.isHorizontal()&&(l.appendChild(u),i.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(i),this.isVertical()&&a.appendChild(l),o.appendChild(a),(0,r.addClass)(o,t),n.appendChild(o),{fragment:n,table:o,tHead:i,tBody:a,colGroup:s,tr:l,th:u}}},{key:"createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document,n=e.createDocumentFragment(),o=e.createElement("div");return t="htGhostTable htAutoSize "+t.trim(),(0,r.addClass)(o,t),n.appendChild(o),{fragment:n,container:o}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),t}();e.default=s},function(t,e,n){"use strict";var o=n(37),i=n(167),r=n(45),a=n(23);t.exports=n(166)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n=e&&o.col<=n&&i.col>=n}},{key:"includesRange",value:function(t){return this.includes(t.getTopLeftCorner())&&this.includes(t.getBottomRightCorner())}},{key:"isEqual",value:function(t){return Math.min(this.from.row,this.to.row)==Math.min(t.from.row,t.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(t.from.row,t.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(t.from.col,t.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(t.from.col,t.to.col)}},{key:"overlaps",value:function(t){return t.isSouthEastOf(this.getTopLeftCorner())&&t.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(t){return this.getTopLeftCorner().isSouthEastOf(t)||this.getBottomRightCorner().isSouthEastOf(t)}},{key:"isNorthWestOf",value:function(t){return this.getTopLeftCorner().isNorthWestOf(t)||this.getBottomRightCorner().isNorthWestOf(t)}},{key:"expand",value:function(t){var e=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.rown.row||t.col>n.col)&&(this.from=new s.default(Math.min(e.row,t.row),Math.min(e.col,t.col)),this.to=new s.default(Math.max(n.row,t.row),Math.max(n.col,t.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var n=this.getTopLeftCorner(),o=this.getBottomRightCorner(),i=(this.getTopRightCorner(),this.getBottomLeftCorner(),e.getTopLeftCorner()),r=e.getBottomRightCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),u=Math.max(o.row,r.row),c=Math.max(o.col,r.col),d=new s.default(a,l),A=new s.default(u,c),h=new t(d,d,A).isCorner(this.from,e),f=e.isEqual(new t(d,d,A)); return h&&!f&&(this.from.col>d.col&&(d.col=c,A.col=l),this.from.row>d.row&&(d.row=u,A.row=a)),this.from=d,this.to=A,!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(t){switch(t){case"NW-SE":var e=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=e[0],this.to=e[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var i=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=i[0],this.to=i[1]}}},{key:"getTopLeftCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(t,e){return!!(e&&e.includes(t)&&(this.getTopLeftCorner().isEqual(new s.default(e.from.row,e.from.col))||this.getTopRightCorner().isEqual(new s.default(e.from.row,e.to.col))||this.getBottomLeftCorner().isEqual(new s.default(e.to.row,e.from.col))||this.getBottomRightCorner().isEqual(new s.default(e.to.row,e.to.col))))||(t.isEqual(this.getTopLeftCorner())||t.isEqual(this.getTopRightCorner())||t.isEqual(this.getBottomLeftCorner())||t.isEqual(this.getBottomRightCorner()))}},{key:"getOppositeCorner",value:function(t,e){if(!(t instanceof s.default))return!1;if(e&&e.includes(t)){if(this.getTopLeftCorner().isEqual(new s.default(e.from.row,e.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new s.default(e.from.row,e.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new s.default(e.to.row,e.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new s.default(e.to.row,e.to.col)))return this.getTopLeftCorner()}return t.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():t.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():t.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():t.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(t){if(!this.includesRange(t))return[];var e={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},n={top:Math.min(t.from.row,t.to.row),bottom:Math.max(t.from.row,t.to.row),left:Math.min(t.from.col,t.to.col),right:Math.max(t.from.col,t.to.col)},o=[];return e.top==n.top&&o.push("top"),e.right==n.right&&o.push("right"),e.bottom==n.bottom&&o.push("bottom"),e.left==n.left&&o.push("left"),o}},{key:"getInner",value:function(){for(var t=this.getTopLeftCorner(),e=this.getBottomRightCorner(),n=[],o=t.row;o<=e.row;o++)for(var i=t.col;i<=e.col;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(new s.default(o,i));return n}},{key:"getAll",value:function(){for(var t=this.getTopLeftCorner(),e=this.getBottomRightCorner(),n=[],o=t.row;o<=e.row;o++)for(var i=t.col;i<=e.col;i++)t.row===o&&t.col===i?n.push(t):e.row===o&&e.col===i?n.push(e):n.push(new s.default(o,i));return n}},{key:"forAll",value:function(t){for(var e=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=e.row;o<=n.row;o++)for(var i=e.col;i<=n.col;i++){var r=t(o,i);if(r===!1)return}}}]),t}();e.default=l},function(t,e,n){"use strict";function o(){return{name:i}}e.__esModule=!0,e.default=o;var i=e.KEY="---------"},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var o=n(19),i=n(40);t.exports=function(t,e,n){e in t?o.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var o=n(15),i=n(13).document,r=o(i)&&o(i.createElement);t.exports=function(t){return r?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var o=n(10)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var o=n(38);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,n){var o=n(10)("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r=[7],a=r[o]();a.next=function(){return{done:n=!0}},r[o]=function(){return a},t(r)}catch(t){}return n}},function(t,e,n){var o=n(18),i=n(286),r=n(74),a=n(81)("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n(73)("iframe"),o=r.length,i="<",a=">";for(e.style.display="none",n(159).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;o--;)delete u[l][r[o]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=o(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var o=n(47),i=n(40),r=n(23),a=n(85),s=n(22),l=n(160),u=Object.getOwnPropertyDescriptor;e.f=n(21)?u:function(t,e){if(t=r(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var o=n(169),i=n(74).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},function(t,e,n){var o=n(82)("keys"),i=n(49);t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var o=n(13),i="__core-js_shared__",r=o[i]||(o[i]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e,n){var o=n(164),i=n(30);t.exports=function(t,e,n){if(o(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var o,i,r,a=n(29),s=n(282),l=n(159),u=n(73),c=n(13),d=c.process,A=c.setImmediate,h=c.clearImmediate,f=c.MessageChannel,g=0,p={},M="onreadystatechange",y=function(){var t=+this;if(p.hasOwnProperty(t)){var e=p[t];delete p[t],e()}},m=function(t){y.call(t.data)};A&&h||(A=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return p[++g]=function(){s("function"==typeof t?t:Function(t),e)},o(g),g},h=function(t){delete p[t]},"process"==n(38)(d)?o=function(t){d.nextTick(a(y,t,1))}:f?(i=new f,r=i.port2,i.port1.onmessage=m,o=a(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(t){c.postMessage(t+"","*")},c.addEventListener("message",m,!1)):o=M in u("script")?function(t){l.appendChild(u("script"))[M]=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:A,clear:h}},function(t,e,n){var o=n(15);t.exports=function(t,e){if(!o(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!o(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=e},function(t,e,n){"use strict";function o(){}e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=n(20);o.prototype={data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,copyRowsLimit:1e3,copyColsLimit:1e3,pasteMode:"overwrite",persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(t){var e,n,o,a;for(e=0,n=this.countCols();e1?arguments[1]:void 0)}}),n(37)(r)},function(t,e,n){"use strict";var o=n(3),i=n(53)(5),r="find",a=!0;r in[]&&Array(1)[r](function(){a=!1}),o(o.P+o.F*a,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(r)},function(t,e,n){"use strict";var o=n(29),i=n(3),r=n(41),a=n(165),s=n(161),l=n(24),u=n(72),c=n(176);i(i.S+i.F*!n(77)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,d,A=r(t),h="function"==typeof this?this:Array,f=arguments.length,g=f>1?arguments[1]:void 0,p=void 0!==g,M=0,y=c(A);if(p&&(g=o(g,f>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(e=l(A.length),n=new h(e);e>M;M++)u(n,M,p?g(A[M],M):A[M]);else for(d=y.call(A),n=new h;!(i=d.next()).done;M++)u(n,M,p?a(d,g,[i.value,M],!0):i.value);return n.length=M,n}})},function(t,e,n){"use strict";var o=n(3),i=n(72);o(o.S+o.F*n(31)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){var o=n(19).f,i=n(40),r=n(22),a=Function.prototype,s=/^\s*function ([^ (]*)/,l="name",u=Object.isExtensible||function(){return!0};l in a||n(21)&&o(a,l,{configurable:!0,get:function(){try{var t=this,e=(""+t).match(s)[1];return r(t,l)||!u(t)||o(t,l,i(5,e)),e}catch(t){return""}}})},function(t,e,n){"use strict";var o=n(157);t.exports=n(54)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=o.getEntry(this,t);return e&&e.v},set:function(t,e){return o.def(this,0===t?0:t,e)}},o,!0)},function(t,e,n){var o=n(3);o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var o=n(3),i=n(13).isFinite;o(o.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var o=n(3);o(o.S,"Number",{isInteger:n(163)})},function(t,e,n){var o=n(3);o(o.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var o=n(3),i=n(163),r=Math.abs;o(o.S,"Number",{isSafeInteger:function(t){return i(t)&&r(t)<=9007199254740991}})},function(t,e,n){var o=n(3);o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var o=n(3);o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var o=n(3);o(o.S+o.F,"Object",{assign:n(168)})},function(t,e,n){var o=n(3);o(o.S,"Object",{is:n(290)})},function(t,e,n){var o=n(3);o(o.S,"Object",{setPrototypeOf:n(171).set})},function(t,e,n){"use strict";var o,i,r,a=n(57),s=n(13),l=n(29),u=n(156),c=n(3),d=n(15),A=n(71),h=n(52),f=n(56),g=n(291),p=n(84).set,M=n(285)(),y="Promise",m=s.TypeError,w=s.process,v=s[y],w=s.process,b="process"==u(w),C=function(){},E=!!function(){try{var t=v.resolve(1),e=(t.constructor={})[n(10)("species")]=function(t){t(C,C)};return(b||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e}catch(t){}}(),T=function(t,e){return t===e||t===v&&e===r},I=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},x=function(t){return T(v,t)?new D(t):new i(t)},D=i=function(t){var e,n;this.promise=new t(function(t,o){if(void 0!==e||void 0!==n)throw m("Bad Promise constructor");e=t,n=o}),this.resolve=A(e),this.reject=A(n)},N=function(t){try{t()}catch(t){return{error:t}}},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;M(function(){for(var o=t._v,i=1==t._s,r=0,a=function(e){var n,r,a=i?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{a?(i||(2==t._h&&k(t),t._h=1),a===!0?n=o:(u&&u.enter(),n=a(o),u&&u.exit()),n===e.promise?l(m("Promise-chain cycle")):(r=I(n))?r.call(n,s,l):s(n)):l(o)}catch(t){l(t)}};n.length>r;)a(n[r++]);t._c=[],t._n=!1,e&&!t._h&&S(t)})}},S=function(t){p.call(s,function(){var e,n,o,i=t._v;if(B(t)&&(e=N(function(){b?w.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(o=s.console)&&o.error&&o.error("Unhandled promise rejection",i)}),t._h=b||B(t)?2:1),t._a=void 0,e)throw e.error})},B=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,o=0;n.length>o;)if(e=n[o++],e.fail||!B(e.promise))return!1;return!0},k=function(t){p.call(s,function(){var e;b?w.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},Q=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw m("Promise can't be resolved itself");(e=I(t))?M(function(){var o={_w:n,_d:!1};try{e.call(t,l(j,o,1),l(Q,o,1))}catch(t){Q.call(o,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){Q.call({_w:n,_d:!1},t)}}};E||(v=function(t){h(this,v,y,"_h"),A(t),o.call(this);try{t(l(j,this,1),l(Q,this,1))}catch(t){Q.call(this,t)}},o=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n(59)(v.prototype,{then:function(t,e){var n=x(g(this,v));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=b?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),D=function(){var t=new o;this.promise=t,this.resolve=l(j,t,1),this.reject=l(Q,t,1)}),c(c.G+c.W+c.F*!E,{Promise:v}),n(48)(v,y),n(172)(y),r=n(44)[y],c(c.S+c.F*!E,y,{reject:function(t){var e=x(this),n=e.reject;return n(t),e.promise}}),c(c.S+c.F*(a||!E),y,{resolve:function(t){if(t instanceof v&&T(t.constructor,this))return t;var e=x(this),n=e.resolve;return n(t),e.promise}}),c(c.S+c.F*!(E&&n(77)(function(t){v.all(t).catch(C)})),y,{all:function(t){var e=this,n=x(e),o=n.resolve,i=n.reject,r=N(function(){var n=[],r=0,a=1;f(t,!1,function(t){var s=r++,l=!1;n.push(void 0),a++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--a||o(n))},i)}),--a||o(n)});return r&&i(r.error),n.promise},race:function(t){var e=this,n=x(e),o=n.reject,i=N(function(){f(t,!1,function(t){e.resolve(t).then(n.resolve,o)})});return i&&o(i.error),n.promise}})},function(t,e,n){n(21)&&"g"!=/./g.flags&&n(19).f(RegExp.prototype,"flags",{configurable:!0,get:n(280)})},function(t,e,n){n(55)("match",1,function(t,e,n){return[function(n){"use strict";var o=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o):new RegExp(n)[e](String(o))},n]})},function(t,e,n){n(55)("replace",2,function(t,e,n){return[function(o,i){"use strict";var r=t(this),a=void 0==o?void 0:o[e];return void 0!==a?a.call(o,r,i):n.call(String(r),o,i)},n]})},function(t,e,n){n(55)("search",1,function(t,e,n){return[function(n){"use strict";var o=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o):new RegExp(n)[e](String(o))},n]})},function(t,e,n){n(55)("split",2,function(t,e,o){"use strict";var i=n(164),r=o,a=[].push,s="split",l="length",u="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[l]||2!="ab"[s](/(?:ab)*/)[l]||4!="."[s](/(.?)(.?)/)[l]||"."[s](/()()/)[l]>1||""[s](/.?/)[l]){var c=void 0===/()??/.exec("")[1];o=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return r.call(n,t,e);var o,s,d,A,h,f=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,M=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,g+"g");for(c||(o=new RegExp("^"+y.source+"$(?!\\s)",g));(s=y.exec(n))&&(d=s.index+s[0][l],!(d>p&&(f.push(n.slice(p,s.index)),!c&&s[l]>1&&s[0].replace(o,function(){for(h=1;h1&&s.index=M)));)y[u]===s.index&&y[u]++;return p===n[l]?!A&&y.test("")||f.push(""):f.push(n.slice(p)),f[l]>M?f.slice(0,M):f}}else"0"[s](void 0,0)[l]&&(o=function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)});return[function(n,i){var r=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,r,i):o.call(String(r),n,i)},o]})},function(t,e,n){"use strict";var o=n(157);t.exports=n(54)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return o.def(this,t=0===t?0:t,t)}},o)},function(t,e,n){"use strict";var o=n(3),i=n(292)(!1);o(o.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var o=n(3),i=n(24),r=n(83),a="endsWith",s=""[a];o(o.P+o.F*n(75)(a),"String",{endsWith:function(t){var e=r(this,t,a),n=arguments.length>1?arguments[1]:void 0,o=i(e.length),l=void 0===n?o:Math.min(i(n),o),u=String(t);return s?s.call(e,u,l):e.slice(l-u.length,l)===u}})},function(t,e,n){var o=n(3),i=n(60),r=String.fromCharCode,a=String.fromCodePoint;o(o.S+o.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],o=arguments.length,a=0;o>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?r(e):r(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var o=n(3),i=n(83),r="includes";o(o.P+o.F*n(75)(r),"String",{includes:function(t){return!!~i(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var o=n(3),i=n(23),r=n(24);o(o.S,"String",{raw:function(t){for(var e=i(t.raw),n=r(e.length),o=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s1?arguments[1]:void 0,e.length)),o=String(t);return s?s.call(e,o,n):e.slice(n,n+o.length)===o}})},function(t,e,n){"use strict";var o=n(13),i=n(22),r=n(21),a=n(3),s=n(33),l=n(46).KEY,u=n(31),c=n(82),d=n(48),A=n(49),h=n(10),f=n(175),g=n(293),p=n(284),M=n(279),y=n(162),m=n(18),w=n(23),v=n(85),b=n(40),C=n(78),E=n(287),T=n(79),I=n(19),x=n(39),D=T.f,N=I.f,L=E.f,S=o.Symbol,B=o.JSON,k=B&&B.stringify,Q="prototype",j=h("_hidden"),_=h("toPrimitive"),U={}.propertyIsEnumerable,R=c("symbol-registry"),Y=c("symbols"),O=c("op-symbols"),H=Object[Q],z="function"==typeof S,F=o.QObject,P=!F||!F[Q]||!F[Q].findChild,V=r&&u(function(){return 7!=C(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=D(H,e);o&&delete H[e],N(t,e,n),o&&t!==H&&N(H,e,o)}:N,G=function(t){var e=Y[t]=C(S[Q]);return e._k=t,e},W=z&&"symbol"==typeof S.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof S},J=function(t,e,n){return t===H&&J(O,e,n),m(t),e=v(e,!0),m(n),i(Y,e)?(n.enumerable?(i(t,j)&&t[j][e]&&(t[j][e]=!1),n=C(n,{enumerable:b(0,!1)})):(i(t,j)||N(t,j,b(1,{})),t[j][e]=!0),V(t,e,n)):N(t,e,n)},X=function(t,e){m(t);for(var n,o=M(e=w(e)),i=0,r=o.length;r>i;)J(t,n=o[i++],e[n]);return t},Z=function(t,e){return void 0===e?C(t):X(C(t),e)},K=function(t){var e=U.call(this,t=v(t,!0));return!(this===H&&i(Y,t)&&!i(O,t))&&(!(e||!i(this,t)||!i(Y,t)||i(this,j)&&this[j][t])||e)},q=function(t,e){if(t=w(t),e=v(e,!0),t!==H||!i(Y,e)||i(O,e)){var n=D(t,e);return!n||!i(Y,e)||i(t,j)&&t[j][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=L(w(t)),o=[],r=0;n.length>r;)i(Y,e=n[r++])||e==j||e==l||o.push(e);return o},tt=function(t){for(var e,n=t===H,o=L(n?O:w(t)),r=[],a=0;o.length>a;)!i(Y,e=o[a++])||n&&!i(H,e)||r.push(Y[e]);return r};z||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var t=A(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(O,n),i(this,j)&&i(this[j],t)&&(this[j][t]=!1),V(this,t,b(1,n))};return r&&P&&V(H,t,{configurable:!0,set:e}),G(t)},s(S[Q],"toString",function(){return this._k}),T.f=q,I.f=J,n(80).f=E.f=$,n(47).f=K,n(58).f=tt,r&&!n(57)&&s(H,"propertyIsEnumerable",K,!0),f.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!z,{Symbol:S});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var et=x(h.store),nt=0;et.length>nt;)g(et[nt++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=S(t)},keyFor:function(t){if(W(t))return p(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){P=!0},useSimple:function(){P=!1}}),a(a.S+a.F*!z,"Object",{create:Z,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),B&&a(a.S+a.F*(!z||u(function(){var t=S();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);return e=o[1],"function"==typeof e&&(n=e),!n&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),o[1]=e,k.apply(B,o)}}}),S[Q][_]||n(32)(S[Q],_,S[Q].valueOf),d(S,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(t,e,n){"use strict";var o,i=n(53)(0),r=n(33),a=n(46),s=n(168),l=n(158),u=n(15),c=a.getWeak,d=Object.isExtensible,A=l.ufstore,h={},f=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(u(t)){var e=c(t);return e===!0?A(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(this,t,e)}},p=t.exports=n(54)("WeakMap",f,g,l,!0,!0);7!=(new p).set((Object.freeze||Object)(h),7).get(h)&&(o=l.getConstructor(f),s(o.prototype,g),a.NEED=!0,i(["delete","has","get","set"],function(t){var e=p.prototype,n=e[t];r(e,t,function(e,i){if(u(e)&&!d(e)){this._f||(this._f=new o);var r=this._f[t](e,i);return"set"==t?this:r}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var o=n(158);n(54)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return o.def(this,t,!0)}},o,!1,!0)},function(t,e,n){"use strict";var o=n(3),i=n(155)(!0);o(o.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){var o=n(3),i=n(170)(!0);o(o.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var o=n(3),i=n(289),r=n(23),a=n(79),s=n(72);o(o.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=r(t),o=a.f,l=i(n),u={},c=0;l.length>c;)s(u,e=l[c++],o(n,e));return u}})},function(t,e,n){var o=n(3),i=n(170)(!1);o(o.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var o=n(3),i=n(173);o(o.P,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var o=n(3),i=n(173);o(o.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){for(var o=n(68),i=n(33),r=n(13),a=n(32),s=n(45),l=n(10),u=l("iterator"),c=l("toStringTag"),d=s.Array,A=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],h=0;h<5;h++){var f,g=A[h],p=r[g],M=p&&p.prototype;if(M){M[u]||a(M,u,d),M[c]||a(M,c,g),s[g]=d;for(f in o)M[f]||i(M,f,o[f],!0)}}},function(t,e,n){var o=n(3),i=n(84);o(o.G+o.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){"use strict";!function(t){function n(t){return t.split('"').length-1}var o={parse:function(t){var e,o,i,r,a,s,l,u=[],c=0;for(i=t.split("\n"),i.length>1&&""===i[i.length-1]&&i.pop(),e=0,o=i.length;e0&&(a+="\t"),r=t[e][o],a+="string"==typeof r?r.indexOf("\n")>-1?'"'+r.replace(/"/g,'""')+'"':r:null===r||void 0===r?"":r;e!==n-1&&(a+="\n")}return a}};e.parse=o.parse,e.stringify=o.stringify}(window)},function(t,e,n){"use strict";var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,e){function n(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=Error;!function(t){function e(t,n){switch("undefined"==typeof t?"undefined":i(t)){case"undefined":case"boolean":case"string":case"number":return t===n;case"object":if(null===t)return null===n;if(x(t)){if(!x(n)||t.length!==n.length)return!1;for(var o=0,r=t.length;o0&&(t.patches=[],t.callback&&t.callback(i)),i}function h(t,e,o,r){for(var a=w(e),s=w(t),l=!1,u=!1,d=s.length-1;d>=0;d--){var A=s[d],f=t[A];if(e.hasOwnProperty(A)){var g=e[A];"object"==("undefined"==typeof f?"undefined":i(f))&&null!=f&&"object"==("undefined"==typeof g?"undefined":i(g))&&null!=g?h(f,g,o,r+"/"+n(A)):f!=g&&(l=!0,o.push({op:"replace",path:r+"/"+n(A),value:c(g)}))}else o.push({op:"remove",path:r+"/"+n(A)}),u=!0}if(u||a.length!=s.length)for(var d=0;d=48&&e<=57))return!1;n++}}return!0}function g(t,e,n){for(var o,i,r=!1,a=0,s=e.length;a=A){r=C[o.op].call(o,c,i,t);break}if(x(c)){if("-"===i)i=c.length;else{if(n&&!f(i))throw new D("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a-1,o.path,o);i=parseInt(i,10)}if(d>=A){if(n&&"add"===o.op&&i>c.length)throw new D("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a-1,o.path,o);r=b[o.op].call(o,c,i,t);break}}else if(i&&i.indexOf("~")!=-1&&(i=i.replace(/~1/g,"/").replace(/~0/g,"~")),d>=A){r=v[o.op].call(o,c,i,t);break}c=c[i]}}return r}function p(t,e){var n=[];return h(t,e,n,""),n}function M(t){if(void 0===t)return!0;if("array"==typeof t||"object"==("undefined"==typeof t?"undefined":i(t)))for(var e in t)if(M(t[e]))return!0;return!1}function y(e,n,o,r){if("object"!==("undefined"==typeof e?"undefined":i(e))||null===e||x(e))throw new D("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,e,o);if(!v[e.op])throw new D("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,e,o);if("string"!=typeof e.path)throw new D("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,e,o);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new D("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,e,o);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new D("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,e,o); if(("add"===e.op||"replace"===e.op||"test"===e.op)&&M(e.value))throw new D("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,e,o);if(o)if("add"==e.op){var a=e.path.split("/").length,s=r.split("/").length;if(a!==s+1&&a!==s)throw new D("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,e,o)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new D("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,e,o)}else if("move"===e.op||"copy"===e.op){var l={op:"_get",path:e.from,value:void 0},u=t.validate([l],o);if(u&&"OPERATION_PATH_UNRESOLVABLE"===u.name)throw new D("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,e,o)}}function m(t,e){try{if(!x(t))throw new D("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)e=JSON.parse(JSON.stringify(e)),g.call(this,e,t,!0);else for(var n=0;nMath.ceil(r.top+r.height)||(t.clientXMath.ceil(r.left+r.width)||void 0)))}function o(t){n(t)&&(i.eventManager.removeEventListener(document.body,"mousemove",o),e.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){t.preventDefault(),(0,s.stopImmediatePropagation)(t);var i=this,r=e.getBoundingClientRect();e.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",o)}}},{key:"createBorders",value:function(t){this.main=document.createElement("div");var e=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;o<5;o++){var i=e[o],r=document.createElement("div");r.className="wtBorder "+(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(r.className+=" hidden"),n=r.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:t.border.color,n.height=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":t.border.width+"px",n.width=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":t.border.width+"px",this.main.appendChild(r)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,u.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear(),this.wot.wtTable.bordersHolder||(this.wot.wtTable.bordersHolder=document.createElement("div"),this.wot.wtTable.bordersHolder.className="htBorders",this.wot.wtTable.spreader.appendChild(this.wot.wtTable.bordersHolder)),this.wot.wtTable.bordersHolder.insertBefore(this.main,this.wot.wtTable.bordersHolder.firstChild)}},{key:"createMultipleSelectorHandles",value:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};var t=10,e=40;this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var n={position:"absolute",height:e+"px",width:e+"px","border-radius":parseInt(e/1.5,10)+"px"};for(var o in n)(0,l.hasOwnProperty)(n,o)&&(this.selectionHandles.styles.bottomRightHitArea[o]=n[o],this.selectionHandles.styles.topLeftHitArea[o]=n[o]);var i={position:"absolute",height:t+"px",width:t+"px","border-radius":parseInt(t/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var r in i)(0,l.hasOwnProperty)(i,r)&&(this.selectionHandles.styles.bottomRight[r]=i[r],this.selectionHandles.styles.topLeft[r]=i[r]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(t,e){return!(!this.wot.selections.area.cellRange||t==this.wot.selections.area.cellRange.to.row&&e==this.wot.selections.area.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(t,e,n,o,i,r){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-a,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(o-a,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-s/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(o-s/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+r,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(o+i,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+r-s/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(o+i-s/4,10)+"px",this.settings.border.multipleSelectionHandlesVisible&&this.settings.border.multipleSelectionHandlesVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(t,e)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),t==this.wot.wtSettings.getSetting("fixedRowsTop")||e==this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(t){if(!this.disabled){var e,n,o,i,r,s,l,c,d,A,f,g,p,M,y,m,w,v,b;b=this.wot.wtTable.getRenderedRowsCount();for(var C=0;C=t[0]&&E<=t[2]){p=E;break}}for(var T=b-1;T>=0;T--){var I=this.wot.wtTable.rowFilter.renderedToSource(T);if(I>=t[0]&&I<=t[2]){y=I;break}}b=this.wot.wtTable.getRenderedColumnsCount();for(var x=0;x=t[1]&&D<=t[3]){M=D;break}}for(var N=b-1;N>=0;N--){var L=this.wot.wtTable.columnFilter.renderedToSource(N);if(L>=t[1]&&L<=t[3]){m=L;break}}if(void 0===p||void 0===M)return void this.disappear();e=p!==y||M!==m,n=this.wot.wtTable.getCell(new h.default(p,M)),o=e?this.wot.wtTable.getCell(new h.default(y,m)):n,i=(0,a.offset)(n),r=e?(0,a.offset)(o):i,s=(0,a.offset)(this.wot.wtTable.TABLE),c=i.top,f=r.top+(0,a.outerHeight)(o)-c,A=i.left,g=r.left+(0,a.outerWidth)(o)-A,l=c-s.top-1,d=A-s.left-1;var S=(0,a.getComputedStyle)(n);parseInt(S.borderTopWidth,10)>0&&(l+=1,f=f>0?f-1:0),parseInt(S.borderLeftWidth,10)>0&&(d+=1,g=g>0?g-1:0),this.topStyle.top=l+"px",this.topStyle.left=d+"px",this.topStyle.width=g+"px",this.topStyle.display="block",this.leftStyle.top=l+"px",this.leftStyle.left=d+"px",this.leftStyle.height=f+"px",this.leftStyle.display="block";var B=Math.floor(this.settings.border.width/2);this.bottomStyle.top=l+f-B+"px",this.bottomStyle.left=d+"px",this.bottomStyle.width=g+"px",this.bottomStyle.display="block",this.rightStyle.top=l+"px",this.rightStyle.left=d+g-B+"px",this.rightStyle.height=f+1+"px",this.rightStyle.display="block",(0,u.isMobileBrowser)()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(y,m)?this.cornerStyle.display="none":(this.cornerStyle.top=l+f-4+"px",this.cornerStyle.left=d+g-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none",w=(0,a.getTrimmingContainer)(this.wot.wtTable.TABLE),m===this.wot.getSetting("totalColumns")-1&&(v=o.offsetLeft+(0,a.outerWidth)(o)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,a.innerWidth)(w),v&&(this.cornerStyle.left=Math.floor(d+g-3-parseInt(this.cornerDefaultStyle.width,10)/2)+"px",this.cornerStyle.borderRightWidth=0)),y===this.wot.getSetting("totalRows")-1&&(v=o.offsetTop+(0,a.outerHeight)(o)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,a.innerHeight)(w),v&&(this.cornerStyle.top=Math.floor(l+f-3-parseInt(this.cornerDefaultStyle.height,10)/2)+"px",this.cornerStyle.borderBottomWidth=0)),this.cornerStyle.display="block"),(0,u.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(p,M,l,d,g,f)}}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,u.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"hasSetting",value:function(t){return"function"==typeof t?t():!!t}}]),t}());e.default=g},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n7&&void 0!==arguments[7]?arguments[7]:function(t){return t};o(this,t),r.set(this,{viewportWidth:e,scrollOffset:n,totalColumns:i,columnWidthFn:a,overrideFn:s,onlyFullyVisible:l,stretchingColumnWidthFn:c}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=u,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return i(t,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),i(t,[{key:"calculate",value:function(){for(var t=0,e=!0,n=[],o=void 0,i=r.get(this),a=i.onlyFullyVisible,s=i.overrideFn,l=i.scrollOffset,u=i.totalColumns,c=i.viewportWidth,d=0;d0?c+1:c;if(t>=l&&t+o<=l+A&&(null==this.startColumn&&(this.startColumn=d),this.endColumn=d),n.push(t),t+=o,a||(this.endColumn=d),t>=l+c){e=!1;break}}if(this.endColumn===u-1&&e)for(this.startColumn=this.endColumn;this.startColumn>0;){var h=n[this.endColumn]+o-n[this.startColumn-1];if((h<=c||!a)&&this.startColumn--,h>c)break}null!==this.startColumn&&s&&s(this),this.startPosition=n[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(t){if("none"!==this.stretch){this.totalTargetWidth=t;for(var e=r.get(this),n=e.totalColumns,o=0,i=0;i0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var u=this._getColumnWidth(n-1),c=l+u;this.stretchLastWidth=c>=0?c:u}}}},{key:"getStretchedColumnWidth",value:function(t,e){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(t,e):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(t)),n}},{key:"_getStretchedAllColumnWidth",value:function(t,e){var n=0,o=r.get(this),i=o.totalColumns;if(!this.stretchAllColumnsWidth[t]){var a=Math.round(e*this.stretchAllRatio),s=o.stretchingColumnWidthFn(a,t);void 0===s?this.stretchAllColumnsWidth[t]=a:this.stretchAllColumnsWidth[t]=isNaN(s)?this._getColumnWidth(t):s}if(this.stretchAllColumnsWidth.length===i&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l=u&&e+h<=u+d-A&&(null===this.startRow&&(this.startRow=f),this.endRow=f),o.push(e),e+=h,a||(this.endRow=f),e>=u+d-A){n=!1;break}if(this.endRow===c-1&&n)for(this.startRow=this.endRow;this.startRow>0;){var g=o[this.endRow]+h-o[this.startRow-1];if((g<=d-A||!a)&&this.startRow--,g>=d-A)break}null!==this.startRow&&s&&s(this),this.startPosition=o[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),t}();e.default=a},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,t||(0,a.isVisible)(this.wtTable.TABLE)?this.wtTable.draw(t):this.drawInterrupted=!0,this}},{key:"getCell",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.wtTable.getCell(t);var n=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),r=this.wtSettings.getSetting("fixedColumnsLeft");if(t.row=n-i){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(t)}else{if(t.coln-i&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(t)}return this.wtTable.getCell(t)}},{key:"update",value:function(t,e){return this.wtSettings.update(t,e)}},{key:"scrollVertical",value:function(t){return this.wtOverlays.topOverlay.scrollTo(t),this.getSetting("onScrollVertically"),this}},{key:"scrollHorizontal",value:function(t){return this.wtOverlays.leftOverlay.scrollTo(t),this.getSetting("onScrollHorizontally"),this}},{key:"scrollViewport",value:function(t){return this.wtScroll.scrollViewport(t),this}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isOverlayName",value:function(t){return!!this.cloneOverlay&&this.cloneOverlay.type===t}},{key:"exportSettingsAsClassNames",value:function(){var t=this,e={rowHeaders:["array"],columnHeaders:["array"]},n=[],o=[];(0,s.objectEach)(e,function(e,i){e.indexOf("array")>-1&&t.getSetting(i).length&&o.push("ht"+(0,l.toUpperCaseFirst)(i)),n.push("ht"+(0,l.toUpperCaseFirst)(i))}),(0,a.removeClass)(this.wtTable.wtRootElement.parentNode,n),(0,a.addClass)(this.wtTable.wtRootElement.parentNode,o)}},{key:"getSetting",value:function(t,e,n,o,i){return this.wtSettings.getSetting(t,e,n,o,i)}},{key:"hasSetting",value:function(t){return this.wtSettings.has(t)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),t}();e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=this,n=new u.default(t);this.instance=t;var o=[null,null];this.dblClickTimeout=[null,null];var i,l=function(t){var n=document.activeElement,i=(0,a.partial)(r.getParent,t.realTarget),s=t.realTarget;if(s!==n&&i(0)!==n&&i(1)!==n){var l=e.parentCell(s);(0,r.hasClass)(s,"corner")?e.instance.getSetting("onCellCornerMouseDown",t,s):l.TD&&e.instance.hasSetting("onCellMouseDown")&&e.instance.getSetting("onCellMouseDown",t,l.coords,l.TD,e.instance),2!==t.button&&l.TD&&(o[0]=l.TD,clearTimeout(e.dblClickTimeout[0]),e.dblClickTimeout[0]=setTimeout(function(){o[0]=null},1e3))}},c=function(t){e.instance.touchMoving=!0},d=function(t){n.addEventListener(this,"touchmove",c),e.checkIfTouchMove=setTimeout(function(){e.instance.touchMoving===!0&&(e.instance.touchMoving=void 0,n.removeEventListener("touchmove",c,!1)),l(t)},30)},A=function(t){var n,o,i;e.instance.hasSetting("onCellMouseOver")&&(n=e.instance.wtTable.TABLE,o=(0,r.closestDown)(t.realTarget,["TD","TH"],n),i=e.instance.cloneSource||e.instance,o&&o!==i.lastMouseOver&&(0,r.isChildOf)(o,n)&&(i.lastMouseOver=o,e.instance.getSetting("onCellMouseOver",t,e.instance.wtTable.getCoords(o),o,e.instance)))},h=function(t){var n=void 0,o=void 0,i=void 0;e.instance.hasSetting("onCellMouseOut")&&(n=e.instance.wtTable.TABLE,o=(0,r.closestDown)(t.realTarget,["TD","TH"],n),i=(0,r.closestDown)(t.relatedTarget,["TD","TH"],n),o&&o!==i&&(0,r.isChildOf)(o,n)&&e.instance.getSetting("onCellMouseOut",t,e.instance.wtTable.getCoords(o),o,e.instance))},f=function(t){if(2!==t.button){var n=e.parentCell(t.realTarget);n.TD===o[0]&&n.TD===o[1]?((0,r.hasClass)(t.realTarget,"corner")?e.instance.getSetting("onCellCornerDblClick",t,n.coords,n.TD,e.instance):e.instance.getSetting("onCellDblClick",t,n.coords,n.TD,e.instance),o[0]=null,o[1]=null):n.TD===o[0]?(e.instance.getSetting("onCellMouseUp",t,n.coords,n.TD,e.instance),o[1]=n.TD,clearTimeout(e.dblClickTimeout[1]),e.dblClickTimeout[1]=setTimeout(function(){o[1]=null},500)):n.TD&&e.instance.hasSetting("onCellMouseUp")&&e.instance.getSetting("onCellMouseUp",t,n.coords,n.TD,e.instance)}},g=function(t){clearTimeout(i),t.preventDefault(),f(t)};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",l),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",A),n.addEventListener(this.instance.wtTable.TABLE,"mouseout",h),n.addEventListener(this.instance.wtTable.holder,"mouseup",f),this.instance.wtTable.holder.parentNode.parentNode&&(0,s.isMobileBrowser)()&&!e.instance.wtTable.isWorkingOnClone()){var p="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(t){e.instance.touchApplied=!0,(0,r.isChildOf)(t.target,p)&&d.call(t.target,t)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(t){e.instance.touchApplied=!1,(0,r.isChildOf)(t.target,p)&&g.call(t.target,t)}),e.instance.momentumScrolling||(e.instance.momentumScrolling={}),n.addEventListener(this.instance.wtTable.holder,"scroll",function(t){clearTimeout(e.instance.momentumScrolling._timeout),e.instance.momentumScrolling.ongoing||e.instance.getSetting("onBeforeTouchScroll"),e.instance.momentumScrolling.ongoing=!0,e.instance.momentumScrolling._timeout=setTimeout(function(){e.instance.touchApplied||(e.instance.momentumScrolling.ongoing=!1,e.instance.getSetting("onAfterMomentumScroll"))},200)})}n.addEventListener(window,"resize",function(){"none"!==e.instance.getSetting("stretchH")&&e.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}e.__esModule=!0;var r=n(0),a=n(35),s=n(25),l=n(4),u=o(l);i.prototype.parentCell=function(t){var e={},n=this.instance.wtTable.TABLE,o=(0,r.closestDown)(t,["TD","TH"],n);return o?(e.coords=this.instance.wtTable.getCoords(o),e.TD=o):(0,r.hasClass)(t,"wtBorder")&&(0,r.hasClass)(t,"current")?(e.coords=this.instance.selections.current.cellRange.highlight,e.TD=this.instance.wtTable.getCell(e.coords)):(0,r.hasClass)(t,"wtBorder")&&(0,r.hasClass)(t,"area")&&this.instance.selections.area.cellRange&&(e.coords=this.instance.selections.area.cellRange.to,e.TD=this.instance.wtTable.getCell(e.coords)),e},e.default=i},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n-1){u=d;break}d=d.parentNode}return c.target=u,u===i||u===r?(this.syncScrollPositions(c,a*l,"x"),this.syncScrollPositions(c,a*s,"y")):(u===e||u===n?A=s:u===o&&(A=l),this.syncScrollPositions(c,a*A)),!1}},{key:"syncScrollPositions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.destroyed){if(0===arguments.length)return void this.syncScrollWithMaster();var o=this.leftOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=t.target,s=0,l=!1,u=void 0,c=void 0,d=void 0,A=void 0,h=void 0,f=!1,g=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(u=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(h=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(c=this.leftOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.topOverlay.needFullRender&&(d=this.topLeftCornerOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.bottomOverlay.needFullRender&&(A=this.bottomLeftCornerOverlay.clone.wtTable.holder),r===document&&(r=window),r===o||r===i?(s=g?(0,a.getScrollLeft)(this.scrollableElement):(0,a.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=s,l=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(u&&u.scrollLeft!==s&&(null==e&&this.pendingScrollCallbacks.top.left++,u.scrollLeft=s,f=o!==window),h&&h.scrollLeft!==s&&(null==e&&this.pendingScrollCallbacks.bottom.left++,h.scrollLeft=s,f=o!==window)),s=(0,a.getScrollTop)(r),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=s,l=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:c&&c.scrollTop!==s&&(null==e&&this.pendingScrollCallbacks.left.top++,c.scrollTop=s,f=i!==window)):r===h?(s=(0,a.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=s,l=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==e&&this.pendingScrollCallbacks.master.left++,o.scrollLeft=s,u&&u.scrollLeft!==s&&(null==e&&this.pendingScrollCallbacks.top.left++,u.scrollLeft=s,f=i!==window)),null!==e&&(l=!0,i.scrollTop+=e)):r===u?(s=(0,a.getScrollLeft)(r),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=s,l=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==e&&this.pendingScrollCallbacks.master.left++,o.scrollLeft=s),null!==e&&(l=!0,i.scrollTop+=e),h&&h.scrollLeft!==s&&(null==e&&this.pendingScrollCallbacks.bottom.left++,h.scrollLeft=s,f=i!==window)):r===c?(s=(0,a.getScrollTop)(r),this.overlayScrollPositions.left.top!==s&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=s,l=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==e&&this.pendingScrollCallbacks.master.top++,i.scrollTop=s)),null!==e&&(l=!0,i.scrollLeft+=e)):r!==d&&r!==A||null!==e&&(l=!0,"x"===n?i.scrollLeft+=e:"y"===n&&(i.scrollTop+=e)),!this.keyPressed&&l&&"scroll"===t.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),f&&(this.delegatedScrollCallback=!0))}}},{key:"syncScrollWithMaster",value:function(){var t=this.topOverlay.mainTableScrollableElement,e=t.scrollLeft,n=t.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=e),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=e),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=(0,a.getScrollableElement)(this.wot.wtTable.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var e=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=e.clientWidth,o=e.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(t),this.leftOverlay.refresh(t),this.topOverlay.refresh(t),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(t),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(t),this.debug&&this.debug.refresh(t)}},{key:"adjustElementsSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),i=this.wot.wtViewport.getColumnHeaderHeight(),r=this.wot.wtTable.hider.style;r.width=o+this.leftOverlay.sumCellSizes(0,e)+"px",r.height=i+this.topOverlay.sumCellSizes(0,n)+1+"px",this.topOverlay.adjustElementsSize(t),this.leftOverlay.adjustElementsSize(t),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(t)}},{key:"applyToDOM",value:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}},{key:"getParentOverlay",value:function(t){if(!t)return null;var e=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,s.arrayEach)(e,function(e,o){e&&e.clone&&e.clone.wtTable.TABLE.contains(t)&&(n=e.clone)}),n}}]),t}();e.default=f},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;nMath.max(i-1,0))throw new Error("row "+t.row+" does not exist");if(t.col<0||t.col>Math.max(r-1,0))throw new Error("column "+t.col+" does not exist");t.row>=a&&t.rowthis.getLastVisibleRow()&&t.row=l&&t.colthis.getLastVisibleColumn()&&o.scrollTo(t.col,!0)}}},{key:"getFirstVisibleRow",value:function(){var t=this._getVariables(),e=t.topOverlay,n=t.wtTable,o=t.wtViewport,i=t.totalRows,s=t.fixedRowsTop,l=n.getFirstVisibleRow();if(e.mainTableScrollableElement===window){var u=(0,r.offset)(n.wtRootElement),c=(0,r.innerHeight)(n.hider),d=(0,r.innerHeight)(window),A=(0,r.getScrollTop)(window);if(u.top+c-d<=A){var h=o.getColumnHeaderHeight();h+=e.sumCellSizes(0,s),(0,a.rangeEachReverse)(i,1,function(t){if(h+=e.sumCellSizes(t-1,t),u.top+c-h<=A)return l=t,!1})}}return l}},{key:"getLastVisibleRow",value:function(){var t=this._getVariables(),e=t.topOverlay,n=t.wtTable,o=t.wtViewport,i=t.totalRows,s=n.getLastVisibleRow();if(e.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerHeight)(window),c=(0,r.getScrollTop)(window);if(l.top>c){var d=o.getColumnHeaderHeight();(0,a.rangeEach)(1,i,function(t){if(d+=e.sumCellSizes(t-1,t),l.top+d-c>=u)return s=t-2,!1})}}return s}},{key:"getFirstVisibleColumn",value:function(){var t=this._getVariables(),e=t.leftOverlay,n=t.wtTable,o=t.wtViewport,i=t.totalColumns,s=(t.fixedColumnsLeft,n.getFirstVisibleColumn());if(e.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerWidth)(n.hider),c=(0,r.innerWidth)(window),d=(0,r.getScrollLeft)(window);if(l.left+u-c<=d){var A=o.getRowHeaderWidth();(0,a.rangeEachReverse)(i,1,function(t){if(A+=e.sumCellSizes(t-1,t),l.left+u-A<=d)return s=t,!1})}}return s}},{key:"getLastVisibleColumn",value:function(){var t=this._getVariables(),e=t.leftOverlay,n=t.wtTable,o=t.wtViewport,i=t.totalColumns,s=n.getLastVisibleColumn();if(e.mainTableScrollableElement===window){var l=(0,r.offset)(n.wtRootElement),u=(0,r.innerWidth)(window),c=(0,r.getScrollLeft)(window);if(l.left>c){var d=o.getRowHeaderWidth();(0,a.rangeEach)(1,i,function(t){if(d+=e.sumCellSizes(t-1,t),l.left+d-c>=u)return s=t-2,!1})}}return s}},{key:"_getVariables",value:function(){var t=this.wot,e=t.wtOverlays.topOverlay,n=t.wtOverlays.leftOverlay,o=t.wtTable,i=t.wtViewport,r=t.getSetting("totalRows"),a=t.getSetting("totalColumns"),s=t.getSetting("fixedRowsTop"),l=t.getSetting("fixedRowsBottom"),u=t.getSetting("fixedColumnsLeft");return{topOverlay:e,leftOverlay:n,wtTable:o,wtViewport:i,totalRows:r,totalColumns:a,fixedRowsTop:s,fixedRowsBottom:l,fixedColumnsLeft:u}}}]),t}();e.default=s},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n0,c!==this.correctHeaderWidth&&(t=!1)}if(this.isWorkingOnClone()||(s=n.prepareOverlays()),t)this.isWorkingOnClone()||o.createVisibleCalculators(),n&&n.refresh(!0);else{this.isWorkingOnClone()?this.tableOffset=this.wot.cloneSource.wtTable.tableOffset:this.tableOffset=(0,l.offset)(this.TABLE);var d=void 0;d=w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_DEBUG)||w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_TOP)||w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_TOP_LEFT_CORNER)?0:w.default.isOverlayTypeOf(this.instance.cloneOverlay,w.default.CLONE_BOTTOM)||w.default.isOverlayTypeOf(this.instance.cloneOverlay,w.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(i-this.wot.getSetting("fixedRowsBottom"),0):o.rowsRenderCalculator.startRow;var A=void 0;A=w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_DEBUG)||w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_LEFT)||w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_TOP_LEFT_CORNER)||w.default.isOverlayTypeOf(this.wot.cloneOverlay,w.default.CLONE_BOTTOM_LEFT_CORNER)?0:o.columnsRenderCalculator.startColumn,this.rowFilter=new p.default(d,i,a),this.columnFilter=new f.default(A,this.wot.getSetting("totalColumns"),r),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(t),this.isWorkingOnClone()||(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),s&&n.syncScrollWithMaster(),this.wot.drawn=!0,this}},{key:"_doDraw",value:function(){var t=new y.default(this);t.render()}},{key:"removeClassFromCells",value:function(t){for(var e=this.TABLE.querySelectorAll("."+t),n=0,o=e.length;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[e];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(t)]}},{key:"getRowHeader",value:function(t){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var e=this.TBODY.childNodes[this.rowFilter.sourceToRendered(t)];return e?e.childNodes[0]:void 0}},{key:"getCoords",value:function(t){if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,l.closest)(t,["TD","TH"])),null===t)return null;var e=t.parentNode,n=e.parentNode,o=(0,l.index)(e),i=t.cellIndex;return(0,l.overlayContainsElement)(w.default.CLONE_TOP_LEFT_CORNER,t)||(0,l.overlayContainsElement)(w.default.CLONE_TOP,t)?"THEAD"===n.nodeName&&(o-=n.childNodes.length):o=n===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),i=(0,l.overlayContainsElement)(w.default.CLONE_TOP_LEFT_CORNER,t)||(0,l.overlayContainsElement)(w.default.CLONE_LEFT,t)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new d.default(o,i)}},{key:"getTrForRow",value:function(t){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(t)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(t){return this.rowFilter&&this.rowFilter.sourceToRendered(t)<0&&t>=0}},{key:"isRowAfterViewport",value:function(t){return this.rowFilter&&this.rowFilter.sourceToRendered(t)>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(t){return this.rowFilter&&this.rowFilter.sourceToRendered(t)>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(t){return this.columnFilter&&this.columnFilter.sourceToRendered(t)<0&&t>=0}},{key:"isColumnAfterViewport",value:function(t){return this.columnFilter&&this.columnFilter.sourceToRendered(t)>this.getLastVisibleColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var t=this.wot.wtViewport.columnsRenderCalculator.count,e=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(w.default.CLONE_DEBUG))t=e;else if(this.wot.isOverlayName(w.default.CLONE_LEFT)||this.wot.isOverlayName(w.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(w.default.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),e);return t}},{key:"getRenderedRowsCount",value:function(){var t=this.wot.wtViewport.rowsRenderCalculator.count,e=this.wot.getSetting("totalRows");return this.wot.isOverlayName(w.default.CLONE_DEBUG)?t=e:this.wot.isOverlayName(w.default.CLONE_TOP)||this.wot.isOverlayName(w.default.CLONE_TOP_LEFT_CORNER)?t=Math.min(this.wot.getSetting("fixedRowsTop"),e):(this.wot.isOverlayName(w.default.CLONE_BOTTOM)||this.wot.isOverlayName(w.default.CLONE_BOTTOM_LEFT_CORNER))&&(t=Math.min(this.wot.getSetting("fixedRowsBottom"),e)),t}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()}},{key:"getRowHeight",value:function(t){var e=this.wot.wtSettings.settings.rowHeight(t),n=this.wot.wtViewport.oversizedRows[t];return void 0!==n&&(e=void 0===e?n:Math.max(e,n)),e}},{key:"getColumnHeaderHeight",value:function(t){var e=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[t];return void 0!==n&&(e=e?Math.max(e,n):n),e}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()}},{key:"getColumnWidth",value:function(t){var e=this.wot.wtSettings.settings.columnWidth;return"function"==typeof e?e=e(t):"object"===("undefined"==typeof e?"undefined":a(e))&&(e=e[t]),e||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(t){var e=this.getColumnWidth(t),n=null==e?this.instance.wtSettings.settings.defaultColumnWidth:e,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var i=o.getStretchedColumnWidth(t,n);i&&(n=i)}return n}},{key:"_modifyRowHeaderWidth",value:function(t){var e=(0,u.isFunction)(t)?t():null;return Array.isArray(e)?(e=[].concat(i(e)),e[e.length-1]=this._correctRowHeaderWidth(e[e.length-1])):e=this._correctRowHeaderWidth(e),e}},{key:"_correctRowHeaderWidth",value:function(t){return"number"!=typeof t&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&t++,t}}]),t}();e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){var n=document.createElement("TH");return e.insertBefore(n,t),e.removeChild(t),n}function a(t,e){var n=document.createElement("TD");return e.insertBefore(n,t),e.removeChild(t),n}e.__esModule=!0;var s=function(){function t(t,e){for(var n=0;n=0&&(this.adjustAvailableNodes(),a=!0,this.renderColumnHeaders(),this.renderRows(i,n,e),this.wtTable.isWorkingOnClone()||(r=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(e),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),a||this.adjustAvailableNodes(),this.removeRedundantRows(n),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(c.default.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(c.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var s=(0,l.outerWidth)(this.wtTable.hider),u=(0,l.outerWidth)(this.wtTable.TABLE);if(0!==s&&u!==s&&this.adjustColumnWidths(e),r!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var d=this.wtTable.getFirstRenderedColumn(),A=this.wtTable.getLastRenderedColumn(),h=this.wot.getSetting("defaultColumnWidth"),f=this.wot.getSetting("rowHeaderWidth");if(f=this.instance.getSetting("onModifyRowHeaderWidth",f), @@ -43,15 +43,15 @@ weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma cultureCode:"es-CR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"₡",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"es-ES",cultureCode:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"es-NI",cultureCode:"es-NI",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"C$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"es-PE",cultureCode:"es-PE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"S/.",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"es-PR",cultureCode:"es-PR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"es-SV",cultureCode:"es-SV",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"et-EE",cultureCode:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"fa-IR",cultureCode:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"fi-FI",cultureCode:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"fil-PH",cultureCode:"fil-PH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"₱"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"fr-CA",cultureCode:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(t){return 1===t?"er":"ème"},currency:{symbol:"$",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"fr-CH",cultureCode:"fr-CH",delimiters:{thousands:" ",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){return 1===t?"er":"ème"},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"fr-FR",cultureCode:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){return 1===t?"er":"ème"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"he-IL",cultureCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"₪ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"₪ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"hu-HU",cultureCode:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"id",cultureCode:"id",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"r",million:"j",billion:"m",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Rp"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("id",e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"it-CH",cultureCode:"it-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"°"},currency:{symbol:"CHF"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("it-CH",e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"it-IT",cultureCode:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"ja-JP",cultureCode:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"ko-KR",cultureCode:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"lv-LV",cultureCode:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"nb-NO",cultureCode:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"t"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"nb",cultureCode:"nb",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("nb",e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"nl-BE",cultureCode:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(t){var e=t%100;return 0!==t&&e<=1||8===e||e>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"nl-NL",cultureCode:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(t){var e=t%100;return 0!==t&&e<=1||8===e||e>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){!function(){"use strict";var e={langLocaleCode:"nn",cultureCode:"nn",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.language&&window.numbro.language("nn",e)}()},function(t,e){(function(){"use strict";var e={langLocaleCode:"pl-PL",cultureCode:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" zł",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"pt-BR",cultureCode:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"pt-PT",cultureCode:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"ro-RO",cultureCode:"ro-RO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mii",million:"mil",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" lei",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"ro",cultureCode:"ro",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mie",million:"mln",billion:"mld",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RON"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("ro",e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"ru-RU",cultureCode:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб.",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"ru-UA",cultureCode:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"sk-SK",cultureCode:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){!function(){"use strict";var e={langLocaleCode:"sl",cultureCode:"sl",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sl",e)}()},function(t,e){!function(){"use strict";var e={langLocaleCode:"sr-Cyrl-RS",cultureCode:"sr-Cyrl-RS",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RSD"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sr-Cyrl-RS",e)}()},function(t,e){(function(){"use strict";var e={langLocaleCode:"sv-SE",cultureCode:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n={langLocaleCode:"tr-TR",cultureCode:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(t){if(0===t)return"'ıncı";var n=t%10,o=t%100-n,i=t>=100?100:null;return e[n]||e[o]||e[i]},currency:{symbol:"₺",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=n),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(n.cultureCode,n)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"uk-UA",cultureCode:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"zh-CN",cultureCode:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e){!function(){"use strict";var e={langLocaleCode:"zh-MO",cultureCode:"zh-MO",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"MOP"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-MO",e)}()},function(t,e){(function(){"use strict";var e={langLocaleCode:"zh-SG",cultureCode:"zh-SG",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"$"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-SG",e)}).call("undefined"==typeof window?this:window)},function(t,e){(function(){"use strict";var e={langLocaleCode:"zh-TW",cultureCode:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window)},function(t,e,n){!function(e,o){"use strict";var i;try{i=n(62)}catch(t){}t.exports=o(i)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,o=window.document,i=window.setTimeout,r=function(t,e,o,i){n?t.addEventListener(e,o,!!i):t.attachEvent("on"+e,o)},a=function(t,e,o,i){n?t.removeEventListener(e,o,!!i):t.detachEvent("on"+e,o)},s=function(t,e,n){var i;o.createEvent?(i=o.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=m(i,n),t.dispatchEvent(i)):o.createEventObject&&(i=o.createEventObject(),i=m(i,n),t.fireEvent("on"+e,i))},l=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},u=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},c=function(t,e){u(t,e)||(t.className=""===t.className?e:t.className+" "+e)},d=function(t,e){t.className=l((" "+t.className+" ").replace(" "+e+" "," "))},A=function(t){return/Array/.test(Object.prototype.toString.call(t))},h=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},f=function(t){var e=t.getDay();return 0===e||6===e},g=function(t){return t%4===0&&t%100!==0||t%400===0},p=function(t,e){return[31,g(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},M=function(t){h(t)&&t.setHours(0,0,0,0)},y=function(t,e){return t.getTime()===e.getTime()},m=function(t,e,n){var o,i;for(o in e)i=void 0!==t[o],i&&"object"==typeof e[o]&&null!==e[o]&&void 0===e[o].nodeName?h(e[o])?n&&(t[o]=new Date(e[o].getTime())):A(e[o])?n&&(t[o]=e[o].slice(0)):t[o]=m({},e[o],n):!n&&i||(t[o]=e[o]);return t},w=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},v={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},b=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},C=function(t){if(t.isEmpty)return'';var e=[];return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&e.push("is-selected"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'"},E=function(t,e,n){var o=new Date(n,0,1),i=Math.ceil(((new Date(n,e,t)-o)/864e5+o.getDay()+1)/7);return''+i+""},T=function(t,e){return""+(e?t.reverse():t).join("")+""},I=function(t){return""+t.join("")+""},x=function(t){var e,n=[];for(t.showWeekNumber&&n.push(""),e=0;e<7;e++)n.push(''+b(t,e,!0)+"");return""+(t.isRTL?n.reverse():n).join("")+""},D=function(t,e,n,o,i){var r,a,s,l,u,c=t._o,d=n===c.minYear,h=n===c.maxYear,f='
',g=!0,p=!0;for(s=[],r=0;r<12;r++)s.push('");for(l='
'+c.i18n.months[o]+'
",A(c.yearRange)?(r=c.yearRange[0],a=c.yearRange[1]+1):(r=n-c.yearRange,a=1+n+c.yearRange),s=[];r=c.minYear&&s.push('");return u='
'+n+c.yearSuffix+'
",f+=c.showMonthAfterYear?u+l:l+u,d&&(0===o||c.minMonth>=o)&&(g=!1),h&&(11===o||c.maxMonth<=o)&&(p=!1),0===e&&(f+='"),e===t._o.numberOfMonths-1&&(f+='"),f+="
"},N=function(t,e){return''+x(t)+I(e)+"
"},L=function(a){var s=this,l=s.config(a);s._onMouseDown=function(t){if(s._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(u(e,"is-disabled")||(u(e,"pika-button")&&!u(e,"is-empty")?(s.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),l.bound&&i(function(){s.hide(),l.field&&l.field.blur()},100)):u(e,"pika-prev")?s.prevMonth():u(e,"pika-next")&&s.nextMonth()),u(e,"pika-select"))s._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},s._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(u(e,"pika-select-month")?s.gotoMonth(e.value):u(e,"pika-select-year")&&s.gotoYear(e.value))},s._onInputChange=function(n){var o;n.firedBy!==s&&(e?(o=t(l.field.value,l.format),o=o&&o.isValid()?o.toDate():null):o=new Date(Date.parse(l.field.value)),h(o)&&s.setDate(o),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var t=o.activeElement;do if(u(t,"pika-single"))return;while(t=t.parentNode);s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,o=e;if(e){!n&&u(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),r(e,"change",s._onChange)));do if(u(o,"pika-single")||o===l.trigger)return;while(o=o.parentNode); s._v&&e!==l.trigger&&o!==l.trigger&&s.hide()}},s.el=o.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(s.el,"mousedown",s._onMouseDown,!0),r(s.el,"touchend",s._onMouseDown,!0),r(s.el,"change",s._onChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?o.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),r(l.field,"change",s._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;h(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",r(l.trigger,"click",s._onInputClick),r(l.trigger,"focus",s._onInputFocus),r(l.trigger,"blur",s._onInputBlur)):this.show()};return L.prototype={config:function(t){this._o||(this._o=m({},v,!0));var e=m(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,h(e.minDate)||(e.minDate=!1),h(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate100&&(e.yearRange=100);return e},toString:function(n){return h(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,o){e&&t.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),h(t)){var n=this._o.minDate,o=this._o.maxDate;h(n)&&to&&(t=o),this._d=new Date(t.getTime()),M(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(h(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),e=i=o&&(this._y=o,!isNaN(a)&&this._m>a&&(this._m=a));for(var l=0;l'+D(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"
";if(this.el.innerHTML=s,e.bound&&"hidden"!==e.field.type&&i(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var u=this;i(function(){u._o.onDraw.call(u)},0)}}},adjustPosition:function(){var t,e,n,i,r,a,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,i=this.el.offsetHeight,r=window.innerWidth||o.documentElement.clientWidth,a=window.innerHeight||o.documentElement.clientHeight,s=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)c=t.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=e.offsetLeft,u=e.offsetTop+e.offsetHeight;e=e.offsetParent;)l+=e.offsetLeft,u+=e.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+t.offsetWidth>0)&&(l=l-n+t.offsetWidth),(this._o.reposition&&u+i>a+s||this._o.position.indexOf("top")>-1&&u-i-t.offsetHeight>0)&&(u=u-i-t.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(t,e){var n=this._o,o=new Date,i=p(t,e),r=new Date(t,e,1).getDay(),a=[],s=[];M(o),n.firstDay>0&&(r-=n.firstDay,r<0&&(r+=7));for(var l=i+r,u=l;u>7;)u-=7;l+=7-u;for(var c=0,d=0;c=i+r,v=n.startRange&&y(n.startRange,A),b=n.endRange&&y(n.endRange,A),I=n.startRange&&n.endRange&&n.startRangen.maxDate||n.disableWeekends&&f(A)||n.disableDayFn&&n.disableDayFn(A),D={day:1+(c-r),month:e,year:t,isSelected:g,isToday:m,isDisabled:x,isEmpty:w,isStartRange:v,isEndRange:b,isInRange:I};s.push(C(D)),7===++d&&(n.showWeekNumber&&s.unshift(E(c-r,e,t)),a.push(T(s,n.isRTL)),s=[],d=0)}return N(n,a)},isVisible:function(){return this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(r(o,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&a(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},L})},function(t,e,n){var o;!function(i,r){"use strict";var a,s,l,u=i,c=u.document,d=u.navigator,A=u.setTimeout,h=u.clearTimeout,f=u.setInterval,g=u.clearInterval,p=u.getComputedStyle,M=u.encodeURIComponent,y=u.ActiveXObject,m=u.Error,w=u.Number.parseInt||u.parseInt,v=u.Number.parseFloat||u.parseFloat,b=u.Number.isNaN||u.isNaN,C=u.Date.now,E=u.Object.keys,T=u.Object.prototype.hasOwnProperty,I=u.Array.prototype.slice,x=function(){var t=function(t){return t};if("function"==typeof u.wrap&&"function"==typeof u.unwrap)try{var e=c.createElement("div"),n=u.unwrap(e);1===e.nodeType&&n&&1===n.nodeType&&(t=u.unwrap)}catch(t){}return t}(),D=function(t){return I.call(t,0)},N=function(){var t,e,n,o,i,a,s=D(arguments),l=s[0]||{};for(t=1,e=s.length;t=0&&(X=A(function(){"boolean"!=typeof P.deactivated&&(P.deactivated=!0),P.deactivated===!0&&ne.emit({type:"error",name:"flash-deactivated"})},t)),P.overdue=!1,jt())))):(P.ready=!1,void ne.emit({type:"error",name:"browser-unsupported"}))},ht=function(){ne.clearData(),ne.blur(),ne.emit("destroy"),_t(),ne.off()},ft=function(t,e){var n;if("object"==typeof t&&t&&"undefined"==typeof e)n=t,ne.clearData();else{if("string"!=typeof t||!t)return;n={},n[t]=e}for(var o in n)"string"==typeof o&&o&&T.call(n,o)&&"string"==typeof n[o]&&n[o]&&(W[o]=$t(n[o]))},gt=function(t){"undefined"==typeof t?(k(W),J=null):"string"==typeof t&&T.call(W,t)&&delete W[t]},pt=function(t){return"undefined"==typeof t?L(W):"string"==typeof t&&T.call(W,t)?W[t]:void 0},Mt=function(t){if(t&&1===t.nodeType){s&&(Vt(s,nt.activeClass),s!==t&&Vt(s,nt.hoverClass)),s=t,Pt(t,nt.hoverClass);var e=t.getAttribute("title")||nt.title;if("string"==typeof e&&e){var n=kt(P.bridge);n&&n.setAttribute("title",e)}var o=nt.forceHandCursor===!0||"pointer"===Gt(t,"cursor");Kt(o),Zt()}},yt=function(){var t=kt(P.bridge);t&&(t.removeAttribute("title"),t.style.left="0px",t.style.top="-9999px",t.style.width="1px",t.style.height="1px"),s&&(Vt(s,nt.hoverClass),Vt(s,nt.activeClass),s=null)},mt=function(){return s||null},wt=function(t){return"string"==typeof t&&t&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(t)},vt=function(t){var e;if("string"==typeof t&&t?(e=t,t={}):"object"==typeof t&&t&&"string"==typeof t.type&&t.type&&(e=t.type),e){e=e.toLowerCase(),!t.target&&(/^(copy|aftercopy|_click)$/.test(e)||"error"===e&&"clipboard-error"===t.name)&&(t.target=l),N(t,{type:e,target:t.target||s||null,relatedTarget:t.relatedTarget||null,currentTarget:P&&P.bridge||null,timeStamp:t.timeStamp||C()||null});var n=K[t.type];return"error"===t.type&&t.name&&n&&(n=n[t.name]),n&&(t.message=n),"ready"===t.type&&N(t,{target:null,version:P.version}),"error"===t.type&&(tt.test(t.name)&&N(t,{target:null,minimumVersion:V}),et.test(t.name)&&N(t,{version:P.version}),"flash-insecure"===t.name&&N(t,{pageProtocol:u.location.protocol,swfProtocol:dt()})),"copy"===t.type&&(t.clipboardData={setData:ne.setData,clearData:ne.clearData}),"aftercopy"===t.type&&(t=Rt(t,J)),t.target&&!t.relatedTarget&&(t.relatedTarget=bt(t.target)),Ct(t)}},bt=function(t){var e=t&&t.getAttribute&&t.getAttribute("data-clipboard-target");return e?c.getElementById(e):null},Ct=function(t){if(t&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(t.type)){var e=t.target,n="_mouseover"===t.type&&t.relatedTarget?t.relatedTarget:r,o="_mouseout"===t.type&&t.relatedTarget?t.relatedTarget:r,i=Wt(e),a=u.screenLeft||u.screenX||0,s=u.screenTop||u.screenY||0,l=c.body.scrollLeft+c.documentElement.scrollLeft,d=c.body.scrollTop+c.documentElement.scrollTop,A=i.left+("number"==typeof t._stageX?t._stageX:0),h=i.top+("number"==typeof t._stageY?t._stageY:0),f=A-l,g=h-d,p=a+f,M=s+g,y="number"==typeof t.movementX?t.movementX:0,m="number"==typeof t.movementY?t.movementY:0;delete t._stageX,delete t._stageY,N(t,{srcElement:e,fromElement:n,toElement:o,screenX:p,screenY:M,pageX:A,pageY:h,clientX:f,clientY:g,x:f,y:g,movementX:y,movementY:m,offsetX:0,offsetY:0,layerX:0,layerY:0})}return t},Et=function(t){var e=t&&"string"==typeof t.type&&t.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(e)},Tt=function(t,e,n,o){o?A(function(){t.apply(e,n)},0):t.apply(e,n)},It=function(t){if("object"==typeof t&&t&&t.type){var e=Et(t),n=G["*"]||[],o=G[t.type]||[],i=n.concat(o);if(i&&i.length){var r,a,s,l,c,d=this;for(r=0,a=i.length;r0){var e=L(t);N(e,{type:"error",name:"clipboard-error"}),delete e.success,A(function(){ne.emit(e)},0)}},Lt=function(t){if(t&&"string"==typeof t.type&&t){var e,n=t.target||null,o=n&&n.ownerDocument||c,i={view:o.defaultView||u,canBubble:!0,cancelable:!0,detail:"click"===t.type?1:0,button:"number"==typeof t.which?t.which-1:"number"==typeof t.button?t.button:o.createEvent?0:1},r=N(i,t);n&&o.createEvent&&n.dispatchEvent&&(r=[r.type,r.canBubble,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget],e=o.createEvent("MouseEvents"),e.initMouseEvent&&(e.initMouseEvent.apply(e,r),e._source="js",n.dispatchEvent(e)))}},St=function(){var t=nt.flashLoadTimeout;if("number"==typeof t&&t>=0){var e=Math.min(1e3,t/10),n=nt.swfObjectId+"_fallbackContent";Z=f(function(){var t=c.getElementById(n);Jt(t)&&(Xt(),P.deactivated=null,ne.emit({type:"error",name:"swf-not-found"}))},e)}},Bt=function(){var t=c.createElement("div");return t.id=nt.containerId,t.className=nt.containerClass,t.style.position="absolute",t.style.left="0px",t.style.top="-9999px",t.style.width="1px",t.style.height="1px",t.style.zIndex=""+qt(nt.zIndex),t},kt=function(t){for(var e=t&&t.parentNode;e&&"OBJECT"===e.nodeName&&e.parentNode;)e=e.parentNode;return e||null},Qt=function(t){return"string"==typeof t&&t?t.replace(/["&'<>]/g,function(t){switch(t){case'"':return""";case"&":return"&";case"'":return"'";case"<":return"<";case">":return">";default:return t}}):t},jt=function(){var t,e=P.bridge,n=kt(e);if(!e){var o=zt(u.location.host,nt),i="never"===o?"none":"all",r=Ot(N({jsVersion:ne.version},nt)),a=nt.swfPath+Yt(nt.swfPath,nt);F&&(a=Qt(a)),n=Bt();var s=c.createElement("div");n.appendChild(s),c.body.appendChild(n);var l=c.createElement("div"),d="activex"===P.pluginType;l.innerHTML='"+(d?'':"")+'
 
',e=l.firstChild,l=null,x(e).ZeroClipboard=ne,n.replaceChild(e,s),St()}return e||(e=c[nt.swfObjectId],e&&(t=e.length)&&(e=e[t-1]),!e&&n&&(e=n.firstChild)),P.bridge=e||null,e},_t=function(){var t=P.bridge;if(t){var e=kt(t);e&&("activex"===P.pluginType&&"readyState"in t?(t.style.display="none",function n(){if(4===t.readyState){for(var o in t)"function"==typeof t[o]&&(t[o]=null);t.parentNode&&t.parentNode.removeChild(t),e.parentNode&&e.parentNode.removeChild(e)}else A(n,10)}()):(t.parentNode&&t.parentNode.removeChild(t),e.parentNode&&e.parentNode.removeChild(e))),Xt(),P.ready=null,P.bridge=null,P.deactivated=null,P.insecure=null,a=r}},Ut=function(t){var e={},n={};if("object"==typeof t&&t){for(var o in t)if(o&&T.call(t,o)&&"string"==typeof t[o]&&t[o])switch(o.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":e.text=t[o],n.text=o;break;case"text/html":case"html":case"air:html":case"flash:html":e.html=t[o],n.html=o;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":e.rtf=t[o],n.rtf=o}return{data:e,formatMap:n}}},Rt=function(t,e){if("object"!=typeof t||!t||"object"!=typeof e||!e)return t;var n={};for(var o in t)if(T.call(t,o))if("errors"===o){n[o]=t[o]?t[o].slice():[];for(var i=0,r=n[o].length;i0){if(1===r&&"*"===i[0])return"always";if(i.indexOf(e)!==-1)return 1===r&&e===o?"sameDomain":"always"}return"never"}}(),Ft=function(){try{return c.activeElement}catch(t){return null}},Pt=function(t,e){var n,o,i,r=[];if("string"==typeof e&&e&&(r=e.split(/\s+/)),t&&1===t.nodeType&&r.length>0){for(i=(" "+(t.className||"")+" ").replace(/[\t\r\n\f]/g," "),n=0,o=r.length;n0&&t.className){for(i=(" "+t.className+" ").replace(/[\t\r\n\f]/g," "),n=0,o=r.length;n0,o=v(e.width)>0,i=v(e.top)>=0,r=v(e.left)>=0,a=n&&o&&i&&r,s=a?null:Wt(t),l="none"!==e.display&&"collapse"!==e.visibility&&(a||!!s&&(n||s.height>0)&&(o||s.width>0)&&(i||s.top>=0)&&(r||s.left>=0));return l},Xt=function(){h(X),X=0,g(Z),Z=0},Zt=function(){var t;if(s&&(t=kt(P.bridge))){var e=Wt(s);N(t.style,{width:e.width+"px",height:e.height+"px",top:e.top+"px",left:e.left+"px",zIndex:""+qt(nt.zIndex)})}},Kt=function(t){P.ready===!0&&(P.bridge&&"function"==typeof P.bridge.setHandCursor?P.bridge.setHandCursor(t):P.ready=!1)},qt=function(t){if(/^(?:auto|inherit)$/.test(t))return t;var e;return"number"!=typeof t||b(t)?"string"==typeof t&&(e=qt(w(t,10))):e=t,"number"==typeof e?e:"auto"},$t=function(t){var e=/(\r\n|\r|\n)/g;return"string"==typeof t&&nt.fixLineEndings===!0&&(H()?/((^|[^\r])\n|\r([^\n]|$))/.test(t)&&(t=t.replace(e,"\r\n")):/\r/.test(t)&&(t=t.replace(e,"\n"))),t},te=function(t){var e,n,o,r=P.sandboxed,a=null;if(t=t===!0,z===!1)a=!1;else{try{n=i.frameElement||null}catch(t){o={name:t.name,message:t.message}}if(n&&1===n.nodeType&&"IFRAME"===n.nodeName)try{a=n.hasAttribute("sandbox")}catch(t){a=null}else{try{e=document.domain||null}catch(t){e=null}(null===e||o&&"SecurityError"===o.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(o.message.toLowerCase()))&&(a=!0)}}return P.sandboxed=a,r===a||t||ee(y),a},ee=function(t){function e(t){var e=t.match(/[\d]+/g);return e.length=3,e.join(".")}function n(t){return!!t&&(t=t.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(t)||"chrome.plugin"===t.slice(-13))}function o(t){t&&(s=!0,t.version&&(c=e(t.version)),!c&&t.description&&(c=e(t.description)),t.filename&&(u=n(t.filename)))}var i,r,a,s=!1,l=!1,u=!1,c="";if(d.plugins&&d.plugins.length)i=d.plugins["Shockwave Flash"],o(i),d.plugins["Shockwave Flash 2.0"]&&(s=!0,c="2.0.0.11");else if(d.mimeTypes&&d.mimeTypes.length)a=d.mimeTypes["application/x-shockwave-flash"],i=a&&a.enabledPlugin,o(i);else if("undefined"!=typeof t){l=!0;try{r=new t("ShockwaveFlash.ShockwaveFlash.7"),s=!0,c=e(r.GetVariable("$version"))}catch(n){try{r=new t("ShockwaveFlash.ShockwaveFlash.6"),s=!0,c="6.0.21"}catch(n){try{r=new t("ShockwaveFlash.ShockwaveFlash"),s=!0,c=e(r.GetVariable("$version"))}catch(t){l=!1}}}}P.disabled=s!==!0,P.outdated=c&&v(c)0,i=!t.target||o&&n.indexOf(t.target)!==-1,r=t.relatedTarget&&o&&n.indexOf(t.relatedTarget)!==-1,a=t.client&&t.client===this;return!(!e||!(i||r||a))},ye=function(t){var e=ie[this.id];if("object"==typeof t&&t&&t.type&&e){var n=Et(t),o=e&&e.handlers["*"]||[],i=e&&e.handlers[t.type]||[],r=o.concat(i);if(r&&r.length){var a,s,l,c,d,A=this;for(a=0,s=r.length;a'),e=$(''),n=$(''),o=$('
  • \n \n 保存\n \n
  • ');n.append(o);var i=new d.default,r=this;o.click(function(){var t=(0,h.tableToXml)(r.context);window._reportFile?$.ajax({url:window._server+"/designer/saveReportFile",data:{content:t,file:window._reportFile},type:"POST",success:function(){(0,A.alert)("保存成功!"),(0,h.resetDirty)()},error:function(){(0,A.alert)("文件保存错误!")}}):i.show(t,r.context)});var a=$('
  • \n \n 另存为\n \n
  • ');return n.append(a),a.click(function(){var t=(0,h.tableToXml)(r.context);i.show(t,r.context)}),t.append(e),t.append(n),t}},{key:"getTitle",value:function(){return"保存"}},{key:"getIcon",value:function(){return''}}]),e}(u.default);e.default=f},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n\n '+this.getIcon()+"\n "),e=this;return t.click(function(){e.execute()}),t}},{key:"checkSelection",value:function(){var t=this.context.hot.getSelected();return!(!t||0===t.length)||((0,r.alert)("请先选择单元格!"),!1)}}]),t}();e.default=a},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n