diff --git a/ureport2-console/src/main/resources/ureport-asserts/js/common.bundle.js b/ureport2-console/src/main/resources/ureport-asserts/js/common.bundle.js index 308b8d4..c89ee8b 100644 --- a/ureport2-console/src/main/resources/ureport-asserts/js/common.bundle.js +++ b/ureport2-console/src/main/resources/ureport-asserts/js/common.bundle.js @@ -1 +1,36 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,,function(e,t,n){(function(e){e.exports=function(){"use strict";var t,o;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,o=[];for(n=0;n>>0,o=0;o0)for(n in m)p(r=t[o=m[n]])||(e[o]=r);return e}var v=!1;function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function _(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e):Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function C(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(o=0;o0;){if(o=Y(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&C(r,n,!0)>=t-1)break;t--}i++}return null}(e)}var W={};function j(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e}function F(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0}function z(e){var t,n,o={};for(n in e)l(e,n)&&(t=F(n))&&(o[t]=e[n]);return o}function B(e,t){return function(n){return null!=n?(U(this,e,n),r.updateOffset(this,t),this):V(this,e)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function K(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(x(this[e=F(e)]))return this[e](t);return this}function G(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var X=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},Q={};function $(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Q[e]=r),t&&(Q[t[0]]=function(){return G(r.apply(this,arguments),t[1],t[2])}),n&&(Q[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Z(e,t){return e.isValid()?(t=ee(t,e.localeData()),q[t]=q[t]||function(e){var t,n,o,r=e.match(X);for(t=0,n=r.length;t=0&&J.test(e);)e=e.replace(J,o),J.lastIndex=0,n-=1;return e}var te=/\d/,ne=/\d\d/,oe=/\d{3}/,re=/\d{4}/,ie=/[+-]?\d{6}/,ae=/\d\d?/,se=/\d\d\d\d?/,le=/\d\d\d\d\d\d?/,ue=/\d{1,3}/,ce=/\d{1,4}/,de=/[+-]?\d{1,6}/,he=/\d+/,fe=/[+-]?\d+/,pe=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,ge=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ve={};function ye(e,t,n){ve[e]=x(t)?t:function(e,o){return e&&n?n:t}}function _e(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(we(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r})))}function we(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var be={};function Ce(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(o=function(e,n){n[t]=b(e)}),n=0;n11?Le:n[xe]<1||n[xe]>Ye(n[Te],n[Le])?xe:n[De]<0||n[De]>24||24===n[De]&&(0!==n[Oe]||0!==n[Ee]||0!==n[Re])?De:n[Oe]<0||n[Oe]>59?Oe:n[Ee]<0||n[Ee]>59?Ee:n[Re]<0||n[Re]>999?Re:-1,d(e)._overflowDayOfYear&&(txe)&&(t=xe),d(e)._overflowWeeks&&-1===t&&(t=Ae),d(e)._overflowWeekday&&-1===t&&(t=He),d(e).overflow=t),e}var Ue=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Ke=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Ge=/Z|[+-]\d\d(?::?\d\d)?/,Xe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Je=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qe=/^\/?Date\((\-?\d+)/i;function Qe(e){var t,n,o,r,i,a,s=e._i,l=Ue.exec(s)||Ke.exec(s);if(l){for(d(e).iso=!0,t=0,n=Xe.length;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ze(e){return et(e)?366:365}function et(e){return e%4==0&&e%100!=0||e%400==0}r.createFromInputFallback=k("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),$("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),j("year","y"),ye("Y",fe),ye("YY",ae,ne),ye("YYYY",ce,re),ye("YYYYY",de,ie),ye("YYYYYY",de,ie),Ce(["YYYYY","YYYYYY"],Te),Ce("YYYY",function(e,t){t[Te]=2===e.length?r.parseTwoDigitYear(e):b(e)}),Ce("YY",function(e,t){t[Te]=r.parseTwoDigitYear(e)}),Ce("Y",function(e,t){t[Te]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var tt=B("FullYear",!0);function nt(e,t,n){var o=7+t-n;return-((7+$e(e,0,o).getUTCDay()-t)%7)+o-1}function ot(e,t,n,o,r){var i,a,s=1+7*(t-1)+(7+n-o)%7+nt(e,o,r);return s<=0?a=Ze(i=e-1)+s:s>Ze(e)?(i=e+1,a=s-Ze(e)):(i=e,a=s),{year:i,dayOfYear:a}}function rt(e,t,n){var o,r,i=nt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+it(r=e.year()-1,t,n):a>it(e.year(),t,n)?(o=a-it(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function it(e,t,n){var o=nt(e,t,n),r=nt(e+1,t,n);return(Ze(e)-o+r)/7}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var t,n,o,i,a=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[xe]&&null==e._a[Le]&&function(e){var t,n,o,r,i,a,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=at(t.GG,e._a[Te],rt(dt(),1,4).year),o=at(t.W,1),((r=at(t.E,1))<1||r>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,n=at(t.gg,e._a[Te],rt(dt(),i,a).year),o=at(t.w,1),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i),o<1||o>it(n,i,a)?d(e)._overflowWeeks=!0:null!=l?d(e)._overflowWeekday=!0:(s=ot(n,o,r,i,a),e._a[Te]=s.year,e._dayOfYear=s.dayOfYear)}(e),e._dayOfYear&&(i=at(e._a[Te],o[Te]),e._dayOfYear>Ze(i)&&(d(e)._overflowDayOfYear=!0),n=$e(i,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[xe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[De]&&0===e._a[Oe]&&0===e._a[Ee]&&0===e._a[Re]&&(e._nextDay=!0,e._a[De]=0),e._d=(e._useUTC?$e:function(e,t,n,o,r,i,a){var s=new Date(e,t,n,o,r,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[De]=24)}}function lt(e){if(e._f!==r.ISO_8601){e._a=[],d(e).empty=!0;var t,n,o,i,a,s=""+e._i,l=s.length,u=0;for(o=ee(e._f,e._locale).match(X)||[],t=0;t0&&d(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),Q[i]?(n?d(e).empty=!1:d(e).unusedTokens.push(i),ke(i,n,e)):e._strict&&!n&&d(e).unusedTokens.push(i);d(e).charsLeftOver=l-u,s.length>0&&d(e).unusedInput.push(s),!0===d(e).bigHour&&e._a[De]<=12&&e._a[De]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[De]=(c=e._locale,h=e._a[De],null==(f=e._meridiem)?h:null!=c.meridiemHour?c.meridiemHour(h,f):null!=c.isPM?((p=c.isPM(f))&&h<12&&(h+=12),p||12!==h||(h=0),h):h),st(e),Ve(e)}else Qe(e);var c,h,f,p}function ut(e){var t=e._i,n=e._f;return e._locale=e._locale||I(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new y(Ve(t)):(i(n)?function(e){var t,n,o,r,i;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:f()});function pt(e,t){var n,o;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return dt();for(n=t[0],o=1;o(i=it(e,o,r))&&(t=i),function(e,t,n,o,r){var i=ot(e,t,n,o,r),a=$e(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,o,r))}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pt("gggg","weekYear"),Pt("ggggg","weekYear"),Pt("GGGG","isoWeekYear"),Pt("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),ye("G",fe),ye("g",fe),ye("GG",ae,ne),ye("gg",ae,ne),ye("GGGG",ce,re),ye("gggg",ce,re),ye("GGGGG",de,ie),ye("ggggg",de,ie),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=b(e)}),Me(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),j("quarter","Q"),ye("Q",te),Ce("Q",function(e,t){t[Le]=3*(b(e)-1)}),$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),ye("w",ae),ye("ww",ae,ne),ye("W",ae),ye("WW",ae,ne),Me(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=b(e)}),$("D",["DD",2],"Do","date"),j("date","D"),ye("D",ae),ye("DD",ae,ne),ye("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),Ce(["D","DD"],xe),Ce("Do",function(e,t){t[xe]=b(e.match(ae)[0])});var It=B("Date",!0);$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),ye("d",ae),ye("e",ae),ye("E",ae),ye("dd",function(e,t){return t.weekdaysMinRegex(e)}),ye("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ye("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:d(n).invalidWeekday=e}),Me(["d","e","E"],function(e,t,n,o){t[o]=b(e)});var Wt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=ge,Bt=ge,Vt=ge;function Ut(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),l.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=we(s[t]),l[t]=we(l[t]),u[t]=we(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Gt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xt(e,t){return t._meridiemParse}$("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),ye("DDD",ue),ye("DDDD",oe),Ce(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Kt),$("k",["kk",2],0,function(){return this.hours()||24}),$("hmm",0,0,function(){return""+Kt.apply(this)+G(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Kt.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Gt("a",!0),Gt("A",!1),j("hour","h"),ye("a",Xt),ye("A",Xt),ye("H",ae),ye("h",ae),ye("HH",ae,ne),ye("hh",ae,ne),ye("hmm",se),ye("hmmss",le),ye("Hmm",se),ye("Hmmss",le),Ce(["H","HH"],De),Ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Ce(["h","hh"],function(e,t,n){t[De]=b(e),d(n).bigHour=!0}),Ce("hmm",function(e,t,n){var o=e.length-2;t[De]=b(e.substr(0,o)),t[Oe]=b(e.substr(o)),d(n).bigHour=!0}),Ce("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[De]=b(e.substr(0,o)),t[Oe]=b(e.substr(o,2)),t[Ee]=b(e.substr(r)),d(n).bigHour=!0}),Ce("Hmm",function(e,t,n){var o=e.length-2;t[De]=b(e.substr(0,o)),t[Oe]=b(e.substr(o))}),Ce("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[De]=b(e.substr(0,o)),t[Oe]=b(e.substr(o,2)),t[Ee]=b(e.substr(r))});var Jt=B("Hours",!0);$("m",["mm",2],0,"minute"),j("minute","m"),ye("m",ae),ye("mm",ae,ne),Ce(["m","mm"],Oe);var qt=B("Minutes",!1);$("s",["ss",2],0,"second"),j("second","s"),ye("s",ae),ye("ss",ae,ne),Ce(["s","ss"],Ee);var Qt,$t=B("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),ye("S",ue,te),ye("SS",ue,ne),ye("SSS",ue,oe),Qt="SSSS";Qt.length<=9;Qt+="S")ye(Qt,he);function Zt(e,t){t[Re]=b(1e3*("0."+e))}for(Qt="S";Qt.length<=9;Qt+="S")Ce(Qt,Zt);var en=B("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var tn=y.prototype;tn.add=Et,tn.calendar=function(e,t){var n=e||dt(),o=wt(n,this).startOf("day"),r=this.diff(o,"days",!0),i=r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse",a=t&&(x(t[i])?t[i]():t[i]);return this.format(a||this.localeData().calendar(i,this,dt(n)))},tn.clone=function(){return new y(this)},tn.diff=function(e,t,n){var o,r,i,a,s,l,u,c,d;return this.isValid()&&(o=wt(e,this)).isValid()?(r=6e4*(o.utcOffset()-this.utcOffset()),"year"===(t=F(t))||"month"===t||"quarter"===t?(s=this,c=12*((l=o).year()-s.year())+(l.month()-s.month()),l-(d=s.clone().add(c,"months"))<0?u=(l-d)/(d-s.clone().add(c-1,"months")):u=(l-d)/(s.clone().add(c+1,"months")-d),a=-(c+u)||0,"quarter"===t?a/=3:"year"===t&&(a/=12)):(i=this-o,a="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-r)/864e5:"week"===t?(i-r)/6048e5:i),n?a:w(a)):NaN},tn.endOf=function(e){return void 0===(e=F(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},tn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Z(this,e);return this.localeData().postformat(t)},tn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||dt(e).isValid())?St({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tn.fromNow=function(e){return this.from(dt(),e)},tn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||dt(e).isValid())?St({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tn.toNow=function(e){return this.to(dt(),e)},tn.get=K,tn.invalidAt=function(){return d(this).overflow},tn.isAfter=function(e,t){var n=_(e)?e:dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(p(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tn.isDSTShifted=function(){if(!p(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=ut(e))._a){var t=e._isUTC?c(e._a):dt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},tn.isLocal=function(){return!!this.isValid()&&!this._isUTC},tn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tn.isUtc=Ct,tn.isUTC=Ct,tn.zoneAbbr=function(){return this._isUTC?"UTC":""},tn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tn.dates=k("dates accessor is deprecated. Use date instead.",It),tn.months=k("months accessor is deprecated. Use month instead",je),tn.years=k("years accessor is deprecated. Use year instead",tt),tn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()});var nn=tn;function on(e){return e}var rn=E.prototype;function an(e,t,n,o){var r=I(),i=c().set(o,t);return r[n](i,e)}function sn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return an(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=an(e,o,n,"month");return r}function ln(e,t,n,o){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var r,i=I(),a=e?i._week.dow:0;if(null!=n)return an(t,(n+a)%7,o,"day");var s=[];for(r=0;r<7;r++)s[r]=an(t,(r+a)%7,o,"day");return s}rn._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},rn.calendar=function(e,t,n){var o=this._calendar[e];return x(o)?o.call(t,n):o},rn._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},rn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},rn._invalidDate="Invalid date",rn.invalidDate=function(){return this._invalidDate},rn._ordinal="%d",rn.ordinal=function(e){return this._ordinal.replace("%d",e)},rn._ordinalParse=/\d{1,2}/,rn.preparse=on,rn.postformat=on,rn._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},rn.relativeTime=function(e,t,n,o){var r=this._relativeTime[n];return x(r)?r(e,t,n,o):r.replace(/%d/i,e)},rn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)},rn.set=function(e){var t,n;for(n in e)x(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},rn.months=function(e,t){return i(this._months)?this._months[e.month()]:this._months[Pe.test(t)?"format":"standalone"][e.month()]},rn._months=Ne,rn.monthsShort=function(e,t){return i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]},rn._monthsShort=Ie,rn.monthsParse=function(e,t,n){var o,r,i;if(this._monthsParseExact)return function(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=c([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Se.call(this._shortMonthsParse,a))?r:null:-1!==(r=Se.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=Se.call(this._shortMonthsParse,a))?r:-1!==(r=Se.call(this._longMonthsParse,a))?r:null:-1!==(r=Se.call(this._longMonthsParse,a))?r:-1!==(r=Se.call(this._shortMonthsParse,a))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=c([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},rn._monthsRegex=ze,rn.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex},rn._monthsShortRegex=Fe,rn.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex},rn.week=function(e){return rt(e,this._week.dow,this._week.doy).week},rn._week={dow:0,doy:6},rn.firstDayOfYear=function(){return this._week.doy},rn.firstDayOfWeek=function(){return this._week.dow},rn.weekdays=function(e,t){return i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]},rn._weekdays=Wt,rn.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},rn._weekdaysMin=Ft,rn.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},rn._weekdaysShort=jt,rn.weekdaysParse=function(e,t,n){var o,r,i;if(this._weekdaysParseExact)return function(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=c([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,a))?r:-1!==(r=Se.call(this._shortWeekdaysParse,a))?r:-1!==(r=Se.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,a))?r:-1!==(r=Se.call(this._weekdaysParse,a))?r:-1!==(r=Se.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,a))?r:-1!==(r=Se.call(this._weekdaysParse,a))?r:-1!==(r=Se.call(this._shortWeekdaysParse,a))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=c([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},rn._weekdaysRegex=zt,rn.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex},rn._weekdaysShortRegex=Bt,rn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex},rn._weekdaysMinRegex=Vt,rn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex},rn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},rn._meridiemParse=/[ap]\.?m?\.?/i,rn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},P("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",P),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",I);var un=Math.abs;function cn(e,t,n,o){var r=St(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function dn(e){return e<0?Math.floor(e):Math.ceil(e)}function hn(e){return 4800*e/146097}function fn(e){return 146097*e/4800}function pn(e){return function(){return this.as(e)}}var mn=pn("ms"),gn=pn("s"),vn=pn("m"),yn=pn("h"),_n=pn("d"),wn=pn("w"),bn=pn("M"),Cn=pn("y");function Mn(e){return function(){return this._data[e]}}var kn=Mn("milliseconds"),Sn=Mn("seconds"),Tn=Mn("minutes"),Ln=Mn("hours"),xn=Mn("days"),Dn=Mn("months"),On=Mn("years"),En=Math.round,Rn={s:45,m:45,h:22,d:26,M:11},An=Math.abs;function Hn(){var e,t,n=An(this._milliseconds)/1e3,o=An(this._days),r=An(this._months);t=w((e=w(n/60))/60),n%=60,e%=60;var i=w(r/12),a=r%=12,s=o,l=t,u=e,c=n,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(i?i+"Y":"")+(a?a+"M":"")+(s?s+"D":"")+(l||u||c?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}var Yn=mt.prototype;return Yn.abs=function(){var e=this._data;return this._milliseconds=un(this._milliseconds),this._days=un(this._days),this._months=un(this._months),e.milliseconds=un(e.milliseconds),e.seconds=un(e.seconds),e.minutes=un(e.minutes),e.hours=un(e.hours),e.months=un(e.months),e.years=un(e.years),this},Yn.add=function(e,t){return cn(this,e,t,1)},Yn.subtract=function(e,t){return cn(this,e,t,-1)},Yn.as=function(e){var t,n,o=this._milliseconds;if("month"===(e=F(e))||"year"===e)return t=this._days+o/864e5,n=this._months+hn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(fn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Yn.asMilliseconds=mn,Yn.asSeconds=gn,Yn.asMinutes=vn,Yn.asHours=yn,Yn.asDays=_n,Yn.asWeeks=wn,Yn.asMonths=bn,Yn.asYears=Cn,Yn.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)},Yn._bubble=function(){var e,t,n,o,r,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*dn(fn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=w(i/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,s+=r=w(hn(a+=w(n/24))),a-=dn(fn(r)),o=w(s/12),s%=12,l.days=a,l.months=s,l.years=o,this},Yn.get=function(e){return this[(e=F(e))+"s"]()},Yn.milliseconds=kn,Yn.seconds=Sn,Yn.minutes=Tn,Yn.hours=Ln,Yn.days=xn,Yn.weeks=function(){return w(this.days()/7)},Yn.months=Dn,Yn.years=On,Yn.humanize=function(e){var t=this.localeData(),n=function(e,t,n){var o=St(e).abs(),r=En(o.as("s")),i=En(o.as("m")),a=En(o.as("h")),s=En(o.as("d")),l=En(o.as("M")),u=En(o.as("y")),c=r0,c[4]=n,function(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Yn.toISOString=Hn,Yn.toString=Hn,Yn.toJSON=Hn,Yn.locale=At,Yn.localeData=Yt,Yn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hn),Yn.lang=Ht,$("X",0,0,"unix"),$("x",0,0,"valueOf"),ye("x",fe),ye("X",/[+-]?\d+(\.\d{1,3})?/),Ce("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Ce("x",function(e,t,n){n._d=new Date(b(e))}),r.version="2.13.0",t=dt,r.fn=nn,r.min=function(){return pt("isBefore",[].slice.call(arguments,0))},r.max=function(){return pt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=c,r.unix=function(e){return dt(1e3*e)},r.months=function(e,t){return sn(e,t,"months")},r.isDate=a,r.locale=P,r.invalid=f,r.duration=St,r.isMoment=_,r.weekdays=function(e,t,n){return ln(e,t,n,"weekdays")},r.parseZone=function(){return dt.apply(null,arguments).parseZone()},r.localeData=I,r.isDuration=gt,r.monthsShort=function(e,t){return sn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return ln(e,t,n,"weekdaysMin")},r.defineLocale=N,r.updateLocale=function(e,t){var n;return null!=t?(null!=A[e]&&(t=O(A[e]._config,t)),(n=new E(t)).parentLocale=A[e],A[e]=n,P(e)):null!=A[e]&&(null!=A[e].parentLocale?A[e]=A[e].parentLocale:null!=A[e]&&delete A[e]),A[e]},r.locales=function(){return S(A)},r.weekdaysShort=function(e,t,n){return ln(e,t,n,"weekdaysShort")},r.normalizeUnits=F,r.relativeTimeThreshold=function(e,t){return void 0!==Rn[e]&&(void 0===t?Rn[e]:(Rn[e]=t,!0))},r.prototype=nn,r}()}).call(this,n(60)(e))},,function(e,t,n){"use strict";e.exports=n(45),e.exports.easing=n(547),e.exports.canvas=n(546),e.exports.options=n(545)},function(e,t,n){var o;o=function(e,t,n,o){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=209)}([function(e,t,n){"use strict";t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.getParent=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=e;){if(n===t){o=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(n++,e=e.parentNode)}return o},t.closest=u,t.closestDown=function(e,t,n){for(var o=[];e&&(e=u(e,t,n))&&(!n||n.contains(e));)o.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var r=o.length;return r?o[r-1]:null},t.isChildOf=function(e,t){var n=e.parentNode,o=[];for("string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isChildOfWebComponentTable=function(e){var t,n="hot-table",o=!1;function r(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===n.toUpperCase()}for(t=c(e);null!=t;){if(r(t)){o=!0;break}if(t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(o=r(t.host))break;t=t.host}t=t.parentNode}return o},t.polymerWrap=c,t.polymerUnwrap=d,t.index=function(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t},t.overlayContainsElement=function(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null},t.hasClass=function(e,t){return o(e,t)},t.addClass=function(e,t){return r(e,t)},t.removeClass=function(e,t){return i(e,t)},t.removeTextNodes=function e(t,n){if(3===t.nodeType)n.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var o=t.childNodes,r=o.length-1;r>=0;r--)e(o[r],t)},t.empty=m,t.fastInnerHTML=function(e,t){v.test(t)?e.innerHTML=t:_(e,t)},t.fastInnerText=_,t.isVisible=function e(t){for(var n=t;d(n)!==document.documentElement;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return e(n.host.impl);if(n.host)return e(n.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.style.display)return!1;n=n.parentNode}return!0},t.offset=function(e){var t,n,o,r,i;if(r=document.documentElement,(0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return{top:(i=e.getBoundingClientRect()).top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0),left:i.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)};for(t=e.offsetLeft,n=e.offsetTop,o=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,n+=e.offsetTop,o=e;return o&&"fixed"===o.style.position&&(t+=window.pageXOffset||r.scrollLeft,n+=window.pageYOffset||r.scrollTop),{left:t,top:n}},t.getWindowScrollTop=w,t.getWindowScrollLeft=b,t.getScrollTop=function(e){return e===window?w():e.scrollTop},t.getScrollLeft=function(e){return e===window?b():e.scrollLeft},t.getScrollableElement=function(e){for(var t,n,o,r=e.parentNode,i=["auto","scroll"],a="",s="",l="",u="";r&&r.style&&document.body!==r;){if(t=r.style.overflow,n=r.style.overflowX,o=r.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==o)return r;if(window.getComputedStyle&&(s=(a=window.getComputedStyle(r)).getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),u=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===u||"scroll"===l))return r;if(r.clientHeight<=r.scrollHeight&&(-1!==i.indexOf(o)||-1!==i.indexOf(t)||-1!==i.indexOf(s)||-1!==i.indexOf(l)))return r;if(r.clientWidth<=r.scrollWidth&&(-1!==i.indexOf(n)||-1!==i.indexOf(t)||-1!==i.indexOf(s)||-1!==i.indexOf(u)))return r;r=r.parentNode}return window},t.getTrimmingContainer=function(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window},t.getStyle=function(e,t){if(e){if(e===window)return"width"===t?window.innerWidth+"px":"height"===t?window.innerHeight+"px":void 0;var n,o=e.style[t];return""!==o&&void 0!==o?o:""!==(n=C(e))[t]&&void 0!==n[t]?n[t]:void 0}},t.getComputedStyle=C,t.outerWidth=function(e){return e.offsetWidth},t.outerHeight=function(e){return(0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.addEvent=function(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEvent=function(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();return null==t?0:e.createTextRange().text.indexOf(t.text)+t.text.length}return 0},t.getSelectionText=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e},t.setCaretPosition=function(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var o=e.parentNode,r=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=r}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}},t.getScrollbarWidth=function(){return void 0===g&&(g=function(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n==o&&(o=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-o}()),g},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.setOverlayPosition=function(e,t,n){(0,s.isIE8)()||(0,s.isIE9)()?(e.style.top=n,e.style.left=t):(0,s.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"},t.getCssTransform=function(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.isInput=M,t.isOutsideInput=function(e){return M(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")};var o,r,i,a,s=n(25),l=n(34);function u(e,t,n){for(;null!=e&&e!==n;){if(e.nodeType===Node.ELEMENT_NODE&&(t.indexOf(e.nodeName)>-1||t.indexOf(e)>-1))return e;e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode}return null}function c(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function d(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function h(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}if(document.documentElement.classList){var f=((a=document.createElement("div")).classList.add("test","test2"),a.classList.contains("test2"));o=function(e,t){return""!==t&&e.classList.contains(t)},r=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=h(t),f)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},i=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=h(t),f)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var p=function(e){return new RegExp("(\\s|^)"+e+"(\\s|$)")};o=function(e,t){return!!e.className.match(p(t))},r=function(e,t){var n=0,o=e.className;if("string"==typeof t&&(t=t.split(" ")),""===o)o=t.join(" ");else for(;t&&t[n];)p(t[n]).test(o)||(o+=" "+t[n]),n++;e.className=o},i=function(e,t){var n=0,o=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)o=o.replace(p(t[n])," ").trim(),n++;e.className!==o&&(e.className=o)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var g,v=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,y=!!document.createTextNode("test").textContent;function _(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?y?n.textContent=t:n.data=t:(m(e),e.appendChild(document.createTextNode(t)))}function w(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function b(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function C(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function M(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}},function(e,t,n){"use strict";function o(e,t,n,o){var r=-1,i=e.length;for(o&&i&&(n=e[++r]);++rt?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return o(e,function(e,t){return e1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:"value",o="_"+n,r=(i(t={_touched:!1},o,e),i(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(r,n,{get:function(){return this[o]},set:function(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),r},t.hasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var r=n(1);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return"object"===(void 0===e?"undefined":o(e))?JSON.parse(JSON.stringify(e)):e}function s(e){return"[object Object]"==Object.prototype.toString.call(e)}function l(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}},function(e,t,n){var o=n(13),r=n(44),i=n(32),a=n(33),s=n(29),l=function(e,t,n){var u,c,d,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=p?o:m?o[t]||(o[t]={}):(o[t]||{}).prototype,_=p?r:r[t]||(r[t]={}),w=_.prototype||(_.prototype={});for(u in p&&(n=t),n)d=((c=!f&&y&&void 0!==y[u])?y:n)[u],h=v&&c?s(d,o):g&&"function"==typeof d?s(Function.call,d):d,y&&a(y,u,d,e&l.U),_[u]!=d&&i(_,u,h),g&&w[u]!=d&&(w[u]=d)};o.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return o(e,[{key:"addEventListener",value:function(e,t,n){var o=this,r=this.context;function i(e){e=u(r,e),n.call(this,e)}return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i}),window.addEventListener?e.addEventListener(t,i,!1):e.attachEvent("on"+t,i),s++,function(){o.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var o=this.context.eventListeners.length,r=void 0;o--;)if((r=this.context.eventListeners[o]).event==t&&r.element==e){if(n&&n!=r.callback)continue;this.context.eventListeners.splice(o,1),r.element.removeEventListener?r.element.removeEventListener(r.event,r.callbackProxy,!1):r.element.detachEvent("on"+r.event,r.callbackProxy),s--}}},{key:"clearEvents",value:function(){if(this.context)for(var e=this.context.eventListeners.length;e--;){var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(e,t){var n,o={bubbles:!0,cancelable:"mousemove"!==t,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")).initMouseEvent(t,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(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}}]),e}();function u(e,t){var n=void 0,o=void 0,s=void 0,u=void 0,c=void 0,d=void 0;if(t.isTargetWebComponent=!1,t.realTarget=t.target,d=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){d.apply(this),(0,a.stopImmediatePropagation)(this)},!l.isHotTableEnv)return t;for(c=(t=(0,r.polymerWrap)(t)).path?t.path.length:0;c--;){if("HOT-TABLE"===t.path[c].nodeName)n=!0;else if(n&&t.path[c].shadowRoot){u=t.path[c];break}0!==c||u||(u=t.path[c])}return u||(u=t.target),t.isTargetWebComponent=!0,(0,i.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:(e instanceof Core||e instanceof Walkontable)&&(e instanceof Core?o=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(o=e.wtTable.TABLE.parentNode.parentNode),s=(0,r.closest)(t.target,["HOT-TABLE"],o),t.realTarget=s&&o.querySelector("HOT-TABLE")||t.target),Object.defineProperty(t,"target",{get:function(){return(0,r.polymerWrap)(u)},enumerable:!0,configurable:!0}),t}t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var o,r=(o=n(8))&&o.__esModule?o:{default:o},i=n(2),a=n(27),s=new WeakMap;t.registerPlugin=function(e,t){e=(0,a.toUpperCaseFirst)(e),r.default.getSingleton().add("construct",function(){var n=void 0;s.has(this)||s.set(this,{}),(n=s.get(this))[e]||(n[e]=new t(this))}),r.default.getSingleton().add("afterDestroy",function(){if(s.has(this)){var e=s.get(this);(0,i.objectEach)(e,function(e){return e.destroy()}),s.delete(this)}})},t.getPlugin=function(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,a.toUpperCaseFirst)(t);if(s.has(e)&&s.get(e)[n])return s.get(e)[n]},t.getRegistredPluginNames=function(e){return s.has(e)?Object.keys(s.get(e)):[]},t.getPluginName=function(e,t){var n=null;return s.has(e)&&(0,i.objectEach)(s.get(e),function(e,o){e===t&&(n=o)}),n}},function(e,t,n){"use strict";t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isNumeric=function(e){var t=void 0===e?"undefined":o(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)},t.rangeEach=function(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&!1!==n(o););},t.rangeEachReverse=function(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&!1!==n(o););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),parseInt(e*t/100,10)}},function(e,t,n){"use strict";t.__esModule=!0,t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0},t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.stopPropagation=function(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.pageX=function(e){return e.pageX?e.pageX:e.clientX+(0,o.getWindowScrollLeft)()},t.pageY=function(e){return e.pageY?e.pageY:e.clientY+(0,o.getWindowScrollTop)()},t.isRightClick=function(e){return 2===e.button},t.isLeftClick=function(e){return 0===e.button};var o=n(0)},function(e,t,n){"use strict";t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,r.arrayEach)(t,function(t){return n.add(e,t,o)});else{var i=this.getBucket(o);if(void 0===i[e]&&(this.register(e),i[e]=[]),t.skip=!1,-1===i[e].indexOf(t)){var a=!1;t.initialHook&&(0,r.arrayEach)(i[e],function(n,o){if(n.initialHook)return i[e][o]=t,a=!0,!1}),a||i[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,r.arrayEach)(t,function(t){return n.once(e,t,o)}):(t.runOnce=!0,this.add(e,t,o))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return void 0!==o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,o,r,i,a,s){var l=this.globalBucket[t],u=-1,c=l?l.length:0;if(c)for(;++u0&&void 0!==arguments[0]?arguments[0]:null;(0,i.objectEach)(this.getBucket(e),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||a.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&a.splice(a.indexOf(e),1)}},{key:"isRegistered",value:function(e){return a.indexOf(e)>=0}},{key:"getRegistered",value:function(){return a}}]),e}(),l=new s;t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var o=d(n(51)),r=d(n(260)),i=d(n(261)),a=d(n(262)),s=d(n(263)),l=d(n(264)),u=d(n(265)),c=d(n(266));function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.default)("renderers"),f=h.register,p=h.getItem,m=h.hasItem,g=h.getNames,v=h.getValues;f("base",r.default),f("autocomplete",i.default),f("checkbox",a.default),f("html",s.default),f("numeric",l.default),f("password",u.default),f("text",c.default),t.registerRenderer=f,t.getRenderer=function(e){if("function"==typeof e)return e;if(!m(e))throw Error('No registered renderer found under "'+e+'" name');return p(e)},t.hasRenderer=m,t.getRegisteredRendererNames=g,t.getRegisteredRenderers=v},function(e,t,n){var o=n(82)("wks"),r=n(49),i=n(13).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";t.__esModule=!0,t.Viewport=t.TableRenderer=t.Table=t.Settings=t.Selection=t.Scroll=t.Overlays=t.Event=t.Core=t.default=t.Border=t.TopLeftCornerOverlay=t.TopOverlay=t.LeftOverlay=t.DebugOverlay=t.RowFilter=t.ColumnFilter=t.CellRange=t.CellCoords=t.ViewportRowsCalculator=t.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 o=M(n(135)),r=M(n(136)),i=M(n(42)),a=M(n(69)),s=M(n(139)),l=M(n(140)),u=M(n(185)),c=M(n(186)),d=M(n(187)),h=M(n(188)),f=M(n(134)),p=M(n(137)),m=M(n(138)),g=M(n(141)),v=M(n(142)),y=M(n(189)),_=M(n(143)),w=M(n(144)),b=M(n(145)),C=M(n(146));function M(e){return e&&e.__esModule?e:{default:e}}t.ViewportColumnsCalculator=o.default,t.ViewportRowsCalculator=r.default,t.CellCoords=i.default,t.CellRange=a.default,t.ColumnFilter=s.default,t.RowFilter=l.default,t.DebugOverlay=u.default,t.LeftOverlay=c.default,t.TopOverlay=d.default,t.TopLeftCornerOverlay=h.default,t.Border=f.default,t.default=p.default,t.Core=p.default,t.Event=m.default,t.Overlays=g.default,t.Scroll=v.default,t.Selection=y.default,t.Settings=_.default,t.Table=w.default,t.TableRenderer=b.default,t.Viewport=C.default},function(e,t,n){"use strict";t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n=0&&u.splice(u.indexOf(this.pluginName),1),u.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(e,t){l.get(this).hooks[e]=l.get(this).hooks[e]||[];var n=l.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),l.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,i.arrayEach)(l.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=l.get(this).hooks;(0,r.objectEach)(t,function(t,n){return e.removeHooks(n)}),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,i.arrayEach)(this.pluginsInitializedCallbacks,function(e){return e()}),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 e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,r.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}();t.default=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=k,t._getEditorInstance=S;var o=g(n(51)),r=g(n(8)),i=g(n(36)),a=g(n(147)),s=g(n(202)),l=g(n(203)),u=g(n(204)),c=g(n(148)),d=g(n(205)),h=g(n(206)),f=g(n(207)),p=g(n(208)),m=g(n(43));function g(e){return e&&e.__esModule?e:{default:e}}var v=new WeakMap,y=(0,o.default)("editors"),_=y.register,w=y.getItem,b=y.hasItem,C=y.getNames,M=y.getValues;function k(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},r.default.getSingleton().add("afterDestroy",function(){t={}})}function S(e,t){var n=void 0;if("function"==typeof e)v.get(e)||T(null,e),n=v.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=w(e)}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function T(e,t){var n=new k(t);"string"==typeof e&&_(e,n),v.set(t,n)}T("base",i.default),T("autocomplete",a.default),T("checkbox",s.default),T("date",l.default),T("dropdown",u.default),T("handsontable",c.default),T("mobile",d.default),T("numeric",h.default),T("password",f.default),T("select",p.default),T("text",m.default),t.registerEditor=T,t.getEditor=function(e){if(!b(e))throw Error('No registered editor found under "'+e+'" name');return w(e).getConstructor()},t.getEditorInstance=S,t.hasEditor=b,t.getRegisteredEditorNames=C,t.getRegisteredEditors=M},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=function(e){return 32==e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},t.isMetaKey=function(e){return-1!==[r.ARROW_DOWN,r.ARROW_UP,r.ARROW_LEFT,r.ARROW_RIGHT,r.HOME,r.END,r.DELETE,r.BACKSPACE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.TAB,r.PAGE_DOWN,r.PAGE_UP,r.ENTER,r.ESCAPE,r.SHIFT,r.CAPS_LOCK,r.ALT].indexOf(e)},t.isCtrlKey=function(e){return-1!==[r.CONTROL_LEFT,224,r.COMMAND_LEFT,r.COMMAND_RIGHT].indexOf(e)},t.isKey=function(e,t){var n=t.split("|"),i=!1;return(0,o.arrayEach)(n,function(t){if(e===r[t])return i=!0,!1}),i};var o=n(1),r=t.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(e,t,n){"use strict";t.__esModule=!0,t.normalizeSelection=function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}},t.isSeparator=function(e){return(0,r.hasClass)(e,"htSeparator")},t.hasSubMenu=function(e){return(0,r.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,r.hasClass)(e,"htDisabled")},t.isSelectionDisabled=function(e){return(0,r.hasClass)(e,"htSelectionDisabled")},t.getValidSelection=function(e){var t=e.getSelected();return t?t[0]<0?null:t:null},t.prepareVerticalAlignClass=a,t.prepareHorizontalAlignClass=s,t.getAlignmentClasses=function(e,t){for(var n={},o=e.from.row;o<=e.to.row;o++)for(var r=e.from.col;r<=e.to.col;r++)n[o]||(n[o]=[]),n[o][r]=t(o,r);return n},t.align=function(e,t,n,o,r){if(e.from.row==e.to.row&&e.from.col==e.to.col)l(e.from.row,e.from.col,t,n,o,r);else for(var i=e.from.row;i<=e.to.row;i++)for(var a=e.from.col;a<=e.to.col;a++)l(i,a,t,n,o,r)},t.checkSelectionConsistency=function(e,t){var n=!1;return e&&e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n},t.markLabelAsSelected=function(e){return''+String.fromCharCode(10003)+""+e},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.filterSeparators=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KEY,n=e.slice(0);return function(e){var t=[];return(0,o.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(n=function(e,t){var n=e.slice(0);return n.reverse(),(n=u(n,t)).reverse(),n}(n=u(n,t),t))};var o=n(1),r=n(0),i=n(70);function a(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function s(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function l(e,t,n,o,r,i){var l=r(e,t),u=o;l.className&&(u="vertical"===n?a(l.className,o):s(l.className,o)),i(e,t,"className",u)}function u(e,t){for(var n=e.slice(0);00?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";t.__esModule=!0,t.isIE8=function(){return o},t.isIE9=function(){return r},t.isSafari=function(){return i},t.isChrome=function(){return a},t.isMobileBrowser=function(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)};var o=!document.createTextNode("test").textContent,r=!!document.documentMode,i=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),a=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.getValidator=t.registerValidator=void 0;var o=l(n(51)),r=l(n(271)),i=l(n(272)),a=l(n(273)),s=l(n(274));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.default)("validators"),c=u.register,d=u.getItem,h=u.hasItem,f=u.getNames,p=u.getValues;c("autocomplete",r.default),c("date",i.default),c("numeric",a.default),c("time",s.default),t.registerValidator=c,t.getValidator=function(e){if("function"==typeof e)return e;if(!h(e))throw Error('No registered validator found under "'+e+'" name');return d(e)},t.hasValidator=h,t.getRegisteredValidatorNames=f,t.getRegisteredValidators=p},function(e,t,n){"use strict";t.__esModule=!0,t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},t.equalsIgnoreCase=function(){for(var e=[],t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return(""+e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})},t.stripTags=function(e){return(e+="").replace(r,"")};var o=n(20);n(6);var r=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi},function(e,t,n){"use strict";t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,o=t.style,r=e.parentNode.style;(0,a.arrayEach)([n,o,r],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new s.default(this.clone).destroy()}}]),e}();t.default=d},function(e,t,n){var o=n(71);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(19),r=n(40);e.exports=n(21)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(13),r=n(32),i=n(22),a=n(49)("src"),s=Function.toString,l=(""+s).split("toString");n(44).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||r(n,a,e[t]?""+e[t]:l.join(String(t)))),e===o?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){"use strict";t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.requestAnimationFrame=function(e){return s.call(window,e)},t.cancelAnimationFrame=function(e){l.call(window,e)},t.isTouchSupported=function(){return"ontouchstart"in window},t.isWebComponentSupportedNatively=function(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))},t.hasCaptionProblem=function(){return void 0===r&&function(){var e=document.createElement("TABLE");e.style.borderSpacing=0,e.style.borderWidth=0,e.style.padding=0;var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="t
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding=0,n.style.margin=0,e.insertBefore(n,t),document.body.appendChild(e),r=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}(),r},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c||(c="object"===("undefined"==typeof Intl?"undefined":o(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(""+e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})};for(var r,i=0,a=["ms","moz","webkit","o"],s=window.requestAnimationFrame,l=window.cancelAnimationFrame,u=0;u1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=r(e,t),i=n;function a(){return i?(i--,e.apply(this,arguments)):o.apply(this,arguments)}return a.clearHits=function(){i=n},a},t.debounce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=null,o=void 0;return function(){var r=this,i=arguments;return n&&clearTimeout(n),n=setTimeout(function(){o=e.apply(r,i)},t),o}},t.pipe=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),o=1;o=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(o){return function(){for(var r=arguments.length,i=Array(r),a=0;a=t?e.apply(this,s):n(s)}}([])};var o=n(1);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,o={lastCallThrottled:!0},r=null;return function(){var i=this,a=arguments,s=Date.now(),l=!1;o.lastCallThrottled=!0,n||(n=s,l=!0);var u=t-(s-n);return l?(o.lastCallThrottled=!1,e.apply(this,a)):(r&&clearTimeout(r),r=setTimeout(function(){o.lastCallThrottled=!1,e.apply(i,a),n=0,r=void 0},u)),o}}},function(e,t,n){"use strict";t.__esModule=!0,t.EditorState=void 0;var o=n(11),r=n(20),i=t.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};function a(e){this.instance=e,this.state=i.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}a.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},a.prototype.init=function(){},a.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},a.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},a.prototype.open=function(){throw Error("Editor open() method unimplemented")},a.prototype.close=function(){throw Error("Editor close() method unimplemented")},a.prototype.prepare=function(e,t,n,o,r,a){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=r,this.cellProperties=a;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=i.VIRGIN},a.prototype.extend=function(){var e=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,(e.prototype=new n).constructor=e,e}(function(){e.apply(this,arguments)},e)},a.prototype.saveValue=function(e,t){var n=void 0,o=void 0;t?((n=this.instance.getSelected())[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],e,n[2],n[3],"edit")},a.prototype.beginEditing=function(e,t){this.state==i.VIRGIN&&(this.instance.view.scrollViewport(new o.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=i.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue((0,r.stringify)(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},a.prototype.finishEditing=function(e,t,n){var o,r=this;if(n){var a=this._closeCallback;this._closeCallback=function(e){a&&a(e),n(e),r.instance.view.render()}}if(!this.isWaiting())if(this.state!=i.VIRGIN){if(this.state==i.EDITING){if(e)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=i.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){r.state=i.FINISHED,r.discardEditor(e)}):(this.state=i.FINISHED,this.discardEditor(!0))}}else this.instance._registerTimeout(setTimeout(function(){r._fireCallbacks(!0)},0))},a.prototype.cancelChanges=function(){this.state=i.FINISHED,this.discardEditor()},a.prototype.discardEditor=function(e){this.state===i.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=i.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=i.VIRGIN,this._fireCallbacks(!0)))},a.prototype.enableFullEditMode=function(){this._fullEditMode=!0},a.prototype.isInFullEditMode=function(){return this._fullEditMode},a.prototype.isOpened=function(){return this._opened},a.prototype.isWaiting=function(){return this.state===i.WAITING},a.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row=e-this.instance.getSettings().fixedRowsBottom?t=this.col=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var o=n(0),r=c(n(183)),i=n(36),a=c(i),s=c(n(4)),l=n(16),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var d=a.default.prototype.extend();d.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new s.default(this),this.bindEvents(),this.autoResize=(0,r.default)(),this.instance.addHook("afterDestroy",function(){e.destroy()})},d.prototype.getValue=function(){return this.TEXTAREA.value},d.prototype.setValue=function(e){this.TEXTAREA.value=e};var h=function(e){var t,n=this.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===n.TEXTAREA&&!(0,u.isImmediatePropagationStopped)(e))if(17!==e.keyCode&&224!==e.keyCode&&91!==e.keyCode&&93!==e.keyCode){switch(e.keyCode){case l.KEY_CODES.ARROW_RIGHT:case l.KEY_CODES.ARROW_LEFT:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.ARROW_UP:case l.KEY_CODES.ARROW_DOWN:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.ENTER:var r=n.instance.getSelected(),i=!(r[0]===r[2]&&r[1]===r[3]);if(t&&!i||e.altKey){if(n.isOpened()){var a=(0,o.getCaretPosition)(n.TEXTAREA),s=n.getValue(),c=s.slice(0,a)+"\n"+s.slice(a);n.setValue(c),(0,o.setCaretPosition)(n.TEXTAREA,a+1)}else n.beginEditing(n.originalValue+"\n");(0,u.stopImmediatePropagation)(e)}e.preventDefault();break;case l.KEY_CODES.A:case l.KEY_CODES.X:case l.KEY_CODES.C:case l.KEY_CODES.V:t&&(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.BACKSPACE:case l.KEY_CODES.DELETE:case l.KEY_CODES.HOME:case l.KEY_CODES.END:(0,u.stopImmediatePropagation)(e)}-1===[l.KEY_CODES.ARROW_UP,l.KEY_CODES.ARROW_RIGHT,l.KEY_CODES.ARROW_DOWN,l.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&n.autoResize.resize(String.fromCharCode(e.keyCode))}else(0,u.stopImmediatePropagation)(e)};d.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",h)},d.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",h)},d.prototype.focus=function(){this.TEXTAREA.focus(),(0,o.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},d.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,o.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,o.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 e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},d.prototype.getEditedCell=function(){var e;switch(this.checkEditorSection()){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return-1!=e&&-2!=e?e:void 0},d.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},d.prototype.refreshDimensions=function(){if(this.state===i.EditorState.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e,t=(0,o.offset)(this.TD),n=(0,o.offset)(this.instance.rootElement),r=(0,o.getScrollableElement)(this.TD),a=this.instance.countRows(),s=t.top===n.top?0:1,l=t.top-n.top-s-(r.scrollTop||0),u=t.left-n.left-1-(r.scrollLeft||0),c=this.instance.getSettings(),d=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),h=this.checkEditorSection(),f=this.TD.style.backgroundColor;switch(h){case"top":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,o.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(d&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===a-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:(0,o.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=u+"px";var p=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,m=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,g=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),v=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),y=(0,o.getScrollbarWidth)(),_=this.TD.offsetTop+p-v,w=this.TD.offsetLeft+m-g,b=(0,o.innerWidth)(this.TD)-8,C=(0,o.hasVerticalScrollbar)(r)?y:0,M=(0,o.hasHorizontalScrollbar)(r)?y:0,k=this.instance.view.maximumVisibleElementWidth(w)-9-C,S=this.TD.scrollHeight+1,T=Math.max(this.instance.view.maximumVisibleElementHeight(_)-M,23),L=(0,o.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=L.fontSize,this.TEXTAREA.style.fontFamily=L.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=f||(0,o.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(S,T),maxHeight:T,minWidth:Math.min(b,k),maxWidth:k},!0),this.textareaParentStyle.display="block"}else this.close(!0)},d.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,u.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,u.stopPropagation)(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},d.prototype.destroy=function(){this.eventManager.destroy()},t.default=d},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports={}},function(e,t,n){var o=n(49)("meta"),r=n(15),i=n(22),a=n(19).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(31)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[o].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!i(e,o)&&c(e),e}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(19).f,r=n(22),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){"use strict";var o;t.__esModule=!0,t.ITEMS=t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var r=n(223);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return r.KEY}});var i=n(224);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return i.KEY}});var a=n(225);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return a.KEY}});var s=n(226);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return s.KEY}});var l=n(227);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return l.KEY}});var u=n(228);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return u.KEY}});var c=n(229);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return c.KEY}});var d=n(230);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return d.KEY}});var h=n(231);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return h.KEY}});var f=n(232);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return f.KEY}});var p=n(70);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return p.KEY}});var m=n(233);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return m.KEY}}),t.predefinedItems=function(){var e={};return(0,g.objectEach)(R,function(t,n){e[n]=t()}),e},t.addItem=function(e,t){-1===E.indexOf(e)&&(R[e]=t)};var g=n(2),v=D(r),y=D(i),_=D(a),w=D(s),b=D(l),C=D(u),M=D(c),k=D(d),S=D(h),T=D(f),L=D(p),x=D(m);function D(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=t.ITEMS=[h.KEY,f.KEY,a.KEY,s.KEY,i.KEY,d.KEY,c.KEY,m.KEY,u.KEY,l.KEY,r.KEY,p.KEY],R=(O(o={},p.KEY,L.default),O(o,h.KEY,S.default),O(o,f.KEY,T.default),O(o,a.KEY,_.default),O(o,s.KEY,w.default),O(o,i.KEY,y.default),O(o,d.KEY,k.default),O(o,c.KEY,M.default),O(o,m.KEY,x.default),O(o,u.KEY,C.default),O(o,l.KEY,b.default),O(o,r.KEY,v.default),o)},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);var t=r.get(e);return{register:function(e,n){t.set(e,n)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[].concat(o(t.keys()))},getValues:function(){return[].concat(o(t.values()))}}};var r=t.collection=new Map},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(29),r=n(76),i=n(41),a=n(24),s=n(278);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,v=i(t),y=r(v),_=o(s,p,3),w=a(y.length),b=0,C=n?f(t,w):l?f(t,0):void 0;w>b;b++)if((h||b in y)&&(g=_(m=y[b],b,v),e))if(n)C[b]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:C.push(m)}else if(c)return!1;return d?-1:u||c?c:C}}},function(e,t,n){"use strict";var o=n(13),r=n(3),i=n(33),a=n(59),s=n(46),l=n(56),u=n(52),c=n(15),d=n(31),h=n(77),f=n(48),p=n(281);e.exports=function(e,t,n,m,g,v){var y=o[e],_=y,w=g?"set":"add",b=_&&_.prototype,C={},M=function(e){var t=b[e];i(b,e,"delete"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof _&&(v||b.forEach&&!d(function(){(new _).entries().next()}))){var k=new _,S=k[w](v?{}:-0,1)!=k,T=d(function(){k.has(1)}),L=h(function(e){new _(e)}),x=!v&&d(function(){for(var e=new _,t=5;t--;)e[w](t,t);return!e.has(-0)});L||((_=t(function(t,n){u(t,_,e);var o=p(new y,t,_);return void 0!=n&&l(n,g,o[w],o),o})).prototype=b,b.constructor=_),(T||x)&&(M("delete"),M("has"),g&&M("get")),(x||S)&&M(w),v&&b.clear&&delete b.clear}else _=m.getConstructor(t,e,g,w),a(_.prototype,n),s.NEED=!0;return f(_,e),C[e]=_,r(r.G+r.W+r.F*(_!=y),C),v||m.setStrong(_,e,g),_}},function(e,t,n){"use strict";var o=n(32),r=n(33),i=n(31),a=n(30),s=n(10);e.exports=function(e,t,n){var l=s(e),u=n(a,l,""[e]),c=u[0],d=u[1];i(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,c),o(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){var o=n(29),r=n(165),i=n(161),a=n(18),s=n(24),l=n(176),u={},c={};(t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=o(n,d,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(f=s(e.length);f>_;_++)if((g=t?y(a(p=e[_])[0],p[1]):y(e[_]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=r(m,y,p.value,t))===u||g===c)return g}).BREAK=u,t.RETURN=c},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(33);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(61),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(t,n){t.exports=e},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var o=g(n(51)),r=n(14),i=n(9),a=n(26),s=g(n(190)),l=g(n(191)),u=g(n(192)),c=g(n(193)),d=g(n(194)),h=g(n(195)),f=g(n(196)),p=g(n(197)),m=g(n(198));function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,o.default)("cellTypes"),y=v.register,_=v.getItem,w=v.hasItem,b=v.getNames,C=v.getValues;function M(e,t){var n=t.editor,o=t.renderer,s=t.validator;n&&(0,r.registerEditor)(e,n),o&&(0,i.registerRenderer)(e,o),s&&(0,a.registerValidator)(e,s),y(e,t)}M("autocomplete",s.default),M("checkbox",l.default),M("date",u.default),M("dropdown",c.default),M("handsontable",d.default),M("numeric",h.default),M("password",f.default),M("text",p.default),M("time",m.default),t.registerCellType=M,t.getCellType=function(e){if(!w(e))throw Error('You declared cell type "'+e+'" 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 _(e)},t.hasCellType=w,t.getRegisteredCellTypeNames=b,t.getRegisteredCellTypes=C},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n,D,R,A,H,Y,P=this,N=function(){},I=new f.default(P);(0,p.extend)(N.prototype,L.default.prototype),(0,p.extend)(N.prototype,t),(0,p.extend)(N.prototype,V(t)),this.rootElement=e,this.isHotTableEnv=(0,a.isChildOfWebComponentTable)(this.rootElement),f.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+(0,_.randomString)();var W=(0,k.getTranslator)(P);function j(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(e){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==e&&(e=!0,this.onQueueEmpty(this.valid))}}}function F(e,t,n){var o=new j;o.onQueueEmpty=function(){var o;e.length&&(o=P.runHooks("beforeChange",e,t),(0,l.isFunction)(o)||!1===o&&e.splice(0,e.length)),n()};for(var r=e.length-1;r>=0;r--)if(null===e[r])e.splice(r,1);else{var s=e[r][0],c=D.propToCol(e[r][1]),d=P.getCellMeta(s,c);if("numeric"===d.type&&"string"==typeof e[r][3]&&e[r][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(e[r][3])||d.format)){var h=e[r][3].length;(0,u.isUndefined)(d.language)?i.default.culture("en-US"):e[r][3].indexOf(".")===h-3&&-1===e[r][3].indexOf(",")?i.default.culture("en-US"):i.default.culture(d.language),i.default.cultureData(i.default.culture()).delimiters,i.default.validate(e[r][3])&&!isNaN(e[r][3])?e[r][3]=parseFloat(e[r][3]):e[r][3]=(0,i.default)().unformat(e[r][3])||e[r][3]}P.getCellValidator(d)&&(o.addValidatorToQueue(),P.validateCell(e[r][3],d,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var i=P.getCell(n.row,n.col);(0,a.removeClass)(i,P.getSettings().invalidCellClassName),--t}o.removeValidatorFormQueue()}}(r,d),t))}o.checkIfQueueIsEmpty()}function z(e,t){var o=e.length-1;if(!(o<0)){for(;o>=0;o--){var r=!1;if(null!==e[o]){if(null!=e[o][2]||null!=e[o][3]){if(n.settings.allowInsertRow)for(;e[o][0]>P.countRows()-1;){if(0===D.createRow(void 0,void 0,t)){r=!0;break}}if(!r){if("array"===P.dataType&&(!n.settings.columns||0===n.settings.columns.length)&&n.settings.allowInsertColumn)for(;D.propToCol(e[o][1])>P.countCols()-1;)D.createCol(void 0,void 0,t);D.set(e[o][0],e[o][1],e[o][3])}}}else e.splice(o,1)}P.forceFullRender=!0,A.adjustRowsAndCols(),P.runHooks("beforeChangeRender",e,t),H.refreshBorders(null,!0),P.view.wt.wtOverlays.adjustElementsSize(),P.runHooks("afterChange",e,t||"edit");var i=P.getActiveEditor();i&&(0,u.isDefined)(i.refreshValue)&&i.refreshValue()}}function B(e,t,n){return"object"===(void 0===e?"undefined":r(e))?e:[[e,t,n]]}function V(e){if((0,p.hasOwnProperty)(e,"type")){var t,n={};for(var o in"object"===r(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,x.getCellType)(e.type)),t)(0,p.hasOwnProperty)(t,o)&&!(0,p.hasOwnProperty)(e,o)&&(n[o]=t[o]);return n}}R=new C.default(P),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),n={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new N,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},A={alter:function(e,t,o,r,i){var a;function s(e,t,n,o){var r=(0,m.arrayMap)(new Array(n),function(){return e=void 0,"array"===o?e=[]:"object"===o&&(e={}),e;var e});r.unshift(t,0),e.splice.apply(e,O(r))}switch(o=o||1,e){case"insert_row":var l=P.countSourceRows();if(P.getSettings().maxRows===l)return;t=(0,u.isDefined)(t)?t:l,a=D.createRow(t,o,r),s(n.cellSettings,t,o,"array"),a&&(H.isSelected()&&n.selRange.from.row>=t?(n.selRange.from.row+=a,H.transformEnd(a,0)):H.refreshBorders());break;case"insert_col":a=D.createCol(t,o,r);for(var c=0,d=P.countSourceRows();c=t?(n.selRange.from.col+=a,H.transformEnd(0,a)):H.refreshBorders()}break;case"remove_row":D.removeRow(t,o,r),n.cellSettings.splice(t,o);var f=P.countRows(),p=P.getSettings().fixedRowsTop;p>=t+1&&(P.getSettings().fixedRowsTop-=Math.min(o,p-t));var g=P.getSettings().fixedRowsBottom;g&&t>=f-g&&(P.getSettings().fixedRowsBottom-=Math.min(o,g)),A.adjustRowsAndCols(),H.refreshBorders();break;case"remove_col":var v=W.toPhysicalColumn(t);D.removeCol(t,o,r);for(var y=0,_=P.countSourceRows();y<_;y++)n.cellSettings[y]&&n.cellSettings[y].splice(v,o);var w=P.getSettings().fixedColumnsLeft;w>=t+1&&(P.getSettings().fixedColumnsLeft-=Math.min(o,w-t)),Array.isArray(P.getSettings().colHeaders)&&(void 0===v&&(v=-1),P.getSettings().colHeaders.splice(v,o)),A.adjustRowsAndCols(),H.refreshBorders();break;default:throw new Error('There is no such action "'+e+'"')}i||A.adjustRowsAndCols()},adjustRowsAndCols:function(){if(n.settings.minRows){var e=P.countRows();if(ea-1?(l=!0,d>(u=a-1)&&(d=u)):d>a-1&&(l=!0,u>(d=a-1)&&(u=d)),c>s-1?(l=!0,h>(c=s-1)&&(h=c)):h>s-1&&(l=!0,c>(h=s-1)&&(c=h)),l&&P.selectCell(u,c,d,h)}P.view&&P.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,o,i,a,s,l){var c,d,h,f,m,g,v,y,_=[],w={};if(0===(d=t.length))return!1;switch(null===o||o.row,null===o||o.col,a){case"shift_down":for(m=o?o.col-e.col+1:0,g=o?o.row-e.row+1:0,h=0,f=(t=(0,M.translateRowsToColumns)(t)).length,v=Math.max(f,m);h1&&void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},A=t.length,H=o?o.row-e.row+1:0;for(d=o?H:Math.max(A,H),c=0;co.row&&H>A||!n.settings.allowInsertRow&&w.row>P.countRows()-1||w.row>=n.settings.maxRows);c++){var Y=c-L,N=R(Y).length,I=o?o.col-e.col+1:0;if(f=o?I:Math.max(N,I),w.col=e.col,E=P.getCellMeta(w.row,w.col),"CopyPaste.paste"!==i&&"Autofill.autofill"!==i||!E.skipRowOnPaste){for(x=0,h=0;ho.col&&I>N||!n.settings.allowInsertColumn&&w.col>P.countCols()-1||w.col>=n.settings.maxCols);h++)if(E=P.getCellMeta(w.row,w.col),"CopyPaste.paste"!==i&&"Autofill.fill"!==i||!E.skipColumnOnPaste)if(E.readOnly)w.col++;else{var W=h-x,j=R(Y,W),F=P.getDataAtCell(w.row,w.col),z={row:Y,col:W};if("Autofill.fill"===i){var B=P.runHooks("beforeAutofillInsidePopulate",z,s,t,l,{},T);B&&(j=(0,u.isUndefined)(B.value)?j:B.value)}if(null!==j&&"object"===(void 0===j?"undefined":r(j)))if(null===F||"object"!==(void 0===F?"undefined":r(F)))D=!1;else{var V=(0,p.duckSchema)(F[0]||F),U=(0,p.duckSchema)(j[0]||j);(0,p.isObjectEquals)(V,U)?j=(0,p.deepClone)(j):D=!1}else null!==F&&"object"===(void 0===F?"undefined":r(F))&&(D=!1);D&&_.push([w.row,w.col,j]),D=!0,w.col++}else x++,w.col++,f++;w.row++}else L++,w.row++,d++}P.setDataAtCell(_,null,null,i||"populateFromArray")}}},this.selection=H={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];P.selection.selectedHeader.rows=e,P.selection.selectedHeader.cols=t,P.selection.selectedHeader.corner=n},begin:function(){P.selection.inProgress=!0},finish:function(){var e=P.getSelected();P.runHooks("afterSelectionEnd",e[0],e[1],e[2],e[3]),P.runHooks("afterSelectionEndByProp",e[0],P.colToProp(e[1]),e[2],P.colToProp(e[3])),P.selection.inProgress=!1},isInProgress:function(){return P.selection.inProgress},setRangeStart:function(e,t){P.runHooks("beforeSetRangeStart",e),n.selRange=new S.CellRange(e,e,e),H.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){P.runHooks("beforeSetRangeStartOnly",e),n.selRange=new S.CellRange(e,e,e)},setRangeEnd:function(e,t,o){if(null!==n.selRange){var r,i=!1,s=!0,l=P.view.wt.wtTable.getFirstVisibleRow(),u=P.view.wt.wtTable.getFirstVisibleColumn(),c={row:null,col:null};P.runHooks("beforeSetRangeEnd",e),P.selection.begin(),c.row=e.row<0?l:e.row,c.col=e.col<0?u:e.col,n.selRange.to=new S.CellCoords(c.row,c.col),n.settings.multiSelect||(n.selRange.from=e),P.view.wt.selections.current.clear(),"string"==typeof(r=P.getCellMeta(n.selRange.highlight.row,n.selRange.highlight.col).disableVisualSelection)&&(r=[r]),(!1===r||Array.isArray(r)&&-1===r.indexOf("current"))&&P.view.wt.selections.current.add(n.selRange.highlight),P.view.wt.selections.area.clear(),(!1===r||Array.isArray(r)&&-1===r.indexOf("area"))&&H.isMultiple()&&(P.view.wt.selections.area.add(n.selRange.from),P.view.wt.selections.area.add(n.selRange.to)),(n.settings.currentHeaderClassName||n.settings.currentRowClassName||n.settings.currentColClassName)&&(P.view.wt.selections.highlight.clear(),P.view.wt.selections.highlight.add(n.selRange.from),P.view.wt.selections.highlight.add(n.selRange.to));var d=(0,p.createObjectPropListener)("value");P.runHooks("afterSelection",n.selRange.from.row,n.selRange.from.col,n.selRange.to.row,n.selRange.to.col,d),P.runHooks("afterSelectionByProp",n.selRange.from.row,D.colToProp(n.selRange.from.col),n.selRange.to.row,D.colToProp(n.selRange.to.col),d),(0===n.selRange.from.row&&n.selRange.to.row===P.countRows()-1&&P.countRows()>1||0===n.selRange.from.col&&n.selRange.to.col===P.countCols()-1&&P.countCols()>1)&&(i=!0),(e.row<0||e.col<0)&&(s=!1),d.isTouched()&&(t=!d.value),!1!==t&&!i&&s&&(n.selRange.from&&!H.isMultiple()?P.view.scrollViewport(n.selRange.from):P.view.scrollViewport(e)),H.selectedHeader.rows&&H.selectedHeader.cols?(0,a.addClass)(P.rootElement,["ht__selection--rows","ht__selection--columns"]):H.selectedHeader.rows?((0,a.removeClass)(P.rootElement,"ht__selection--columns"),(0,a.addClass)(P.rootElement,"ht__selection--rows")):H.selectedHeader.cols?((0,a.removeClass)(P.rootElement,"ht__selection--rows"),(0,a.addClass)(P.rootElement,"ht__selection--columns")):(0,a.removeClass)(P.rootElement,["ht__selection--rows","ht__selection--columns"]),H.refreshBorders(null,o)}},refreshBorders:function(e,t){t||Y.destroyEditor(e),P.view.render(),H.isSelected()&&!t&&Y.prepareEditor()},isMultiple:function(){var e=!(n.selRange.to.col===n.selRange.from.col&&n.selRange.to.row===n.selRange.from.row),t=P.runHooks("afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,o,r){var i,a,s,l,u=new S.CellCoords(e,t),c=0,d=0;P.runHooks("modifyTransformStart",u),i=P.countRows(),a=P.countCols(),l=P.getSettings().fixedRowsBottom,n.selRange.highlight.row+e>i-1?o&&n.settings.minSpareRows>0&&!(l&&n.selRange.highlight.row>=i-l-1)?(P.alter("insert_row",i),i=P.countRows()):n.settings.autoWrapCol&&(u.row=1-i,u.col=n.selRange.highlight.col+u.col==a-1?1-a:1):n.settings.autoWrapCol&&n.selRange.highlight.row+u.row<0&&n.selRange.highlight.col+u.col>=0&&(u.row=i-1,u.col=n.selRange.highlight.col+u.col==0?a-1:-1),n.selRange.highlight.col+u.col>a-1?o&&n.settings.minSpareCols>0?(P.alter("insert_col",a),a=P.countCols()):n.settings.autoWrapRow&&(u.row=n.selRange.highlight.row+u.row==i-1?1-i:1,u.col=1-a):n.settings.autoWrapRow&&n.selRange.highlight.col+u.col<0&&n.selRange.highlight.row+u.row>=0&&(u.row=n.selRange.highlight.row+u.row==0?i-1:-1,u.col=a-1),(s=new S.CellCoords(n.selRange.highlight.row+u.row,n.selRange.highlight.col+u.col)).row<0?(c=-1,s.row=0):s.row>0&&s.row>=i&&(c=1,s.row=i-1),s.col<0?(d=-1,s.col=0):s.col>0&&s.col>=a&&(d=1,s.col=a-1),P.runHooks("afterModifyTransformStart",s,c,d),H.setRangeStart(s,r)},transformEnd:function(e,t){var o,r,i,a=new S.CellCoords(e,t),s=0,l=0;P.runHooks("modifyTransformEnd",a),o=P.countRows(),r=P.countCols(),(i=new S.CellCoords(n.selRange.to.row+a.row,n.selRange.to.col+a.col)).row<0?(s=-1,i.row=0):i.row>0&&i.row>=o&&(s=1,i.row=o-1),i.col<0?(l=-1,i.col=0):i.col>0&&i.col>=r&&(l=1,i.col=r-1),P.runHooks("afterModifyTransformEnd",i,s,l),H.setRangeEnd(i,!0)},isSelected:function(){return null!==n.selRange},inInSelection:function(e){return!!H.isSelected()&&n.selRange.includes(e)},deselect:function(){H.isSelected()&&(P.selection.inProgress=!1,n.selRange=null,P.view.wt.selections.current.clear(),P.view.wt.selections.area.clear(),(n.settings.currentHeaderClassName||n.settings.currentRowClassName||n.settings.currentColClassName)&&P.view.wt.selections.highlight.clear(),Y.destroyEditor(),H.refreshBorders(),(0,a.removeClass)(P.rootElement,["ht__selection--rows","ht__selection--columns"]),P.runHooks("afterDeselect"))},selectAll:function(){n.settings.multiSelect&&(H.setSelectedHeaders(!0,!0,!0),H.setRangeStart(new S.CellCoords(0,0)),H.setRangeEnd(new S.CellCoords(P.countRows()-1,P.countCols()-1),!1))},empty:function(){if(H.isSelected()){var e,t,o=n.selRange.getTopLeftCorner(),r=n.selRange.getBottomRightCorner(),i=[];for(e=o.row;e<=r.row;e++)for(t=o.col;t<=r.col;t++)P.getCellMeta(e,t).readOnly||i.push([e,t,""]);P.setDataAtCell(i)}}},this.init=function(){R.setData(n.settings.data),P.runHooks("beforeInit"),(0,c.isMobileBrowser)()&&(0,a.addClass)(P.rootElement,"mobile"),this.updateSettings(n.settings,!0),this.view=new b.default(this),Y=new h.default(P,n,H,D),this.forceFullRender=!0,P.runHooks("init"),this.view.render(),"object"===r(n.firstRun)&&(P.runHooks("afterChange",n.firstRun[0],n.firstRun[1]),n.firstRun=!1),P.runHooks("afterInit")},this.validateCell=function(e,t,n,o){var r=P.getCellValidator(t);function i(e){var o=t.visualCol,r=t.visualRow,i=P.getCell(r,o,!0);i&&"TH"!=i.nodeName&&P.view.wt.wtSettings.settings.cellRenderer(r,o,i),n(e)}(0,u.isRegExp)(r)&&(r=function(e){return function(t,n){n(e.test(t))}}(r)),(0,l.isFunction)(r)?(e=P.runHooks("beforeValidate",e,t.visualRow,t.prop,o),P._registerTimeout(setTimeout(function(){r.call(t,e,function(n){n=P.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,i(n),P.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):P._registerTimeout(setTimeout(function(){t.valid=!0,i(t.valid)},0))},this.setDataAtCell=function(e,t,n,o){var i,a,s,l=B(e,t,n),u=[];for(i=0,a=l.length;i-1?((0,l.isFunction)(e[r])||Array.isArray(e[r]))&&(e[r].initialHook=!0,P.addHook(r,e[r])):!t&&(0,p.hasOwnProperty)(e,r)&&(N.prototype[r]=e[r]));void 0===e.data&&void 0===n.settings.data?P.loadData(null):void 0!==e.data?P.loadData(e.data):void 0!==e.columns&&D.createMap(),c=P.countCols();var d=e.columns||N.prototype.columns;if(d&&(0,l.isFunction)(d)&&(c=P.countSourceCols(),o=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(n.cellSettings.length=0),c>0){var h=void 0,f=void 0;for(r=0,i=0;r-1||_.indexOf("overflow")>-1)?P.rootElement.setAttribute("style",_):(P.rootElement.style.height="",P.rootElement.style.overflow="")}else void 0!==y&&(P.rootElement.style.height=y+"px",P.rootElement.style.overflow="hidden");if(void 0!==e.width){var w=e.width;(0,l.isFunction)(w)&&(w=w()),P.rootElement.style.width=w+"px"}t||(D.clearLengthCache(),P.view&&P.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),P.runHooks("afterUpdateSettings")),A.adjustRowsAndCols(),P.view&&!n.firstRun&&(P.forceFullRender=!0,H.refreshBorders(null,!0)),t||!P.view||""!==v&&""!==y&&void 0!==y||v===y||P.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=P.getSelected();if(N.prototype.getValue){if((0,l.isFunction)(N.prototype.getValue))return N.prototype.getValue.call(P);if(e)return P.getData()[e[0]][N.prototype.getValue]}else if(e)return P.getDataAtCell(e[0],e[1])},this.getSettings=function(){return n.settings},this.clear=function(){H.selectAll(),H.empty()},this.alter=function(e,t,n,o,r){A.alter(e,t,n,o,r)},this.getCell=function(e,t,n){return P.view.getCellAtCoords(new S.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return D.colToProp(e)},this.propToCol=function(e){return D.propToCol(e)},this.toVisualRow=function(e){return W.toVisualRow(e)},this.toVisualColumn=function(e){return W.toVisualColumn(e)},this.toPhysicalRow=function(e){return W.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return W.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return D.get(e,D.colToProp(t))},this.getDataAtRowProp=function(e,t){return D.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,O(D.getRange(new S.CellCoords(0,e),new S.CellCoords(n.settings.data.length-1,e),D.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,o=[];return t=D.getRange(new S.CellCoords(0,D.propToCol(e)),new S.CellCoords(n.settings.data.length-1,D.propToCol(e)),D.DESTINATION_RENDERER),o.concat.apply(o,O(t))},this.getSourceData=function(e,t,n,o){return void 0===e?R.getData():R.getByRange(new S.CellCoords(e,t),new S.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?R.getData(!0):R.getByRange(new S.CellCoords(e,t),new S.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return R.getAtColumn(e)},this.getSourceDataAtRow=function(e){return R.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return R.getAtCell(e,t)},this.getDataAtRow=function(e){return D.getRange(new S.CellCoords(e,0),new S.CellCoords(e,this.countCols()-1),D.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){var r=this,i=null,a=null;void 0===e&&(e=0,n=this.countRows(),t=0,o=this.countCols()),void 0===n&&(n=e),void 0===o&&(o=t);var s="mixed";return(0,w.rangeEach)(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return(0,w.rangeEach)(Math.min(t,o),Math.max(t,o),function(t){var o=r.getCellMeta(e,t);return a=o.type,i?n=i===a:i=a,n}),s=n?a:"mixed",n}),s},this.removeCellMeta=function(e,t,o){void 0!=P.getCellMeta(e,t)[o]&&delete n.cellSettings[e][t][o]},this.spliceCellsMeta=function(e,t){for(var o,r=arguments.length,i=Array(r>2?r-2:0),a=2;a=0;){for(var o=P.countCols()-1;o>=0;)t.addValidatorToQueue(),P.validateCell(P.getDataAtCell(n,o),P.getCellMeta(n,o),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),o--;n--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=n.settings.rowHeaders;return void 0!==e&&(e=P.runHooks("modifyRowHeader",e)),void 0===e?(t=[],(0,w.rangeEach)(P.countRows()-1,function(e){t.push(P.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:(0,l.isFunction)(t)?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!n.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==n.settings.colHeaders&&null!==n.settings.colHeaders)return!!n.settings.colHeaders;for(var e=0,t=P.countCols();e=0;){if(t=P.runHooks("modifyRow",n),P.isEmptyRow(t))o++;else if(e)break;n--}return o},this.countEmptyCols=function(e){if(P.countRows()<1)return 0;for(var t=P.countCols()-1,n=0;t>=0;){if(P.isEmptyCol(t))n++;else if(e)break;t--}return n},this.isEmptyRow=function(e){return n.settings.isEmptyRow.call(P,e)},this.isEmptyCol=function(e){return n.settings.isEmptyCol.call(P,e)},this.selectCell=function(e,t,o,r,i,a){var s;if(a=(0,u.isUndefined)(a)||!0===a,"number"!=typeof e||e<0||e>=P.countRows())return!1;if("number"!=typeof t||t<0||t>=P.countCols())return!1;if((0,u.isDefined)(o)){if("number"!=typeof o||o<0||o>=P.countRows())return!1;if("number"!=typeof r||r<0||r>=P.countCols())return!1}return s=new S.CellCoords(e,t),n.selRange=new S.CellRange(s,s,s),a&&P.listen(),(0,u.isUndefined)(o)?H.setRangeEnd(n.selRange.from,i):H.setRangeEnd(new S.CellCoords(o,r),i),P.selection.finish(),!0},this.selectCellByProp=function(e,t,n,o,r){var i;return arguments[1]=D.propToCol(arguments[1]),(0,u.isDefined)(arguments[3])&&(arguments[3]=D.propToCol(arguments[3])),(i=P).selectCell.apply(i,arguments)},this.deselectCell=function(){H.deselect()},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(e<0||e>=P.countRows()))return!1;if(void 0!==t&&(t<0||t>=P.countCols()))return!1;var r=!1;return void 0!==e&&void 0!==t&&(P.view.wt.wtOverlays.topOverlay.scrollTo(e,n),P.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),r=!0),"number"==typeof e&&"number"!=typeof t&&(P.view.wt.wtOverlays.topOverlay.scrollTo(e,n),r=!0),"number"==typeof t&&"number"!=typeof e&&(P.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),r=!0),r},this.destroy=function(){for(var e in P._clearTimeouts(),P.view&&P.view.destroy(),R&&R.destroy(),R=null,(0,a.empty)(P.rootElement),I.destroy(),P.runHooks("afterDestroy"),T.default.getSingleton().destroy(P),P)(0,p.hasOwnProperty)(P,e)&&((0,l.isFunction)(P[e])?P[e]=G:"guid"!==e&&(P[e]=null));D&&D.destroy(),D=null,n=null,A=null,H=null,Y=null,P=null,N=null},this.getActiveEditor=function(){return Y.getActiveEditor()},this.getPlugin=function(e){return(0,g.getPlugin)(this,e)},this.getInstance=function(){return P},this.addHook=function(e,t){T.default.getSingleton().add(e,t,P)},this.hasHook=function(e){return T.default.getSingleton().has(e,P)},this.addHookOnce=function(e,t){T.default.getSingleton().once(e,t,P)},this.removeHook=function(e,t){T.default.getSingleton().remove(e,t,P)},this.runHooks=function(e,t,n,o,r,i,a){return T.default.getSingleton().run(P,e,t,n,o,r,i,a)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;e0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;e0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=[];for(e=0;e0;)o=(t-1)%a,n=String.fromCharCode(65+o)+n,t=parseInt((t-o)/a,10);return n}},function(e,t,n){"use strict";t.__esModule=!0,t.columnFactory=function(e,t){function n(){}(0,o.inherit)(n,e);for(var r=0,i=t.length;r0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||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(e){var t=document.createElement("col");return t.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),i=t.createElement("thead"),a=t.createElement("tbody"),s=t.createElement("colgroup"),l=t.createElement("tr"),u=t.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,e),n.appendChild(o),{fragment:n,table:o,tHead:i,tBody:a,colGroup:s,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),(0,r.addClass)(o,e),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)}}]),e}();t.default=a},function(e,t,n){"use strict";var o=n(37),r=n(167),i=n(45),a=n(23);e.exports=n(166)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";t.__esModule=!0;var o,r=function(){function e(e,t){for(var n=0;n=t&&o.col<=n&&r.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)==Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(e.rown.row||e.col>n.col)&&(this.from=new i.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new i.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var n=this.getTopLeftCorner(),o=this.getBottomRightCorner(),r=(this.getTopRightCorner(),this.getBottomLeftCorner(),t.getTopLeftCorner()),a=t.getBottomRightCorner(),s=Math.min(n.row,r.row),l=Math.min(n.col,r.col),u=Math.max(o.row,a.row),c=Math.max(o.col,a.col),d=new i.default(s,l),h=new i.default(u,c),f=new e(d,d,h).isCorner(this.from,t),p=t.isEqual(new e(d,d,h));return f&&!p&&(this.from.col>d.col&&(d.col=c,h.col=l),this.from.row>d.row&&(d.row=u,h.row=s)),this.from=d,this.to=h,!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(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[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 r=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=r[0],this.to=r[1]}}},{key:"getTopLeftCorner",value:function(){return new i.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new i.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new i.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new i.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new i.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new i.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new i.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new i.default(t.to.row,t.to.col))))||e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner())}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof i.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new i.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new i.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new i.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new i.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),o=Math.min(this.from.col,this.to.col),r=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t==i&&u.push("top"),r==l&&u.push("right"),n==a&&u.push("bottom"),o==s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var r=e.col;r<=t.col;r++)this.from.row===o&&this.from.col===r||this.to.row===o&&this.to.col===r||n.push(new i.default(o,r));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var r=e.col;r<=t.col;r++)e.row===o&&e.col===r?n.push(e):t.row===o&&t.col===r?n.push(t):n.push(new i.default(o,r));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;o<=n.row;o++)for(var r=t.col;r<=n.col;r++)if(!1===e(o,r))return}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{name:o}};var o=t.KEY="---------"},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var o=n(19),r=n(40);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(15),r=n(13).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(10)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){var o=n(18),r=n(286),i=n(74),a=n(81)("IE_PROTO"),s=function(){},l=function(){var e,t=n(73)("iframe"),o=i.length;for(t.style.display="none",n(159).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("