!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=50)}([function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CONFIG_ALIASES",(function(){return CONFIG_ALIASES})),__webpack_require__.d(__webpack_exports__,"CONFIG_VALID_KEYS",(function(){return CONFIG_VALID_KEYS})),__webpack_require__.d(__webpack_exports__,"SORT_ORDERS",(function(){return SORT_ORDERS})),__webpack_require__.d(__webpack_exports__,"SORT_ORDER_IDS",(function(){return SORT_ORDER_IDS})),__webpack_require__.d(__webpack_exports__,"TYPE_AGGREGATES",(function(){return TYPE_AGGREGATES})),__webpack_require__.d(__webpack_exports__,"FILTER_OPERATORS",(function(){return FILTER_OPERATORS})),__webpack_require__.d(__webpack_exports__,"COLUMN_SEPARATOR_STRING",(function(){return COLUMN_SEPARATOR_STRING})),__webpack_require__.d(__webpack_exports__,"TYPE_FILTERS",(function(){return TYPE_FILTERS}));const CONFIG_ALIASES={row_pivot:"row_pivots","row-pivot":"row_pivots","row-pivots":"row_pivots",col_pivot:"column_pivots",col_pivots:"column_pivots",column_pivot:"column_pivots","column-pivot":"column_pivots","column-pivots":"column_pivots",filters:"filter",sorts:"sort"},CONFIG_VALID_KEYS=["viewport","row_pivots","column_pivots","aggregates","columns","filter","sort","row_pivot_depth","filter_op"],NUMBER_AGGREGATES=["any","avg","count","distinct count","dominant","first by index","last by index","last","high","low","mean","mean by count","median","pct sum parent","pct sum grand total","sum","sum abs","sum not null","unique"],STRING_AGGREGATES=["any","count","distinct count","distinct leaf","dominant","first by index","last by index","last","mean by count","unique"],SORT_ORDERS=["none","asc","desc","col asc","col desc","asc abs","desc abs","col asc abs","col desc abs"],SORT_ORDER_IDS=[2,0,1,0,1,3,4,3,4],TYPE_AGGREGATES={string:STRING_AGGREGATES,float:NUMBER_AGGREGATES,integer:NUMBER_AGGREGATES,boolean:["any","count","distinct count","distinct leaf","dominant","first by index","last by index","last","mean by count","unique","and","or"],datetime:STRING_AGGREGATES,date:STRING_AGGREGATES},FILTER_OPERATORS={lessThan:"<",greaterThan:">",equals:"==",lessThanOrEquals:"<=",greaterThanOrEquals:">=",doesNotEqual:"!=",isNull:"is null",isNotNull:"is not null",isIn:"in",isNotIn:"not in",contains:"contains",bitwiseAnd:"&",bitwiseOr:"|",and:"and",or:"or",beginsWith:"begins with",endsWith:"ends with"},BOOLEAN_FILTERS=[FILTER_OPERATORS.bitwiseAnd,FILTER_OPERATORS.bitwiseOr,FILTER_OPERATORS.equals,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.or,FILTER_OPERATORS.and,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],NUMBER_FILTERS=[FILTER_OPERATORS.lessThan,FILTER_OPERATORS.greaterThan,FILTER_OPERATORS.equals,FILTER_OPERATORS.lessThanOrEquals,FILTER_OPERATORS.greaterThanOrEquals,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],STRING_FILTERS=[FILTER_OPERATORS.equals,FILTER_OPERATORS.contains,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.isIn,FILTER_OPERATORS.isNotIn,FILTER_OPERATORS.beginsWith,FILTER_OPERATORS.endsWith,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],DATETIME_FILTERS=[FILTER_OPERATORS.lessThan,FILTER_OPERATORS.greaterThan,FILTER_OPERATORS.equals,FILTER_OPERATORS.lessThanOrEquals,FILTER_OPERATORS.greaterThanOrEquals,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],COLUMN_SEPARATOR_STRING="|",TYPE_FILTERS={string:STRING_FILTERS,float:NUMBER_FILTERS,integer:NUMBER_FILTERS,boolean:BOOLEAN_FILTERS,datetime:DATETIME_FILTERS,date:DATETIME_FILTERS}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return extract_vector})),__webpack_require__.d(__webpack_exports__,"a",(function(){return extract_map})),__webpack_require__.d(__webpack_exports__,"c",(function(){return fill_vector}));__webpack_require__(11);const extract_vector=function(vector){let extracted=[];for(let i=0;i>>0,i=0;i0)for(i=0;i=0?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?([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,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;"string"==typeof callback&&(func=function(){return this[callback]()}),token&&(formatTokenFunctions[token]=func),padded&&(formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}),ordinal&&(formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)})}function formatMoment(m,format){return m.isValid()?(format=expandFormat(format,m.localeData()),formatFunctions[format]=formatFunctions[format]||function(format){var i,length,input,array=format.match(formattingTokens);for(i=0,length=array.length;i=0&&localFormattingTokens.test(format);)format=format.replace(localFormattingTokens,replaceLongDateFormatTokens),localFormattingTokens.lastIndex=0,i-=1;return format}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){return hasOwnProp(regexes,token)?regexes[token](config._strict,config._locale):new RegExp(regexEscape(token.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(token,callback){var i,func=callback;for("string"==typeof token&&(token=[token]),isNumber(callback)&&(func=function(input,array){array[callback]=toInt(input)}),i=0;i68?1900:2e3)};var indexOf,getSetYear=makeGetSet("FullYear",!0);function makeGetSet(unit,keepTime){return function(value){return null!=value?(set$1(this,unit,value),hooks.updateOffset(this,keepTime),this):get(this,unit)}}function get(mom,unit){return mom.isValid()?mom._d["get"+(mom._isUTC?"UTC":"")+unit]():NaN}function set$1(mom,unit,value){mom.isValid()&&!isNaN(value)&&("FullYear"===unit&&isLeapYear(mom.year())&&1===mom.month()&&29===mom.date()?mom._d["set"+(mom._isUTC?"UTC":"")+unit](value,mom.month(),daysInMonth(value,mom.month())):mom._d["set"+(mom._isUTC?"UTC":"")+unit](value))}function daysInMonth(year,month){if(isNaN(year)||isNaN(month))return NaN;var x,modMonth=(month%(x=12)+x)%x;return year+=(month-modMonth)/12,1===modMonth?isLeapYear(year)?29:28:31-modMonth%7%2}indexOf=Array.prototype.indexOf?Array.prototype.indexOf:function(o){var i;for(i=0;i=0?(date=new Date(y+400,m,d,h,M,s,ms),isFinite(date.getFullYear())&&date.setFullYear(y)):date=new Date(y,m,d,h,M,s,ms),date}function createUTCDate(y){var date;if(y<100&&y>=0){var args=Array.prototype.slice.call(arguments);args[0]=y+400,date=new Date(Date.UTC.apply(null,args)),isFinite(date.getUTCFullYear())&&date.setUTCFullYear(y)}else date=new Date(Date.UTC.apply(null,arguments));return date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy;return-(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var resYear,resDayOfYear,dayOfYear=1+7*(week-1)+(7+weekday-dow)%7+firstWeekOffset(year,dow,doy);return dayOfYear<=0?resDayOfYear=daysInYear(resYear=year-1)+dayOfYear:dayOfYear>daysInYear(year)?(resYear=year+1,resDayOfYear=dayOfYear-daysInYear(year)):(resYear=year,resDayOfYear=dayOfYear),{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var resWeek,resYear,weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1;return week<1?resWeek=week+weeksInYear(resYear=mom.year()-1,dow,doy):week>weeksInYear(mom.year(),dow,doy)?(resWeek=week-weeksInYear(mom.year(),dow,doy),resYear=mom.year()+1):(resYear=mom.year(),resWeek=week),{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}function shiftWeekdays(ws,n){return ws.slice(n,7).concat(ws.slice(0,n))}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],(function(input,week,config,token){week[token.substr(0,1)]=toInt(input)})),addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(format){return this.localeData().weekdaysMin(this,format)})),addFormatToken("ddd",0,0,(function(format){return this.localeData().weekdaysShort(this,format)})),addFormatToken("dddd",0,0,(function(format){return this.localeData().weekdays(this,format)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",(function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)})),addRegexToken("ddd",(function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)})),addRegexToken("dddd",(function(isStrict,locale){return locale.weekdaysRegex(isStrict)})),addWeekParseToken(["dd","ddd","dddd"],(function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);null!=weekday?week.d=weekday:getParsingFlags(config).invalidWeekday=input})),addWeekParseToken(["d","e","E"],(function(input,week,config,token){week[token]=toInt(input)}));var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)mom=createUTC([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(mom,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(mom,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(mom,"").toLocaleLowerCase();return strict?"dddd"===format?-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:null:"ddd"===format?-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:null:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:"dddd"===format?-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:"ddd"===format?-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:null}var defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,minp,shortp,longp,minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<7;i++)mom=createUTC([2e3,1]).day(i),minp=this.weekdaysMin(mom,""),shortp=this.weekdaysShort(mom,""),longp=this.weekdays(mom,""),minPieces.push(minp),shortPieces.push(shortp),longPieces.push(longp),mixedPieces.push(minp),mixedPieces.push(shortp),mixedPieces.push(longp);for(minPieces.sort(cmpLenRev),shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<7;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]),mixedPieces[i]=regexEscape(mixedPieces[i]);this._weekdaysRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+minPieces.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function meridiem(token,lowercase){addFormatToken(token,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)}))}function matchMeridiem(isStrict,locale){return locale._meridiemParse}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,(function(){return this.hours()||24})),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],(function(input,array,config){var kInput=toInt(input);array[HOUR]=24===kInput?0:kInput})),addParseToken(["a","A"],(function(input,array,config){config._isPm=config._locale.isPM(input),config._meridiem=input})),addParseToken(["h","hh"],(function(input,array,config){array[HOUR]=toInt(input),getParsingFlags(config).bigHour=!0})),addParseToken("hmm",(function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos)),getParsingFlags(config).bigHour=!0})),addParseToken("hmmss",(function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2)),getParsingFlags(config).bigHour=!0})),addParseToken("Hmm",(function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos))})),addParseToken("Hmmss",(function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2))}));var globalLocale,getSetHour=makeGetSet("Hours",!0),baseConfig={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:{dow:0,doy:6},weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:/[ap]\.?m?\.?/i},locales={},localeFamilies={};function normalizeLocale(key){return key?key.toLowerCase().replace("_","-"):key}function loadLocale(name){var oldLocale=null;if(!locales[name]&&void 0!==module&&module&&module.exports)try{oldLocale=globalLocale._abbr,__webpack_require__(80)("./"+name),getSetGlobalLocale(oldLocale)}catch(e){}return locales[name]}function getSetGlobalLocale(key,values){var data;return key&&((data=isUndefined(values)?getLocale(key):defineLocale(key,values))?globalLocale=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+key+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(name,config){if(null!==config){var locale,parentConfig=baseConfig;if(config.abbr=name,null!=locales[name])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),parentConfig=locales[name]._config;else if(null!=config.parentLocale)if(null!=locales[config.parentLocale])parentConfig=locales[config.parentLocale]._config;else{if(null==(locale=loadLocale(config.parentLocale)))return localeFamilies[config.parentLocale]||(localeFamilies[config.parentLocale]=[]),localeFamilies[config.parentLocale].push({name:name,config:config}),null;parentConfig=locale._config}return locales[name]=new Locale(mergeConfigs(parentConfig,config)),localeFamilies[name]&&localeFamilies[name].forEach((function(x){defineLocale(x.name,x.config)})),getSetGlobalLocale(name),locales[name]}return delete locales[name],null}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr&&(key=key._locale._abbr),!key)return globalLocale;if(!isArray(key)){if(locale=loadLocale(key))return locale;key=[key]}return function(names){for(var j,next,locale,split,i=0;i0;){if(locale=loadLocale(split.slice(0,j).join("-")))return locale;if(next&&next.length>=j&&compareArrays(split,next,!0)>=j-1)break;j--}i++}return globalLocale}(key)}function checkOverflow(m){var overflow,a=m._a;return a&&-2===getParsingFlags(m).overflow&&(overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||24===a[HOUR]&&(0!==a[MINUTE]||0!==a[SECOND]||0!==a[MILLISECOND])?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(m)._overflowDayOfYear&&(overflowDATE)&&(overflow=DATE),getParsingFlags(m)._overflowWeeks&&-1===overflow&&(overflow=WEEK),getParsingFlags(m)._overflowWeekday&&-1===overflow&&(overflow=WEEKDAY),getParsingFlags(m).overflow=overflow),m}function defaults(a,b,c){return null!=a?a:null!=b?b:c}function configFromArray(config){var i,date,currentDate,expectedWeekday,yearToUse,input=[];if(!config._d){for(currentDate=function(config){var nowValue=new Date(hooks.now());return config._useUTC?[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]:[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}(config),config._w&&null==config._a[DATE]&&null==config._a[MONTH]&&function(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;if(null!=(w=config._w).GG||null!=w.W||null!=w.E)dow=1,doy=4,weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year),week=defaults(w.W,1),((weekday=defaults(w.E,1))<1||weekday>7)&&(weekdayOverflow=!0);else{dow=config._locale._week.dow,doy=config._locale._week.doy;var curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year),week=defaults(w.w,curWeek.week),null!=w.d?((weekday=w.d)<0||weekday>6)&&(weekdayOverflow=!0):null!=w.e?(weekday=w.e+dow,(w.e<0||w.e>6)&&(weekdayOverflow=!0)):weekday=dow}week<1||week>weeksInYear(weekYear,dow,doy)?getParsingFlags(config)._overflowWeeks=!0:null!=weekdayOverflow?getParsingFlags(config)._overflowWeekday=!0:(temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),config._a[YEAR]=temp.year,config._dayOfYear=temp.dayOfYear)}(config),null!=config._dayOfYear&&(yearToUse=defaults(config._a[YEAR],currentDate[YEAR]),(config._dayOfYear>daysInYear(yearToUse)||0===config._dayOfYear)&&(getParsingFlags(config)._overflowDayOfYear=!0),date=createUTCDate(yearToUse,0,config._dayOfYear),config._a[MONTH]=date.getUTCMonth(),config._a[DATE]=date.getUTCDate()),i=0;i<3&&null==config._a[i];++i)config._a[i]=input[i]=currentDate[i];for(;i<7;i++)config._a[i]=input[i]=null==config._a[i]?2===i?1:0:config._a[i];24===config._a[HOUR]&&0===config._a[MINUTE]&&0===config._a[SECOND]&&0===config._a[MILLISECOND]&&(config._nextDay=!0,config._a[HOUR]=0),config._d=(config._useUTC?createUTCDate:createDate).apply(null,input),expectedWeekday=config._useUTC?config._d.getUTCDay():config._d.getDay(),null!=config._tzm&&config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),config._nextDay&&(config._a[HOUR]=24),config._w&&void 0!==config._w.d&&config._w.d!==expectedWeekday&&(getParsingFlags(config).weekdayMismatch=!0)}}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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}/]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((\-?\d+)/i;function configFromISO(config){var i,l,allowTime,dateFormat,timeFormat,tzFormat,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string);if(match){for(getParsingFlags(config).iso=!0,i=0,l=isoDates.length;i0&&getParsingFlags(config).unusedInput.push(skipped),string=string.slice(string.indexOf(parsedInput)+parsedInput.length),totalParsedInputLength+=parsedInput.length),formatTokenFunctions[token]?(parsedInput?getParsingFlags(config).empty=!1:getParsingFlags(config).unusedTokens.push(token),addTimeToArrayFromToken(token,parsedInput,config)):config._strict&&!parsedInput&&getParsingFlags(config).unusedTokens.push(token);getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength,string.length>0&&getParsingFlags(config).unusedInput.push(string),config._a[HOUR]<=12&&!0===getParsingFlags(config).bigHour&&config._a[HOUR]>0&&(getParsingFlags(config).bigHour=void 0),getParsingFlags(config).parsedDateParts=config._a.slice(0),getParsingFlags(config).meridiem=config._meridiem,config._a[HOUR]=function(locale,hour,meridiem){var isPm;return null==meridiem?hour:null!=locale.meridiemHour?locale.meridiemHour(hour,meridiem):null!=locale.isPM?((isPm=locale.isPM(meridiem))&&hour<12&&(hour+=12),isPm||12!==hour||(hour=0),hour):hour}(config._locale,config._a[HOUR],config._meridiem),configFromArray(config),checkOverflow(config)}else configFromRFC2822(config);else configFromISO(config)}function prepareConfig(config){var input=config._i,format=config._f;return config._locale=config._locale||getLocale(config._l),null===input||void 0===format&&""===input?createInvalid({nullInput:!0}):("string"==typeof input&&(config._i=input=config._locale.preparse(input)),isMoment(input)?new Moment(checkOverflow(input)):(isDate(input)?config._d=input:isArray(format)?function(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(0===config._f.length)return getParsingFlags(config).invalidFormat=!0,void(config._d=new Date(NaN));for(i=0;ithis?this:other:createInvalid()}));function pickBy(fn,moments){var res,i;if(1===moments.length&&isArray(moments[0])&&(moments=moments[0]),!moments.length)return createLocal();for(res=moments[0],i=1;i=0?new Date(y+400,m,d)-MS_PER_400_YEARS:new Date(y,m,d).valueOf()}function utcStartOfDate(y,m,d){return y<100&&y>=0?Date.UTC(y+400,m,d)-MS_PER_400_YEARS:Date.UTC(y,m,d)}function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;return null==input?weekOfYear(this,dow,doy).year:(week>(weeksTarget=weeksInYear(input,dow,doy))&&(week=weeksTarget),setWeekAll.call(this,input,week,weekday,dow,doy))}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);return this.year(date.getUTCFullYear()),this.month(date.getUTCMonth()),this.date(date.getUTCDate()),this}addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(input,week,config,token){week[token.substr(0,2)]=toInt(input)})),addWeekParseToken(["gg","GG"],(function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input)})),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",(function(input,array){array[MONTH]=3*(toInt(input)-1)})),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",(function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],DATE),addParseToken("Do",(function(input,array){array[DATE]=toInt(input.match(match1to2)[0])}));var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],(function(input,array,config){config._dayOfYear=toInt(input)})),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var token,getSetSecond=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3),token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(input,array){array[MILLISECOND]=toInt(1e3*("0."+input))}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);var getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var proto=Moment.prototype;function preParsePostFormat(string){return string}proto.add=add,proto.calendar=function(time,formats){var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf("day"),format=hooks.calendarFormat(this,sod)||"sameElse",output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)))},proto.clone=function(){return new Moment(this)},proto.diff=function(input,units,asFloat){var that,zoneDelta,output;if(!this.isValid())return NaN;if(!(that=cloneWithOffset(input,this)).isValid())return NaN;switch(zoneDelta=6e4*(that.utcOffset()-this.utcOffset()),units=normalizeUnits(units)){case"year":output=monthDiff(this,that)/12;break;case"month":output=monthDiff(this,that);break;case"quarter":output=monthDiff(this,that)/3;break;case"second":output=(this-that)/1e3;break;case"minute":output=(this-that)/6e4;break;case"hour":output=(this-that)/36e5;break;case"day":output=(this-that-zoneDelta)/864e5;break;case"week":output=(this-that-zoneDelta)/6048e5;break;default:output=this-that}return asFloat?output:absFloor(output)},proto.endOf=function(units){var time;if(void 0===(units=normalizeUnits(units))||"millisecond"===units||!this.isValid())return this;var startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case"year":time=startOfDate(this.year()+1,0,1)-1;break;case"quarter":time=startOfDate(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=startOfDate(this.year(),this.month()+1,1)-1;break;case"week":time=startOfDate(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=startOfDate(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=MS_PER_HOUR-mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":time=this._d.valueOf(),time+=MS_PER_MINUTE-mod$1(time,MS_PER_MINUTE)-1;break;case"second":time=this._d.valueOf(),time+=MS_PER_SECOND-mod$1(time,MS_PER_SECOND)-1}return this._d.setTime(time),hooks.updateOffset(this,!0),this},proto.format=function(inputString){inputString||(inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var output=formatMoment(this,inputString);return this.localeData().postformat(output)},proto.from=function(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},proto.fromNow=function(withoutSuffix){return this.from(createLocal(),withoutSuffix)},proto.to=function(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},proto.toNow=function(withoutSuffix){return this.to(createLocal(),withoutSuffix)},proto.get=function(units){return isFunction(this[units=normalizeUnits(units)])?this[units]():this},proto.invalidAt=function(){return getParsingFlags(this).overflow},proto.isAfter=function(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()>localInput.valueOf():localInput.valueOf()9999?formatMoment(m,utc?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?utc?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(m,"Z")):formatMoment(m,utc?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},proto.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var func="moment",zone="";this.isLocal()||(func=0===this.utcOffset()?"moment.utc":"moment.parseZone",zone="Z");var prefix="["+func+'("]',year=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",suffix=zone+'[")]';return this.format(prefix+year+"-MM-DD[T]HH:mm:ss.SSS"+suffix)},proto.toJSON=function(){return this.isValid()?this.toISOString():null},proto.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},proto.unix=function(){return Math.floor(this.valueOf()/1e3)},proto.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},proto.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},proto.year=getSetYear,proto.isLeapYear=function(){return isLeapYear(this.year())},proto.weekYear=function(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},proto.isoWeekYear=function(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)},proto.quarter=proto.quarters=function(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)},proto.month=getSetMonth,proto.daysInMonth=function(){return daysInMonth(this.year(),this.month())},proto.week=proto.weeks=function(input){var week=this.localeData().week(this);return null==input?week:this.add(7*(input-week),"d")},proto.isoWeek=proto.isoWeeks=function(input){var week=weekOfYear(this,1,4).week;return null==input?week:this.add(7*(input-week),"d")},proto.weeksInYear=function(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)},proto.isoWeeksInYear=function(){return weeksInYear(this.year(),1,4)},proto.date=getSetDayOfMonth,proto.day=proto.days=function(input){if(!this.isValid())return null!=input?this:NaN;var day=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=function(input,locale){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=locale.weekdaysParse(input))?input:null:parseInt(input,10)}(input,this.localeData()),this.add(input-day,"d")):day},proto.weekday=function(input){if(!this.isValid())return null!=input?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return null==input?weekday:this.add(input-weekday,"d")},proto.isoWeekday=function(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var weekday=function(input,locale){return"string"==typeof input?locale.weekdaysParse(input)%7||7:isNaN(input)?null:input}(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}return this.day()||7},proto.dayOfYear=function(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?dayOfYear:this.add(input-dayOfYear,"d")},proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=function(input,keepLocalTime,keepMinutes){var localAdjust,offset=this._offset||0;if(!this.isValid())return null!=input?this:NaN;if(null!=input){if("string"==typeof input){if(null===(input=offsetFromString(matchShortOffset,input)))return this}else Math.abs(input)<16&&!keepMinutes&&(input*=60);return!this._isUTC&&keepLocalTime&&(localAdjust=getDateOffset(this)),this._offset=input,this._isUTC=!0,null!=localAdjust&&this.add(localAdjust,"m"),offset!==input&&(!keepLocalTime||this._changeInProgress?addSubtract(this,createDuration(input-offset,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?offset:getDateOffset(this)},proto.utc=function(keepLocalTime){return this.utcOffset(0,keepLocalTime)},proto.local=function(keepLocalTime){return this._isUTC&&(this.utcOffset(0,keepLocalTime),this._isUTC=!1,keepLocalTime&&this.subtract(getDateOffset(this),"m")),this},proto.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var tZone=offsetFromString(matchOffset,this._i);null!=tZone?this.utcOffset(tZone):this.utcOffset(0,!0)}return this},proto.hasAlignedHourOffset=function(input){return!!this.isValid()&&(input=input?createLocal(input).utcOffset():0,(this.utcOffset()-input)%60==0)},proto.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},proto.isLocal=function(){return!!this.isValid()&&!this._isUTC},proto.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=function(){return this._isUTC?"UTC":""},proto.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(input,keepLocalTime){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,keepLocalTime),this):-this.utcOffset()})),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var c={};if(copyConfig(c,this),(c=prepareConfig(c))._a){var other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var proto$1=Locale.prototype;function get$1(format,index,field,setter){var locale=getLocale(),utc=createUTC().set(setter,index);return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(isNumber(format)&&(index=format,format=void 0),format=format||"",null!=index)return get$1(format,index,field,"month");var i,out=[];for(i=0;i<12;i++)out[i]=get$1(format,i,field,"month");return out}function listWeekdaysImpl(localeSorted,format,index,field){"boolean"==typeof localeSorted?(isNumber(format)&&(index=format,format=void 0),format=format||""):(index=format=localeSorted,localeSorted=!1,isNumber(format)&&(index=format,format=void 0),format=format||"");var i,locale=getLocale(),shift=localeSorted?locale._week.dow:0;if(null!=index)return get$1(format,(index+shift)%7,field,"day");var out=[];for(i=0;i<7;i++)out[i]=get$1(format,(i+shift)%7,field,"day");return out}proto$1.calendar=function(key,mom,now){var output=this._calendar[key]||this._calendar.sameElse;return isFunction(output)?output.call(mom,now):output},proto$1.longDateFormat=function(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];return format||!formatUpper?format:(this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,(function(val){return val.slice(1)})),this._longDateFormat[key])},proto$1.invalidDate=function(){return this._invalidDate},proto$1.ordinal=function(number){return this._ordinal.replace("%d",number)},proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=function(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)},proto$1.pastFuture=function(diff,output){var format=this._relativeTime[diff>0?"future":"past"];return isFunction(format)?format(output):format.replace(/%s/i,output)},proto$1.set=function(config){var prop,i;for(i in config)isFunction(prop=config[i])?this[i]=prop:this["_"+i]=prop;this._config=config,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},proto$1.months=function(m,format){return m?isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?"format":"standalone"][m.month()]:isArray(this._months)?this._months:this._months.standalone},proto$1.monthsShort=function(m,format){return m?isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?"format":"standalone"][m.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},proto$1.monthsParse=function(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact)return handleStrictParse.call(this,monthName,format,strict);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(mom=createUTC([2e3,i]),strict&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(mom,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(mom,"").replace(".","")+"$","i")),strict||this._monthsParse[i]||(regex="^"+this.months(mom,"")+"|^"+this.monthsShort(mom,""),this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"MMMM"===format&&this._longMonthsParse[i].test(monthName))return i;if(strict&&"MMM"===format&&this._shortMonthsParse[i].test(monthName))return i;if(!strict&&this._monthsParse[i].test(monthName))return i}},proto$1.monthsRegex=function(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex)},proto$1.monthsShortRegex=function(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex)},proto$1.week=function(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week},proto$1.firstDayOfYear=function(){return this._week.doy},proto$1.firstDayOfWeek=function(){return this._week.dow},proto$1.weekdays=function(m,format){var weekdays=isArray(this._weekdays)?this._weekdays:this._weekdays[m&&!0!==m&&this._weekdays.isFormat.test(format)?"format":"standalone"];return!0===m?shiftWeekdays(weekdays,this._week.dow):m?weekdays[m.day()]:weekdays},proto$1.weekdaysMin=function(m){return!0===m?shiftWeekdays(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin},proto$1.weekdaysShort=function(m){return!0===m?shiftWeekdays(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort},proto$1.weekdaysParse=function(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,weekdayName,format,strict);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(mom=createUTC([2e3,1]).day(i),strict&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(mom,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(mom,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(mom,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(regex="^"+this.weekdays(mom,"")+"|^"+this.weekdaysShort(mom,"")+"|^"+this.weekdaysMin(mom,""),this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"dddd"===format&&this._fullWeekdaysParse[i].test(weekdayName))return i;if(strict&&"ddd"===format&&this._shortWeekdaysParse[i].test(weekdayName))return i;if(strict&&"dd"===format&&this._minWeekdaysParse[i].test(weekdayName))return i;if(!strict&&this._weekdaysParse[i].test(weekdayName))return i}},proto$1.weekdaysRegex=function(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex)},proto$1.weekdaysShortRegex=function(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},proto$1.weekdaysMinRegex=function(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},proto$1.isPM=function(input){return"p"===(input+"").toLowerCase().charAt(0)},proto$1.meridiem=function(hours,minutes,isLower){return hours>11?isLower?"pm":"PM":isLower?"am":"AM"},getSetGlobalLocale("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10;return number+(1===toInt(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);return duration._milliseconds+=direction*other._milliseconds,duration._days+=direction*other._days,duration._months+=direction*other._months,duration._bubble()}function absCeil(number){return number<0?Math.floor(number):Math.ceil(number)}function daysToMonths(days){return 4800*days/146097}function monthsToDays(months){return 146097*months/4800}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years"),round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var minutes,hours,seconds=abs$1(this._milliseconds)/1e3,days=abs$1(this._days),months=abs$1(this._months);minutes=absFloor(seconds/60),hours=absFloor(minutes/60),seconds%=60,minutes%=60;var Y=absFloor(months/12),M=months%=12,D=days,h=hours,m=minutes,s=seconds?seconds.toFixed(3).replace(/\.?0+$/,""):"",total=this.asSeconds();if(!total)return"P0D";var totalSign=total<0?"-":"",ymSign=sign(this._months)!==sign(total)?"-":"",daysSign=sign(this._days)!==sign(total)?"-":"",hmsSign=sign(this._milliseconds)!==sign(total)?"-":"";return totalSign+"P"+(Y?ymSign+Y+"Y":"")+(M?ymSign+M+"M":"")+(D?daysSign+D+"D":"")+(h||m||s?"T":"")+(h?hmsSign+h+"H":"")+(m?hmsSign+m+"M":"")+(s?hmsSign+s+"S":"")}var proto$2=Duration.prototype;return proto$2.isValid=function(){return this._isValid},proto$2.abs=function(){var data=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),data.milliseconds=mathAbs(data.milliseconds),data.seconds=mathAbs(data.seconds),data.minutes=mathAbs(data.minutes),data.hours=mathAbs(data.hours),data.months=mathAbs(data.months),data.years=mathAbs(data.years),this},proto$2.add=function(input,value){return addSubtract$1(this,input,value,1)},proto$2.subtract=function(input,value){return addSubtract$1(this,input,value,-1)},proto$2.as=function(units){if(!this.isValid())return NaN;var days,months,milliseconds=this._milliseconds;if("month"===(units=normalizeUnits(units))||"quarter"===units||"year"===units)switch(days=this._days+milliseconds/864e5,months=this._months+daysToMonths(days),units){case"month":return months;case"quarter":return months/3;case"year":return months/12}else switch(days=this._days+Math.round(monthsToDays(this._months)),units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return 24*days+milliseconds/36e5;case"minute":return 1440*days+milliseconds/6e4;case"second":return 86400*days+milliseconds/1e3;case"millisecond":return Math.floor(864e5*days)+milliseconds;default:throw new Error("Unknown unit "+units)}},proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asQuarters=asQuarters,proto$2.asYears=asYears,proto$2.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN},proto$2._bubble=function(){var seconds,minutes,hours,years,monthsFromDays,milliseconds=this._milliseconds,days=this._days,months=this._months,data=this._data;return milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0||(milliseconds+=864e5*absCeil(monthsToDays(months)+days),days=0,months=0),data.milliseconds=milliseconds%1e3,seconds=absFloor(milliseconds/1e3),data.seconds=seconds%60,minutes=absFloor(seconds/60),data.minutes=minutes%60,hours=absFloor(minutes/60),data.hours=hours%24,days+=absFloor(hours/24),monthsFromDays=absFloor(daysToMonths(days)),months+=monthsFromDays,days-=absCeil(monthsToDays(monthsFromDays)),years=absFloor(months/12),months%=12,data.days=days,data.months=months,data.years=years,this},proto$2.clone=function(){return createDuration(this)},proto$2.get=function(units){return units=normalizeUnits(units),this.isValid()?this[units+"s"]():NaN},proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=function(){return absFloor(this.days()/7)},proto$2.months=months,proto$2.years=years,proto$2.humanize=function(withSuffix){if(!this.isValid())return this.localeData().invalidDate();var locale=this.localeData(),output=function(posNegDuration,withoutSuffix,locale){var duration=createDuration(posNegDuration).abs(),seconds=round(duration.as("s")),minutes=round(duration.as("m")),hours=round(duration.as("h")),days=round(duration.as("d")),months=round(duration.as("M")),years=round(duration.as("y")),a=seconds<=thresholds.ss&&["s",seconds]||seconds0,a[4]=locale,substituteTimeAgo.apply(null,a)}(this,!withSuffix,locale);return withSuffix&&(output=locale.pastFuture(+this,output)),locale.postformat(output)},proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",/[+-]?\d+(\.\d{1,3})?/),addParseToken("X",(function(input,array,config){config._d=new Date(1e3*parseFloat(input,10))})),addParseToken("x",(function(input,array,config){config._d=new Date(toInt(input))})),hooks.version="2.24.0",hookCallback=createLocal,hooks.fn=proto,hooks.min=function(){return pickBy("isBefore",[].slice.call(arguments,0))},hooks.max=function(){return pickBy("isAfter",[].slice.call(arguments,0))},hooks.now=function(){return Date.now?Date.now():+new Date},hooks.utc=createUTC,hooks.unix=function(input){return createLocal(1e3*input)},hooks.months=function(format,index){return listMonthsImpl(format,index,"months")},hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=function(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdays")},hooks.parseZone=function(){return createLocal.apply(null,arguments).parseZone()},hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=function(format,index){return listMonthsImpl(format,index,"monthsShort")},hooks.weekdaysMin=function(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysMin")},hooks.defineLocale=defineLocale,hooks.updateLocale=function(name,config){if(null!=config){var locale,tmpLocale,parentConfig=baseConfig;null!=(tmpLocale=loadLocale(name))&&(parentConfig=tmpLocale._config),config=mergeConfigs(parentConfig,config),(locale=new Locale(config)).parentLocale=locales[name],locales[name]=locale,getSetGlobalLocale(name)}else null!=locales[name]&&(null!=locales[name].parentLocale?locales[name]=locales[name].parentLocale:null!=locales[name]&&delete locales[name]);return locales[name]},hooks.locales=function(){return keys(locales)},hooks.weekdaysShort=function(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysShort")},hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=function(roundingFunction){return void 0===roundingFunction?round:"function"==typeof roundingFunction&&(round=roundingFunction,!0)},hooks.relativeTimeThreshold=function(threshold,limit){return void 0!==thresholds[threshold]&&(void 0===limit?thresholds[threshold]:(thresholds[threshold]=limit,"s"===threshold&&(thresholds.ss=limit-1),!0))},hooks.calendarFormat=function(myMoment,now){var diff=myMoment.diff(now,"days",!0);return diff<-6?"sameElse":diff<-1?"lastWeek":diff<0?"lastDay":diff<1?"sameDay":diff<2?"nextDay":diff<7?"nextWeek":"sameElse"},hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,__webpack_require__(48)(module))},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports,__webpack_require__){var dP=__webpack_require__(33),createDesc=__webpack_require__(44);module.exports=__webpack_require__(17)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports,__webpack_require__){(function(module,process,global){__webpack_require__(35),__webpack_require__(11);const DEFAULT_CONFIG=__webpack_require__(79).default,NAMES=["perspective.config.js","perspective.config.json","package.json"];function isObject(item){return item&&"object"==typeof item&&!Array.isArray(item)}function mergeDeep(target,...sources){if(!sources.length)return target;const source=sources.shift();if(isObject(target)&&isObject(source))for(const key in source)isObject(source[key])?(target[key]||Object.assign(target,{[key]:{}}),mergeDeep(target[key],source[key])):Object.assign(target,{[key]:source[key]});return mergeDeep(target,...sources)}module.exports.get_types=function(){return Object.keys(module.exports.get_config().types)},module.exports.get_type_config=function(type){const config={};if(module.exports.get_config().types[type]&&Object.assign(config,module.exports.get_config().types[type]),config.type){const props=module.exports.get_type_config(config.type);return Object.assign(props,config),props}return config},global.__PERSPECTIVE_CONFIG__=void 0,module.exports.override_config=function(config){global.__PERSPECTIVE_CONFIG__&&console.warn("Config already initialized!"),global.__PERSPECTIVE_CONFIG__=mergeDeep(DEFAULT_CONFIG,config)},module.exports.get_config=function(){return global.__PERSPECTIVE_CONFIG__||(global.__PERSPECTIVE_CONFIG__=mergeDeep(DEFAULT_CONFIG,"undefined"==typeof window?function(){const REQUIRE="undefined"!=typeof require?require:module.require,path=REQUIRE("path"),fs=REQUIRE("fs"),[root,...curr]=process.cwd().split(path.sep);for(;curr.length>0;){for(const name of NAMES){const candidate="".concat(root).concat(path.sep).concat(path.join(...curr,name));if(fs.existsSync(candidate)){if(!name.endsWith("json")){const mod=REQUIRE(candidate);return mod.default||mod}{const json=JSON.parse(fs.readFileSync(candidate));if("package.json"!==name)return json;if(json.perspective)return json.perspective}}}curr.pop()}}():{types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}||{})),global.__PERSPECTIVE_CONFIG__}}).call(this,__webpack_require__(48)(module),__webpack_require__(22),__webpack_require__(21))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return is_valid_date})),__webpack_require__.d(__webpack_exports__,"a",(function(){return DateParser}));var moment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),moment__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);const DATE_PARSE_CANDIDATES=[moment__WEBPACK_IMPORTED_MODULE_0___default.a.ISO_8601,moment__WEBPACK_IMPORTED_MODULE_0___default.a.RFC_2822,"YYYY-MM-DD\\DHH:mm:ss.SSSS","MM-DD-YYYY","MM/DD/YYYY","M/D/YYYY","M/D/YY","DD MMM YYYY","HH:mm:ss.SSS"];function is_valid_date(x){return moment__WEBPACK_IMPORTED_MODULE_0___default()(x,DATE_PARSE_CANDIDATES,!0).isValid()}class DateParser{constructor(){this.date_types=[],this.date_candidates=DATE_PARSE_CANDIDATES.slice(),this.date_exclusions=[]}parse(input){if(this.date_exclusions.indexOf(input)>-1)return null;{let val=input;const type=typeof val;if(val.getMonth)return val;if("string"===type){if(val=moment__WEBPACK_IMPORTED_MODULE_0___default()(input,this.date_types,!0),!val.isValid()||0===this.date_types.length){for(let candidate of this.date_candidates)if(val=moment__WEBPACK_IMPORTED_MODULE_0___default()(input,candidate,!0),val.isValid())return this.date_types.push(candidate),this.date_candidates.splice(this.date_candidates.indexOf(candidate),1),val.toDate();return this.date_exclusions.push(input),null}return val.toDate()}if("number"===type)return new Date(val);throw new Error("Unparseable date ".concat(val))}}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return get_column_type})),__webpack_require__.d(__webpack_exports__,"a",(function(){return bindall}));__webpack_require__(83);function get_column_type(val){return val>=1&&val<=4?"integer":19===val?"string":10===val||9===val?"float":11===val?"boolean":12===val?"datetime":13===val?"date":void console.warn("Unknown type for value ".concat(val," with JS type ").concat(typeof val))}function bindall(self){let obj=self;do{for(const key of Object.getOwnPropertyNames(obj)){const value=self[key];"constructor"!==key&&"function"==typeof value&&(self[key]=value.bind(self))}}while(obj=obj!==Object&&Object.getPrototypeOf(obj))}__webpack_require__(84);String.prototype.includes||(String.prototype.includes=function(search,start){return"number"!=typeof start&&(start=0),!(start+search.length>this.length)&&-1!==this.indexOf(search,start)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),len=o.length>>>0;if(0===len)return!1;var x,y,n=0|fromIndex,k=Math.max(n>=0?n:len-Math.abs(n),0);for(;k=this._config.preview;if(o)f.postMessage({results:n,workerId:k.WORKER_ID,finished:a});else if(z(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return;n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!z(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}},this._sendError=function(e){z(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:k.WORKER_ID,error:e,finished:!1})}}function c(e){var i;(e=e||{}).chunkSize||(e.chunkSize=k.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n||(i.onload=w(this._chunkLoaded,this),i.onerror=w(this._chunkError,this)),i.open("GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r),i.setRequestHeader("If-None-Match","webkit-no-cache")}try{i.send()}catch(e){this._chunkError(e.message)}n&&0===i.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function p(e){var i,n;(e=e||{}).chunkSize||(e.chunkSize=k.LocalChunkSize),l.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((i=new FileReader).onload=w(this._chunkLoaded,this),i.onerror=w(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function _(e){var r;l.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,t=e?r.substr(0,e):r;return r=e?r.substr(e):"",this._finished=!r,this.parseChunk(t)}}}function g(e){l.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=w((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=w((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=w((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function r(g){var a,o,h,i=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,n=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,t=this,r=0,s=0,u=!1,e=!1,f=[],d={data:[],errors:[],meta:{}};if(z(g.step)){var l=g.step;g.step=function(e){if(d=e,p())c();else{if(c(),0===d.data.length)return;r+=e.data.length,g.preview&&r>g.preview?o.abort():l(d,t)}}}function m(e){return"greedy"===g.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function c(){if(d&&h&&(y("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+k.DefaultDelimiter+"'"),h=!1),g.skipEmptyLines)for(var e=0;e=f.length?"__parsed_extra":f[t]),g.transform&&(n=g.transform(n,i)),n=_(i,n),"__parsed_extra"===i?(r[i]=r[i]||[],r[i].push(n)):r[i]=n}d.data[e]=r,g.header&&(t>f.length?y("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+t,s+e):t=i.length/2?"\r\n":"\r"}(e,i)),h=!1,g.delimiter)z(g.delimiter)&&(g.delimiter=g.delimiter(e),d.meta.delimiter=g.delimiter);else{var n=function(e,t,r,i){for(var n,s,a,o=[",","\t","|",";",k.RECORD_SEP,k.UNIT_SEP],h=0;h=A)return C(!0)}else for(p=P,P++;;){if(-1===(p=i.indexOf(S,p+1)))return r||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:P}),E();if(p===n-1)return E(i.substring(P,p).replace(m,S));if(S!==L||i[p+1]!==L){if(S===L||0===p||i[p-1]!==L){var y=b(-1===g?_:Math.min(_,g));if(i[p+1+y]===O){f.push(i.substring(P,p).replace(m,S)),P=p+1+y+e,_=i.indexOf(O,P),g=i.indexOf(x,P);break}var v=b(g);if(i.substr(p+1+v,s)===x){if(f.push(i.substring(P,p).replace(m,S)),w(p+1+v+s),_=i.indexOf(O,P),o&&(R(),F))return C();if(A&&h.length>=A)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:P}),p++}}else p++}return E();function k(e){h.push(e),d=P}function b(e){var t=0;if(-1!==e){var r=i.substring(p+1,e);r&&""===r.trim()&&(t=r.length)}return t}function E(e){return r||(void 0===e&&(e=i.substr(P)),f.push(e),P=n,k(f),o&&R()),C()}function w(e){P=e,k(f),f=[],g=i.indexOf(x,P)}function C(e){return{data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:F,truncated:!!e,cursor:d+(t||0)}}}function R(){I(C()),h=[],u=[]}},this.abort=function(){F=!0},this.getCharIndex=function(){return P}}function m(e){var t=e.data,r=h[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(z(r.userStep)){for(var s=0;s0?min(toInteger(it),9007199254740991):0}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(module,exports,__webpack_require__){var global=__webpack_require__(5),hide=__webpack_require__(6),has=__webpack_require__(19),SRC=__webpack_require__(29)("src"),$toString=__webpack_require__(60),TPL=(""+$toString).split("toString");__webpack_require__(28).inspectSource=function(it){return $toString.call(it)},(module.exports=function(O,key,val,safe){var isFunction="function"==typeof val;isFunction&&(has(val,"name")||hide(val,"name",key)),O[key]!==val&&(isFunction&&(has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)))),O===global?O[key]=val:safe?O[key]?O[key]=val:hide(O,key,val):(delete O[key],hide(O,key,val)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[SRC]||$toString.call(this)}))},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(35);var papaparse__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),papaparse__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_1__);const jsonFormatter={initDataValue:()=>[],initRowValue:()=>({}),initColumnValue:(data,row,colName)=>row[colName]=[],setColumnValue:(data,row,colName,value)=>row[colName]=value,addColumnValue:(data,row,colName,value)=>row[colName].unshift(value),addRow:(data,row)=>data.push(row),formatData:data=>data,slice:(data,start)=>data.slice(start)},csvFormatter=Object.assign({},jsonFormatter,{addColumnValue:(data,row,colName,value)=>row[colName.split("|").join(",")].unshift(value),setColumnValue:(data,row,colName,value)=>row[colName.split("|").join(",")]=value,formatData:(data,config)=>papaparse__WEBPACK_IMPORTED_MODULE_1___default.a.unparse(data,config)}),jsonTableFormatter={initDataValue:()=>new Object,initRowValue:()=>{},setColumnValue:(data,row,colName,value)=>{data[colName]=data[colName]||[],data[colName].push(value)},addColumnValue:(data,row,colName,value)=>{data[colName]=data[colName]||[],data[colName][data[colName].length-1].unshift(value)},initColumnValue:(data,row,colName)=>{data[colName]=data[colName]||[],data[colName].push([])},addRow:()=>{},formatData:data=>data,slice:(data,start)=>{let new_data={};for(let x in data)new_data[x]=data[x].slice(start);return new_data}};__webpack_exports__.a={jsonFormatter:jsonFormatter,jsonTableFormatter:jsonTableFormatter,csvFormatter:csvFormatter}},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i")})),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=function(){var re=/(?:)/,originalExec=re.exec;re.exec=function(){return originalExec.apply(this,arguments)};var result="ab".split(re);return 2===result.length&&"a"===result[0]&&"b"===result[1]}();module.exports=function(KEY,length,exec){var SYMBOL=wks(KEY),DELEGATES_TO_SYMBOL=!fails((function(){var O={};return O[SYMBOL]=function(){return 7},7!=""[KEY](O)})),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL?!fails((function(){var execCalled=!1,re=/a/;return re.exec=function(){return execCalled=!0,null},"split"===KEY&&(re.constructor={},re.constructor[SPECIES]=function(){return re}),re[SYMBOL](""),!execCalled})):void 0;if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||"replace"===KEY&&!REPLACE_SUPPORTS_NAMED_GROUPS||"split"===KEY&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var nativeRegExpMethod=/./[SYMBOL],fns=exec(defined,SYMBOL,""[KEY],(function(nativeMethod,regexp,str,arg2,forceStringMethod){return regexp.exec===regexpExec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:nativeRegExpMethod.call(regexp,str,arg2)}:{done:!0,value:nativeMethod.call(str,regexp,arg2)}:{done:!1}})),strfn=fns[0],rxfn=fns[1];redefine(String.prototype,KEY,strfn),hide(RegExp.prototype,SYMBOL,2==length?function(string,arg){return rxfn.call(string,this,arg)}:function(string){return rxfn.call(string,this)})}}},function(module,exports,__webpack_require__){"use strict";var re1,re2,regexpFlags=__webpack_require__(57),nativeExec=RegExp.prototype.exec,nativeReplace=String.prototype.replace,patchedExec=nativeExec,UPDATES_LAST_INDEX_WRONG=(re1=/a/,re2=/b*/g,nativeExec.call(re1,"a"),nativeExec.call(re2,"a"),0!==re1.lastIndex||0!==re2.lastIndex),NPCG_INCLUDED=void 0!==/()??/.exec("")[1];(UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED)&&(patchedExec=function(str){var lastIndex,reCopy,match,i,re=this;return NPCG_INCLUDED&&(reCopy=new RegExp("^"+re.source+"$(?!\\s)",regexpFlags.call(re))),UPDATES_LAST_INDEX_WRONG&&(lastIndex=re.lastIndex),match=nativeExec.call(re,str),UPDATES_LAST_INDEX_WRONG&&match&&(re.lastIndex=re.global?match.index+match[0].length:lastIndex),NPCG_INCLUDED&&match&&match.length>1&&nativeReplace.call(match[0],reCopy,(function(){for(i=1;i1||"".split(/.?/).length?function(separator,limit){var string=String(this);if(void 0===separator&&0===limit)return[];if(!isRegExp(separator))return $split.call(string,separator,limit);for(var match,lastIndex,lastLength,output=[],flags=(separator.ignoreCase?"i":"")+(separator.multiline?"m":"")+(separator.unicode?"u":"")+(separator.sticky?"y":""),lastLastIndex=0,splitLimit=void 0===limit?4294967295:limit>>>0,separatorCopy=new RegExp(separator.source,flags+"g");(match=regexpExec.call(separatorCopy,string))&&!((lastIndex=separatorCopy.lastIndex)>lastLastIndex&&(output.push(string.slice(lastLastIndex,match.index)),match.length>1&&match.index=splitLimit));)separatorCopy.lastIndex===match.index&&separatorCopy.lastIndex++;return lastLastIndex===string.length?!lastLength&&separatorCopy.test("")||output.push(""):output.push(string.slice(lastLastIndex)),output.length>splitLimit?output.slice(0,splitLimit):output}:"0".split(void 0,0).length?function(separator,limit){return void 0===separator&&0===limit?[]:$split.call(this,separator,limit)}:$split,[function(separator,limit){var O=defined(this),splitter=null==separator?void 0:separator[SPLIT];return void 0!==splitter?splitter.call(separator,O,limit):internalSplit.call(String(O),separator,limit)},function(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==$split);if(res.done)return res.value;var rx=anObject(regexp),S=String(this),C=speciesConstructor(rx,RegExp),unicodeMatching=rx.unicode,flags=(rx.ignoreCase?"i":"")+(rx.multiline?"m":"")+(rx.unicode?"u":"")+(SUPPORTS_Y?"y":"g"),splitter=new C(SUPPORTS_Y?rx:"^(?:"+rx.source+")",flags),lim=void 0===limit?4294967295:limit>>>0;if(0===lim)return[];if(0===S.length)return null===callRegExpExec(splitter,S)?[S]:[];for(var p=0,q=0,A=[];q>2];return(a=b+a+15&-16)>ra()&&u(),x[qa>>2]=a,b}aa=null,e.arguments&&(ba=e.arguments),e.thisProgram&&(ca=e.thisProgram),e.quit&&(da=e.quit),e.wasmBinary&&(sa=e.wasmBinary),e.noExitRuntime&&(ta=e.noExitRuntime),"object"!=typeof WebAssembly&&v("no native wasm support detected");var y,buffer,B,A,Da,Ea,x,C,Fa,Ga,ua=new WebAssembly.Table({initial:2034,maximum:2034,element:"anyfunc"}),va=!1,wa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function xa(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16(f=224==(240&f)?(15&f)<<12|g<<6|h:(7&f)<<18|g<<12|h<<6|63&a[b++])?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|1023&f))}}else d+=String.fromCharCode(f)}return d}function z(a){return a?xa(A,a,void 0):""}function ya(a,b,c,d){if(0=g&&(g=65536+((1023&g)<<10)|1023&a.charCodeAt(++f)),127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18,b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|63&g}}b[c]=0}}function za(a){for(var b=0,c=0;c=d&&(d=65536+((1023&d)<<10)|1023&a.charCodeAt(++c)),127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}return b}function Aa(a){var b=za(a)+1,c=Ba(b);return ya(a,B,c,b),c}function Ca(a){return 0>2]=5338448;var Ka=[],La=[],Ma=[],Na=[],Oa=[],Pa=!1;function Qa(){var a=e.preRun.shift();Ka.unshift(a)}var D=0,Ra=null,Sa=null;function u(a){throw e.onAbort&&e.onAbort(a),oa(a),v(a),va=!0,"abort("+a+"). Build with -s ASSERTIONS=1 for more info."}function Ta(){var a=E;return String.prototype.startsWith?a.startsWith("data:application/octet-stream;base64,"):0===a.indexOf("data:application/octet-stream;base64,")}e.preloadedImages={},e.preloadedAudios={};var E="psp.async.wasm";if(!Ta()){var Ua=E;E=e.locateFile?e.locateFile(Ua,t):t+Ua}function Va(){try{if(sa)return new Uint8Array(sa);if(ka)return ka(E);throw"both async and sync fetching of the wasm failed"}catch(a){u(a)}}function Wa(){return sa||!q&&!r||"function"!=typeof fetch?new Promise((function(a){a(Va())})):fetch(E,{credentials:"same-origin"}).then((function(a){if(!a.ok)throw"failed to load wasm binary file at '"+E+"'";return a.arrayBuffer()})).catch((function(){return Va()}))}var Xa=[function(){throw Error("abort()")},function(){if("undefined"!=typeof self)try{if(self.dispatchEvent&&!self.m&&null!==self.document){self.m=!0;var a=self.document.createEvent("Event");a.initEvent("perspective-ready",!1,!0),self.dispatchEvent(a)}else!self.document&&self.postMessage&&self.postMessage({})}catch(b){}}];function Za(a){return a.replace(/\b_Z[\w\d_]+/g,(function(a){return a==a?a:a+" ["+a+"]"}))}function $a(){var a=Error();if(!a.stack){try{throw Error(0)}catch(b){a=b}if(!a.stack)return"(no stack trace available)"}return a.stack.toString()}La.push({U:function(){Ya()}});var F={};function ab(a){if(ab.m)var b=x[a>>2],c=x[b>>2];else ab.m=!0,F.USER=F.LOGNAME="web_user",F.PATH="/",F.PWD="/",F.HOME="/home/web_user",F.LANG=("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",F._=ca,c=Pa?G(1024):pa(1024),b=Pa?G(256):pa(256),x[b>>2]=c,x[a>>2]=b;a=[];var f,d=0;for(f in F)if("string"==typeof F[f]){var g=f+"="+F[f];a.push(g),d+=g.length}if(1024>0]=d.charCodeAt(l);B[h>>0]=0,x[b+4*f>>2]=c,c+=g.length+1}x[b+4*a.length>>2]=0}function bb(a,b){Na.unshift({U:a,G:b})}function cb(a){return e.___errno_location&&(x[e.___errno_location()>>2]=a),a}var db=[null,[],[]];function eb(a,b){var c=db[a];0===b||10===b?((1===a?oa:v)(xa(c,0)),c.length=0):c.push(b)}var H=0;function I(){return x[(H+=4)-4>>2]}var J={};function fb(a,b,c){var d,f=(a|=0)+(c|=0)|0;if(b=255&(0|b),67<=(0|c)){for(;0!=(3&a);)B[a>>0]=b,a=a+1|0;var g=-4&f|0,h=b|b<<8|b<<16|b<<24;for(d=g-64|0;(0|a)<=(0|d);)x[a>>2]=h,x[a+4>>2]=h,x[a+8>>2]=h,x[a+12>>2]=h,x[a+16>>2]=h,x[a+20>>2]=h,x[a+24>>2]=h,x[a+28>>2]=h,x[a+32>>2]=h,x[a+36>>2]=h,x[a+40>>2]=h,x[a+44>>2]=h,x[a+48>>2]=h,x[a+52>>2]=h,x[a+56>>2]=h,x[a+60>>2]=h,a=a+64|0;for(;(0|a)<(0|g);)x[a>>2]=h,a=a+4|0}for(;(0|a)<(0|f);)B[a>>0]=b,a=a+1|0;return f-c|0}function gb(a,b,c,d,f,g){if(g<<=12,0!=(16&d)&&0!=a%16384)return-22;if(0!=(32&d)){if(!(a=hb(16384,b)))return-12;fb(a,0,b),c=!0}else{var h=(void 0).da(f);if(!h)return-9;a=(c=(void 0).za(h,A,a,b,g,c,d)).c,c=c.R}return J.W[a]={ka:a,ja:b,R:c,fd:f,flags:d},a}function ib(a,b){if(-1===a||0===b)return-22;var c=J.W[a];if(!c)return 0;if(b===c.ja){var d=(void 0).da(c.fd);J.wa(a,d,b,c.flags),(void 0).Aa(d),J.W[a]=null,c.R&&K(c.ka)}return 0}function jb(a,b,c,d){try{for(var f=0,g=0;g>2],l=x[b+(8*g+4)>>2],n=0;n>2]=f,0}catch(m){return u(m),-m.u}}var kb={};function lb(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function L(a){return this.fromWireType(C[a>>2])}var M={},N={},mb={};function nb(a){if(void 0===a)return"_unknown";var b=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=b&&57>=b?"_"+a:a}function ob(a,b){return a=nb(a),new Function("body","return function "+a+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(b)}function pb(a,b){var c=ob(b,(function(a){this.name=b,this.message=a,void 0!==(a=Error(a).stack)&&(this.stack=this.toString()+"\n"+a.replace(/^Error(:[^\n]*)?\n/,""))}));return c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},c}var qb=void 0;function rb(a){throw new qb(a)}function O(a,b,c){function d(b){(b=c(b)).length!==a.length&&rb("Mismatched type converter count");for(var d=0;db;++b)a[b]=String.fromCharCode(b);ub=a}var ub=void 0;function R(a){for(var b="";A[a];)b+=ub[A[a++]];return b}var vb=void 0;function S(a){throw new vb(a)}function Q(a,b,c){if(c=c||{},!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");var d=b.name;if(a||S('type "'+d+'" must have a positive integer typeid pointer'),N.hasOwnProperty(a)){if(c.ha)return;S("Cannot register type '"+d+"' twice")}N[a]=b,delete mb[a],M.hasOwnProperty(a)&&(b=M[a],delete M[a],b.forEach((function(a){a()})))}function wb(a){if(!(this instanceof T&&a instanceof T))return!1;var b=this.a.f.b,c=this.a.c,d=a.a.f.b;for(a=a.a.c;b.o;)c=b.F(c),b=b.o;for(;d.o;)a=d.F(a),d=d.o;return b===d&&c===a}function xb(a){return{count:a.count,w:a.w,C:a.C,c:a.c,f:a.f,i:a.i,l:a.l}}function yb(a){S(a.a.f.b.name+" instance already deleted")}var zb=!1;function Ab(){}function Bb(a){a.i?a.l.s(a.i):a.f.b.s(a.c)}function Cb(a){--a.count.value,0===a.count.value&&Bb(a)}function Db(a){return"undefined"==typeof FinalizationGroup?(Db=function(a){return a},a):(zb=new FinalizationGroup((function(a){for(var b=a.next();!b.done;b=a.next())(b=b.value).c?Cb(b):console.warn("object already deleted: "+b.c)})),Ab=function(a){zb.unregister(a.a)},(Db=function(a){return zb.register(a,a.a,a.a),a})(a))}function Eb(){if(this.a.c||yb(this),this.a.C)return this.a.count.value+=1,this;var a=Db(Object.create(Object.getPrototypeOf(this),{a:{value:xb(this.a)}}));return a.a.count.value+=1,a.a.w=!1,a}function Fb(){this.a.c||yb(this),this.a.w&&!this.a.C&&S("Object already scheduled for deletion"),Ab(this),Cb(this.a),this.a.C||(this.a.i=void 0,this.a.c=void 0)}function Gb(){return!this.a.c}var Hb=void 0,Ib=[];function Jb(){for(;Ib.length;){var a=Ib.pop();a.a.w=!1,a.delete()}}function Kb(){return this.a.c||yb(this),this.a.w&&!this.a.C&&S("Object already scheduled for deletion"),Ib.push(this),1===Ib.length&&Hb&&Hb(Jb),this.a.w=!0,this}function Lb(){T.prototype.isAliasOf=wb,T.prototype.clone=Eb,T.prototype.delete=Fb,T.prototype.isDeleted=Gb,T.prototype.deleteLater=Kb}function T(){}var Mb={};function Nb(a,b,c){if(void 0===a[b].g){var d=a[b];a[b]=function(){return a[b].g.hasOwnProperty(arguments.length)||S("Function '"+c+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+a[b].g+")!"),a[b].g[arguments.length].apply(this,arguments)},a[b].g=[],a[b].g[d.H]=d}}function Ob(a,b,c){e.hasOwnProperty(a)?((void 0===c||void 0!==e[a].g&&void 0!==e[a].g[c])&&S("Cannot register public name '"+a+"' twice"),Nb(e,a,a),e.hasOwnProperty(c)&&S("Cannot register multiple overloads of a function with the same number of arguments ("+c+")!"),e[a].g[c]=b):(e[a]=b,void 0!==c&&(e[a].Ba=c))}function Pb(a,b,c,d,f,g,h,l){this.name=a,this.constructor=b,this.A=c,this.s=d,this.o=f,this.aa=g,this.F=h,this.Z=l,this.ma=[]}function Qb(a,b,c){for(;b!==c;)b.F||S("Expected null or instance of "+c.name+", got an instance of "+b.name),a=b.F(a),b=b.o;return a}function Rb(a,b){return null===b?(this.N&&S("null is not a valid "+this.name),0):(b.a||S('Cannot pass "'+U(b)+'" as a '+this.name),b.a.c||S("Cannot pass deleted object as a pointer of type "+this.name),Qb(b.a.c,b.a.f.b,this.b))}function Sb(a,b){if(null===b){if(this.N&&S("null is not a valid "+this.name),this.J){var c=this.O();return null!==a&&a.push(this.s,c),c}return 0}if(b.a||S('Cannot pass "'+U(b)+'" as a '+this.name),b.a.c||S("Cannot pass deleted object as a pointer of type "+this.name),!this.I&&b.a.f.I&&S("Cannot convert argument of type "+(b.a.l?b.a.l.name:b.a.f.name)+" to parameter type "+this.name),c=Qb(b.a.c,b.a.f.b,this.b),this.J)switch(void 0===b.a.i&&S("Passing raw pointer to smart pointer is illegal"),this.ra){case 0:b.a.l===this?c=b.a.i:S("Cannot convert argument of type "+(b.a.l?b.a.l.name:b.a.f.name)+" to parameter type "+this.name);break;case 1:c=b.a.i;break;case 2:if(b.a.l===this)c=b.a.i;else{var d=b.clone();c=this.na(c,V((function(){d.delete()}))),null!==a&&a.push(this.s,c)}break;default:S("Unsupporting sharing policy")}return c}function Tb(a,b){return null===b?(this.N&&S("null is not a valid "+this.name),0):(b.a||S('Cannot pass "'+U(b)+'" as a '+this.name),b.a.c||S("Cannot pass deleted object as a pointer of type "+this.name),b.a.f.I&&S("Cannot convert argument of type "+b.a.f.name+" to parameter type "+this.name),Qb(b.a.c,b.a.f.b,this.b))}function Ub(a){return this.X&&(a=this.X(a)),a}function Vb(a){this.s&&this.s(a)}function Wb(a){null!==a&&a.delete()}function Xb(a,b,c){return b===c?a:void 0===c.o?null:null===(a=Xb(a,b,c.o))?null:c.Z(a)}function Yb(){return Object.keys(Zb).length}function $b(){var b,a=[];for(b in Zb)Zb.hasOwnProperty(b)&&a.push(Zb[b]);return a}function ac(a){Hb=a,Ib.length&&Hb&&Hb(Jb)}function bc(){e.getInheritedInstanceCount=Yb,e.getLiveInheritedInstances=$b,e.flushPendingDeletes=Jb,e.setDelayFunction=ac}var Zb={};function cc(a,b){for(void 0===b&&S("ptr should not be undefined");a.o;)b=a.F(b),a=a.o;return b}function dc(a,b){return b=cc(a,b),Zb[b]}function ec(a,b){return b.f&&b.c||rb("makeClassHandle requires ptr and ptrType"),!!b.l!=!!b.i&&rb("Both smartPtrType and smartPtr must be specified"),b.count={value:1},Db(Object.create(a,{a:{value:b}}))}function fc(a){function b(){return this.J?ec(this.b.A,{f:this.la,c:c,l:this,i:a}):ec(this.b.A,{f:this,c:a})}var c=this.ba(a);if(!c)return this.S(a),null;var d=dc(this.b,c);if(void 0!==d)return 0===d.a.count.value?(d.a.c=c,d.a.i=a,d.clone()):(d=d.clone(),this.S(a),d);if(d=this.b.aa(c),!(d=Mb[d]))return b.call(this);d=this.I?d.Y:d.pointerType;var f=Xb(c,this.b,d.b);return null===f?b.call(this):this.J?ec(d.b.A,{f:d,c:f,l:this,i:a}):ec(d.b.A,{f:d,c:f})}function hc(){W.prototype.ba=Ub,W.prototype.S=Vb,W.prototype.argPackAdvance=8,W.prototype.readValueFromPointer=L,W.prototype.deleteObject=Wb,W.prototype.fromWireType=fc}function W(a,b,c,d,f,g,h,l,n,m,p){this.name=a,this.b=b,this.N=c,this.I=d,this.J=f,this.la=g,this.ra=h,this.X=l,this.O=n,this.na=m,this.s=p,f||void 0!==b.o?this.toWireType=Sb:(this.toWireType=d?Rb:Tb,this.j=null)}function ic(a,b,c){e.hasOwnProperty(a)||rb("Replacing nonexistant public symbol"),void 0!==e[a].g&&void 0!==c?e[a].g[c]=b:(e[a]=b,e[a].H=c)}function X(a,b){if(a=R(a),void 0!==e["FUNCTION_TABLE_"+a])var c=e["FUNCTION_TABLE_"+a][b];else if("undefined"!=typeof FUNCTION_TABLE)c=FUNCTION_TABLE[b];else{void 0===(c=e["dynCall_"+a])&&void 0===(c=e["dynCall_"+a.replace(/f/g,"d")])&&S("No dynCall invoker for signature: "+a);for(var d=[],f=1;f>2)+d]);return c}function oc(a,b){if(!(a instanceof Function))throw new TypeError("new_ called with constructor type "+typeof a+" which is not a function");var c=ob(a.name||"unknownFunctionName",(function(){}));return c.prototype=a.prototype,c=new c,(a=a.apply(c,b))instanceof Object?a:c}function pc(a,b,c,d,f){var g=b.length;2>g&&S("argTypes array size mismatch! Must at least get return value and 'this' types!");var h=null!==b[1]&&null!==c,l=!1;for(c=1;c>1])};case 2:return function(a){return this.fromWireType((c?x:C)[a>>2])};default:throw new TypeError("Unknown integer type: "+a)}}function wc(a,b){var c=N[a];return void 0===c&&S(b+" has unknown type "+kc(a)),c}function U(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}function xc(a,b){switch(b){case 2:return function(a){return this.fromWireType(Fa[a>>2])};case 3:return function(a){return this.fromWireType(Ga[a>>3])};default:throw new TypeError("Unknown float type: "+a)}}function yc(a,b,c){switch(b){case 0:return c?function(a){return B[a]}:function(a){return A[a]};case 1:return c?function(a){return Da[a>>1]}:function(a){return Ea[a>>1]};case 2:return c?function(a){return x[a>>2]}:function(a){return C[a>>2]};default:throw new TypeError("Unknown integer type: "+a)}}function Z(a){return a||S("Cannot use deleted val. handle = "+a),Y[a].value}function zc(a,b){for(var c=Array(a),d=0;d>2)+d],"parameter "+d);return c}function Ac(a){var b=[];return x[a>>2]=V(b),b}var Bc={};function Cc(a){var b=Bc[a];return void 0===b?R(a):b}var Dc=[];function Ec(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Fc(a){var b=Dc.length;return Dc.push(a),b}function Gc(a){for(var b="",c=0;c> 2) + "+c+'], "parameter '+c+'");\nvar arg'+c+" = argType"+c+".readValueFromPointer(args);\nargs += argType"+c+"['argPackAdvance'];\n";return new Function("requireRegisteredType","Module","__emval_register",d+"var obj = new constructor("+b+");\nreturn __emval_register(obj);\n}\n")(wc,e,V)}var Hc={};function Ic(){u()}function Jc(){return ea||"undefined"!=typeof dateNow||"object"==typeof performance&&performance&&"function"==typeof performance.now}function ra(){return B.length}function Kc(a,b,c){A.set(A.subarray(b,b+c),a)}function Lc(a){try{return y.grow(a-buffer.byteLength+65535>>16),Ha(y.buffer),1}catch(b){}}function Mc(a){if(0===a)return 0;if(a=z(a),!F.hasOwnProperty(a))return 0;Mc.m&&K(Mc.m);var b=za(a=F[a])+1,c=G(b);return c&&ya(a,B,c,b),Mc.m=c,Mc.m}function Nc(a){if(a/=1e3,(q||r)&&self.performance&&self.performance.now)for(var b=self.performance.now();self.performance.now()-bd-a.getDate())){a.setDate(a.getDate()+b);break}b-=d-a.getDate()+1,a.setDate(1),11>c?a.setMonth(c+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1))}return a}function Tc(a,b,c,d){function f(a,b,c){for(a="number"==typeof a?a.toString():a||"";a.lengtha?-1:0=h(l(new Date(a.getFullYear(),0,4)),a)?0>=h(b,a)?a.getFullYear()+1:a.getFullYear():a.getFullYear()-1}var m=x[d+40>>2];for(var p in d={ua:x[d>>2],ta:x[d+4>>2],K:x[d+8>>2],D:x[d+12>>2],B:x[d+16>>2],h:x[d+20>>2],L:x[d+24>>2],M:x[d+28>>2],Ca:x[d+32>>2],sa:x[d+36>>2],va:m?z(m):""},c=z(c),m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})c=c.replace(new RegExp(p,"g"),m[p]);var w="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),fa="January February March April May June July August September October November December".split(" ");for(p in m={"%a":function(a){return w[a.L].substring(0,3)},"%A":function(a){return w[a.L]},"%b":function(a){return fa[a.B].substring(0,3)},"%B":function(a){return fa[a.B]},"%C":function(a){return g((a.h+1900)/100|0,2)},"%d":function(a){return g(a.D,2)},"%e":function(a){return f(a.D,2," ")},"%g":function(a){return n(a).toString().substring(2)},"%G":function(a){return n(a)},"%H":function(a){return g(a.K,2)},"%I":function(a){return 0==(a=a.K)?a=12:12a.K?"AM":"PM"},"%S":function(a){return g(a.ua,2)},"%t":function(){return"\t"},"%u":function(a){return a.L||7},"%U":function(a){var b=new Date(a.h+1900,0,1),c=0===b.getDay()?b:Sc(b,7-b.getDay());return 0>h(c,a=new Date(a.h+1900,a.B,a.D))?g(Math.ceil((31-c.getDate()+(Pc(Oc(a.getFullYear())?Qc:Rc,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(c,b)?"01":"00"},"%V":function(a){var b=l(new Date(a.h+1900,0,4)),c=l(new Date(a.h+1901,0,4)),d=Sc(new Date(a.h+1900,0,1),a.M);return 0>h(d,b)?"53":0>=h(c,d)?"01":g(Math.ceil((b.getFullYear()h(c,a=new Date(a.h+1900,a.B,a.D))?g(Math.ceil((31-c.getDate()+(Pc(Oc(a.getFullYear())?Qc:Rc,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(c,b)?"01":"00"},"%y":function(a){return(a.h+1900).toString().substring(2)},"%Y":function(a){return a.h+1900},"%z":function(a){var b=0<=(a=a.sa);return a=Math.abs(a)/60,(b?"+":"-")+String("0000"+(a/60*100+a%60)).slice(-4)},"%Z":function(a){return a.va},"%%":function(){return"%"}})0<=c.indexOf(p)&&(c=c.replace(new RegExp(p,"g"),m[p](d)));return(p=Uc(c)).length>b?0:(B.set(p,a),p.length-1)}function Uc(a){var b=Array(za(a)+1);return ya(a,b,0,b.length),b}qb=e.InternalError=pb(Error,"InternalError"),tb(),vb=e.BindingError=pb(Error,"BindingError"),Lb(),hc(),bc(),jc=e.UnboundTypeError=pb(Error,"UnboundTypeError"),uc();var Wc={ClassHandle:T,ClassHandle_clone:Eb,ClassHandle_delete:Fb,ClassHandle_deleteLater:Kb,ClassHandle_isAliasOf:wb,ClassHandle_isDeleted:Gb,RegisteredClass:Pb,RegisteredPointer:W,RegisteredPointer_deleteObject:Wb,RegisteredPointer_destructor:Vb,RegisteredPointer_fromWireType:fc,RegisteredPointer_getPointee:Ub,__buildEnvironment:ab,__cxa_allocate_exception:function(a){return G(a)},__cxa_atexit:function(){return bb.apply(null,arguments)},__cxa_pure_virtual:function(){throw va=!0,"Pure virtual function called!"},__cxa_throw:function(a){throw"uncaught_exception"in Vc?Vc.m++:Vc.m=1,a},__cxa_uncaught_exceptions:function(){return Vc.m},__lock:function(){},__map_file:function(){return cb(1),-1},__setErrNo:cb,__syscall10:function(a,b){H=b;try{var c=z(I());return(void 0).unlink(c),0}catch(d){return u(d),-d.u}},__syscall140:function(a,b){H=b;try{return J.V(),I(),I(),I(),I(),0}catch(c){return u(c),-c.u}},__syscall145:function(a,b){H=b;try{var c=J.V(),d=I(),f=I();return J.xa(c,d,f)}catch(g){return u(g),-g.u}},__syscall163:function(a,b){return H=b,-12},__syscall192:function(a,b){H=b;try{return gb(I(),I(),I(),I(),I(),I())}catch(n){return u(n),-n.u}},__syscall194:function(a,b){H=b;try{var c=I();I();var d=I();return I(),(void 0).ya(c,d),0}catch(f){return u(f),-f.u}},__syscall221:function(a,b){return H=b,0},__syscall5:function(a,b){H=b;try{var c=z(I()),d=I(),f=I();return(void 0).open(c,d,f).fd}catch(g){return u(g),-g.u}},__syscall54:function(a,b){return H=b,0},__syscall6:function(a,b){H=b;try{return J.V(),0}catch(c){return u(c),-c.u}},__syscall91:function(a,b){H=b;try{return ib(I(),I())}catch(f){return u(f),-f.u}},__unlock:function(){},__wasi_fd_write:function(){return jb.apply(null,arguments)},_addDays:Sc,_arraySum:Pc,_embind_finalize_value_object:function(a){var b=kb[a];delete kb[a];var c=b.O,d=b.s,f=b.T;O([a],f.map((function(a){return a.ga})).concat(f.map((function(a){return a.pa}))),(function(a){var g={};return f.forEach((function(b,c){var d=a[c],l=b.ea,h=b.fa,m=a[c+f.length],n=b.oa,$c=b.qa;g[b.$]={read:function(a){return d.fromWireType(l(h,a))},write:function(a,b){var c=[];n($c,a,m.toWireType(c,b)),lb(c)}}})),[{name:b.name,fromWireType:function(a){var c,b={};for(c in g)b[c]=g[c].read(a);return d(a),b},toWireType:function(a,b){for(var f in g)if(!(f in b))throw new TypeError("Missing field");var l=c();for(f in g)g[f].write(l,b[f]);return null!==a&&a.push(d,l),l},argPackAdvance:8,readValueFromPointer:L,j:d}]}))},_embind_register_bool:function(a,b,c,d,f){var g=sb(c);Q(a,{name:b=R(b),fromWireType:function(a){return!!a},toWireType:function(a,b){return b?d:f},argPackAdvance:8,readValueFromPointer:function(a){if(1===c)var d=B;else if(2===c)d=Da;else{if(4!==c)throw new TypeError("Unknown boolean type size: "+b);d=x}return this.fromWireType(d[a>>g])},j:null})},_embind_register_class:function(a,b,c,d,f,g,h,l,n,m,p,w,fa){p=R(p),g=X(f,g),l&&(l=X(h,l)),m&&(m=X(n,m)),fa=X(w,fa);var P=nb(p);Ob(P,(function(){mc("Cannot construct "+p+" due to unbound types",[d])})),O([a,b,c],d?[d]:[],(function(b){if(b=b[0],d)var c=b.b,f=c.A;else f=T.prototype;b=ob(P,(function(){if(Object.getPrototypeOf(this)!==h)throw new vb("Use 'new' to construct "+p);if(void 0===n.v)throw new vb(p+" has no accessible constructor");var a=n.v[arguments.length];if(void 0===a)throw new vb("Tried to invoke ctor of "+p+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(n.v).toString()+") parameters instead!");return a.apply(this,arguments)}));var h=Object.create(f,{constructor:{value:b}});b.prototype=h;var n=new Pb(p,b,h,fa,c,g,l,m);c=new W(p,n,!0,!1,!1),f=new W(p+"*",n,!1,!1,!1);var w=new W(p+" const*",n,!1,!0,!1);return Mb[a]={pointerType:f,Y:w},ic(P,b),[c,f,w]}))},_embind_register_class_constructor:function(a,b,c,d,f,g){var h=nc(b,c);f=X(d,f),O([],[a],(function(a){var c="constructor "+(a=a[0]).name;if(void 0===a.b.v&&(a.b.v=[]),void 0!==a.b.v[b-1])throw new vb("Cannot register multiple constructors with identical number of parameters ("+(b-1)+") for class '"+a.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return a.b.v[b-1]=function(){mc("Cannot construct "+a.name+" due to unbound types",h)},O([],h,(function(d){return a.b.v[b-1]=function(){arguments.length!==b-1&&S(c+" called with "+arguments.length+" arguments, expected "+(b-1));var a=[],h=Array(b);h[0]=g;for(var l=1;l>>l}}var n=-1!=b.indexOf("unsigned");Q(a,{name:b,fromWireType:g,toWireType:function(a,c){if("number"!=typeof c&&"boolean"!=typeof c)throw new TypeError('Cannot convert "'+U(c)+'" to '+this.name);if(cf)throw new TypeError('Passing a number "'+U(c)+'" from JS side to C/C++ side to an argument of type "'+b+'", which is outside the valid range ['+d+", "+f+"]!");return n?c>>>0:0|c},argPackAdvance:8,readValueFromPointer:yc(b,h,0!==d),j:null})},_embind_register_memory_view:function(a,b,c){function d(a){a>>=2;var b=C;return new f(b.buffer,b[a+1],b[a])}var f=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];Q(a,{name:c=R(c),fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{ha:!0})},_embind_register_smart_ptr:function(a,b,c,d,f,g,h,l,n,m,p,w){c=R(c),g=X(f,g),l=X(h,l),m=X(n,m),w=X(p,w),O([a],[b],(function(a){return a=a[0],[new W(c,a.b,!1,!1,!0,a,d,g,l,m,w)]}))},_embind_register_std_string:function(a,b){var c="std::string"===(b=R(b));Q(a,{name:b,fromWireType:function(a){var b=C[a>>2];if(c){var d=A[a+4+b],h=0;0!=d&&(h=d,A[a+4+b]=0);var l=a+4;for(d=0;d<=b;++d){var n=a+4+d;if(0==A[n]){if(l=z(l),void 0===m)var m=l;else m+=String.fromCharCode(0),m+=l;l=n+1}}0!=h&&(A[a+4+b]=h)}else{for(m=Array(b),d=0;d>2]=f,c&&d)ya(b,A,l+4,f+1);else if(d)for(d=0;d>2],g=Array(c),m=a+4>>f,p=0;p>2]=h;for(var p=m+4>>f,w=0;w>2]=f,b.toWireType(d,a)},_emval_call:function(a,b,c,d){a=Z(a),c=zc(b,c);for(var f=Array(b),g=0;g>2]=a/1e3|0,x[b+4>>2]=a%1e3*1e6|0,0},constNoSmartPtrRawPointerToWireType:Rb,count_emval_handles:sc,craftEmvalAllocator:Gc,craftInvokerFunction:pc,createNamedFunction:ob,demangle:function(a){return a},demangleAll:Za,detachFinalizer:Ab,downcastPointer:Xb,embind__requireFunction:X,embind_init_charCodes:tb,embind_repr:U,emscripten_asm_const_iii:function(a,b,c){a:for(var d="";;){var f=A[b++>>0];if(!f){b=d;break a}d+=String.fromCharCode(f)}for(d=[],f=0;f>3]),c+=8):"i"==g&&(c=c+4-1&-4,d.push(x[c>>2]),c+=4)}return Xa[a].apply(null,d)},emscripten_get_heap_size:ra,emscripten_get_now:Ic=ea?function(){var a=process.hrtime();return 1e3*a[0]+a[1]/1e6}:"undefined"!=typeof dateNow?dateNow:"object"==typeof performance&&performance&&"function"==typeof performance.now?function(){return performance.now()}:Date.now,emscripten_get_now_is_monotonic:Jc,emscripten_get_sbrk_ptr:function(){return 95376},emscripten_memcpy_big:Kc,emscripten_realloc_buffer:Lc,emscripten_resize_heap:function(a){if(2147418112=b?Ca(2*b):Math.min(Ca((3*b+2147483648)/4),2147418112);return!!Lc(b)},emval_get_global:Ec,ensureOverloadTable:Nb,enumReadValueFromPointer:vc,exposePublicSymbol:Ob,extendError:pb,fd_write:jb,floatReadValueFromPointer:xc,flushPendingDeletes:Jb,flush_NO_FILESYSTEM:function(){var a=e._fflush;a&&a(0),db[1].length&&eb(1,10),db[2].length&&eb(2,10)},genericPointerToWireType:Sb,getBasestPointer:cc,getInheritedInstance:dc,getInheritedInstanceCount:Yb,getLiveInheritedInstances:$b,getShiftFromSize:sb,getStringOrSymbol:Cc,getTypeName:kc,get_first_emval:tc,getenv:Mc,getpagesize:function(){return 16384},heap32VectorToArray:nc,init_ClassHandle:Lb,init_RegisteredPointer:hc,init_embind:bc,init_emval:uc,integerReadValueFromPointer:yc,jsStackTrace:$a,makeClassHandle:ec,makeLegalFunctionName:nb,memcpy:function(a,b,c){var d;if(a|=0,b|=0,8192<=(0|(c|=0)))return Kc(0|a,0|b,0|c),0|a;var f=0|a,g=a+c|0;if((3&a)==(3&b)){for(;3&a;){if(0==(0|c))return 0|f;B[a>>0]=0|B[b>>0],a=a+1|0,b=b+1|0,c=c-1|0}for(d=(c=-4&g|0)-64|0;(0|a)<=(0|d);)x[a>>2]=0|x[b>>2],x[a+4>>2]=0|x[b+4>>2],x[a+8>>2]=0|x[b+8>>2],x[a+12>>2]=0|x[b+12>>2],x[a+16>>2]=0|x[b+16>>2],x[a+20>>2]=0|x[b+20>>2],x[a+24>>2]=0|x[b+24>>2],x[a+28>>2]=0|x[b+28>>2],x[a+32>>2]=0|x[b+32>>2],x[a+36>>2]=0|x[b+36>>2],x[a+40>>2]=0|x[b+40>>2],x[a+44>>2]=0|x[b+44>>2],x[a+48>>2]=0|x[b+48>>2],x[a+52>>2]=0|x[b+52>>2],x[a+56>>2]=0|x[b+56>>2],x[a+60>>2]=0|x[b+60>>2],a=a+64|0,b=b+64|0;for(;(0|a)<(0|c);)x[a>>2]=0|x[b>>2],a=a+4|0,b=b+4|0}else for(c=g-4|0;(0|a)<(0|c);)B[a>>0]=0|B[b>>0],B[a+1>>0]=0|B[b+1>>0],B[a+2>>0]=0|B[b+2>>0],B[a+3>>0]=0|B[b+3>>0],a=a+4|0,b=b+4|0;for(;(0|a)<(0|g);)B[a>>0]=0|B[b>>0],a=a+1|0,b=b+1|0;return 0|f},memory:y,memset:fb,nanosleep:function(a,b){if(0===a)return cb(22),-1;var c=x[a>>2];return 0>(a=x[a+4>>2])||999999999c?(cb(22),-1):(0!==b&&(x[b>>2]=0,x[b+4>>2]=0),Nc(1e6*c+a/1e3))},new_:oc,nonConstNoSmartPtrRawPointerToWireType:Tb,pthread_cond_broadcast:function(){return 0},pthread_cond_wait:function(){return 0},readLatin1String:R,registerType:Q,releaseClassHandle:Cb,replacePublicSymbol:ic,requireHandle:Z,requireRegisteredType:wc,runDestructor:Bb,runDestructors:lb,sched_yield:function(){return 0},setDelayFunction:ac,setTempRet0:function(){},shallowCopyInternalPointer:xb,simpleReadValueFromPointer:L,stackTrace:function(){var a=$a();return e.extraStackTrace&&(a+="\n"+e.extraStackTrace()),Za(a)},strftime:Tc,strftime_l:function(a,b,c,d){return Tc(a,b,c,d)},table:ua,throwBindingError:S,throwInstanceAlreadyDeleted:yb,throwInternalError:rb,throwUnboundTypeError:mc,upcastPointer:Qb,usleep:Nc,whenDependentTypesAreResolved:O},Xc=function(){function a(a){e.asm=a.exports,D--,e.monitorRunDependencies&&e.monitorRunDependencies(D),0==D&&(null!==Ra&&(clearInterval(Ra),Ra=null),Sa&&(a=Sa,Sa=null,a()))}function b(b){a(b.instance)}function c(a){return Wa().then((function(a){return WebAssembly.instantiate(a,d)})).then(a,(function(a){v("failed to asynchronously prepare wasm: "+a),u(a)}))}var d={env:Wc,wasi_unstable:Wc};if(D++,e.monitorRunDependencies&&e.monitorRunDependencies(D),e.instantiateWasm)try{return e.instantiateWasm(d,a)}catch(f){return v("Module.instantiateWasm callback failed with error: "+f),!1}return function(){if(sa||"function"!=typeof WebAssembly.instantiateStreaming||Ta()||"function"!=typeof fetch)return c(b);fetch(E,{credentials:"same-origin"}).then((function(a){return WebAssembly.instantiateStreaming(a,d).then(b,(function(a){v("wasm streaming compile failed: "+a),v("falling back to ArrayBuffer instantiation"),c(b)}))}))}(),{}}();e.asm=Xc;var Ya=e.___wasm_call_ctors=function(){return e.asm.__wasm_call_ctors.apply(null,arguments)},G=e._malloc=function(){return e.asm.malloc.apply(null,arguments)},K=e._free=function(){return e.asm.free.apply(null,arguments)};e._main=function(){return e.asm.main.apply(null,arguments)};var Vc=e.__ZSt18uncaught_exceptionv=function(){return e.asm._ZSt18uncaught_exceptionv.apply(null,arguments)};e._htonl=function(){return e.asm.htonl.apply(null,arguments)},e._htons=function(){return e.asm.htons.apply(null,arguments)},e._ntohs=function(){return e.asm.ntohs.apply(null,arguments)},e._setThrew=function(){return e.asm.setThrew.apply(null,arguments)},e.___cxa_can_catch=function(){return e.asm.__cxa_can_catch.apply(null,arguments)},e.___cxa_is_pointer_type=function(){return e.asm.__cxa_is_pointer_type.apply(null,arguments)},e.__get_environ=function(){return e.asm._get_environ.apply(null,arguments)},e.___embind_register_native_and_builtin_types=function(){return e.asm.__embind_register_native_and_builtin_types.apply(null,arguments)};var lc=e.___getTypeName=function(){return e.asm.__getTypeName.apply(null,arguments)},hb=e._memalign=function(){return e.asm.memalign.apply(null,arguments)};e._emscripten_builtin_free=function(){return e.asm.emscripten_builtin_free.apply(null,arguments)},e._emscripten_builtin_memalign=function(){return e.asm.emscripten_builtin_memalign.apply(null,arguments)},e.stackSave=function(){return e.asm.stackSave.apply(null,arguments)};var Yc,Ba=e.stackAlloc=function(){return e.asm.stackAlloc.apply(null,arguments)};function na(a){this.name="ExitStatus",this.message="Program terminated with exit("+a+")",this.status=a}function ad(a){function b(){if(!Yc&&(Yc=!0,!va)){if(Pa=!0,Ja(La),Ja(Ma),e.onRuntimeInitialized&&e.onRuntimeInitialized(),bd){var b=a,d=(b=b||[]).length+1,f=Ba(4*(d+1));x[f>>2]=Aa(ca);for(var g=1;g>2)+g]=Aa(b[g-1]);x[(f>>2)+d]=0;try{var h=e._main(d,f);ta&&0===h||(!ta&&(va=!0,e.onExit)&&e.onExit(h),da(h,new na(h)))}catch(l){l instanceof na||("SimulateInfiniteLoop"==l?ta=!0:((b=l)&&"object"==typeof l&&l.stack&&(b=[l,l.stack]),v("exception thrown: "+b),da(1,l)))}}if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)b=e.postRun.shift(),Oa.unshift(b);Ja(Oa)}}if(a=a||ba,!(0_call_process(table_id)))}(pool,table_id):pool._process(),_Table}function view(table,sides,config,view_config,name,callbacks,overridden_types){this._View=void 0,this.date_parser=new _data_accessor_date_parser_js__WEBPACK_IMPORTED_MODULE_7__.a,this.config=config||{},this.view_config=view_config||new view_config,0===sides?this._View=__MODULE__.make_view_zero(table._Table,name,_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING,this.view_config,this.date_parser):1===sides?this._View=__MODULE__.make_view_one(table._Table,name,_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING,this.view_config,this.date_parser):2===sides&&(this._View=__MODULE__.make_view_two(table._Table,name,_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING,this.view_config,this.date_parser)),this.table=table,this.ctx=this._View.get_context(),this.column_only=this._View.is_column_only(),this.callbacks=callbacks,this.name=name,this.overridden_types=overridden_types,this._delete_callbacks=[],Object(_utils_js__WEBPACK_IMPORTED_MODULE_9__.a)(this)}function col_path_vector_to_string(vector){let extracted=[];for(let i=0;icb())},view.prototype.sides=function(){return this._View.sides()},view.prototype._num_hidden=function(){let hidden=0;for(const sort of this.config.sort)-1===this.config.columns.indexOf(sort[0])&&hidden++;return hidden};const extract_vector_scalar=function(vector){let extracted=[];for(let i=0;ix.join(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING))},view.prototype.column_paths=function(){return extract_vector_scalar(this._View.column_paths()).map(x=>x.join(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING))},view.prototype.get_data_slice=function(start_row,end_row,start_col,end_col){const num_sides=this.sides();return __MODULE__["get_data_slice_".concat(SIDES[num_sides])](this._View,start_row,end_row,start_col,end_col)};const _parse_format_options=function(options){options=options||{};const max_cols=this._View.num_columns()+(0===this.sides()?0:1),max_rows=this._View.num_rows(),hidden=this._num_hidden(),viewport=this.config.viewport?this.config.viewport:{},start_row=options.start_row||(viewport.top?viewport.top:0),end_row=Math.min(max_rows,void 0!==options.end_row?options.end_row:viewport.height?start_row+viewport.height:max_rows),start_col=options.start_col||(viewport.left?viewport.left:0),end_col=Math.min(max_cols,(void 0!==options.end_col?options.end_col:viewport.width?start_col+viewport.width:max_cols)*(hidden+1));return options.start_row=start_row,options.end_row=end_row,options.start_col=start_col,options.end_col=end_col,options},to_format=function(options,formatter){_call_process(this.table.get_id());const start_row=(options=_parse_format_options.bind(this)(options)).start_row,end_row=options.end_row,start_col=options.start_col,end_col=options.end_col,hidden=this._num_hidden();let date_format;options.date_format&&(date_format=new Intl.DateTimeFormat(options.date_format));const get_pkeys=!!options.index,get_ids=!!options.id,leaves_only=!!options.leaves_only,num_sides=this.sides(),has_row_path=0!==num_sides&&!this.column_only,nidx=SIDES[num_sides],slice=this.get_data_slice(start_row,end_row,start_col,end_col),ns=slice.get_column_names(),col_names=extract_vector_scalar(ns).map(x=>x.join(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING)),schema=this.schema();let data=formatter.initDataValue();for(let ridx=start_row;ridx0?1:0))%(this.config.columns.length+hidden)>=this.config.columns.length))if(cidx===start_col&&0!==num_sides){if(!this.column_only){formatter.initColumnValue(data,row,"__ROW_PATH__");for(let i=0;i0&&idx++,options.data_slice?slice=options.data_slice.get_column_slice(idx):(data_slice=this.get_data_slice(start_row,end_row,idx,idx+1),slice=data_slice.get_slice());const rst=format_function(slice,this._View.get_column_dtype(idx),idx);return slice.delete(),data_slice&&data_slice.delete(),rst};function filterInPlace(a,condition){let i=0,j=0;for(;ithis.to_json({start_row:Number.parseInt(row),end_row:Number.parseInt(row)+1}));data=[].concat.apply([],results)}return delta.cells.delete(),data},view.prototype._get_row_delta=async function(){const sides=this.sides();return __MODULE__["get_row_delta_".concat(SIDES[sides])](this._View)},view.prototype.on_update=function(_callback,{mode:mode="none"}={}){if(_call_process(this.table.get_id()),-1===["none","cell","row"].indexOf(mode))throw new Error('Invalid update mode "'.concat(mode,'" - valid modes are "none", "cell" and "row".'));"cell"!==mode&&"row"!==mode||this._View._get_deltas_enabled()||this._View._set_deltas_enabled(!0),this.callbacks.push({view:this,orig_callback:_callback,callback:async cache=>{switch(mode){case"cell":void 0===cache.step_delta&&(cache.step_delta=await this._get_step_delta()),_callback(cache.step_delta);break;case"row":void 0===cache.row_delta&&(cache.row_delta=await this._get_row_delta()),_callback(cache.row_delta);break;default:_callback()}}})},view.prototype.remove_update=function(callback){_call_process(this.table.get_id());const total=this.callbacks.length;filterInPlace(this.callbacks,x=>x.orig_callback!==callback),console.assert(total>this.callbacks.length,'"callback" does not match a registered updater')},view.prototype.on_delete=function(callback){this._delete_callbacks.push(callback)},view.prototype.remove_delete=function(callback){const initial_length=this._delete_callbacks.length;filterInPlace(this._delete_callbacks,cb=>cb!==callback),console.assert(initial_length>this._delete_callbacks.length,'"callback" does not match a registered delete callbacks')},view_config.prototype.get_row_pivots=function(){let vector=__MODULE__.make_string_vector();return Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(vector,this.row_pivots)},view_config.prototype.get_column_pivots=function(){let vector=__MODULE__.make_string_vector();return Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(vector,this.column_pivots)},view_config.prototype.get_columns=function(){let vector=__MODULE__.make_string_vector();return Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(vector,this.columns)},view_config.prototype.get_filter=function(){let vector=__MODULE__.make_2d_val_vector();for(let filter of this.filter){let filter_vector=__MODULE__.make_val_vector(),filled=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(filter_vector,filter);vector.push_back(filled)}return vector},view_config.prototype.get_sort=function(){let vector=__MODULE__.make_2d_string_vector();for(let sort of this.sort){let sort_vector=__MODULE__.make_string_vector(),filled=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(sort_vector,sort);vector.push_back(filled)}return vector},_table.prototype.compute=function(){return!0},_table.prototype.get_id=function(){return this._Table.get_id()},_table.prototype.get_pool=function(){return this._Table.get_pool()},_table.prototype._update_callback=function(){let cache={};for(let e in this.callbacks)this.callbacks[e].callback(cache)},_table.prototype.clear=function(){_remove_process(this.get_id()),this._Table.reset_gnode(this.gnode_id)},_table.prototype.replace=function(data){_remove_process(this.get_id()),this._Table.reset_gnode(this.gnode_id),this.update(data),_call_process(this._Table.get_id())},_table.prototype.delete=function(){if(this.views.length>0)throw"Table still has contexts - refusing to delete.";_remove_process(this.get_id()),this._Table.unregister_gnode(this.gnode_id),this._Table.delete(),this._delete_callbacks.forEach(callback=>callback())},_table.prototype.on_delete=function(callback){this._delete_callbacks.push(callback)},_table.prototype.remove_delete=function(callback){const initial_length=this._delete_callbacks.length;filterInPlace(this._delete_callbacks,cb=>cb!==callback),console.assert(initial_length>this._delete_callbacks.length,'"callback" does not match a registered delete callbacks')},_table.prototype.size=function(){return this._Table.size()},_table.prototype.schema=function(computed=!1,override=!0){let schema=this._Table.get_schema(),columns=schema.columns(),types=schema.types(),new_schema={};const computed_schema=this.computed_schema();for(let key=0;key-1))throw new Error('Unrecognized config parameter "'.concat(key,'"'));config[key]=_config[key]}config.row_pivots=config.row_pivots||[],config.column_pivots=config.column_pivots||[],config.aggregates=config.aggregates||{},config.filter=config.filter||[],config.sort=config.sort||[],void 0===config.columns&&(config.columns=this.columns(!0));let sides,name=Math.random()+"";sides=config.row_pivots.length>0||config.column_pivots.length>0?config.column_pivots&&config.column_pivots.length>0?2:1:0;let v=new view(this,sides,config,new view_config(config),name,this.callbacks,this.overridden_types);return this.views.push(v),v},_table.prototype.update=function(data){let pdata,cols=this.columns(),schema=this._Table.get_schema(),types=schema.types(),is_arrow=!1;if(pdata=accessor,data instanceof ArrayBuffer?(pdata=new Uint8Array(data),is_arrow=!0):"string"==typeof data?(","===data[0]&&(data="_"+data),accessor.init(papaparse__WEBPACK_IMPORTED_MODULE_12___default.a.parse(data.trim(),{header:!0}).data),accessor.names=cols.concat(accessor.names.filter(x=>"__INDEX__"===x)),accessor.types=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.b)(types).slice(0,accessor.names.length),meter&&meter(accessor.row_count)):(accessor.init(data),accessor.names=cols.concat(accessor.names.filter(x=>"__INDEX__"===x)),accessor.types=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.b)(types).slice(0,cols.length),meter&&meter(accessor.row_count)),!is_arrow){if(0===pdata.row_count)return void console.warn("table.update called with no data - ignoring");if(-1!=accessor.names.indexOf("__INDEX__")){!!this.index?accessor.types.push(accessor.types[accessor.names.indexOf(this.index)]):accessor.types.push(__MODULE__.t_dtype.DTYPE_INT32)}}try{const op=__MODULE__.t_op.OP_INSERT;make_table(pdata,this._Table,this.computed,this.index||"",this.limit,op,!0,is_arrow),this.initialized=!0}catch(e){console.error("Update failed: ".concat(e))}finally{schema.delete()}},_table.prototype.remove=function(data){let pdata,cols=this.columns(),schema=this._Table.get_schema(),types=schema.types(),is_arrow=!1;(data=data.map(idx=>({[this.index]:idx})))instanceof ArrayBuffer?(pdata=new Uint8Array(data),is_arrow=!0):(accessor.init(data),accessor.names=[this.index],accessor.types=[Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.b)(types)[cols.indexOf(this.index)]],pdata=accessor);try{const op=__MODULE__.t_op.OP_DELETE;make_table(pdata,this._Table,void 0,this.index||"",this.limit,op,!1,is_arrow),this.initialized=!0}catch(e){console.error("Remove failed",e)}finally{schema.delete()}},_table.prototype.add_computed=function(computed){let _Table;try{return _Table=__MODULE__.make_computed_table(this._Table,computed),this.computed.length>0&&(computed=this.computed.concat(computed)),new _table(_Table,this.index,computed,this.limit,this.overridden_types)}catch(e){throw _Table&&_Table.delete(),e}},_table.prototype.columns=function(computed=!1){let schema=this._Table.get_schema(),computed_schema=this.computed_schema(),cols=schema.columns(),names=[];for(let cidx=0;cidxthis.process(e.data),!1)}post(msg,transfer){self.postMessage(msg,transfer)}init(msg){if("undefined"==typeof WebAssembly)throw new Error("WebAssembly not supported");console.log("Loading wasm"),__MODULE__=__MODULE__({wasmBinary:msg.buffer,wasmJSMethod:"native-wasm"}).then(()=>super.init(msg))}}return"undefined"!=typeof self&&self.addEventListener&&new WebWorkerServer(perspective),perspective}}).call(this,__webpack_require__(21))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Server}));var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__),_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8),_config__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_config__WEBPACK_IMPORTED_MODULE_1__);function error_to_json(error){const obj={};return"string"!=typeof error?Object.getOwnPropertyNames(error).forEach(key=>{obj[key]=error[key]},error):obj.message=error,obj}class Server{constructor(perspective){this.perspective=perspective,this._tables={},this._views={},this._callback_cache=new Map}init(msg){msg.config&&Object(_config__WEBPACK_IMPORTED_MODULE_1__.override_config)(msg.config),this.post(msg)}post(){throw new Error("post() not implemented!")}clear_views(client_id){for(let key of Object.keys(this._views))if(this._views[key].client_id===client_id){try{this._views[key].delete()}catch(e){console.error(e)}delete this._views[key]}console.debug("GC ".concat(Object.keys(this._views).length," views in memory"))}process(msg,client_id){switch(msg.cmd){case"init_profile_thread":this.perspective.initialize_profile_thread();break;case"init":this.init(msg);break;case"table":if(void 0===msg.args[0])this._tables[msg.name]=[];else{const msgs=this._tables[msg.name];if(this._tables[msg.name]=this.perspective.table(msg.args[0],msg.options),msgs)for(const msg of msgs)this.process(msg)}break;case"add_computed":let table=this._tables[msg.original],computed=msg.computed;for(let i=0;i{let result={id:msg.id,data:ev};try{if(msg.args&&msg.args[0]&&"on_update"===msg.method&&"row"===msg.args[0].mode)return void this.post(result,[ev]);this.post(result)}catch(e){console.error("Removing failed callback to `".concat(msg.method,"()` (presumably due to failed connection)"));const remove_method=msg.method.substring(3);obj["remove_".concat(remove_method)](callback)}},msg.callback_id&&this._callback_cache.set(msg.callback_id,callback)):msg.callback_id&&(callback=this._callback_cache.get(msg.callback_id),this._callback_cache.delete(msg.callback_id)),callback?obj[msg.method](callback,...msg.args):console.error('Callback not found for remote call "'.concat(JSON.stringify(msg),'"'))}catch(error){return void this.process_error(msg,error)}}process_method_call_response(msg,result){"delete"===msg.method&&delete this._views[msg.name],"to_arrow"===msg.method?this.post({id:msg.id,data:result},[result]):this.post({id:msg.id,data:result})}process_method_call(msg){let obj,result;if(obj="table_method"===msg.cmd?this._tables[msg.name]:this._views[msg.name],obj||"view_method"!==msg.cmd)if(obj&&obj.push)obj.push(msg);else try{if(msg.subscribe)return void this.process_subscribe(msg,obj);result=obj[msg.method].apply(obj,msg.args),result instanceof Promise?result.then(result=>this.process_method_call_response(msg,result)).catch(error=>this.process_error(msg,error)):this.process_method_call_response(msg,result)}catch(error){return void this.process_error(msg,error)}else this.process_error(msg,{message:"View is not initialized"})}}},function(module,exports){module.exports=!1},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13),document=__webpack_require__(5).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(72),enumBugKeys=__webpack_require__(46);module.exports=Object.keys||function(O){return $keys(O,enumBugKeys)}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){var def=__webpack_require__(33).f,has=__webpack_require__(19),TAG=__webpack_require__(2)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DataAccessor}));__webpack_require__(11);var _date_parser_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),_utils_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(10),_config_index_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8);class DataAccessor{constructor(){this.data_formats={row:0,column:1,schema:2},this.format=void 0,this.data=void 0,this.names=void 0,this.types=void 0,this.row_count=void 0,this.date_parsers={},this.date_validator=val=>Object(_date_parser_js__WEBPACK_IMPORTED_MODULE_1__.b)(val)}is_format(data){if(Array.isArray(data))return this.data_formats.row;if(Array.isArray(data[Object.keys(data)[0]]))return this.data_formats.column;if("string"==typeof data[Object.keys(data)[0]]||"function"==typeof data[Object.keys(data)[0]])return this.data_formats.schema;throw"Could not determine data format for ".concat(JSON.stringify(data),", with JS typeof ").concat(typeof data)}count_rows(data){return this.format===this.data_formats.row?data.length:this.format===this.data_formats.column?data[Object.keys(data)[0]].length:0}get_format(){return this.format}get(column_name,row_index){let value=void 0;if(this.format===this.data_formats.row){let d=this.data[row_index];d.hasOwnProperty(column_name)&&(value=d[column_name])}else if(this.format===this.data_formats.column)this.data.hasOwnProperty(column_name)&&(value=this.data[column_name][row_index]);else{if(this.format!==this.data_formats.schema)throw"Could not get() from dataset - ".concat(this.data," is poorly formatted.");value=void 0}return value}marshal(column_index,row_index,type){const column_name=this.names[column_index];let val=null===(value=this.get(column_name,row_index))||"null"===value?null:void 0===value||"undefined"===value?void 0:value;var value;let date_parser;if(null===val)return null;if(void 0!==val){switch(void 0===this.date_parsers[column_name]&&(this.date_parsers[column_name]=new _date_parser_js__WEBPACK_IMPORTED_MODULE_1__.a),date_parser=this.date_parsers[column_name],Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__.b)(type.value)){case"float":case"integer":val=Number(val);break;case"boolean":val="string"==typeof val?"true"===val.toLowerCase():!!val;break;case"datetime":case"date":val=date_parser.parse(val);break;default:val+=""}return val}}clean(){this.date_parsers={},this.names=void 0,this.types=void 0}init(data){this.data=data,this.format=this.is_format(this.data),this.row_count=this.count_rows(this.data);const overridden_types={};if(this.format===this.data_formats.row)data.length>0?this.names=Object.keys(data[0]):this.clean.names=[];else if(this.format===this.data_formats.column)this.names=Object.keys(data);else{if(this.format!==this.data_formats.schema)throw"Could not initialize - failed to determine format for ".concat(data);this.names=Object.keys(data);for(const name of this.names){const new_type=Object(_config_index_js__WEBPACK_IMPORTED_MODULE_3__.get_type_config)(data[name]);new_type.type&&(console.debug('Converting "'.concat(data[name],'" to "').concat(new_type.type,'"')),overridden_types[name]=data[name],data[name]=new_type.type)}}return overridden_types}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(global){var _obj_psp_async_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(39),_perspective_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(40);let _perspective_instance;_perspective_instance=void 0!==global.document&&"undefined"!=typeof WebAssembly?global.perspective=Object(_perspective_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_obj_psp_async_js__WEBPACK_IMPORTED_MODULE_0__.a)({wasmJSMethod:"native-wasm",printErr:x=>console.error(x),print:x=>console.log(x)})):global.perspective=Object(_perspective_js__WEBPACK_IMPORTED_MODULE_1__.a)(_obj_psp_async_js__WEBPACK_IMPORTED_MODULE_0__.a),__webpack_exports__.default=_perspective_instance}.call(this,__webpack_require__(21))},function(module,exports){},function(module,exports,__webpack_require__){(function(process){function normalizeArray(parts,allowAboveRoot){for(var up=0,i=parts.length-1;i>=0;i--){var last=parts[i];"."===last?parts.splice(i,1):".."===last?(parts.splice(i,1),up++):up&&(parts.splice(i,1),up--)}if(allowAboveRoot)for(;up--;up)parts.unshift("..");return parts}function filter(xs,f){if(xs.filter)return xs.filter(f);for(var res=[],i=0;i=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute="/"===path.charAt(0))}return(resolvedAbsolute?"/":"")+(resolvedPath=normalizeArray(filter(resolvedPath.split("/"),(function(p){return!!p})),!resolvedAbsolute).join("/"))||"."},exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash="/"===substr(path,-1);return(path=normalizeArray(filter(path.split("/"),(function(p){return!!p})),!isAbsolute).join("/"))||isAbsolute||(path="."),path&&trailingSlash&&(path+="/"),(isAbsolute?"/":"")+path},exports.isAbsolute=function(path){return"/"===path.charAt(0)},exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,(function(p,index){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},exports.relative=function(from,to){function trim(arr){for(var start=0;start=0&&""===arr[end];end--);return start>end?[]:arr.slice(start,end-start+1)}from=exports.resolve(from).substr(1),to=exports.resolve(to).substr(1);for(var fromParts=trim(from.split("/")),toParts=trim(to.split("/")),length=Math.min(fromParts.length,toParts.length),samePartsLength=length,i=0;i=1;--i)if(47===(code=path.charCodeAt(i))){if(!matchedSlash){end=i;break}}else matchedSlash=!1;return-1===end?hasRoot?"/":".":hasRoot&&1===end?"/":path.slice(0,end)},exports.basename=function(path,ext){var f=function(path){"string"!=typeof path&&(path+="");var i,start=0,end=-1,matchedSlash=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!matchedSlash){start=i+1;break}}else-1===end&&(matchedSlash=!1,end=i+1);return-1===end?"":path.slice(start,end)}(path);return ext&&f.substr(-1*ext.length)===ext&&(f=f.substr(0,f.length-ext.length)),f},exports.extname=function(path){"string"!=typeof path&&(path+="");for(var startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===end&&(matchedSlash=!1,end=i+1),46===code?-1===startDot?startDot=i:1!==preDotState&&(preDotState=1):-1!==startDot&&(preDotState=-1);else if(!matchedSlash){startPart=i+1;break}}return-1===startDot||-1===end||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1?"":path.slice(startDot,end)};var substr="b"==="ab".substr(-1)?function(str,start,len){return str.substr(start,len)}:function(str,start,len){return start<0&&(start=str.length+start),str.substr(start,len)}}).call(this,__webpack_require__(22))},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(3),toObject=__webpack_require__(23),toLength=__webpack_require__(15),toInteger=__webpack_require__(16),advanceStringIndex=__webpack_require__(24),regExpExec=__webpack_require__(25),max=Math.max,min=Math.min,floor=Math.floor,SUBSTITUTION_SYMBOLS=/\$([$&`']|\d\d?|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&`']|\d\d?)/g;__webpack_require__(30)("replace",2,(function(defined,REPLACE,$replace,maybeCallNative){return[function(searchValue,replaceValue){var O=defined(this),fn=null==searchValue?void 0:searchValue[REPLACE];return void 0!==fn?fn.call(searchValue,O,replaceValue):$replace.call(String(O),searchValue,replaceValue)},function(regexp,replaceValue){var res=maybeCallNative($replace,regexp,this,replaceValue);if(res.done)return res.value;var rx=anObject(regexp),S=String(this),functionalReplace="function"==typeof replaceValue;functionalReplace||(replaceValue=String(replaceValue));var global=rx.global;if(global){var fullUnicode=rx.unicode;rx.lastIndex=0}for(var results=[];;){var result=regExpExec(rx,S);if(null===result)break;if(results.push(result),!global)break;""===String(result[0])&&(rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode))}for(var it,accumulatedResult="",nextSourcePosition=0,i=0;i=nextSourcePosition&&(accumulatedResult+=S.slice(nextSourcePosition,position)+replacement,nextSourcePosition=position+matched.length)}return accumulatedResult+S.slice(nextSourcePosition)}];function getSubstitution(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),$replace.call(replacement,symbols,(function(match,ch){var capture;switch(ch.charAt(0)){case"$":return"$";case"&":return matched;case"`":return str.slice(0,position);case"'":return str.slice(tailPos);case"<":capture=namedCaptures[ch.slice(1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?ch.charAt(1):captures[f-1]+ch.charAt(1):match}capture=captures[n-1]}return void 0===capture?"":capture}))}}))},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(16),defined=__webpack_require__(14);module.exports=function(TO_STRING){return function(that,pos){var a,b,s=String(defined(that)),i=toInteger(pos),l=s.length;return i<0||i>=l?TO_STRING?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},function(module,exports,__webpack_require__){var cof=__webpack_require__(26),TAG=__webpack_require__(2)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}());module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=function(it,key){try{return it[key]}catch(e){}}(O=Object(it),TAG))?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports,__webpack_require__){"use strict";var regexpExec=__webpack_require__(31);__webpack_require__(32)({target:"RegExp",proto:!0,forced:regexpExec!==/./.exec},{exec:regexpExec})},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(3);module.exports=function(){var that=anObject(this),result="";return that.global&&(result+="g"),that.ignoreCase&&(result+="i"),that.multiline&&(result+="m"),that.unicode&&(result+="u"),that.sticky&&(result+="y"),result}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(17)&&!__webpack_require__(7)((function(){return 7!=Object.defineProperty(__webpack_require__(43)("div"),"a",{get:function(){return 7}}).a}))},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;if("function"==typeof(fn=it.valueOf)&&!isObject(val=fn.call(it)))return val;if(!S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(27)("native-function-to-string",Function.toString)},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(34);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13),cof=__webpack_require__(26),MATCH=__webpack_require__(2)("match");module.exports=function(it){var isRegExp;return isObject(it)&&(void 0!==(isRegExp=it[MATCH])?!!isRegExp:"RegExp"==cof(it))}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),aFunction=__webpack_require__(34),SPECIES=__webpack_require__(2)("species");module.exports=function(O,D){var S,C=anObject(O).constructor;return void 0===C||null==(S=anObject(C)[SPECIES])?D:aFunction(S)}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(65),step=__webpack_require__(66),Iterators=__webpack_require__(36),toIObject=__webpack_require__(37);module.exports=__webpack_require__(68)(Array,"Array",(function(iterated,kind){this._t=toIObject(iterated),this._i=0,this._k=kind}),(function(){var O=this._t,kind=this._k,index=this._i++;return!O||index>=O.length?(this._t=void 0,step(1)):step(0,"keys"==kind?index:"values"==kind?O[index]:[index,O[index]])}),"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports,__webpack_require__){var UNSCOPABLES=__webpack_require__(2)("unscopables"),ArrayProto=Array.prototype;null==ArrayProto[UNSCOPABLES]&&__webpack_require__(6)(ArrayProto,UNSCOPABLES,{}),module.exports=function(key){ArrayProto[UNSCOPABLES][key]=!0}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){var cof=__webpack_require__(26);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(42),$export=__webpack_require__(32),redefine=__webpack_require__(18),hide=__webpack_require__(6),Iterators=__webpack_require__(36),$iterCreate=__webpack_require__(69),setToStringTag=__webpack_require__(47),getPrototypeOf=__webpack_require__(76),ITERATOR=__webpack_require__(2)("iterator"),BUGGY=!([].keys&&"next"in[].keys()),returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var methods,key,IteratorPrototype,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case"keys":case"values":return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES="values"==DEFAULT,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto["@@iterator"]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT),$entries=DEFAULT?DEF_VALUES?getMethod("entries"):$default:void 0,$anyNative="Array"==NAME&&proto.entries||$native;if($anyNative&&(IteratorPrototype=getPrototypeOf($anyNative.call(new Base)))!==Object.prototype&&IteratorPrototype.next&&(setToStringTag(IteratorPrototype,TAG,!0),LIBRARY||"function"==typeof IteratorPrototype[ITERATOR]||hide(IteratorPrototype,ITERATOR,returnThis)),DEF_VALUES&&$native&&"values"!==$native.name&&(VALUES_BUG=!0,$default=function(){return $native.call(this)}),LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod("values"),keys:IS_SET?$default:getMethod("keys"),entries:$entries},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods}},function(module,exports,__webpack_require__){"use strict";var create=__webpack_require__(70),descriptor=__webpack_require__(44),setToStringTag=__webpack_require__(47),IteratorPrototype={};__webpack_require__(6)(IteratorPrototype,__webpack_require__(2)("iterator"),(function(){return this})),module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)}),setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),dPs=__webpack_require__(71),enumBugKeys=__webpack_require__(46),IE_PROTO=__webpack_require__(38)("IE_PROTO"),Empty=function(){},createDict=function(){var iframeDocument,iframe=__webpack_require__(43)("iframe"),i=enumBugKeys.length;for(iframe.style.display="none",__webpack_require__(75).appendChild(iframe),iframe.src="javascript:",(iframeDocument=iframe.contentWindow.document).open(),iframeDocument.write("