Files
Probability-and-Statistics-…/_static/249.7ec032cf0b3ede9a.js
T
2026-08-01 15:00:14 +00:00

3 lines
1.4 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see 249.7ec032cf0b3ede9a.js.LICENSE.txt */
(self.webpackChunkWebComponents=self.webpackChunkWebComponents||[]).push([[249],{17:(e,t,n)=>{"use strict";var r=n(51605),o=n(91344).filter;r({target:"Array",proto:!0,forced:!n(45634)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},1466:(e,t,n)=>{var r=n(30281),o=n(92074),i=n(78420),a=n(83062),s=n(56492),l=n(69965),u=function(){},c=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),m=!f.exec(u),p=function(e){if(!i(e))return!1;try{return h(u,c,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!d(f,l(e))}catch(e){return!0}};y.sham=!0,e.exports=!h||o((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?y:p},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3101:(e,t,n)=>{var r=n(51605),o=n(65077),i=n(15816),a=n(5476),s=n(97632),l=n(52057);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),c={},h=0;u.length>h;)void 0!==(n=o(r,t=u[h++]))&&l(c,t,n);return c}})},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3727:(e,t,n)=>{var r=n(47061).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},3883:(e,t,n)=>{var r=n(51605),o=n(56492),i=n(36490),a=n(95362),s=n(50002),l=n(14569),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},4038:(e,t,n)=>{n(51605)({target:"Number",stat:!0},{isInteger:n(83496)})},4632:(e,t,n)=>{n(51605)({target:"Object",stat:!0},{setPrototypeOf:n(39686)})},4657:(e,t,n)=>{"use strict";var r=n(51605),o=n(77804).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},5086:(e,t,n)=>{var r=n(43129),o=n(7485),i=n(94972);r||o(Object.prototype,"toString",i,{unsafe:!0})},5225:(e,t,n)=>{var r=n(82072);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5476:(e,t,n)=>{var r=n(48664),o=n(71229);e.exports=function(e){return r(o(e))}},5549:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var i=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},5959:(e,t,n)=>{"use strict";var r=n(43610).f,o=n(53105),i=n(92760),a=n(46885),s=n(65190),l=n(88406),u=n(52929),c=n(56409),h=n(48296),f=n(93524),d=n(65077),m=n(82014).fastKey,p=n(99206),y=p.set,v=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var h=e((function(e,r){s(e,f),y(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),l(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),f=h.prototype,p=v(t),g=function(e,t,n){var r,o,i=p(e),a=w(e,t);return a?a.value=n:(i.last=a={index:o=m(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},w=function(e,t){var n,r=p(e),o=m(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(f,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=w(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!w(this,e)}}),i(f,n?{get:function(e){var t=w(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(f,"size",{get:function(){return p(this).size}}),h},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);c(e,t,(function(e,t){y(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?h("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},6048:(e,t,n)=>{"use strict";var r=n(12071).PROPER,o=n(7485),i=n(73938),a=n(95362),s=n(92074),l=n(10353),u="toString",c=RegExp.prototype[u],h=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=r&&c.name!=u;(h||f)&&o(RegExp.prototype,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},6539:(e,t,n)=>{var r=n(79328),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},6648:(e,t,n)=>{"use strict";var r=n(65077),o=n(18679),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6845:(e,t,n)=>{var r,o,i=n(30200),a=n(47061),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},6926:e=>{e.exports=!1},7168:(e,t,n)=>{var r=n(92074);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},7473:(e,t,n)=>{var r=n(78420),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},7485:(e,t,n)=>{var r=n(78420),o=n(43610),i=n(48218),a=n(59430);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&i(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},7809:(e,t,n)=>{var r=n(30281);e.exports=r(1..valueOf)},7899:(e,t,n)=>{var r=n(51605),o=n(92612),i=n(91641);r({target:"Object",stat:!0,forced:n(92074)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},7918:(e,t,n)=>{n(53656)},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(95093))},8369:(e,t,n)=>{var r=n(30200),o=n(78420),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},9304:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},10121:(e,t,n)=>{n(13811)},10140:(e,t,n)=>{"use strict";var r=n(79328),o=n(95362),i=n(71229),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",s=r(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},10353:(e,t,n)=>{var r=n(72368),o=n(36490),i=n(47658),a=n(16844),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},10516:(e,t,n)=>{"use strict";var r=n(91344).forEach,o=n(92349)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},10557:(e,t,n)=>{"use strict";var r=n(51605),o=n(30281),i=n(18679),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},10678:(e,t,n)=>{var r=n(51605),o=n(92074),i=n(5476),a=n(97632).f,s=n(65077),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},11025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(95093))},11470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(95093))},11713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(95093))},11885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(95093))},12071:(e,t,n)=>{var r=n(65077),o=n(36490),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},12091:(e,t,n)=>{var r=n(51605),o=n(72368),i=n(65335),a=n(73938),s=n(66060),l=n(97632),u=n(97970);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,h=arguments.length<3?t:arguments[2];return a(t)===h?t[n]:(r=l.f(t,n))?s(r)?r.value:void 0===r.get?void 0:o(r.get,h):i(c=u(t))?e(c,n,h):void 0}})},12192:(e,t,n)=>{var r=n(92074),o=n(30200).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},12307:(e,t,n)=>{"use strict";n.d(t,{A:()=>pE});var r={};n.r(r),n.d(r,{arrayAvg:()=>j,arrayEach:()=>P,arrayFilter:()=>H,arrayFlatten:()=>F,arrayMap:()=>N,arrayMax:()=>Y,arrayMin:()=>I,arrayReduce:()=>A,arraySum:()=>x,arrayUnique:()=>W,extendArray:()=>L,pivot:()=>D,to2dArray:()=>R});var o={};n.r(o),n.d(o,{clone:()=>K,createObjectPropListener:()=>re,deepClone:()=>X,deepExtend:()=>q,deepObjectSize:()=>ne,defineGetter:()=>Z,duckSchema:()=>U,extend:()=>G,getProperty:()=>te,hasOwnProperty:()=>oe,inherit:()=>z,isObject:()=>Q,isObjectEqual:()=>$,mixin:()=>J,objectEach:()=>ee});var i={};n.r(i),n.d(i,{isChrome:()=>Re,isEdge:()=>Le,isIE:()=>De,isIE8:()=>Ae,isIE9:()=>He,isMSBrowser:()=>Ne,isMobileBrowser:()=>Pe,isSafari:()=>xe,setBrowserMeta:()=>Oe});var a={};n.r(a),n.d(a,{cancelAnimationFrame:()=>Ze,getComparisonFunction:()=>rt,hasCaptionProblem:()=>nt,isClassListSupported:()=>Je,isGetComputedStyleSupported:()=>Qe,isPassiveEventSupported:()=>ot,isTextContentSupported:()=>$e,isTouchSupported:()=>et,isWebComponentSupportedNatively:()=>tt,requestAnimationFrame:()=>Ke});var s={};n.r(s),n.d(s,{HTML_CHARACTERS:()=>St,addClass:()=>wt,addEvent:()=>Wt,clearTextSelection:()=>Gt,closest:()=>st,closestDown:()=>lt,empty:()=>Mt,fastInnerHTML:()=>Ct,fastInnerText:()=>Tt,getCaretPosition:()=>Vt,getComputedStyle:()=>xt,getCssTransform:()=>Qt,getParent:()=>at,getScrollLeft:()=>At,getScrollTop:()=>Dt,getScrollableElement:()=>Ht,getScrollbarWidth:()=>Xt,getSelectionEndPosition:()=>Ut,getSelectionText:()=>zt,getStyle:()=>Pt,getTrimmingContainer:()=>Nt,getWindowScrollLeft:()=>Lt,getWindowScrollTop:()=>Rt,hasClass:()=>gt,hasHorizontalScrollbar:()=>Jt,hasVerticalScrollbar:()=>Kt,index:()=>dt,innerHeight:()=>jt,innerWidth:()=>Ft,isChildOf:()=>ut,isChildOfWebComponentTable:()=>ct,isInput:()=>en,isOutsideInput:()=>tn,isVisible:()=>Et,offset:()=>Ot,outerHeight:()=>It,outerWidth:()=>Yt,overlayContainsElement:()=>mt,polymerUnwrap:()=>ft,polymerWrap:()=>ht,removeClass:()=>bt,removeEvent:()=>Bt,removeTextNodes:()=>_t,resetCssTransform:()=>Zt,selectElementIfAllowed:()=>nn,setCaretPosition:()=>qt,setOverlayPosition:()=>$t});var l={};n.r(l),n.d(l,{curry:()=>cn,curryRight:()=>hn,debounce:()=>sn,isFunction:()=>rn,partial:()=>un,pipe:()=>ln,throttle:()=>on,throttleAfterHits:()=>an});var u={};n.r(u),n.d(u,{_injectProductInfo:()=>_r,isDefined:()=>ar,isEmpty:()=>lr,isRegExp:()=>ur,isUndefined:()=>sr,stringify:()=>ir});var c={};n.r(c),n.d(c,{isImmediatePropagationStopped:()=>Fr,isLeftClick:()=>zr,isRightClick:()=>Ur,pageX:()=>Br,pageY:()=>Vr,stopImmediatePropagation:()=>jr,stopPropagation:()=>Wr});var h={};n.r(h),n.d(h,{equalsIgnoreCase:()=>Qr,isPercentValue:()=>eo,randomString:()=>Zr,stripTags:()=>ro,substitute:()=>to,toUpperCaseFirst:()=>$r});var f={};n.r(f),n.d(f,{KEY_CODES:()=>lo,isCtrlKey:()=>ho,isCtrlMetaKey:()=>fo,isKey:()=>mo,isMetaKey:()=>co,isPrintableChar:()=>uo});var d={};n.r(d),n.d(d,{isNumeric:()=>Oa,rangeEach:()=>Ra,rangeEachReverse:()=>La,valueAccordingPercent:()=>Da});var m={};n.r(m),n.d(m,{getNormalizedDate:()=>fl});var p={};n.r(p),n.d(p,{columnFactory:()=>Bl});var y={};n.r(y),n.d(y,{cellMethodLookupFactory:()=>Ql,createEmptySpreadsheetData:()=>Jl,createSpreadsheetData:()=>Xl,createSpreadsheetObjectData:()=>Kl,spreadsheetColumnIndex:()=>ql,spreadsheetColumnLabel:()=>Gl,translateRowsToColumns:()=>$l});var v={};n.r(v),n.d(v,{_dataToHTML:()=>mu,htmlToGridSettings:()=>yu,instanceToHTML:()=>du});var g={};n.r(g),n.d(g,{CONTEXTMENU_ITEMS_ADD_COMMENT:()=>uc,CONTEXTMENU_ITEMS_ALIGNMENT:()=>dc,CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM:()=>bc,CONTEXTMENU_ITEMS_ALIGNMENT_CENTER:()=>pc,CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY:()=>vc,CONTEXTMENU_ITEMS_ALIGNMENT_LEFT:()=>mc,CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE:()=>wc,CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT:()=>yc,CONTEXTMENU_ITEMS_ALIGNMENT_TOP:()=>gc,CONTEXTMENU_ITEMS_BORDERS:()=>_c,CONTEXTMENU_ITEMS_BORDERS_BOTTOM:()=>Sc,CONTEXTMENU_ITEMS_BORDERS_LEFT:()=>Cc,CONTEXTMENU_ITEMS_BORDERS_RIGHT:()=>kc,CONTEXTMENU_ITEMS_BORDERS_TOP:()=>Mc,CONTEXTMENU_ITEMS_CLEAR_COLUMN:()=>nc,CONTEXTMENU_ITEMS_COPY:()=>rc,CONTEXTMENU_ITEMS_CUT:()=>oc,CONTEXTMENU_ITEMS_EDIT_COMMENT:()=>cc,CONTEXTMENU_ITEMS_FREEZE_COLUMN:()=>ic,CONTEXTMENU_ITEMS_HIDE_COLUMN:()=>Rc,CONTEXTMENU_ITEMS_HIDE_ROW:()=>Dc,CONTEXTMENU_ITEMS_INSERT_LEFT:()=>Ku,CONTEXTMENU_ITEMS_INSERT_RIGHT:()=>Ju,CONTEXTMENU_ITEMS_MERGE_CELLS:()=>sc,CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD:()=>Oc,CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD:()=>Ec,CONTEXTMENU_ITEMS_NO_ITEMS:()=>Gu,CONTEXTMENU_ITEMS_READ_ONLY:()=>tc,CONTEXTMENU_ITEMS_READ_ONLY_COMMENT:()=>fc,CONTEXTMENU_ITEMS_REDO:()=>ec,CONTEXTMENU_ITEMS_REMOVE_BORDERS:()=>Tc,CONTEXTMENU_ITEMS_REMOVE_COLUMN:()=>Qu,CONTEXTMENU_ITEMS_REMOVE_COMMENT:()=>hc,CONTEXTMENU_ITEMS_REMOVE_ROW:()=>$u,CONTEXTMENU_ITEMS_ROW_ABOVE:()=>qu,CONTEXTMENU_ITEMS_ROW_BELOW:()=>Xu,CONTEXTMENU_ITEMS_SHOW_COLUMN:()=>Lc,CONTEXTMENU_ITEMS_SHOW_ROW:()=>Ac,CONTEXTMENU_ITEMS_UNDO:()=>Zu,CONTEXTMENU_ITEMS_UNFREEZE_COLUMN:()=>ac,CONTEXTMENU_ITEMS_UNMERGE_CELLS:()=>lc,CONTEXT_MENU_ITEMS_NAMESPACE:()=>zu,FILTERS_BUTTONS_CANCEL:()=>ch,FILTERS_BUTTONS_CLEAR:()=>lh,FILTERS_BUTTONS_OK:()=>uh,FILTERS_BUTTONS_PLACEHOLDER_SEARCH:()=>hh,FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE:()=>dh,FILTERS_BUTTONS_PLACEHOLDER_VALUE:()=>fh,FILTERS_BUTTONS_SELECT_ALL:()=>sh,FILTERS_CONDITIONS_AFTER:()=>$c,FILTERS_CONDITIONS_BEFORE:()=>Qc,FILTERS_CONDITIONS_BEGINS_WITH:()=>Fc,FILTERS_CONDITIONS_BETWEEN:()=>Kc,FILTERS_CONDITIONS_BY_VALUE:()=>Uc,FILTERS_CONDITIONS_CONTAINS:()=>Bc,FILTERS_CONDITIONS_EMPTY:()=>xc,FILTERS_CONDITIONS_ENDS_WITH:()=>Wc,FILTERS_CONDITIONS_EQUAL:()=>Ic,FILTERS_CONDITIONS_GREATER_THAN:()=>zc,FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL:()=>Gc,FILTERS_CONDITIONS_LESS_THAN:()=>qc,FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL:()=>Xc,FILTERS_CONDITIONS_NAMESPACE:()=>Nc,FILTERS_CONDITIONS_NONE:()=>Pc,FILTERS_CONDITIONS_NOT_BETWEEN:()=>Jc,FILTERS_CONDITIONS_NOT_CONTAIN:()=>Vc,FILTERS_CONDITIONS_NOT_EMPTY:()=>Yc,FILTERS_CONDITIONS_NOT_EQUAL:()=>jc,FILTERS_CONDITIONS_TODAY:()=>Zc,FILTERS_CONDITIONS_TOMORROW:()=>eh,FILTERS_CONDITIONS_YESTERDAY:()=>th,FILTERS_DIVS_FILTER_BY_CONDITION:()=>nh,FILTERS_DIVS_FILTER_BY_VALUE:()=>rh,FILTERS_LABELS_CONJUNCTION:()=>oh,FILTERS_LABELS_DISJUNCTION:()=>ih,FILTERS_NAMESPACE:()=>Hc,FILTERS_VALUES_BLANK_CELLS:()=>ah});var w={};n.r(w),n.d(w,{Loose:()=>Yw,Strict:()=>Fw});var b={};n.r(b),n.d(b,{OPERATION_NAME:()=>RS,operate:()=>DS,prepare:()=>LS});var _={};n.r(_),n.d(_,{OPERATION_NAME:()=>AS,operate:()=>HS});var M={};n.r(M),n.d(M,{OPERATION_NAME:()=>PS,operate:()=>xS});var k={};n.r(k),n.d(k,{OPERATION_NAME:()=>IS,operate:()=>jS});var S={};n.r(S),n.d(S,{OPERATION_NAME:()=>WS,operate:()=>BS});var C={};function T(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(C),n.d(C,{AutoColumnSize:()=>ed,AutoFill:()=>ud,AutoRowSize:()=>vd,Base:()=>Rf,BindRowsWithHeaders:()=>Jw,CollapsibleColumns:()=>rb,ColumnSorting:()=>vm,ColumnSummary:()=>db,Comments:()=>Jm,ContextMenu:()=>Hp,CopyPaste:()=>Zp,CustomBorders:()=>py,DragToScroll:()=>ky,DropdownMenu:()=>kb,ExportFile:()=>zb,Filters:()=>Xk,Formulas:()=>pC,GanttChart:()=>PC,HeaderTooltips:()=>BC,HiddenColumns:()=>qT,HiddenRows:()=>eE,ManualColumnFreeze:()=>Ay,ManualColumnMove:()=>cv,ManualColumnResize:()=>gv,ManualRowMove:()=>Jv,ManualRowResize:()=>og,MergeCells:()=>Pg,MultiColumnSorting:()=>o_,MultipleSelectionHandles:()=>Bg,NestedHeaders:()=>nT,NestedRows:()=>jT,ObserveChanges:()=>tw,PersistentState:()=>jf,Search:()=>cw,TouchScroll:()=>vw,TrimRows:()=>hE,UndoRedo:()=>Nw}),n(67579),n(18665),n(5086),n(29979),n(10121),n(14602),n(63534),n(40590),n(64216),n(15195),n(7918),n(6048);var E=new Map;function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";E.has(e)||E.set(e,new Map);var t=E.get(e);return{register:function(e,n){t.set(e,n)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return T(t.keys())},getValues:function(){return T(t.values())}}}function R(e){for(var t=e.length,n=0;n<t;)e[n]=[e[n]],n+=1}function L(e,t){for(var n=t.length,r=0;r<n;)e.push(t[r]),r+=1}function D(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t}function A(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function H(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length,i=[],a=-1;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i}function N(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length,i=[],a=-1;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i}function P(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function x(e){return A(e,(function(e,t){return e+t}),0)}function Y(e){return A(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)}function I(e){return A(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)}function j(e){return e.length?x(e)/e.length:0}function F(e){return A(e,(function(e,t){return e.concat(Array.isArray(t)?F(t):t)}),[])}function W(e){var t=[];return P(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function U(e){var t;return Array.isArray(e)?t=[]:(t={},ee(e,(function(e,n){"__children"!==n&&(e&&"object"===V(e)&&!Array.isArray(e)?t[n]=U(e):Array.isArray(e)?e.length&&"object"===V(e[0])&&!Array.isArray(e[0])?t[n]=[U(e[0])]:t[n]=[]:t[n]=null)}))),t}function z(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function G(e,t){return ee(t,(function(t,n){e[n]=t})),e}function q(e,t){ee(t,(function(n,r){t[r]&&"object"===V(t[r])?(e[r]||(Array.isArray(t[r])?e[r]=[]:"[object Date]"===Object.prototype.toString.call(t[r])?e[r]=t[r]:e[r]={}),q(e[r],t[r])):e[r]=t[r]}))}function X(e){return"object"===V(e)?JSON.parse(JSON.stringify(e)):e}function K(e){var t={};return ee(e,(function(e,n){t[n]=e})),t}function J(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return P(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),ee(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));var r,o,i;"function"==typeof t?e.prototype[n]=t:Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||Q(e))&&(e=X(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}))})),e}function $(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Q(e){return"[object Object]"===Object.prototype.toString.call(e)}function Z(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)}function ee(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function te(e,t){var n=t.split("."),r=e;return ee(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r}function ne(e){return Q(e)?function e(t){var n=0;return Q(t)?ee(t,(function(t){n+=e(t)})):n+=1,n}(e):0}function re(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),o=(B(t={_touched:!1},r,e),B(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(o,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),o}function oe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e,t,n){return t&&ie(e.prototype,t),n&&ie(e,n),e}n(19693),n(68763),n(80115),n(58649);var se=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","modifyGetCellCoords","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","skipLengthCache","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions"],le=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalBucket=this.createEmptyBucket()}return ae(e,null,[{key:"getSingleton",value:function(){return ue}}]),ae(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return P(se,(function(t){return e[t]=[]})),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))P(t,(function(t){return n.add(e,t,r)}));else{var o=this.getBucket(r);if(void 0===o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&P(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?P(t,(function(t){return n.once(e,t,r)})):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,o,i,a,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c<u;)if(l[c]&&!l[c].skip){var h=l[c].call(e,n,r,o,i,a,s);void 0!==h&&(n=h),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var f=this.getBucket(e)[t],d=f?f.length:0,m=0;if(d)for(;m<d;)if(f[m]&&!f[m].skip){var p=f[m].call(e,n,r,o,i,a,s);void 0!==p&&(n=p),f[m]&&f[m].runOnce&&this.remove(t,f[m],e),m+=1}else m+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ee(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||se.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&se.splice(se.indexOf(e),1)}},{key:"isRegistered",value:function(e){return se.indexOf(e)>=0}},{key:"getRegistered",value:function(){return se}}]),e}(),ue=new le;const ce=le;function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t,n){return t&&he(e.prototype,t),n&&he(e,n),e}n(41412),n(4632),n(68329);var de=new WeakMap,me=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,o=t.totalItems,i=t.itemSizeFn,a=t.overrideFn,s=t.calculationType,l=t.stretchMode,u=t.stretchingItemWidthFn,c=void 0===u?function(e){return e}:u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),de.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:o,columnWidthFn:i,overrideFn:a,calculationType:s,stretchingColumnWidthFn:c}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=l,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return fe(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),fe(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=de.get(this),i=o.calculationType,a=o.overrideFn,s=o.scrollOffset,l=o.totalColumns,u=o.viewportWidth,c=0;c<l;c++)if(e=this._getColumnWidth(c),t<=s&&2!==i&&(this.startColumn=c),t>=s&&t+(2===i?e:0)<=s+(s>0?u+1:u)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=c),this.endColumn=c),r.push(t),t+=e,2!==i&&(this.endColumn=c),t>=s+u){n=!1;break}if(this.endColumn===l-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var h=r[this.endColumn]+e-r[this.startColumn-1];if((h<=u||2!==i)&&(this.startColumn-=1),h>u)break}1===i&&null!==this.startColumn&&a&&a(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),l<this.endColumn&&(this.endColumn=l-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=de.get(this),r=n.totalColumns,o=0,i=0;i<r;i++){var a=this._getColumnWidth(i),s=n.stretchingColumnWidthFn(void 0,i);"number"==typeof s?t-=s:o+=a}var l=t-o;if("all"===this.stretch&&l>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var u=this._getColumnWidth(r-1),c=l+u;this.stretchLastWidth=c>=0?c:u}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,r=de.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var s=0;s<this.stretchAllColumnsWidth.length;s++)n+=this.stretchAllColumnsWidth[s];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===de.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=de.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}]),e}();const pe=me;function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),e}var ge=new WeakMap;const we=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,o=t.totalItems,i=t.itemSizeFn,a=t.overrideFn,s=t.calculationType,l=t.scrollbarHeight;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge.set(this,{viewportHeight:n,scrollOffset:r,totalRows:o,rowHeightFn:i,overrideFn:a,calculationType:s,horizontalScrollbarHeight:l}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return ve(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),ve(e,[{key:"calculate",value:function(){for(var t,n=0,r=!0,o=[],i=ge.get(this),a=i.calculationType,s=i.overrideFn,l=i.rowHeightFn,u=i.scrollOffset,c=i.totalRows,h=i.viewportHeight,f=i.horizontalScrollbarHeight||0,d=0;d<c;d++)if(t=l(d),isNaN(t)&&(t=e.DEFAULT_HEIGHT),n<=u&&2!==a&&(this.startRow=d),n>=u&&n+(2===a?t:0)<=u+h-f&&(null===this.startRow&&(this.startRow=d),this.endRow=d),o.push(n),n+=t,2!==a&&(this.endRow=d),n>=u+h-f){r=!1;break}if(this.endRow===c-1&&r)for(this.startRow=this.endRow;this.startRow>0;){var m=o[this.endRow]+t-o[this.startRow-1];if((m<=h-f||2!==a)&&(this.startRow-=1),m>=h-f)break}1===a&&null!==this.startRow&&s&&s(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),c<this.endRow&&(this.endRow=c-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),e}();function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _e=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.row=null,this.col=null,void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}var t,n;return t=e,n=[{key:"isValid",value:function(e){return!(this.row<0||this.col<0||this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}],n&&be(t.prototype,n),e}();const Me=_e;function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(47746),n(43148);var Se=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.highlight=t,this.from=n,this.to=r}var t,n;return t=e,n=[{key:"setHighlight",value:function(e){return this.highlight=e,this}},{key:"setFrom",value:function(e){return this.from=e,this}},{key:"setTo",value:function(e){return this.to=e,this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getTopLeftCorner(),o=this.getBottomRightCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getTopRightCorner().col>=e.getTopLeftCorner().col&&this.getTopRightCorner().col<=e.getTopRightCorner().col||this.getTopLeftCorner().col<=e.getTopRightCorner().col&&this.getTopLeftCorner().col>=e.getTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getBottomRightCorner().row>=e.getTopRightCorner().row&&this.getBottomRightCorner().row<=e.getBottomRightCorner().row||this.getTopRightCorner().row<=e.getBottomRightCorner().row&&this.getTopRightCorner().row>=e.getTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=new Me(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new Me(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),r=this.getDirection(),o=e.getTopLeftCorner(),i=e.getBottomRightCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),l=Math.max(n.row,i.row),u=Math.max(n.col,i.col),c=new Me(a,s),h=new Me(l,u);return this.from=c,this.to=h,this.setDirection(r),this.highlight.row===this.getBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=o[0],this.to=o[1]}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopLeftCorner",value:function(){return new Me(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new Me(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new Me(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new Me(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new Me(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new Me(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new Me(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new Me(t.to.row,t.to.col))))||e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner())}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof Me))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new Me(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new Me(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new Me(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new Me(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===l&&u.push("right"),n===a&&u.push("bottom"),r===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(new Me(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(new Me(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++)if(!1===e(r,o))return}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}}],n&&ke(t.prototype,n),e}();const Ce=Se;n(80475),n(14913),n(79073),n(40173);var Te=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},Ee={chrome:Te((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),edge:Te((function(e){return/Edge/.test(e)})),ie:Te((function(e){return/Trident/.test(e)})),ie8:Te((function(){return!document.createTextNode("test").textContent})),ie9:Te((function(){return!!document.documentMode})),mobile:Te((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:Te((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,r=e.vendor,o=void 0===r?navigator.vendor:r;ee(Ee,(function(e){(0,e.test)(n,o)}))}function Re(){return Ee.chrome.value}function Le(){return Ee.edge.value}function De(){return Ee.ie.value}function Ae(){return Ee.ie8.value}function He(){return Ee.ie9.value}function Ne(){return Ee.ie.value||Ee.edge.value}function Pe(){return Ee.mobile.value}function xe(){return Ee.safari.value}function Ye(e){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}Oe(),n(78636),n(18772);for(var Ie,je,Fe,We,Be,Ve,Ue=0,ze=["ms","moz","webkit","o"],Ge=window.requestAnimationFrame,qe=window.cancelAnimationFrame,Xe=0;Xe<ze.length&&!Ge;++Xe)Ge=window["".concat(ze[Xe],"RequestAnimationFrame")],qe=window["".concat(ze[Xe],"CancelAnimationFrame")]||window["".concat(ze[Xe],"CancelRequestAnimationFrame")];function Ke(e){return Ge.call(window,e)}function Je(){return!!document.documentElement.classList}function $e(){return!!document.createTextNode("test").textContent}function Qe(){return!!window.getComputedStyle}function Ze(e){qe.call(window,e)}function et(){return"ontouchstart"in window}function tt(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))}function nt(){return void 0===Ie&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),Ie=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}(),Ie}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return je||(je="object"===("undefined"==typeof Intl?"undefined":Ye(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})}function ot(){if(void 0!==Fe)return Fe;try{var e={get passive(){Fe=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){Fe=!1}return Fe}function it(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function at(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r}function st(e,t,n){for(var r=e;null!==r&&r!==n;){if(r.nodeType===Node.ELEMENT_NODE&&(t.indexOf(r.nodeName)>-1||t.indexOf(r)>-1))return r;r=r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode}return null}function lt(e,t,n){for(var r=[],o=e;o&&(o=st(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null}function ut(e,t){var n=e.parentNode,r=[];for("string"==typeof t?r=Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function ct(e){var t=!1,n=ht(e);function r(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="hot-table".toUpperCase()}for(;null!==n;){if(r(n)){t=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t=r(n.host))break;n=n.host}n=n.parentNode}return t}function ht(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function ft(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function dt(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t}function mt(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null}function pt(e){var t=[];if(!e||!e.length)return t;for(var n=0;e[n];)t.push(e[n]),n+=1;return t}if(Ge||(Ge=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Ue)),r=window.setTimeout((function(){e(t+n)}),n);return Ue=t+n,r}),qe||(qe=function(e){clearTimeout(e)}),Je()){var yt=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};We=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},Be=function(e,t){var n,r=e.ownerDocument,o=t;if("string"==typeof o&&(o=o.split(" ")),(o=pt(o)).length>0)if(yt(r))(n=e.classList).add.apply(n,it(o));else for(var i=0;o&&o[i];)e.classList.add(o[i]),i+=1},Ve=function(e,t){var n,r=t;if("string"==typeof r&&(r=r.split(" ")),(r=pt(r)).length>0)if(yt)(n=e.classList).remove.apply(n,it(r));else for(var o=0;r&&r[o];)e.classList.remove(r[o]),o+=1}}else{var vt=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};We=function(e,t){return void 0!==e.className&&vt(t).test(e.className)},Be=function(e,t){var n=0,r=e.className,o=t;if("string"==typeof o&&(o=o.split(" ")),""===r)r=o.join(" ");else for(;o&&o[n];)vt(o[n]).test(r)||(r+=" ".concat(o[n])),n+=1;e.className=r},Ve=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" "));o&&o[n];)r=r.replace(vt(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function gt(e,t){return We(e,t)}function wt(e,t){return Be(e,t)}function bt(e,t){return Ve(e,t)}function _t(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var n=e.childNodes,r=n.length-1;r>=0;r--)_t(n[r],e)}function Mt(e){for(var t;t=e.lastChild;)e.removeChild(t)}var kt,St=/(<(.*)>|&(.*);)/;function Ct(e,t){St.test(t)?e.innerHTML=t:Tt(e,t)}function Tt(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?$e?n.textContent=t:n.data=t:(Mt(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function Et(e){for(var t=e.ownerDocument.documentElement,n=e;ft(n)!==t;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return Et(n.host.impl);if(n.host)return Et(n.host);throw new Error("Lost in Web Components world")}return!1}if(n.style&&"none"===n.style.display)return!1;n=n.parentNode}return!0}function Ot(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,l=e;if(nt()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(o=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};for(t=l.offsetLeft,n=l.offsetTop,r=l;(l=l.offsetParent)&&l!==i.body;)t+=l.offsetLeft,n+=l.offsetTop,r=l;return r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop),{left:t,top:n}}function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?Rt(t):e.scrollTop}function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?Lt(t):e.scrollLeft}function Ht(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(n=(t=e.document?e.document:e).defaultView);for(var r=["auto","scroll"],o=Qe(),i=e.parentNode;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,l=a.overflowX,u=a.overflowY;if([s,l,u].includes("scroll"))return i;if(o){var c=n.getComputedStyle(i);if(s=c.overflow,l=c.overflowX,u=c.overflowY,r.includes(s)||r.includes(l)||r.includes(u))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(u)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(l)||r.includes(s)))return i;i=i.parentNode}return n}function Nt(e){for(var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=xt(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n}function Pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(e){if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=xt(e,n);return""!==o[t]&&void 0!==o[t]?o[t]:void 0}}function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function Yt(e){return e.offsetWidth}function It(e){return nt()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function jt(e){return e.clientHeight||e.innerHeight}function Ft(e){return e.clientWidth||e.innerWidth}function Wt(e,t,n){var r=e.defaultView;r||(r=e.document?e:e.ownerDocument.defaultView),r.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on".concat(t),n)}function Bt(e,t,n){var r=e.defaultView;r||(r=e.document?e:e.ownerDocument.defaultView),r.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on".concat(t),n)}function Vt(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0}function Ut(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0}function zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";return e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text),n}function Gt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()}function qt(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return void 0===kt&&(kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}(e)),kt}function Kt(e){return e.offsetWidth!==e.clientWidth}function Jt(e){return e.offsetHeight!==e.clientHeight}function $t(e,t,n){Ae()||He()?(e.style.top=n,e.style.left=t):xe()?(e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"),e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)")):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")}function Qt(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function Zt(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function en(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function tn(e){return en(e)&&-1===e.className.indexOf("handsontableInput")&&-1===e.className.indexOf("copyPaste")}function nn(e){tn(e.ownerDocument.activeElement)||e.select()}function rn(e){return"function"==typeof e}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;return function(){for(var i=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=Date.now(),c=!1;r.lastCallThrottled=!0,n||(n=u,c=!0);var h=t-(u-n);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout((function(){r.lastCallThrottled=!1,e.apply(i,s),n=0,o=void 0}),h)),r}}function an(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=on(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:200),r=t;function o(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return r?(r-=1,e.apply(this,o)):n.apply(this,o)}return o.clearHits=function(){r=t},o}function sn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;return function(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((function(){t=e.apply(o,a)}),n),t}}function ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(o,(function(e,t){return t(e)}),r.apply(this,t))}}function un(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}}function cn(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])}function hn(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])}function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(10557);var dn=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t,this.total=n,this.countTH=r}var t,n;return t=e,n=[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}],n&&fn(t.prototype,n),e}();const mn=dn;function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var yn=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t,this.total=n,this.countTH=r}var t,n;return t=e,n=[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}],n&&pn(t.prototype,n),e}();const vn=yn;function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var wn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}var t,n;return t=e,n=[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}],n&&gn(t.prototype,n),e}();function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=new wn,this.workingSpace=0,this.sharedSize=null}var t,n;return t=e,n=[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof wn}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=1,e.workingSpace=2,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=2,e.workingSpace=1,this.sharedSize=e.getViewSize()}}],n&&bn(t.prototype,n),e}();function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kn=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootNode=t,this.nodesPool=n,this.sizeSet=new _n,this.childNodeType=r.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}var t,n;return t=e,n=[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var r=e.firstElementChild;r;){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(1))break;r=r.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize().nextSize,o=this.getRenderedChildCount();o<r;){var i=this.nodesPool();!n||n&&t.isPlaceOn(2)?e.appendChild(i):e.insertBefore(i,e.firstChild),o+=1}for(var a=n&&t.isPlaceOn(1);o>r;)e.removeChild(a?e.firstChild:e.lastChild),o-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(2)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}],n&&Mn(t.prototype,n),e}();function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tn(e){return Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tn(e)}function En(e,t){return En=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},En(e,t)}var On=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Sn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Tn(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&En(e,t)}(t,e),n=t,(r=[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}])&&Cn(n.prototype,r),t}(kn);function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ln=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nodeType=t.toUpperCase()}var t,n;return t=e,(n=[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}])&&Rn(t.prototype,n),e}();function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var An=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nodesPool="string"==typeof t?new Ln(t):null,this.nodeType=t,this.rootNode=n,this.table=null,this.renderedNodes=0}var t,n;return t=e,n=[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}],n&&Dn(t.prototype,n),e}();function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e){return Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pn(e)}function xn(e,t){return xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xn(e,t)}var Yn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t){return!t||"object"!==Hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Pn(t).call(this,"TH"))).orderViews=new WeakMap,e.sourceRowIndex=0,e}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xn(e,t)}(t,e),n=t,(r=[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new On(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var h=0;h<r;h++){u.render();var f=u.getCurrentNode();f.className="",f.removeAttribute("style"),n[h](s,f,h)}u.end()}}}])&&Nn(n.prototype,r),t}(An);function In(e){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wn(e,t)}var Bn=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==In(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Fn(t).call(this,null,e))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wn(e,t)}(t,e),n=t,(r=[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&Mt(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t++)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s++){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}])&&jn(n.prototype,r),t}(An);function Vn(e){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(e)}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zn(e){return zn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zn(e)}function Gn(e,t){return Gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gn(e,t)}var qn=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Vn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,zn(t).call(this,null,e))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gn(e,t)}(t,e),n=t,(r=[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&wt(u,"rowHeader")}}])&&Un(n.prototype,r),t}(An),Xn=(n(12824),n(4657),n(48825),n(95093)),Kn=n.n(Xn);function Jn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=A(e,(function(e,t,r){return e+t.replace(/(?:\r?\n\s+)/g,"")+(n[r]?n[r]:"")}),"");return o.trim()}function $n(){var e=rr(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.']);return $n=function(){return e},e}function Qn(){var e=rr(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.']);return Qn=function(){return e},e}function Zn(){var e=rr(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.']);return Zn=function(){return e},e}function er(){var e=rr(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."]);return er=function(){return e},e}function tr(){var e=rr(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."]);return tr=function(){return e},e}function nr(){var e=rr(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."]);return nr=function(){return e},e}function rr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ir(e){var t;switch(or(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t}function ar(e){return void 0!==e}function sr(e){return void 0===e}function lr(e){return null===e||""===e||sr(e)}function ur(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var cr="length",hr=function(e){return parseInt(e,16)},fr=function(e){return parseInt(e,10)},dr=function(e,t,n){return e.substr(t,n)},mr=function(e){return e.codePointAt(0)-65},pr=function(e){return"".concat(e).replace(/\-/g,"")},yr=function(e){return hr(dr(pr(e),hr("12"),mr("F")))/(hr(dr(pr(e),mr("B"),~~![][cr]))||9)},vr=function(){return"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)},gr=!1,wr={invalid:function(){return Jn(nr())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return Jn(tr(),t,n,t)},missing:function(){return Jn(er())},non_commercial:function(){return""}},br={invalid:function(){return Jn(Zn())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return Jn(Qn(),t,n,t)},missing:function(){return Jn($n())},non_commercial:function(){return""}};function _r(e,t){var n,r=!lr(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="7.2.2",a="invalid",s="invalid",l=function(e){var t=[][cr],n=t;if(e[cr]!==mr("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=mr(o.shift());i;i=mr(o.shift()||"A"))--i<""[cr]?n|=(fr("".concat(fr(hr(r)+(hr(dr(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=dr(e,i,i?1===o[cr]?9:8:6);return n===t}(e=pr(e||""));if(r||o||l)if(l){var u=Kn()("23/10/2019","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),h=yr(e);if(n=Kn()(864e5*(h+1),"x").format("MMMM DD, YYYY"),c>h){var f=Kn()().diff(u,"days");a=f<=1?"valid":"expired",s=f<=15?"valid":"expired"}else a="valid",s="valid"}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";if(vr()&&(a="valid",s="valid"),gr||"valid"===a||(wr[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](wr[a]({keyValidityDate:n,hotVersion:i})),gr=!0),"valid"!==s&&t.parentNode&&br[s]({keyValidityDate:n,hotVersion:i})){var d=document.createElement("div");d.id="hot-display-license-info",d.innerHTML=br[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(d,t.nextSibling)}}function Mr(){var e;ar(console)&&(e=console).warn.apply(e,arguments)}function kr(e){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(e)}function Sr(){var e,t,n=(e=['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number \n of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],(t=['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number\\x20\n of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'])||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Sr=function(){return n},n}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tr(e){return Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tr(e)}function Er(e,t){return Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Er(e,t)}var Or=!1,Rr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==kr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Tr(t).call(this,"TR",e))).orderView=new kn(e,(function(e){return n.nodesPool.obtain(e)}),n.nodeType),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Er(e,t)}(t,e),n=t,(r=[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!Or&&e>1e3&&(Or=!0,Mr(Jn(Sr()))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}])&&Cr(n.prototype,r),t}(An);function Lr(e){return Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(e)}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ar(e){return Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(e)}function Hr(e,t){return Hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hr(e,t)}var Nr=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t){return!t||"object"!==Lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ar(t).call(this,"TD"))).orderViews=new WeakMap,e.sourceRowIndex=0,e}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hr(e,t)}(t,e),n=t,(r=[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new On(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),u=o.obtainOrderView(s);l.prependView(u).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var c=0;c<n;c++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(c);gt(h,"hide")||(h.className=""),h.removeAttribute("style"),this.table.cellRenderer(a,f,h)}l.end()}}}])&&Dr(n.prototype,r),t}(An);function Pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xr=function(){function e(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cellRenderer;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=n}var t,n;return t=e,n=[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}],n&&Pr(t.prototype,n),e}();function Yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ir=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,o=t.COLGROUP,i=t.TBODY,a=t.rowUtils,s=t.columnUtils,l=t.cellRenderer;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=new xr(n,{cellRenderer:l}),this.renderer.setRenderers({rowHeaders:new Yn,columnHeaders:new Bn(r),colGroup:new qn(o),rows:new Rr(i),cells:new Nr}),this.renderer.setAxisUtils(a,s)}var t,n;return t=e,(n=[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}])&&Yr(t.prototype,n),e}();function jr(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function Fr(e){return!1===e.isImmediatePropagationEnabled}function Wr(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Br(e){if(e.pageX)return e.pageX;var t=e.target.ownerDocument.defaultView;return e.clientX+Lt(t)}function Vr(e){if(e.pageY)return e.pageY;var t=e.target.ownerDocument.defaultView;return e.clientY+Rt(t)}function Ur(e){return 2===e.button}function zr(e){return 0===e.button}function Gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qr=0,Xr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}var t,n;return t=e,n=[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context;function a(e){n.call(this,Kr(i,e))}return"boolean"==typeof o||ot()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:a,options:o,eventManager:this}),e.addEventListener(t,a,o),qr+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;i;)if(i-=1,(r=this.context.eventListeners[i]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),qr-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];n&&this.removeEventListener(n.element,n.event,n.callback,e)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents")).initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}],n&&Gr(t.prototype,n),e}();function Kr(e,t){var n,r,o,i,a,s="HOT-TABLE";t.isTargetWebComponent=!1,t.realTarget=t.target;var l=t.stopImmediatePropagation;if(t.stopImmediatePropagation=function(){l.apply(this),jr(this)},!Xr.isHotTableEnv)return t;for(a=(t=ht(t)).path?t.path.length:0;a;){if(a-=1,t.path[a].nodeName===s)n=!0;else if(n&&t.path[a].shadowRoot){i=t.path[a];break}0!==a||i||(i=t.path[a])}return i||(i=t.target),t.isTargetWebComponent=!0,tt()?t.realTarget=t.srcElement||t.toElement:(oe(e,"hot")||e.isHotTableEnv||e.wtTable)&&(oe(e,"hot")?r=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?r=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(r=e.wtTable.TABLE.parentNode.parentNode),o=st(t.target,[s],r),t.realTarget=o&&r.querySelector(s)||t.target),Object.defineProperty(t,"target",{get:function(){return ht(i)},enumerable:!0,configurable:!0}),t}const Jr=Xr;function $r(e){return e[0].toUpperCase()+e.substr(1)}function Qr(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=n.length;o;){var i=ir(n[o-=1]).toLowerCase();-1===e.indexOf(i)&&e.push(i)}return 1===e.length}function Zr(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function eo(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function to(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,(function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]}))}var no=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi;function ro(e){return"".concat(e).replace(no,"")}function oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var io=new WeakMap,ao=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.eventManager=new Jr(t),io.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}var t,n;return t=e,n=[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.instance.wtTable.holder,"contextmenu",(function(t){return e.onContextMenu(t)})),this.eventManager.addEventListener(this.instance.wtTable.TABLE,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(this.instance.wtTable.TABLE,"mouseout",(function(t){return e.onMouseOut(t)}));var t=function(){e.eventManager.addEventListener(e.instance.wtTable.holder,"touchstart",(function(t){return e.onTouchStart(t)})),e.eventManager.addEventListener(e.instance.wtTable.holder,"touchend",(function(t){return e.onTouchEnd(t)})),e.instance.momentumScrolling||(e.instance.momentumScrolling={}),e.eventManager.addEventListener(e.instance.wtTable.holder,"scroll",(function(){clearTimeout(e.instance.momentumScrolling._timeout),e.instance.momentumScrolling.ongoing||e.instance.getSetting("onBeforeTouchScroll"),e.instance.momentumScrolling.ongoing=!0,e.instance.momentumScrolling._timeout=setTimeout((function(){e.instance.touchApplied||(e.instance.momentumScrolling.ongoing=!1,e.instance.getSetting("onAfterMomentumScroll"))}),200)}))};Pe()?t():(et()&&t(),e.eventManager.addEventListener(e.instance.wtTable.holder,"mouseup",(function(t){return e.onMouseUp(t)})),e.eventManager.addEventListener(e.instance.wtTable.holder,"mousedown",(function(t){return e.onMouseDown(t)})))}},{key:"selectedCellWasTouched",value:function(e){var t=io.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var r=[n.row,t.selectedCellBeforeTouchEnd.from.row],o=r[0],i=r[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return o===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=lt(e,["TD","TH"],this.instance.wtTable.TABLE);return n?(t.coords=this.instance.wtTable.getCoords(n),t.TD=n):gt(e,"wtBorder")&&gt(e,"current")?(t.coords=this.instance.selections.getCell().cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):gt(e,"wtBorder")&&gt(e,"area")&&this.instance.selections.createOrGetArea().cellRange&&(t.coords=this.instance.selections.createOrGetArea().cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=io.get(this),n=this.instance.rootDocument.activeElement,r=un(at,e.realTarget),o=e.realTarget;if(o!==n&&r(0)!==n&&r(1)!==n){var i=this.parentCell(o);gt(o,"corner")?this.instance.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.instance.hasSetting("onCellMouseDown")&&this.instance.getSetting("onCellMouseDown",e,i.coords,i.TD,this.instance),2!==e.button&&i.TD&&(t.dblClickOrigin[0]=i.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout((function(){t.dblClickOrigin[0]=null}),1e3))}}},{key:"onContextMenu",value:function(e){if(this.instance.hasSetting("onCellContextMenu")){var t=this.parentCell(e.realTarget);t.TD&&this.instance.getSetting("onCellContextMenu",e,t.coords,t.TD,this.instance)}}},{key:"onMouseOver",value:function(e){if(this.instance.hasSetting("onCellMouseOver")){var t=this.instance.wtTable.TABLE,n=lt(e.realTarget,["TD","TH"],t),r=this.instance.cloneSource||this.instance;n&&n!==r.lastMouseOver&&ut(n,t)&&(r.lastMouseOver=n,this.instance.getSetting("onCellMouseOver",e,this.instance.wtTable.getCoords(n),n,this.instance))}}},{key:"onMouseOut",value:function(e){if(this.instance.hasSetting("onCellMouseOut")){var t=this.instance.wtTable.TABLE,n=lt(e.realTarget,["TD","TH"],t),r=lt(e.relatedTarget,["TD","TH"],t);n&&n!==r&&ut(n,t)&&this.instance.getSetting("onCellMouseOut",e,this.instance.wtTable.getCoords(n),n,this.instance)}}},{key:"onMouseUp",value:function(e){if(2!==e.button){var t=io.get(this),n=this.parentCell(e.realTarget);n.TD&&this.instance.hasSetting("onCellMouseUp")&&this.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,this.instance),n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?(gt(e.realTarget,"corner")?this.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,this.instance):this.instance.getSetting("onCellDblClick",e,n.coords,n.TD,this.instance),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout((function(){t.dblClickOrigin[1]=null}),500))}}},{key:"onTouchStart",value:function(e){io.get(this).selectedCellBeforeTouchEnd=this.instance.selections.getCell().cellRange,this.instance.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t=e.target;this.instance.touchApplied=!1,!1===this.selectedCellWasTouched(t)&&["A","BUTTON","INPUT"].includes(t.tagName)&&e.preventDefault(),this.onMouseUp(e)}},{key:"destroy",value:function(){var e=io.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}],n&&oo(t.prototype,n),e}();const so=ao;n(58379);var lo={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL:17,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88};function uo(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function co(e){return-1!==[lo.ARROW_DOWN,lo.ARROW_UP,lo.ARROW_LEFT,lo.ARROW_RIGHT,lo.HOME,lo.END,lo.DELETE,lo.BACKSPACE,lo.F1,lo.F2,lo.F3,lo.F4,lo.F5,lo.F6,lo.F7,lo.F8,lo.F9,lo.F10,lo.F11,lo.F12,lo.TAB,lo.PAGE_DOWN,lo.PAGE_UP,lo.ENTER,lo.ESCAPE,lo.SHIFT,lo.CAPS_LOCK,lo.ALT].indexOf(e)}function ho(e){var t=[];return navigator.platform.includes("Mac")?t.push(lo.COMMAND_LEFT,lo.COMMAND_RIGHT,lo.COMMAND_FIREFOX):t.push(lo.CONTROL),t.includes(e)}function fo(e){return[lo.CONTROL,lo.COMMAND_LEFT,lo.COMMAND_RIGHT,lo.COMMAND_FIREFOX].includes(e)}function mo(e,t){var n=t.split("|"),r=!1;return P(n,(function(t){if(e===lo[t])return r=!0,!1})),r}function po(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var yo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t;var n=this.wot,r=n.rootDocument,o=n.rootWindow,i=n.wtTable,a=parseInt(o.getComputedStyle(r.body).lineHeight,10),s=1.2*parseInt(o.getComputedStyle(r.body).fontSize,10);this.instance=this.wot,this.eventManager=new Jr(this.wot),this.scrollbarSize=Xt(r),this.wot.update("scrollbarWidth",this.scrollbarSize),this.wot.update("scrollbarHeight",this.scrollbarSize);var l="hidden"===o.getComputedStyle(i.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=l?i.holder:Ht(i.TABLE),this.topOverlay=void 0,this.bottomOverlay=void 0,this.leftOverlay=void 0,this.topLeftCornerOverlay=void 0,this.bottomLeftCornerOverlay=void 0,this.prepareOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.browserLineHeight=a||s,this.registerListeners(),this.lastScrollX=o.scrollX,this.lastScrollY=o.scrollY}var t,n;return t=e,n=[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=No.createOverlay(No.CLONE_TOP,this.wot),No.hasOverlay(No.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),No.hasOverlay(No.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=No.createOverlay(No.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=No.createOverlay(No.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=No.createOverlay(No.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=No.createOverlay(No.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=No.createOverlay(No.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wot.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.wot,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.leftOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wot.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!Re())&&this.eventManager.addEventListener(this.wot.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.leftOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wot.getSetting("onWindowResize")}),200)}))}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.wot.rootWindow,n=this.leftOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.wot.rootWindow,r=this.leftOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=mo(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.browserLineHeight,n=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*t,n+=n*t);var o=this.scrollVertically(n),i=this.scrollHorizontally(r);return o||i}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.wot.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.leftOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wot,t=e.rootWindow,n=e.wtTable;"hidden"===t.getComputedStyle(n.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=n.holder:this.scrollableElement=Ht(n.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,r=t.clientHeight;n===this.spreaderLastSize.width&&r===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=r,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtViewport,r=t.wtTable,o=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),a=n.getRowHeaderWidth(),s=n.getColumnHeaderHeight(),l=r.hider.style;if(l.width="".concat(a+this.leftOverlay.sumCellSizes(0,o),"px"),l.height="".concat(s+this.topOverlay.sumCellSizes(0,i)+1,"px"),this.scrollbarSize>0){var u=r.wtRootElement,c=u.scrollHeight,h=u.scrollWidth,f=r.holder,d=f.scrollHeight,m=f.scrollWidth;this.hasScrollbarRight=c<d,this.hasScrollbarBottom=h<m,this.hasScrollbarRight&&r.hider.scrollWidth+this.scrollbarSize>h?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&r.hider.scrollHeight+this.scrollbarSize>c&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wot.wtTable.isVisible()&&(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return P(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}}],n&&po(t.prototype,n),e}();const vo=yo;function go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var wo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t}var t,n;return t=e,n=[{key:"scrollViewport",value:function(e,t,n,r,o){if(e.col<0||e.row<0)return!1;var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){if(!this.wot.drawn)return!1;var r=this._getVariables(),o=r.fixedColumnsLeft,i=r.leftOverlay,a=r.totalColumns,s=!1;if(e>=0&&e<=Math.max(a-1,0)){var l=this.getFirstVisibleColumn(),u=this.getLastVisibleColumn();e>=o&&l>-1&&(e<l||n)?s=i.scrollTo(e):(-1===u||u>-1&&(e>u||t))&&(s=i.scrollTo(e,!0))}return s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.wot.drawn)return!1;var r=this._getVariables(),o=r.fixedRowsBottom,i=r.fixedRowsTop,a=r.topOverlay,s=r.totalRows,l=!1;if(e>=0&&e<=Math.max(s-1,0)){var u=this.getFirstVisibleRow(),c=this.getLastVisibleRow();e>=i&&u>-1&&(e<u||t)?l=a.scrollTo(e):(-1===c||c>-1&&(e>c&&e<s-o||n))&&(l=a.scrollTo(e,!0))}return l}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=this.wot.rootWindow,s=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=Ot(n.wtRootElement),u=jt(n.hider),c=jt(a),h=Dt(a,a);if(l.top+u-c<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var d=o;d>0;d--)if(f+=t.sumCellSizes(d-1,d),l.top+u-f<=h){s=d;break}}}return s}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=this.wot.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var s=Ot(n.wtRootElement),l=Dt(i,i);if(s.top>l)for(var u=jt(i),c=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(c+=t.sumCellSizes(h-1,h),s.top+c-l>=u){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=this.wot.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var s=Ot(n.wtRootElement),l=Ft(n.hider),u=Ft(i),c=At(i,i);if(s.left+l-u<=c)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),s.left+l-h<=c){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=this.wot.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var s=Ot(n.wtRootElement),l=At(i,i);if(s.left>l)for(var u=Ft(i),c=r.getRowHeaderWidth(),h=1;h<=o;h++)if(c+=t.sumCellSizes(h-1,h),s.left+c-l>=u){a=h-2;break}}return a}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}],n&&go(t.prototype,n),e}();const bo=wo;function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Mo=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=r.getSetting("data",e,t);Tt(n,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onWindowResize:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},ee(this.defaults,(function(e,t){if(void 0!==n[t])r.settings[t]=n[t];else{if(void 0===e)throw new Error('A required setting "'.concat(t,'" was not provided'));r.settings[t]=e}}))}var t,n;return t=e,n=[{key:"update",value:function(e,t){var n=this;return void 0===t?ee(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this.wot}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}],n&&_o(t.prototype,n),e}();const ko=Mo;function So(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Co=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new Jr(this.wot),this.eventManager.addEventListener(this.wot.rootWindow,"resize",(function(){n.clientHeight=n.getWorkspaceHeight()}))}var t,n;return t=e,n=[{key:"getWorkspaceHeight",value:function(){var e=this.wot.rootDocument,t=this.instance.wtOverlays.topOverlay.trimmingContainer;return t===this.wot.rootWindow?e.documentElement.clientHeight:It(t)>0&&t.clientHeight>0?t.clientHeight:1/0}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wot,r=n.rootDocument,o=n.rootWindow,i=this.instance.wtOverlays.leftOverlay.trimmingContainer,a=r.documentElement.offsetWidth,s=n.getSetting("totalColumns");if(n.getSetting("preventOverflow"))return Yt(this.instance.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(a-this.getWorkspaceOffset().left,a):Math.min(this.getContainerFillWidth(),a-this.getWorkspaceOffset().left,a),i===o&&s>0&&this.sumColumnWidths(0,s-1)>e)return r.documentElement.clientWidth;if(i!==o&&("scroll"===(t=Pt(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow",o))||"hidden"===t||"auto"===t))return Math.max(e,i.clientWidth);var l=n.getSetting("stretchH");return"none"!==l&&l?e:Math.max(e,Yt(this.instance.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=this.wot.wtTable,r=0,o=e;o<t;)r+=n.getColumnWidth(o),o+=1;return r}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=this.wot.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return Ot(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return It(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){var e=this.wot.wtTable;return Yt(e.TABLE)||Yt(e.TBODY)||Yt(e.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return this.instance.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=It(this.wot.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,a=t.length;i<a;i++)o?(this.rowHeaderWidth+=Yt(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,o=this.wot,i=o.wtSettings,a=o.wtOverlays,s=o.wtTable,l=o.rootDocument;this.rowHeaderWidth=NaN,e=i.settings.renderAllRows&&1===r?1/0:this.getViewportHeight();var u=a.topOverlay.getScrollPosition()-a.topOverlay.getTableParentOffset();u<0&&(u=0);var c=o.getSetting("fixedRowsTop"),h=o.getSetting("fixedRowsBottom"),f=o.getSetting("totalRows");return c&&(u+=n=a.topOverlay.sumCellSizes(0,c),e-=n),h&&a.bottomOverlay.clone&&(e-=n=a.bottomOverlay.sumCellSizes(f-h,f)),t=s.holder.clientHeight===s.holder.offsetHeight?0:Xt(l),new we({viewportSize:e,scrollOffset:u,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return s.getRowHeight(e)},overrideFn:i.settings.viewportRowCalculatorOverride,calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.wot,n=t.wtSettings,r=t.wtOverlays,o=t.wtTable,i=t.rootDocument,a=this.getViewportWidth(),s=r.leftOverlay.getScrollPosition()-r.leftOverlay.getTableParentOffset();this.columnHeaderHeight=NaN,s<0&&(s=0);var l=t.getSetting("fixedColumnsLeft");if(l){var u=r.leftOverlay.sumCellSizes(0,l);s+=u,a-=u}return o.holder.clientWidth!==o.holder.offsetWidth&&(a-=Xt(i)),new pe({viewportSize:a,scrollOffset:s,totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return t.wtTable.getColumnWidth(e)},overrideFn:n.settings.viewportColumnCalculatorOverride,calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(2),n=this.createColumnsCalculator(2);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(1),this.columnsRenderCalculator=this.createColumnsCalculator(1)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(2),this.columnsVisibleCalculator=this.createColumnsCalculator(2)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t<o||t===o&&t>0||n>i||n===i&&n<this.wot.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,r=this.columnsRenderCalculator,o=r.startColumn,i=r.endColumn;return!(t<o||t===o&&t>0||n>i||n===i&&n<this.wot.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){ee(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}],n&&So(t.prototype,n),e}();const To=Co;function Eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Oo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=[];if(this.guid="wt_".concat(Zr()),this.rootDocument=t.table.ownerDocument,this.rootWindow=this.rootDocument.defaultView,t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=this.cloneOverlay.createTable(this,t.table),this.wtScroll=new bo(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new so(this),this.selections=this.cloneSource.selections):(this.wtSettings=new ko(this,t),this.wtTable=new Qo(this,t.table),this.wtScroll=new bo(this),this.wtViewport=new To(this),this.wtEvent=new so(this),this.selections=this.getSetting("selections"),this.wtOverlays=new vo(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var r=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;r<o;r++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[r].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){Tt(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}var t,n;return t=e,n=[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);var t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),r=this.wtSettings.getSetting("fixedRowsBottom"),o=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<n&&e.col<o)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<o&&e.row>=t-r){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<o)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-r&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];ee({rowHeaders:["array"],columnHeaders:["array"]},(function(r,o){r.indexOf("array")>-1&&e.getSetting(o).length&&n.push("ht".concat($r(o))),t.push("ht".concat($r(o)))})),bt(this.wtTable.wtRootElement.parentNode,t),wt(this.wtTable.wtRootElement.parentNode,n)}},{key:"getSetting",value:function(e,t,n,r,o){return this.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}],n&&Eo(t.prototype,n),e}();const Ro=Oo;function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Do(e,t,n){return t&&Lo(e.prototype,t),n&&Lo(e,n),e}var Ao={},Ho=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Z(this,"wot",t,{writable:!1});var n=this.wot.wtTable,r=n.TABLE,o=n.hider,i=n.spreader,a=n.holder,s=n.wtRootElement;this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=r,this.hider=o,this.spreader=i,this.holder=a,this.wtRootElement=s,this.trimmingContainer=Nt(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return Do(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error("Unsupported overlay (".concat(t,")."));Ao[t]=n}},{key:"createOverlay",value:function(e,t){return new Ao[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==Ao[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!Ao[t])&&e instanceof Ao[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),Do(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=Nt(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot,t=e.wtTable;"hidden"===e.rootWindow.getComputedStyle(t.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=Ht(t.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.wot.rootWindow,o=n<this.wot.getSetting("fixedColumnsLeft"),i=t<this.wot.getSetting("fixedRowsTop"),a=t>=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom"),s={left:this.clone.wtTable.spreader.offsetLeft,top:this.clone.wtTable.spreader.offsetTop},l={left:e.offsetLeft,top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,l,s):this.getRelativeCellPositionWithinHolder(i,a,o,l,s)}Mr("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o,i=this.wot.wtTable.wtRootElement.getBoundingClientRect(),a=0;return o=t?i.left<=0?-1*i.left:0:r.left,a=e?this.clone.wtTable.TABLE.getBoundingClientRect().top-i.top:r.top,{left:n.left+o,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.clone.cloneSource.wtOverlays.leftOverlay.getScrollPosition(),a=this.clone.cloneSource.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=i-o.left),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=a-o.top);return{left:r.left-s,top:r.top-l}}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error('Clone type "'.concat(t,'" is not supported.'));var n=this.wot,r=n.wtTable,o=n.rootDocument,i=n.rootWindow,a=o.createElement("DIV"),s=o.createElement("TABLE");a.className="ht_clone_".concat(t," handsontable"),a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.overflow="hidden",s.className=r.TABLE.className,a.appendChild(s),this.type=t,r.wtRootElement.parentNode.appendChild(a);var l=this.wot.getSetting("preventOverflow");return!0===l||"horizontal"===l&&this.type===e.CLONE_TOP||"vertical"===l&&this.type===e.CLONE_LEFT?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(r.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=r.holder:this.mainTableScrollableElement=Ht(r.TABLE),new Ro({cloneSource:this.wot,cloneOverlay:this,table:s})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;P([e.style,t.style,e.parentNode.style],(function(e){e.width="",e.height=""}))}}},{key:"destroy",value:function(){new Jr(this.clone).destroy()}}]),e}();const No=Ho;function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Yo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.headerWidths=new Map}var t,n;return t=e,(n=[{key:"getWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===Po(t)&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getWidth(e),n=this.wot.wtViewport.columnsRenderCalculator,r=null==t?this.wot.wtSettings.settings.defaultColumnWidth:t;if(n){var o=n.getStretchedColumnWidth(e,r);o&&(r=o)}return r}},{key:"getHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.wot.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=e.cloneSource,o=r?r.wtTable.holder:t.holder,i=o.offsetHeight<o.scrollHeight?Xt():0,a=e.getSetting("rowHeaderWidth");if(n.columnsRenderCalculator.refreshStretching(n.getViewportWidth()-i),null!=(a=e.getSetting("onModifyRowHeaderWidth",a)))for(var s=e.getSetting("rowHeaders").length,l=e.getSetting("defaultColumnWidth"),u=0;u<s;u++){var c=Array.isArray(a)?a[u]:a;c=null==c?l:c,this.headerWidths.set(u,c)}}}])&&xo(t.prototype,n),e}();function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var jo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t}var t,n;return t=e,(n=[{key:"getHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}])&&Io(t.prototype,n),e}();function Fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wo=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isMaster=!t.cloneOverlay,this.wot=t,this.instance=this.wot,this.TABLE=n,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,this.hasTableHeight=!0,this.hasTableWidth=!0,this.isTableVisible=!1,_t(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var o=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return r._modifyRowHeaderWidth(o)},this.rowUtils=new jo(this.wot),this.columnUtils=new Yo(this.wot),this.tableRenderer=new Ir({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wot.wtSettings.settings.cellRenderer})}var t,n;return t=e,n=[{key:"is",value:function(e){return No.isOverlayTypeOf(this.wot.cloneOverlay,e)}},{key:"fixTableDomTree",value:function(){var e=this.wot.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(e.createElement("TR"))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&gt(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&gt(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&gt(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable"),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtOverlays,r=t.wtViewport,o=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),a=t.getSetting("rowHeaders"),s=a.length,l=t.getSetting("columnHeaders"),u=l.length,c=!1,h=e;if(this.isMaster&&(this.holderOffset=Ot(this.holder),h=r.createRenderCalculators(h),s&&!t.getSetting("fixedColumnsLeft"))){var f=n.leftOverlay.getScrollPosition(),d=this.correctHeaderWidth;this.correctHeaderWidth=f>0,d!==this.correctHeaderWidth&&(h=!1)}if(this.isMaster&&(c=n.prepareOverlays()),h)this.isMaster&&r.createVisibleCalculators(),n&&n.refresh(!0);else{this.isMaster?this.tableOffset=Ot(this.TABLE):this.tableOffset=this.wot.cloneSource.wtTable.tableOffset;var m=o>0?this.getFirstRenderedRow():0,p=i>0?this.getFirstRenderedColumn():0;this.rowFilter=new vn(m,o,u),this.columnFilter=new mn(p,i,s);var y,v=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var g={};this.wot.getSetting("beforeDraw",!0,g),v=!0!==g.skipRender}if(v)if(this.tableRenderer.setHeaderContentRenderers(a,l),(this.is(No.CLONE_BOTTOM)||this.is(No.CLONE_BOTTOM_LEFT_CORNER))&&this.tableRenderer.setHeaderContentRenderers(a,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(y=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(No.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var w=Yt(this.hider),b=Yt(this.TABLE);0!==w&&b!==w&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),y!==this.wot.wtViewport.getWorkspaceWidth()&&(this.wot.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wot.getSetting("onDraw",!0)}else this.is(No.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize()}return this.refreshSelections(h),this.isMaster&&(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),c&&n.syncScrollWithMaster(),t.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.wot.wtTable.columnFilter.renderedToSource(e),i=this.wot.getSetting("columnHeaders").length,a=this.wot.wtSettings.settings.defaultRowHeight,s=this.wot.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.wot.wtTable.getColumnHeaderHeight(i),(n=this.wot.wtTable.getColumnHeader(o,i))&&(r=jt(n),(!t&&a<r||t<r)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.wot.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.wot.wtViewport.oversizedColumnHeaders[i]=s),this.wot.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot,t=e.wtTable.THEAD.childNodes,n=e.wtViewport.oversizedColumnHeaders,r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height="".concat(n[r],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wot;if((this.isMaster||this.is(No.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var t=this.getRenderedRowsCount(),n=0;n<t;n++){var r=this.rowFilter.renderedToSource(n);e.wtViewport.oversizedRows&&e.wtViewport.oversizedRows[r]&&(e.wtViewport.oversizedRows[r]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)bt(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wot;if(t.selections){var n=Array.from(t.selections),r=n.length;if(e){for(var o=[],i=0;i<r;i++){for(var a=n[i].settings,s=a.highlightHeaderClassName,l=a.highlightRowClassName,u=a.highlightColumnClassName,c=n[i].classNames,h=c.length,f=0;f<h;f++)o.includes(c[f])||o.push(c[f]);s&&!o.includes(s)&&o.push(s),l&&!o.includes(l)&&o.push(l),u&&!o.includes(u)&&o.push(u)}var d=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(d))for(var m=0;m<d.length;m++)o.push(d[m]);for(var p=o.length,y=0;y<p;y++)this.removeClassFromCells(o[y])}for(var v=0;v<r;v++)n[v].draw(t,e)}}},{key:"getCell",value:function(e){var t,n,r=e.row,o=e.col,i=this.wot.getSetting("onModifyGetCellCoords",r,o);if(i&&Array.isArray(i)){var a=(n=2,function(e){if(Array.isArray(e))return e}(t=i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}());r=a[0],o=a[1]}if(this.isRowBeforeRenderedRows(r))return-1;if(this.isRowAfterRenderedRows(r))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;if(r<0){var s=this.wot.getSetting("columnHeaders").length+r;return this.getColumnHeader(o,s)}var l=this.TBODY.childNodes[this.rowFilter.sourceToRendered(r)];if(!l&&r>=0)throw new Error("TR was expected to be rendered but is not");var u=l.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!u&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return u}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=st(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=dt(n),i=t.cellIndex;return mt(No.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||mt(No.CLONE_TOP,t,this.wtRootElement)?"THEAD"===r.nodeName&&(o-=r.childNodes.length):o=mt(No.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)||mt(No.CLONE_BOTTOM,t,this.wtRootElement)?this.wot.getSetting("totalRows")-r.childNodes.length+o:r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),i=mt(No.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||mt(No.CLONE_LEFT,t,this.wtRootElement)||mt(No.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new Me(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wot.wtSettings.settings.defaultRowHeight!=jt(this.TBODY)-1||this.wot.getSetting("fixedRowsBottom"))for(;i;)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),t=(o=(r=this.getTrForRow(n)).querySelector("th"))?jt(o):jt(r)-1,(!e&&this.wot.wtSettings.settings.defaultRowHeight<t||e<t)&&(t+=1,this.wot.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"isColumnHeaderLevelRendered",value:function(e){return e>this.wot.getSetting("columnHeaders").length-1}},{key:"isRowHeaderLevelRendered",value:function(e){return e>this.wot.getSetting("rowHeaders").length-1}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&(e=0),-1===t||e<t}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){if(e<0){var t=this.wot.getSetting("columnHeaders").length+e;return this.isColumnHeaderLevelRendered(t)}return e>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&(e=0),-1===t||e<t}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isColumnAfterRenderedColumns",value:function(e){if(e<0){var t=this.wot.getSetting("rowHeaders").length+e;return this.isRowHeaderLevelRendered(t)}return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"isVisible",value:function(){return Et(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t,n=rn(e)?e():null;return Array.isArray(n)?(t=n,n=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())[n.length-1]=this._correctRowHeaderWidth(n[n.length-1]):n=this._correctRowHeaderWidth(n),n}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}],n&&Fo(t.prototype,n),e}();const Bo=Wo;var Vo={getFirstRenderedRow:function(){var e=this.wot.wtViewport.rowsRenderCalculator.startRow;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.wot.wtViewport.rowsVisibleCalculator.startRow;return null===e?-1:e},getLastRenderedRow:function(){var e=this.wot.wtViewport.rowsRenderCalculator.endRow;return null===e?-1:e},getLastVisibleRow:function(){var e=this.wot.wtViewport.rowsVisibleCalculator.endRow;return null===e?-1:e},getRenderedRowsCount:function(){return this.wot.wtViewport.rowsRenderCalculator.count},getVisibleRowsCount:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}};Z(Vo,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});const Uo=Vo;var zo={getFirstRenderedColumn:function(){var e=this.wot.wtViewport.columnsRenderCalculator.startColumn;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.wot.wtViewport.columnsVisibleCalculator.startColumn;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.wot.wtViewport.columnsRenderCalculator.endColumn;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.wot.wtViewport.columnsVisibleCalculator.endColumn;return null===e?-1:e},getRenderedColumnsCount:function(){return this.wot.wtViewport.columnsRenderCalculator.count},getVisibleColumnsCount:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}};Z(zo,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});const Go=zo;function qo(e){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qo(e)}function Xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ko(e)}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}var $o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==qo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ko(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}(t,e),n=t,(r=[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=Nt(this.wtRootElement),t=this.wot.rootWindow;if(e===t)this.wot.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible");else{var n=e.parentElement,r=Pt(e,"height",t),o=Pt(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),u=l.width,c=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);n.insertBefore(h,e);var f=xt(h,t).height;n.removeChild(h),0===parseInt(f,10)&&(c=0)}c=Math.min(c,s),i.height="auto"===r?"auto":"".concat(c,"px"),u=Math.min(u,a),i.width="".concat(u,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||c>0,this.hasTableWidth=u>0}this.isTableVisible=Et(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot,t=e.getOverlayName(),n=e.getSetting("columnHeaders").length;if(n&&!e.wtViewport.hasOversizedColumnHeadersMarked[t]){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);e.wtViewport.hasOversizedColumnHeadersMarked[t]=!0}}}])&&Xo(n.prototype,r),t}(Bo);J($o,Uo),J($o,Go);const Qo=$o;n(34606);var Zo={getFirstRenderedColumn:function(){return 0===this.wot.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wot.getSetting("totalColumns");return Math.min(this.wot.getSetting("fixedColumnsLeft"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};Z(Zo,"MIXIN_NAME","stickyColumnsLeft",{writable:!1,enumerable:!1});const ei=Zo;function ti(e){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(e)}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ni(e)}function ri(e,t){return ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ri(e,t)}var oi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==ti(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ni(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ri(e,t)}(t,e),t}(Bo);J(oi,Uo),J(oi,ei);const ii=oi;function ai(e){return ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ai(e)}function si(e,t,n){return si=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ci(o,n.prototype),o},si.apply(null,arguments)}function li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ui(e)}function ci(e,t){return ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ci(e,t)}var hi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==ai(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ui(t).call(this,e))).clone=n.makeClone(No.CLONE_LEFT),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ci(e,t)}(t,e),n=t,r=[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return si(ii,t)}},{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(this.needFullRender&&e.holder.parentNode){var t=this.clone.wtTable.holder.parentNode,n=0,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||r&&"horizontal"===r)n=this.getScrollPosition(),Zt(t);else{var o,i,a=e.hider.getBoundingClientRect(),s=Math.ceil(a.left),l=Math.ceil(a.right);i=""===(i=e.hider.style.top)?0:i,n=o=s<0&&l-t.offsetWidth>0?-s:0,$t(t,o+="px",i)}this.adjustHeaderBordersPosition(n),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,Rt(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.defaultColumnWidth,r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=e.rootWindow,o=Xt(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,t.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=Yt(this.clone.wtTable.TABLE);i.width="".concat(0===l?l:l+4,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=Xt(this.wot.rootDocument);this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;return t&&r.offsetWidth!==r.clientWidth&&(o=Xt(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wot.getSetting("preventOverflow")||this.trimmingContainer!==this.wot.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return At(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),r=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?bt(t,"emptyRows"):wt(t,"emptyRows"),r&&!n.length)wt(t,"innerBorderLeft");else if(!r&&n.length){var o=gt(t,"innerBorderLeft");e?wt(t,"innerBorderLeft"):bt(t,"innerBorderLeft"),(!o&&e||o&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}],r&&li(n.prototype,r),t}(No);No.registerOverlay(No.CLONE_LEFT,hi);var fi={getFirstRenderedRow:function(){return 0===this.wot.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wot.getSetting("totalRows");return Math.min(this.wot.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};Z(fi,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});const di=fi;function mi(e){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mi(e)}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}function yi(e,t){return yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yi(e,t)}var vi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==mi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,pi(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yi(e,t)}(t,e),t}(Bo);J(vi,di),J(vi,Go);const gi=vi;function wi(e){return wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wi(e)}function bi(e,t,n){return bi=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ki(o,n.prototype),o},bi.apply(null,arguments)}function _i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}function ki(e,t){return ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ki(e,t)}var Si=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==wi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Mi(t).call(this,e))).clone=n.makeClone(No.CLONE_TOP),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ki(e,t)}(t,e),n=t,r=[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bi(gi,t)}},{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||n&&"vertical"===n)t=this.getScrollPosition(),Zt(e);else{var r,o,i=this.wot.wtTable,a=i.hider.getBoundingClientRect(),s=Math.ceil(a.top),l=Math.ceil(a.bottom);r=""===(r=i.hider.style.left)?0:r,t=o=s<0&&l-e.offsetHeight>0?-s:0,$t(e,r,o+="px")}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo(Lt(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.settings.defaultRowHeight,r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=e.rootWindow,o=Xt(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,t.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=It(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(0===l?l:l+4,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=Xt(this.wot.rootDocument);this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=(n.cloneSource?n.cloneSource:n).wtTable.holder,o=this.getTableParentOffset(),i=0;if(t&&r.offsetHeight!==r.clientHeight&&(i=Xt(n.rootDocument)),t){var a=n.getSetting("fixedRowsBottom"),s=n.getSetting("totalRows");o+=this.sumCellSizes(0,e+1),o-=n.wtViewport.getViewportHeight()-this.sumCellSizes(s-a,s),o+=1}else o+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return o+=i,this.setScrollPosition(o)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return Dt(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot),n=e.getCorners();t.disappear(),t.appear(n)}}},{key:"redrawAllSelectionsBorders",value:function(){var e=this,t=this.wot.selections;this.redrawSelectionBorders(t.getCell()),P(t.getAreas(),(function(t){e.redrawSelectionBorders(t)})),this.redrawSelectionBorders(t.getFill()),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?bt(t,"emptyColumns"):wt(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var n=gt(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?wt(t,"innerBorderTop"):bt(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var r=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(r)for(var o=0;o<r.length;o++)r[o].style["border-left-width"]=0}}}],r&&_i(n.prototype,r),t}(No);function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ti(e)}function Ei(e,t){return Ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ei(e,t)}No.registerOverlay(No.CLONE_TOP,Si);var Oi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Ci(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ti(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ei(e,t)}(t,e),t}(Bo);J(Oi,di),J(Oi,ei);const Ri=Oi;function Li(e){return Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(e)}function Di(e,t,n){return Di=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ni(o,n.prototype),o},Di.apply(null,arguments)}function Ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hi(e)}function Ni(e,t){return Ni=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ni(e,t)}var Pi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Hi(t).call(this,e))).clone=n.makeClone(No.CLONE_TOP_LEFT_CORNER),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ni(e,t)}(t,e),n=t,r=[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Di(Ri,t)}},{key:"shouldBeRendered",value:function(){var e=this.wot;return!(!e.getSetting("fixedRowsTop")&&!e.getSetting("columnHeaders").length||!e.getSetting("fixedColumnsLeft")&&!e.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===this.wot.rootWindow){var n=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(n.top),o=Math.ceil(n.left),i=Math.ceil(n.bottom),a=Math.ceil(n.right),s="0",l="0";t&&"vertical"!==t||o<0&&a-e.offsetWidth>0&&(s="".concat(-o,"px")),t&&"horizontal"!==t||r<0&&i-e.offsetHeight>0&&(l="".concat(-r,"px")),$t(e,s,l)}else Zt(e);var u=It(this.clone.wtTable.TABLE),c=Yt(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),e.style.height="".concat(0===u?u:u+4,"px"),e.style.width="".concat(0===c?c:c+4,"px")}}}],r&&Ai(n.prototype,r),t}(No);No.registerOverlay(No.CLONE_TOP_LEFT_CORNER,Pi);var xi={getFirstRenderedRow:function(){var e=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom");return e<0?-1:e},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wot.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wot.getSetting("totalRows");return Math.min(this.wot.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};Z(xi,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});const Yi=xi;function Ii(e){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(e)}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ji(e)}function Fi(e,t){return Fi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fi(e,t)}var Wi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Ii(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ji(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fi(e,t)}(t,e),t}(Bo);J(Wi,Yi),J(Wi,Go);const Bi=Wi;function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function Ui(e,t,n){return Ui=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&qi(o,n.prototype),o},Ui.apply(null,arguments)}function zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gi(e)}function qi(e,t){return qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qi(e,t)}var Xi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Vi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Gi(t).call(this,e))).clone=n.makeClone(No.CLONE_BOTTOM),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qi(e,t)}(t,e),n=t,r=[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ui(Bi,t)}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=this.clone.wtTable.holder.parentNode,o=Xt(n);t.holder.clientHeight===t.holder.offsetHeight&&(o=0),r.style.top="",r.style.bottom="".concat(o,"px")}},{key:"shouldBeRendered",value:function(){return!!this.wot.getSetting("fixedRowsBottom")}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0;e.style.top="";var n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||n&&"vertical"===n)t=this.getScrollPosition(),Zt(e),this.repositionOverlay();else{var r,o,i=this.wot,a=i.rootDocument,s=i.wtTable,l=s.hider.getBoundingClientRect(),u=Math.ceil(l.bottom),c=a.body.offsetHeight;r=""===(r=s.hider.style.left)?0:r,t=o=u>c?u-c:0,o+="px",e.style.top="",e.style.left=r,e.style.bottom=o}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo(Lt(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.settings.defaultRowHeight,i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=e.rootWindow,o=Xt(this.wot.rootDocument),i=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,t.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=It(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=Xt(this.wot.rootDocument);this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height="".concat(parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=Xt(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wot.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return Dt(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){if(0===this.wot.getSetting("fixedRowsBottom")&&this.wot.getSetting("columnHeaders").length>0){var t=this.wot.wtTable.holder.parentNode,n=gt(t,"innerBorderTop");e?wt(t,"innerBorderTop"):bt(t,"innerBorderTop"),(!n&&e||n&&!e)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var r=this.clone.wtTable.THEAD.querySelector("th:nth-of-type(2)");r&&(r.style["border-left-width"]=0)}}}],r&&zi(n.prototype,r),t}(No);function Ki(e){return Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ki(e)}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ji(e)}function $i(e,t){return $i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$i(e,t)}No.registerOverlay(No.CLONE_BOTTOM,Xi);var Qi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Ki(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ji(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$i(e,t)}(t,e),t}(Bo);J(Qi,Yi),J(Qi,ei);const Zi=Qi;function ea(e){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ea(e)}function ta(e,t,n){return ta=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&oa(o,n.prototype),o},ta.apply(null,arguments)}function na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ra(e)}function oa(e,t){return oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oa(e,t)}var ia=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==ea(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ra(t).call(this,e))).clone=n.makeClone(No.CLONE_BOTTOM_LEFT_CORNER),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oa(e,t)}(t,e),n=t,r=[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ta(Zi,t)}},{key:"shouldBeRendered",value:function(){var e=this.wot;return!(!e.getSetting("fixedRowsBottom")||!e.getSetting("fixedColumnsLeft")&&!e.getSetting("rowHeaders").length)}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=this.clone.wtTable.holder.parentNode,o=Xt(n);t.holder.clientHeight===t.holder.offsetHeight&&(o=0),r.style.top="",r.style.bottom="".concat(o,"px")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),e.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===e.rootWindow){var n,r,o=e.wtTable.hider.getBoundingClientRect(),i=Math.ceil(o.bottom),a=Math.ceil(o.left),s=e.rootDocument.body.offsetHeight;n=a<0?-a:0,r=i>s?i-s:0,r+="px",n+="px",t.style.top="",t.style.left=n,t.style.bottom=r}else Zt(t),this.repositionOverlay();var l=It(this.clone.wtTable.TABLE),u=Yt(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),t.style.height="".concat(l,"px"),t.style.width="".concat(u,"px")}}}],r&&na(n.prototype,r),t}(No);function aa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}No.registerOverlay(No.CLONE_BOTTOM_LEFT_CORNER,ia);var la=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n&&(this.eventManager=new Jr(t),this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}var t,n;return t=e,n=[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t,n){e.eventManager.addEventListener(e.main.childNodes[t],"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),jr(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","left","bottom","right","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),Pe()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={topLeft:t.createElement("DIV"),topLeftHitArea:t.createElement("DIV"),bottomRight:t.createElement("DIV"),bottomRightHitArea:t.createElement("DIV")},this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style},ee({position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")},(function(t,n){e.selectionHandles.styles.bottomRightHitArea[n]=t,e.selectionHandles.styles.topLeftHitArea[n]=t})),ee({position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"},(function(t,n){e.selectionHandles.styles.bottomRight[n]=t,e.selectionHandles.styles.topLeft[n]=t})),this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,r,o,i){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top="".concat(parseInt(n-a,10),"px"),this.selectionHandles.styles.topLeft.left="".concat(parseInt(r-a,10),"px"),this.selectionHandles.styles.topLeftHitArea.top="".concat(parseInt(n-s/4*3,10),"px"),this.selectionHandles.styles.topLeftHitArea.left="".concat(parseInt(r-s/4*3,10),"px"),this.selectionHandles.styles.bottomRight.top="".concat(parseInt(n+i,10),"px"),this.selectionHandles.styles.bottomRight.left="".concat(parseInt(r+o,10),"px"),this.selectionHandles.styles.bottomRightHitArea.top="".concat(parseInt(n+i-s/4,10),"px"),this.selectionHandles.styles.bottomRightHitArea.left="".concat(parseInt(r+o-s/4,10),"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,o,i=this.wot,a=i.wtTable,s=i.rootDocument,l=i.rootWindow,u=a.getRenderedRowsCount(),c=0;c<u;c+=1){var h=a.rowFilter.renderedToSource(c);if(h>=e[0]&&h<=e[2]){t=h;break}}for(var f=u-1;f>=0;f-=1){var d=a.rowFilter.renderedToSource(f);if(d>=e[0]&&d<=e[2]){n=d;break}}for(var m=a.getRenderedColumnsCount(),p=0;p<m;p+=1){var y=a.columnFilter.renderedToSource(p);if(y>=e[1]&&y<=e[3]){r=y;break}}for(var v=m-1;v>=0;v-=1){var g=a.columnFilter.renderedToSource(v);if(g>=e[1]&&g<=e[3]){o=g;break}}if(void 0!==t&&void 0!==r){var w=a.getCell(new Me(t,r)),b=t!==n||r!==o,_=b?a.getCell(new Me(n,o)):w,M=Ot(w),k=b?Ot(_):M,S=Ot(a.TABLE),C=M.top,T=M.left,E=T-S.left-1,O=k.left+Yt(_)-T;if(this.isEntireColumnSelected(t,n)){var R=this.getDimensionsFromHeader("columns",r,o,S),L=null;if(R){var D=aa(R,3);L=D[0],E=D[1],O=D[2]}L&&(w=L)}var A=C-S.top-1,H=k.top+It(_)-C;if(this.isEntireRowSelected(r,o)){var N=this.getDimensionsFromHeader("rows",t,n,S),P=null;if(N){var x=aa(N,3);P=x[0],A=x[1],H=x[2]}P&&(w=P)}var Y=xt(w,l);parseInt(Y.borderTopWidth,10)>0&&(A+=1,H=H>0?H-1:0),parseInt(Y.borderLeftWidth,10)>0&&(E+=1,O=O>0?O-1:0),this.topStyle.top="".concat(A,"px"),this.topStyle.left="".concat(E,"px"),this.topStyle.width="".concat(O,"px"),this.topStyle.display="block",this.leftStyle.top="".concat(A,"px"),this.leftStyle.left="".concat(E,"px"),this.leftStyle.height="".concat(H,"px"),this.leftStyle.display="block";var I=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(A+H-I,"px"),this.bottomStyle.left="".concat(E,"px"),this.bottomStyle.width="".concat(O,"px"),this.bottomStyle.display="block",this.rightStyle.top="".concat(A,"px"),this.rightStyle.left="".concat(E+O-I,"px"),this.rightStyle.height="".concat(H+1,"px"),this.rightStyle.display="block";var j=this.settings.border.cornerVisible;j="function"==typeof j?j(this.settings.layerLevel):j;var F=this.wot.getSetting("onModifyGetCellCoords",n,o),W=n,B=o;if(F&&Array.isArray(F)){var V=aa(F,4);W=V[2],B=V[3]}if(Pe()||!j||this.isPartRange(W,B))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(A+H-4,"px"),this.cornerStyle.left="".concat(E+O-4,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var U=Nt(a.TABLE),z=U===l;z&&(U=s.documentElement),o===this.wot.getSetting("totalColumns")-1&&(z?_.getBoundingClientRect().left:_.offsetLeft)+Yt(_)+parseInt(this.cornerDefaultStyle.width,10)/2>=Ft(U)&&(this.cornerStyle.left="".concat(Math.floor(E+O-3-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle.borderRightWidth=0),n===this.wot.getSetting("totalRows")-1&&(z?_.getBoundingClientRect().top:_.offsetTop)+It(_)+parseInt(this.cornerDefaultStyle.height,10)/2>=jt(U)&&(this.cornerStyle.top="".concat(Math.floor(A+H-3-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0),this.cornerStyle.display="block"}Pe()&&this.updateMultipleSelectionHandlesPosition(n,o,A,E,O,H)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r){var o=this.wot.wtTable,i=o.wtRootElement.parentNode,a=null,s=null,l=null,u=null,c=null,h=null,f=null,d=null;switch(e){case"rows":a=function(){return o.getRowHeader.apply(o,arguments)},s=function(){return It.apply(void 0,arguments)},l="ht__selection--rows",h="top";break;case"columns":a=function(){return o.getColumnHeader.apply(o,arguments)},s=function(){return Yt.apply(void 0,arguments)},l="ht__selection--columns",h="left"}if(i.className.includes(l)){var m=this.wot.getSetting("columnHeaders").length;if(f=a(t,m-1),d=a(n,m-1),!f||!d)return!1;var p=Ot(f),y=Ot(d);return f&&d&&(u=p[h]-r[h]-1,c=y[h]+s(d)-p[h]),[f,u,c]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?wt(this[e],"hidden"):(gt(this[e],"hidden")&&bt(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"right"!==e&&"left"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=this[e].style;t.backgroundColor="#000",t.width="".concat(1,"px"),t.height="".concat(1,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?wt(this[e],"hidden"):bt(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",Pe()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}],n&&sa(t.prototype,n),e}();const ua=la;function ca(e){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(e)}function ha(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(90345);var fa=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}var t,n;return t=e,n=[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new ua(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=new Ce(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e.wtTable.getCell(new Me(t,n));if("object"===ca(i)){var a=r;o&&(a=this.classNameGenerator(i),this.classNames.includes(a)||this.classNames.push(a)),wt(i,a)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e;if(gt(r,0==(i-=1)?e:"".concat(e,"-").concat(i))){var s=i+1;a="".concat(e,"-").concat(s)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{for(var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),o=(_=4,function(e){if(Array.isArray(e))return e}(b=r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(b,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1],s=o[2],l=o[3],u=0;u<n;u+=1){var c=e.wtTable.columnFilter.renderedToSource(u);if(c>=a&&c<=l){var h=e.wtTable.getColumnHeader(c);if(h){var f=[];this.settings.highlightHeaderClassName&&f.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&f.push(this.settings.highlightColumnClassName),wt(h,f)}}}for(var d=0;d<t;d+=1){var m=e.wtTable.rowFilter.renderedToSource(d);if(m>=i&&m<=s){var p=e.wtTable.getRowHeader(m);if(p){var y=[];this.settings.highlightHeaderClassName&&y.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&y.push(this.settings.highlightRowClassName),wt(p,y)}}for(var v=0;v<n;v+=1){var g=e.wtTable.columnFilter.renderedToSource(v);m>=i&&m<=s&&g>=a&&g<=l?this.settings.className&&this.addClassAtCoords(e,m,g,this.settings.className,this.settings.markIntersections):m>=i&&m<=s?this.settings.highlightRowClassName&&this.addClassAtCoords(e,m,g,this.settings.highlightRowClassName):g>=a&&g<=l&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,m,g,this.settings.highlightColumnClassName);var w=e.getSetting("onAfterDrawSelection",m,g,r,this.settings.layerLevel);"string"==typeof w&&this.addClassAtCoords(e,m,g,w)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}var b,_}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}],n&&ha(t.prototype,n),e}();const da=fa;var ma={_hooksStorage:Object.create(null),addHook:function(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey:function(e){var t=this;P(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;ee(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};Z(ma,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});const pa=ma;function ya(e){return ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(e)}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},va(e)}function ga(e,t){return ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ga(e,t)}function wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _a="STATE_VIRGIN",Ma="STATE_EDITING",ka="STATE_WAITING",Sa="STATE_FINISHED",Ca=function(){function e(t){wa(this,e),this.hot=t,this.instance=t,this.state=_a,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}var t,n;return t=e,n=[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=_a}},{key:"extend",value:function(){return function(e){function t(){return wa(this,t),function(e,t){return!t||"object"!==ya(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,va(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ga(e,t)}(t,e),t}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r;t?((n=this.hot.getSelectedLast())[0]>n[2]&&(r=n[0],n[0]=n[2],n[2]=r),n[1]>n[3]&&(r=n[1],n[1]=n[3],n[3]=r)):n=[this.row,this.col,null,null],this.hot.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===_a){if(this.hot.view.scrollViewport(new Me(this.row,this.col)),this.state=Ma,this.isInFullEditMode()){var n="string"==typeof e?e:ir(this.originalValue);this.setValue(n)}this.open(t),this._opened=!0,this.focus(),this.hot.view.render(),this.hot.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,o=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.hot.view.render()}}if(!this.isWaiting())if(this.state!==_a){if(this.state===Ma){if(e)return this.cancelChanges(),void this.hot.view.render();var a=this.getValue();r=this.hot.getSettings().trimWhitespace?[["string"==typeof a?String.prototype.trim.call(a||""):a]]:[[a]],this.state=ka,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=Sa,o.discardEditor(e)})):(this.state=Sa,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}},{key:"cancelChanges",value:function(){this.state=Sa,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===Sa&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=Ma,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=_a,this._fireCallbacks(!0)))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===ka}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"right":return"ht_clone_right";case"left":return"ht_clone_left";case"bottom":return"ht_clone_bottom";case"bottom-right-corner":return"ht_clone_bottom_right_corner";case"bottom-left-corner":return"ht_clone_bottom_left_corner";case"top":return"ht_clone_top";case"top-right-corner":return"ht_clone_top_right_corner";case"top-left-corner":return"ht_clone_top_left_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsLeft&&(t="left"),t}}],n&&ba(t.prototype,n),e}();J(Ca,pa);const Ta=Ca;function Ea(e){return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(e)}function Oa(e){var t=Ea(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function Ra(e,t,n){var r=-1;for("function"==typeof t?(n=t,t=e):r=e-1;++r<=t&&!1!==n(r););}function La(e,t,n){var r=e+1;for("function"==typeof t&&(n=t,t=0);--r>=t&&!1!==n(r););}function Da(e,t){return t=parseInt(t.toString().replace("%",""),10),parseInt(e*t/100,10)}n(17),n(18636),n(35231),n(10678),n(12091);var Aa=n(27367),Ha=n.n(Aa);function Na(e){return Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Na(e)}function Pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ya(e,t,n){return Ya="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ia(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ya(e,t,n||e)}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ia(e)}function ja(e,t){return ja=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ja(e,t)}var Fa="ht_editor_hidden",Wa=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Na(t)&&"function"!=typeof t?xa(e):t}(this,Ia(t).call(this,e))).eventManager=new Jr(xa(n)),n.autoResize=Ha()(),n.TEXTAREA=void 0,n.textareaStyle=void 0,n.TEXTAREA_PARENT=void 0,n.textareaParentStyle=void 0,n.layerClass=void 0,n.createElements(),n.bindEvents(),n.hot.addHookOnce("afterDestroy",(function(){return n.destroy()})),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ja(e,t)}(t,e),n=t,r=[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var e=this;this.refreshDimensions(),this.showEditableElement(),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)}))}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.removeHooksByKey("beforeKeyDown")}},{key:"prepare",value:function(e,n,r,o,i,a){var s=this,l=this.state;if(Ya(Ia(t.prototype),"prepare",this).call(this,e,n,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var u=a.allowInvalid,c=a.fragmentSelection;u&&(this.TEXTAREA.value=""),l!==Sa&&this.hideEditableElement(),!c&&!Pe()&&this.hot._registerImmediate((function(){return s.focus(!0)}))}}},{key:"beginEditing",value:function(e,n){this.state===_a&&(this.TEXTAREA.value="",Ya(Ia(t.prototype),"beginEditing",this).call(this,e,n))}},{key:"focus",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?nn(this.TEXTAREA):(this.TEXTAREA.select(),qt(this.TEXTAREA,this.TEXTAREA.value.length))}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.tabIndex=-1,wt(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),wt(this.TEXTAREA_PARENT,"handsontableInputHolder"),gt(this.TEXTAREA_PARENT,this.layerClass)&&bt(this.TEXTAREA_PARENT,this.layerClass),wt(this.TEXTAREA_PARENT,Fa),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){(De()||Le())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",gt(this.TEXTAREA_PARENT,this.layerClass)&&bt(this.TEXTAREA_PARENT,this.layerClass),wt(this.TEXTAREA_PARENT,Fa)}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle.right="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;Ra(e.length-1,(function(n){if(gt(e[n],"handsontableEditor"))return t=!0,!1})),gt(this.TEXTAREA_PARENT,Fa)&&bt(this.TEXTAREA_PARENT,Fa),t?(this.layerClass="ht_editor_visible",wt(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),wt(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===Ma||e)if(this.TD=this.getEditedCell(),this.TD){var t,n=this.hot.view.wt,r=n.wtOverlays,o=n.wtViewport,i=Ot(this.TD),a=Ot(this.hot.rootElement),s=r.topOverlay.holder,l=r.leftOverlay.holder,u=this.hot.countRows(),c=s!==this.hot.rootWindow?s.scrollTop:0,h=l!==this.hot.rootWindow?l.scrollLeft:0,f=this.checkEditorSection(),d=["","left"].includes(f)?c:0,m=["","top","bottom"].includes(f)?h:0,p=i.top===a.top?0:1,y=this.hot.getSettings(),v=this.hot.hasColHeaders(),g=this.TD.style.backgroundColor,w=i.top-a.top-p-d,b=i.left-a.left-1-m;switch(f){case"top":t=Qt(r.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=Qt(r.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=Qt(r.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=Qt(r.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=Qt(r.bottomOverlay.clone.wtTable.holder.parentNode)}(v&&0===this.hot.getSelectedLast()[0]||y.fixedRowsBottom&&this.hot.getSelectedLast()[0]===u-y.fixedRowsBottom)&&(w+=1),0===this.hot.getSelectedLast()[1]&&(b+=1),t&&-1!==t?this.textareaParentStyle[t[0]]=t[1]:Zt(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(w,"px"),this.textareaParentStyle.left="".concat(b,"px"),this.showEditableElement();var _=o.rowsRenderCalculator.startPosition,M=o.columnsRenderCalculator.startPosition,k=r.leftOverlay.getScrollPosition(),S=r.topOverlay.getScrollPosition(),C=Xt(this.hot.rootDocument),T=this.TD.offsetTop+_-S,E=this.TD.offsetLeft+M-k,O=Ft(this.TD)-8,R=Kt(s)?C:0,L=Jt(l)?C:0,D=this.hot.view.maximumVisibleElementWidth(E)-9-R,A=this.TD.scrollHeight+1,H=Math.max(this.hot.view.maximumVisibleElementHeight(T)-L,23),N=xt(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=N.fontSize,this.TEXTAREA.style.fontFamily=N.fontFamily,this.TEXTAREA.style.backgroundColor=g,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(A,H),maxHeight:H,minWidth:Math.min(O,D),maxWidth:D},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return Wr(e)})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return Wr(e)})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===this.TEXTAREA&&!Fr(e)){switch(e.keyCode){case lo.ARROW_RIGHT:case lo.ARROW_LEFT:case lo.ARROW_UP:case lo.ARROW_DOWN:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||jr(e));break;case lo.ENTER:var n=this.hot.selection.isMultiple();if(t&&!n||e.altKey){if(this.isOpened()){var r=Vt(this.TEXTAREA),o=this.getValue(),i="".concat(o.slice(0,r),"\n").concat(o.slice(r));this.setValue(i),qt(this.TEXTAREA,r+1)}else this.beginEditing("".concat(this.originalValue,"\n"));jr(e)}e.preventDefault();break;case lo.BACKSPACE:case lo.DELETE:case lo.HOME:case lo.END:jr(e)}-1===[lo.ARROW_UP,lo.ARROW_RIGHT,lo.ARROW_DOWN,lo.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}}],r&&Pa(n.prototype,r),t}(Ta);const Ba=Wa;function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(e)}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function za(e,t,n){return za="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ga(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},za(e,t,n||e)}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ga(e)}function qa(e,t){return qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qa(e,t)}var Xa=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Va(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ga(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qa(e,t)}(t,e),n=t,r=[{key:"open",value:function(){za(Ga(t.prototype),"open",this).call(this),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),qt(this.TEXTAREA,0,this.TEXTAREA.value.length)}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),za(Ga(t.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,n,r,o,i,a){za(Ga(t.prototype),"prepare",this).call(this,e,n,r,o,i,a);var s=this,l={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&s.setValue(n),s.instance.destroyEditor()},preventWheel:!0};this.cellProperties.handsontable&&G(l,a.handsontable),this.htOptions=l}},{key:"beginEditing",value:function(e,n){var r=this.hot.getSettings().onBeginEditing;r&&!1===r()||za(Ga(t.prototype),"beginEditing",this).call(this,e,n)}},{key:"focus",value:function(e){za(Ga(t.prototype),"focus",this).call(this,e)}},{key:"createElements",value:function(){za(Ga(t.prototype),"createElements",this).call(this);var e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}},{key:"finishEditing",value:function(e,n,r){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var o=this.htEditor.getInstance().getValue();void 0!==o&&this.setValue(o)}return za(Ga(t.prototype),"finishEditing",this).call(this,e,n,r)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",(function(){e.htEditor&&e.htEditor.destroy()}))}},{key:"onBeforeKeyDown",value:function(e){if(!Fr(e)){var n,r,o=this.htEditor.getInstance();if(e.keyCode===lo.ARROW_DOWN)if(o.getSelectedLast()||o.flipped){if(o.getSelectedLast())if(o.flipped)n=o.getSelectedLast()[0]+1;else if(!o.flipped){var i=o.countRows()-1;r=o.getSelectedLast()[0],n=Math.min(i,r+1)}}else n=0;else e.keyCode===lo.ARROW_UP&&(!o.getSelectedLast()&&o.flipped?n=o.countRows()-1:o.getSelectedLast()&&(o.flipped?(r=o.getSelectedLast()[0],n=Math.max(0,r-1)):n=(r=o.getSelectedLast()[0])-1));void 0!==n&&(n<0||o.flipped&&n>o.countRows()-1?o.deselectCell():o.selectCell(n,0),o.getData().length&&(e.preventDefault(),jr(e),this.hot.listen(),this.TEXTAREA.focus())),za(Ga(t.prototype),"onBeforeKeyDown",this).call(this,e)}}}],r&&Ua(n.prototype,r),t}(Ba);const Ka=Xa;function Ja(e){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(e)}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Za(e,t,n){return Za="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=es(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Za(e,t,n||e)}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},es(e)}function ts(e,t){return ts=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ts(e,t)}var ns=new WeakMap,rs=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Ja(t)&&"function"!=typeof t?Qa(e):t}(this,es(t).call(this,e))).query=null,n.strippedChoices=[],n.rawChoices=[],ns.set(Qa(n),{skipOne:!1}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ts(e,t)}(t,e),n=t,r=[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value}));return ar(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){Za(es(t.prototype),"createElements",this).call(this),wt(this.htContainer,"autocompleteEditor"),wt(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var e=this,n=ns.get(this);this.TEXTAREA_PARENT.style.overflow="auto",Za(es(t.prototype),"open",this).call(this),this.TEXTAREA_PARENT.style.overflow="";var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=Xt(this.hot.rootDocument);r.updateSettings({colWidths:o?[Yt(this.TEXTAREA)-2]:void 0,width:o?Yt(this.TEXTAREA)+i+2:void 0,afterRenderer:function(t,n,r,o,i){var a,s,l=e.cellProperties,u=l.filteringCaseSensitive,c=l.allowHtml,h=e.query,f=ir(i);f&&!c&&-1!==(a=!0===u?f.indexOf(h):f.toLowerCase().indexOf(h.toLowerCase()))&&(s=f.substr(a,h.length),f=f.replace(s,"<strong>".concat(s,"</strong>"))),t.innerHTML=f},autoColumnSize:!0,modifyColWidth:function(e,t){var n=this.getPlugin("autoColumnSize"),r=e;if(n){var i=n.widths;i[t]&&(r=i[t])}return o?r:r+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]="".concat(i+2,"px"),n.skipOne&&(n.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),Za(es(t.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){Za(es(t.prototype),"discardEditor",this).call(this,e),this.hot.view.render()}},{key:"queryChoices",value:function(e){var t=this,n=this.cellProperties.source;this.query=e,"function"==typeof n?n.call(this.cellProperties,e,(function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))})):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(e){var n=Vt(this.TEXTAREA),r=Ut(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,a=null,s=null,l=e;o&&(a=t.sortByRelevance(this.stripValueIfNeeded(this.getValue()),l,this.cellProperties.filteringCaseSensitive));var u=Array.isArray(a)?a.length:0;if(!1===i)u&&(s=a[0]);else{for(var c=[],h=0,f=l.length;h<f&&!(o&&u<=h);h++)u?c.push(l[a[h]]):c.push(l[h]);s=0,l=c}this.strippedChoices=l,this.htEditor.loadData(D([l])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(s),this.hot.listen(!1),qt(this.TEXTAREA,n,n===r?void 0:r)}},{key:"flipDropdownIfNeeded",value:function(){var e=Ot(this.TEXTAREA),t=It(this.TEXTAREA),n=this.getDropdownHeight(),r=Nt(this.hot.view.wt.wtTable.TABLE),o=r.scrollTop,i=It(this.hot.view.wt.wtTable.THEAD),a={row:0,col:0};r!==this.hot.rootWindow&&(a=Ot(r));var s=e.top-a.top-i+o,l=r.scrollHeight-s-i-t,u=n>l&&s>l;return u?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(u?s:l,n),u}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n,r=0,o=0,i=0;do{r+=i=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,o+=1}while(r<e);n=r-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(r-i)}}},{key:"flipDropdown",value:function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top="".concat(-e,"px"),this.htEditor.flipped=!0}},{key:"unflipDropdown",value:function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var e=this.htEditor.getColWidth(0)+Xt(this.hot.rootDocument)+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()}},{key:"setDropdownHeight",value:function(e){this.htEditor.updateSettings({height:e})}},{key:"highlightBestMatchingChoice",value:function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}},{key:"getDropdownHeight",value:function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8}},{key:"stripValueIfNeeded",value:function(e){return this.stripValuesIfNeeded([e])[0]}},{key:"stripValuesIfNeeded",value:function(e){var t=this.cellProperties.allowHtml,n=N(e,(function(e){return ir(e)})),r=N(n,(function(e){return t?e:ro(e)}));return r}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===lo.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===lo.ARROW_UP&&n>-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var n=this,r=ns.get(this);if(r.skipOne=!1,uo(e.keyCode)||e.keyCode===lo.BACKSPACE||e.keyCode===lo.DELETE||e.keyCode===lo.INSERT){var o=0;if(e.keyCode===lo.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(o+=10),this.htEditor&&this.hot._registerTimeout((function(){n.queryChoices(n.TEXTAREA.value),r.skipOne=!0}),o)}Za(es(t.prototype),"onBeforeKeyDown",this).call(this,e)}}],r&&$a(n.prototype,r),t}(Ka);rs.sortByRelevance=function(e,t,n){var r,o,i,a,s=[],l=e.length,u=[],c=t.length;if(0===l){for(a=0;a<c;a++)u.push(a);return u}for(a=0;a<c;a++)r=ro(ir(t[a])),-1!==(o=n?r.indexOf(e):r.toLowerCase().indexOf(e.toLowerCase()))&&(i=r.length-o-l,s.push({baseIndex:a,index:o,charsLeft:i,value:r}));for(s.sort((function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),a=0,c=s.length;a<c;a++)u.push(s[a].baseIndex);return u};const os=rs;function is(e){return is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(e)}function as(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ss(e){return ss=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ss(e)}function ls(e,t){return ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ls(e,t)}const us=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==is(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ss(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ls(e,t)}(t,e),n=t,(r=[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');gt(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}])&&as(n.prototype,r),t}(Ta);var cs=n(78823),hs=n.n(cs);function fs(e){return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(e)}function ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ms(e,t,n){return ms="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ps(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},ms(e,t,n||e)}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ps(e)}function ys(e,t){return ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ys(e,t)}var vs=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==fs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ps(t).call(this,e))).defaultDateFormat="DD/MM/YYYY",n.isCellEdited=!1,n.parentDestroyed=!1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ys(e,t)}(t,e),n=t,r=[{key:"init",value:function(){var e=this;if("function"!=typeof Kn())throw new Error("You need to include moment.js to your project.");if("function"!=typeof hs())throw new Error("You need to include Pikaday to your project.");ms(ps(t.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",(function(){e.parentDestroyed=!0,e.destroyElements()}))}},{key:"createElements",value:function(){ms(ps(t.prototype),"createElements",this).call(this),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,wt(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),this.$datePicker=new(hs())(this.getDatePickerConfig()),new Jr(this).addEventListener(this.datePicker,"mousedown",(function(e){return Wr(e)})),this.hideDatepicker()}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,n,r,o,i,a){ms(ps(t.prototype),"prepare",this).call(this,e,n,r,o,i,a)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ms(ps(t.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout((function(){e.instance._refreshBorders()})),ms(ps(t.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}this.hideDatepicker(),ms(ps(t.prototype),"finishEditing",this).call(this,e,n)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.$datePicker.config(),i=this.instance.view.isMouseDown(),a=!!e&&co(e.keyCode);this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+It(this.TD),"px"),this.datePickerStyle.left="".concat(this.hot.rootWindow.pageXOffset+n.left,"px"),this.$datePicker._onInputFocus=function(){},o.format=r,this.originalValue?(t=this.originalValue,Kn()(t,r,!0).isValid()&&this.$datePicker.setMoment(Kn()(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),a||i||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,o.defaultDate=t,Kn()(t,r,!0).isValid()&&this.$datePicker.setMoment(Kn()(t,r),!0),a||i||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&q(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=Kn()(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}],r&&ds(n.prototype,r),t}(Ba);const gs=vs;function ws(e){return ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(e)}function bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _s(e,t,n){return _s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ms(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},_s(e,t,n||e)}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function ks(e,t){return ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ks(e,t)}var Ss=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==ws(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ms(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ks(e,t)}(t,e),n=t,r=[{key:"prepare",value:function(e,n,r,o,i,a){_s(Ms(t.prototype),"prepare",this).call(this,e,n,r,o,i,a),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}],r&&bs(n.prototype,r),t}(os);ce.getSingleton().add("beforeValidate",(function(e,t,n){var r=this.getCellMeta(t,this.propToCol(n));r.editor===Ss&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}));const Cs=Ss;function Ts(e){return Ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(e)}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Es(e)}function Os(e,t){return Os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Os(e,t)}const Rs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Ts(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Es(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Os(e,t)}(t,e),t}(Ba);function Ls(e){return Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(e)}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function As(e,t,n){return As="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hs(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},As(e,t,n||e)}function Hs(e){return Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hs(e)}function Ns(e,t){return Ns=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ns(e,t)}const Ps=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Ls(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Hs(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ns(e,t)}(t,e),n=t,(r=[{key:"createElements",value:function(){As(Hs(t.prototype),"createElements",this).call(this),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,Mt(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}])&&Ds(n.prototype,r),t}(Ba);function xs(e){return xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(e)}function Ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Is(e,t,n){return Is="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=js(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Is(e,t,n||e)}function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},js(e)}function Fs(e,t){return Fs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fs(e,t)}var Ws="ht_editor_visible",Bs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,js(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fs(e,t)}(t,e),n=t,r=[{key:"init",value:function(){this.select=this.hot.rootDocument.createElement("SELECT"),wt(this.select,"htSelectEditor"),this.select.style.display="none",this.hot.rootElement.appendChild(this.select),this.registerHooks()}},{key:"getValue",value:function(){return this.select.value}},{key:"setValue",value:function(e){this.select.value=e}},{key:"open",value:function(){var e=this;this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()}))}},{key:"close",value:function(){this._opened=!1,this.select.style.display="none",gt(this.select,Ws)&&bt(this.select,Ws),this.clearHooks()}},{key:"focus",value:function(){this.select.focus()}},{key:"registerHooks",value:function(){var e=this;this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){return e.refreshDimensions()})),this.addHook("afterRowResize",(function(){return e.refreshDimensions()}))}},{key:"prepare",value:function(e,n,r,o,i,a){var s=this;Is(js(t.prototype),"prepare",this).call(this,e,n,r,o,i,a);var l,u=this.cellProperties.selectOptions;l="function"==typeof u?this.prepareOptions(u(this.row,this.col,this.prop)):this.prepareOptions(u),Mt(this.select),ee(l,(function(e,t){var n=s.hot.rootDocument.createElement("OPTION");n.value=t,Ct(n,e),s.select.appendChild(n)}))}},{key:"prepareOptions",value:function(e){var t={};if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t[e[n]]=e[n];else"object"===xs(e)&&(t=e);return t}},{key:"refreshValue",value:function(){var e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){if(this.state===Ma)if(this.TD=this.getEditedCell(),this.TD){var e,t=this.hot.view.wt.wtOverlays,n=Ot(this.TD),r=Ot(this.hot.rootElement),o=t.scrollableElement,i=this.checkEditorSection(),a=Yt(this.TD)+1,s=It(this.TD)+1,l=n.top-r.top-1-(o.scrollTop||0),u=n.left-r.left-1-(o.scrollLeft||0);switch(i){case"top":e=Qt(t.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=Qt(t.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=Qt(t.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=Qt(t.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=Qt(t.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.hot.getSelectedLast()[0]&&(l+=1),0===this.hot.getSelectedLast()[1]&&(u+=1);var c=this.select.style;e&&-1!==e?c[e[0]]=e[1]:Zt(this.select);var h=xt(this.TD,this.hot.rootWindow);parseInt(h.borderTopWidth,10)>0&&(s-=1),parseInt(h.borderLeftWidth,10)>0&&(a-=1),c.height="".concat(s,"px"),c.minWidth="".concat(a,"px"),c.top="".concat(l,"px"),c.left="".concat(u,"px"),c.margin="0px",wt(this.select,Ws)}else this.close()}},{key:"onBeforeKeyDown",value:function(){var e=this.select.selectedIndex-1,t=this.select.selectedIndex+1;switch(event.keyCode){case lo.ARROW_UP:e>=0&&(this.select[e].selected=!0),jr(event),event.preventDefault();break;case lo.ARROW_DOWN:t<=this.select.length-1&&(this.select[t].selected=!0),jr(event),event.preventDefault()}}}],r&&Ys(n.prototype,r),t}(Ta);const Vs=Bs;var Us=new WeakMap,zs=O("editors"),Gs=zs.register,qs=zs.getItem,Xs=zs.hasItem,Ks=zs.getNames;function Js(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},ce.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function $s(e,t){var n;if("function"==typeof e)Us.get(e)||Zs(null,e),n=Us.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=qs(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)}function Qs(e){if(!Xs(e))throw Error('No registered editor found under "'.concat(e,'" name'));return qs(e).getConstructor()}function Zs(e,t){var n=new Js(t);"string"==typeof e&&Gs(e,n),Us.set(t,n)}zs.getValues,Zs("base",Ta),Zs("autocomplete",os),Zs("checkbox",us),Zs("date",gs),Zs("dropdown",Cs),Zs("handsontable",Ka),Zs("numeric",Rs),Zs("password",Ps),Zs("select",Vs),Zs("text",Ba);var el=new WeakMap,tl=new WeakMap;function nl(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}var rl=n(28646),ol=n.n(rl);var il=O("renderers"),al=il.register,sl=il.getItem,ll=il.hasItem,ul=il.getNames;function cl(e){if("function"==typeof e)return e;if(!ll(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return sl(e)}function hl(e,t){var n=e;return function(e){for(var r=!1,o=0,i=e.length;o<i;o++)if(n===e[o]){r=!0;break}t(r)}}function fl(e){var t=new Date(e);return isNaN(new Date("".concat(e,"T00:00")).getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}il.getValues,al("base",(function(e,t,n,r,o,i,a){var s=[],l=[];a.className&&(t.className?t.className="".concat(t.className," ").concat(a.className):t.className=a.className),a.readOnly&&s.push(a.readOnlyCellClassName),!1===a.valid&&a.invalidCellClassName?s.push(a.invalidCellClassName):l.push(a.invalidCellClassName),!1===a.wordWrap&&a.noWordWrapClassName&&s.push(a.noWordWrapClassName),!i&&a.placeholder&&s.push(a.placeholderCellClassName),bt(t,l),wt(t,s)})),al("autocomplete",(function(e,t,n,r,o,i,a){var s=e.rootDocument,l=a.allowHtml?"html":"text",u=s.createElement("DIV");u.className="htAutocompleteArrow",u.appendChild(s.createTextNode(String.fromCharCode(9660)));for(var c=arguments.length,h=new Array(c>7?c-7:0),f=7;f<c;f++)h[f-7]=arguments[f];if(cl(l).apply(this,[e,t,n,r,o,i,a].concat(h)),t.firstChild||t.appendChild(s.createTextNode(String.fromCharCode(160))),t.insertBefore(u,t.firstChild),wt(t,"htAutocomplete"),!e.acArrowListener){var d=new Jr(e);e.acArrowListener=function(o){gt(o.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new Me(n,r),t)},d.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",(function(){d.destroy()}))}})),al("checkbox",(function(e,t,n,r,o,i,a){for(var s=e.rootDocument,l=arguments.length,u=new Array(l>7?l-7:0),c=7;c<l;c++)u[c-7]=arguments[c];cl("base").apply(this,[e,t,n,r,o,i,a].concat(u)),function(e){var t=tl.get(e);if(!t){var n=e.rootElement;(t=new Jr(e)).addEventListener(n,"click",(function(t){return function(e,t){if(!nl(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),r=parseInt(e.target.getAttribute("data-col"),10);t.getCellMeta(n,r).readOnly&&e.preventDefault()}(t,e)})),t.addEventListener(n,"mouseup",(function(t){return function(e,t){nl(e.target)&&setTimeout(t.listen,10)}(t,e)})),t.addEventListener(n,"change",(function(t){return function(e,t){if(!nl(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),r=parseInt(e.target.getAttribute("data-col"),10),o=t.getCellMeta(n,r);if(!o.readOnly){var i;i=e.target.checked?void 0===o.uncheckedTemplate||o.checkedTemplate:void 0!==o.uncheckedTemplate&&o.uncheckedTemplate,t.setDataAtCell(n,r,i)}}(t,e)})),tl.set(e,t)}}(e);var h=function(e){var t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("autocomplete","off"),t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(s),f=a.label,d=!1;if(void 0===a.checkedTemplate&&(a.checkedTemplate=!0),void 0===a.uncheckedTemplate&&(a.uncheckedTemplate=!1),Mt(t),i===a.checkedTemplate||Qr(i,a.checkedTemplate)?h.checked=!0:i===a.uncheckedTemplate||Qr(i,a.uncheckedTemplate)?h.checked=!1:null===i?wt(h,"noValue"):(h.style.display="none",wt(h,"htBadValue"),d=!0),h.setAttribute("data-row",n),h.setAttribute("data-col",r),!d&&f){var m="";if(f.value)m="function"==typeof f.value?f.value.call(this,n,r,o,i):f.value;else if(f.property){var p=e.getDataAtRowProp(n,f.property);m=null!==p?p:""}var y=function(e,t){var n=e.createElement("label");return n.className="htCheckboxRendererLabel",n.appendChild(e.createTextNode(t)),n.cloneNode(!0)}(s,m);"before"===f.position?y.appendChild(h):y.insertBefore(h,y.firstChild),h=y}function v(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRangeLast();if(n){for(var r=n.getTopLeftCorner(),o=r.row,i=r.col,a=n.getBottomRightCorner(),s=a.row,l=a.col,u=[],c=o;c<=s;c+=1)for(var h=i;h<=l;h+=1){var f=e.getCellMeta(c,h);if("checkbox"!==f.type)return;if(!0!==f.readOnly){void 0===f.checkedTemplate&&(f.checkedTemplate=!0),void 0===f.uncheckedTemplate&&(f.uncheckedTemplate=!1);var d=e.getDataAtCell(c,h);!1===t?[f.checkedTemplate,f.checkedTemplate.toString()].includes(d)?u.push([c,h,f.uncheckedTemplate]):[f.uncheckedTemplate,f.uncheckedTemplate.toString(),null,void 0].includes(d)&&u.push([c,h,f.checkedTemplate]):u.push([c,h,f.uncheckedTemplate])}}u.length>0&&e.setDataAtCell(u)}}t.appendChild(h),d&&t.appendChild(s.createTextNode("#bad-value#")),el.has(e)||(el.set(e,!0),e.addHook("beforeKeyDown",(function(t){var n="SPACE|ENTER",r="DELETE|BACKSPACE",o=un(mo,t.keyCode);!e.getSettings().enterBeginsEditing&&o("ENTER")||(o("".concat(n,"|").concat(r))&&!Fr(t)&&function(t){var n=e.getSelectedRangeLast();if(n)for(var r=n.getTopLeftCorner(),o=n.getBottomRightCorner(),i=r.row;i<=o.row;i++)for(var a=r.col;a<=o.col;a++){var s=e.getCellMeta(i,a);if("checkbox"!==s.type)return;var l=e.getCell(i,a);if(null==l)t();else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!s.readOnly&&t()}}}((function(){jr(t),t.preventDefault()})),o(n)&&v(),o(r)&&v(!0))})))})),al("html",(function(e,t,n,r,o,i){for(var a=arguments.length,s=new Array(a>6?a-6:0),l=6;l<a;l++)s[l-6]=arguments[l];cl("base").apply(this,[e,t,n,r,o,i].concat(s)),Ct(t,null==i?"":i)})),al("numeric",(function(e,t,n,r,o,i,a){var s=i;if(Oa(s)){var l=a.numericFormat,u=l&&l.culture||"-",c=l&&l.pattern,h=a.className||"",f=h.length?h.split(" "):[];if(void 0!==u&&!ol().languages()[u]){var d=u.replace("-",""),m=ol().allLanguages?ol().allLanguages[u]:ol()[d];m&&ol().registerLanguage(m)}ol().setLanguage(u),s=ol()(s).format(c||"0"),f.indexOf("htLeft")<0&&f.indexOf("htCenter")<0&&f.indexOf("htRight")<0&&f.indexOf("htJustify")<0&&f.push("htRight"),f.indexOf("htNumeric")<0&&f.push("htNumeric"),a.className=f.join(" ")}cl("text")(e,t,n,r,o,s,a)})),al("password",(function(e,t,n,r,o,i,a){for(var s=arguments.length,l=new Array(s>7?s-7:0),u=7;u<s;u++)l[u-7]=arguments[u];cl("text").apply(this,[e,t,n,r,o,i,a].concat(l));var c=a.hashLength||t.innerHTML.length,h=a.hashSymbol||"*",f="";Ra(c-1,(function(){f+=h})),Ct(t,f)})),al("text",(function(e,t,n,r,o,i,a){for(var s=arguments.length,l=new Array(s>7?s-7:0),u=7;u<s;u++)l[u-7]=arguments[u];cl("base").apply(this,[e,t,n,r,o,i,a].concat(l));var c=i;if(!c&&a.placeholder&&(c=a.placeholder),c=ir(c),e.getSettings().trimWhitespace||(c=c.replace(/ /g,String.fromCharCode(160))),a.rendererTemplate){Mt(t);var h=e.rootDocument.createElement("TEMPLATE");h.setAttribute("bind","{{}}"),h.innerHTML=a.rendererTemplate,HTMLTemplateElement.decorate(h),h.model=e.getSourceDataAtRow(n),t.appendChild(h)}else Tt(t,c)})),n(50785);var dl=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],ml=O("validators"),pl=ml.register,yl=ml.getItem,vl=ml.hasItem,gl=ml.getNames;function wl(e){if("function"==typeof e)return e;if(!vl(e))throw Error('No registered validator found under "'.concat(e,'" name'));return yl(e)}ml.getValues,pl("autocomplete",(function(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,hl(n,t)):hl(n,t)(this.source):t(!0)})),pl("date",(function(e,t){var n=$s("date",this.instance),r=e,o=!0;null==r&&(r="");var i=Kn()(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),a=Kn()(new Date(r)).isValid()||i;if(this.allowEmpty&&""===r&&(a=!0,i=!0),a||(o=!1),!a&&i&&(o=!0),a&&!i)if(!0===this.correctFormat){var s=function(e,t){var n=Kn()(fl(e)),r=Kn()(e,t),o=e.search(/[A-z]/g)>-1;return(n.isValid()&&n.format("x")===r.format("x")||!r.isValid()||o?n:r).format(t)}(r,this.dateFormat),l=this.instance.runHooks("unmodifyRow",this.row),u=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(l,u,s,"dateValidator"),o=!0}else o=!1;t(o)})),pl("numeric",(function(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&Oa(e))})),pl("time",(function(e,t){var n=this.timeFormat||"h:mm:ss a",r=!0,o=e;null===o&&(o=""),o=/^\d{3,}$/.test(o)?parseInt(o,10):o;var i=/^\d{1,2}$/.test(o);i&&(o+=":00");var a=Kn()(o,dl,!0).isValid()?Kn()(o):Kn()(o,n),s=a.isValid(),l=Kn()(o,n,!0).isValid()&&!i;if(this.allowEmpty&&""===o&&(s=!0,l=!0),s||(r=!1),!s&&l&&(r=!0),s&&!l)if(!0===this.correctFormat){var u=a.format(n),c=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(c,h,u,"timeValidator"),r=!0}else r=!1;t(r)}));var bl="autocomplete";const _l={editor:Qs(bl),renderer:cl(bl),validator:wl(bl)};var Ml="checkbox";const kl={editor:Qs(Ml),renderer:cl(Ml)};var Sl="date";const Cl={editor:Qs(Sl),renderer:cl("autocomplete"),validator:wl(Sl)},Tl={editor:Qs("dropdown"),renderer:cl("autocomplete"),validator:wl("autocomplete")},El={editor:Qs("handsontable"),renderer:cl("autocomplete")};var Ol="numeric";const Rl={editor:Qs(Ol),renderer:cl(Ol),validator:wl(Ol),dataType:"number"};var Ll="password";const Dl={editor:Qs(Ll),renderer:cl(Ll),copyable:!1};var Al="text";const Hl={editor:Qs(Al),renderer:cl(Al)},Nl={editor:Qs("text"),renderer:cl("text"),validator:wl("time")};var Pl=O("cellTypes"),xl=Pl.register,Yl=Pl.getItem,Il=Pl.hasItem,jl=Pl.getNames;function Fl(e){if(!Il(e))throw Error('You declared cell type "'.concat(e,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method'));return Yl(e)}function Wl(e,t){var n=t.editor,r=t.renderer,o=t.validator;n&&Zs(e,n),r&&al(e,r),o&&pl(e,o),xl(e,t)}function Bl(e,t){function n(){}z(n,e);for(var r=0,o=t.length;r<o;r++)n.prototype[t[r]]=void 0;return n}Pl.getValues,Wl("autocomplete",_l),Wl("checkbox",kl),Wl("date",Cl),Wl("dropdown",Tl),Wl("handsontable",El),Wl("numeric",Rl),Wl("password",Dl),Wl("text",Hl),Wl("time",Nl),n(94009),n(4038),n(75417);var Vl=n(51403),Ul="ABCDEFGHIJKLMNOPQRSTUVWXYZ",zl=Ul.length;function Gl(e){for(var t,n=e+1,r="";n>0;)t=(n-1)%zl,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/zl,10);return r}function ql(e){var t=0;if(e)for(var n=0,r=e.length-1;n<e.length;n+=1,r-=1)t+=Math.pow(zl,r)*(Ul.indexOf(e[n])+1);return t-1}function Xl(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i=[];for(t=0;t<r;t++)i.push(Gl(t)+(e+1));o.push(i)}return o}function Kl(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i={};for(t=0;t<r;t++)i["prop".concat(t)]=Gl(t)+(e+1);o.push(i)}return o}function Jl(e,t){for(var n,r=[],o=0;o<e;o++){n=[];for(var i=0;i<t;i++)n.push("");r.push(n)}return r}function $l(e){var t,n,r,o,i=[],a=0;for(t=0,n=e.length;t<n;t++)for(r=0,o=e[t].length;r<o;r++)r===a&&(i.push([]),a+=1),i[r].push(e[t][r]);return i}function Ql(e,t){var n=void 0===t||t;return function(t,r){return function t(r){if(r){if(oe(r,e)&&void 0!==r[e])return r[e];if(oe(r,"type")&&r.type){if("string"!=typeof r.type)throw new Error("Cell type must be a string ");var o=Fl(r.type);if(oe(o,e))return o[e];if(n)return}return t(Object.getPrototypeOf(r))}}("number"==typeof t?this.getCellMeta(t,r):t)}}function Zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eu(e,t,n){return t&&Zl(e.prototype,t),n&&Zl(e,n),e}const tu=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timer=null,this.func=t,this.delay=function(e){var t=e;return"string"==typeof t&&/fps$/.test(t)&&(t=1e3/parseInt(t.replace("fps","")||0,10)),t}(n),this.stopped=!0,this._then=null,this._callback=function(){return r.__callback()}}return eu(e,null,[{key:"create",value:function(t,n){return new e(t,n)}}]),eu(e,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=Ke(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,Ze(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=Ke(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),e}();function nu(e){return nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nu(e)}function ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ou(e,t,n){return t&&ru(e.prototype,t),n&&ru(e,n),e}var iu=Ql("copyable",!1),au=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.priv=n,this.GridSettings=r,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.duckSchema=this.dataSource&&this.dataSource[0]?U(this.dataSource[0]):{},this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap(),this.interval=tu.create((function(){return o.clearLengthCache()}),"15fps"),this.instance.addHook("skipLengthCache",(function(e){return o.onSkipLengthCache(e)})),this.onSkipLengthCache(500)}return ou(e,null,[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),ou(e,[{key:"createMap",value:function(){var e,t=this.getSchema();if(void 0===t)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new Map;var n=this.instance.getSettings().columns;if(n){var r=this.instance.getSettings().maxCols,o=Math.min(r,n.length),i=0,a=!1,s=ne(t);for("function"==typeof n&&(o=s>0?s:this.instance.countSourceCols(),a=!0),e=0;e<o;e++){var l=a?n(e):n[e];if(Q(l)){if(void 0!==l.data){var u=a?i:e;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}i+=1}}}else this.recursiveDuckColumns(t)}},{key:"recursiveDuckColumns",value:function(e,t,n){var r,o=this,i=t,a=n;return void 0===i&&(i=0,a=""),"object"!==nu(e)||Array.isArray(e)||ee(e,(function(e,t){null===e?(r=a+t,o.colToPropCache.push(r),o.propToColCache.set(r,i),i+=1):i=o.recursiveDuckColumns(e,i,"".concat(t,"."))})),i}},{key:"colToProp",value:function(e){var t=this.instance.toPhysicalColumn(e);return!isNaN(t)&&this.colToPropCache&&void 0!==this.colToPropCache[t]?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),this.instance.toVisualColumn(t)}},{key:"getSchema",value:function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=0,i=e;if(("number"!=typeof i||i>=this.instance.countSourceRows())&&(i=this.instance.countSourceRows()),!1===this.instance.runHooks("beforeCreateRow",i,n,r))return 0;for(var a=this.instance.getSettings().maxRows,s=this.instance.countCols(),l=function(){var e=null;"array"===t.instance.dataType?t.instance.getSettings().dataSchema?e=X(t.getSchema()):(e=[],Ra(s-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.instance.getSettings().dataSchema(i):q(e={},t.getSchema()),i===t.instance.countSourceRows()?t.dataSource.push(e):t.spliceData(i,0,e),o+=1};o<n&&this.instance.countSourceRows()<a;)l();return this.instance.runHooks("afterCreateRow",i,o,r),this.instance.forceFullRender=!0,o}},{key:"createCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var r,o=this.instance.countSourceRows(),i=this.dataSource,a=this.instance.countCols(),s="number"!=typeof e||e>=a?a:e,l=0;if(!1===this.instance.runHooks("beforeCreateCol",s,t,n))return 0;r=s;for(var u=this.instance.getSettings().maxCols;l<t&&this.instance.countCols()<u;){var c=Bl(this.GridSettings,this.priv.columnsSettingConflicts);if("number"!=typeof s||s>=this.instance.countCols()){if(o>0)for(var h=0;h<o;h++)void 0===i[h]&&(i[h]=[]),i[h].push(null);else i.push([null]);this.priv.columnSettings.push(c)}else{for(var f=0;f<o;f++)i[f].splice(r,0,null);this.priv.columnSettings.splice(r,0,c)}l+=1,r+=1}return this.instance.runHooks("afterCreateCol",s,l,n),this.instance.forceFullRender=!0,l}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r="number"!=typeof e?-t:e,o=this.instance.runHooks("modifyRemovedAmount",t,r),i=this.instance.countSourceRows();r=(i+r)%i;var a=this.visualRowsToPhysical(r,o);if(!1!==this.instance.runHooks("beforeRemoveRow",r,o,a,n)){var s=this.dataSource,l=this.filterData(r,o);l&&(s.length=0,Array.prototype.push.apply(s,l)),this.instance.runHooks("afterRemoveRow",r,o,a,n),this.instance.forceFullRender=!0}}},{key:"removeCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e}));if(!1!==this.instance.runHooks("beforeRemoveCol",r,t,o,n)){for(var a=!0,s=i.length,l=this.dataSource,u=0;u<s;u++)a&&o[0]!==o[u]-u&&(a=!1);if(a)for(var c=0,h=this.instance.countSourceRows();c<h;c++)l[c].splice(o[0],t);else{for(var f=0,d=this.instance.countSourceRows();f<d;f++)for(var m=0;m<s;m++)l[f].splice(i[m],1);for(var p=0;p<s;p++)this.priv.columnSettings.splice(o[p],1)}this.instance.runHooks("afterRemoveCol",r,t,o,n),this.instance.forceFullRender=!0}}},{key:"spliceCol",value:function(e,t,n){for(var r=this.instance.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];L(s,i);for(var u=0;u<n;)s.push(null),u+=1;return R(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),o}},{key:"spliceRow",value:function(e,t,n){for(var r=this.instance.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];L(s,i);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),o}},{key:"spliceData",value:function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)}},{key:"filterData",value:function(e,t){var n=this.visualRowsToPhysical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),r=this.dataSource[n],o=this.instance.runHooks("modifyRowData",n),i=null;if((r=isNaN(o)?o:r)&&r.hasOwnProperty&&oe(r,t))i=r[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=r;if(!s)return null;for(var l=0,u=a.length;l<u;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var c=re(i);this.instance.runHooks("modifyData",n,this.propToCol(t),c,"get"),c.isTouched()&&(i=c.value)}return i}},{key:"getCopyable",value:function(e,t){return iu.call(this.instance,e,this.propToCol(t))?this.get(e,t):""}},{key:"set",value:function(e,t,n,r){var o=this.instance.runHooks("modifyRow",e,r||"datamapGet"),i=n,a=this.dataSource[o],s=this.instance.runHooks("modifyRowData",o);if(a=isNaN(s)?s:a,this.instance.hasHook("modifyData")){var l=re(i);this.instance.runHooks("modifyData",o,this.propToCol(t),l,"set"),l.isTouched()&&(i=l.value)}if(a&&a.hasOwnProperty&&oe(a,t))a[t]=i;else if("string"==typeof t&&t.indexOf(".")>-1){var u,c=t.split("."),h=a,f=0;for(f=0,u=c.length-1;f<u;f++)void 0===h[c[f]]&&(h[c[f]]={}),h=h[c[f]];h[c[f]]=i}else"function"==typeof t?t(this.dataSource.slice(o,o+1)[0],i):a[t]=i}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,r=this.instance.countSourceRows(),o=[],i=(r+e)%r,a=t;i<r&&a;)n=this.instance.toPhysicalRow(i),o.push(n),a-=1,i+=1;return o}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),r=[],o=(n+e)%n,i=t;o<n&&i;){var a=this.instance.toPhysicalColumn(o);r.push(a),i-=1,o+=1}return r}},{key:"clear",value:function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")}},{key:"clearLengthCache",value:function(){this.cachedLength=null}},{key:"getLength",value:function(){var e,t=this,n=this.instance.getSettings().maxRows;e=n<0||0===n?0:n||1/0;var r=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var o=this.skipCache;this.interval.start(),r!==this.latestSourceRowsCount&&(o=!0),this.latestSourceRowsCount=r,null===this.cachedLength||o?(Ra(r-1,(function(e){null===t.instance.toPhysicalRow(e)&&(r-=1)})),this.cachedLength=r):r=this.cachedLength}else this.interval.stop();return Math.min(r,e)}},{key:"getAll",value:function(){var t={row:0,col:0},n={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return t.row-n.row!=0||this.instance.countSourceRows()?this.getRange(t,n,e.DESTINATION_RENDERER):[]}},{key:"getRange",value:function(t,n,r){var o,i,a,s=[],l=this.instance.getSettings().maxRows,u=this.instance.getSettings().maxCols;if(0===l||0===u)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,h=Math.min(Math.max(l-1,0),Math.max(t.row,n.row)),f=Math.min(Math.max(u-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=h;o++){a=[];var d=this.instance.toPhysicalRow(o);for(i=Math.min(t.col,n.col);i<=f&&null!==d;i++)a.push(c.call(this,o,this.colToProp(i)));null!==d&&s.push(a)}return s}},{key:"getText",value:function(t,n){return Vl.stringify(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return Vl.stringify(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"onSkipLengthCache",value:function(e){var t=this;this.skipCache=!0,setTimeout((function(){t.skipCache=!1}),e)}},{key:"destroy",value:function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}]),e}();const su=au;function lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var uu=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.priv=n,this.selection=r,this.eventManager=new Jr(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"keydown",(function(e){o.destroyed||o.instance.runHooks("afterDocumentKeyDown",e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",(function(e){!o.destroyed&&o.activeEditor&&!o.activeEditor.isOpened()&&o.instance.isListening()&&o.openEditor("",e)})),this.instance.view.wt.update("onCellDblClick",(function(e,t,n){return o.onCellDblClick(e,t,n)}))}var t,n;return t=e,n=[{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var e=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,(function(t){t&&e.prepareEditor()}));else{var t=this.instance.selection.selectedRange.current().highlight,n=t.row,r=t.col;if(this.cellProperties=this.instance.getCellMeta(n,r),this.cellProperties.readOnly)this.clearActiveEditor();else{var o=this.instance.getCellEditor(this.cellProperties),i=this.instance.getCell(n,r,!0);if(o&&i){var a=this.instance.colToProp(r),s=this.instance.getSourceDataAtCell(this.instance.runHooks("modifyRow",n),r);this.activeEditor=$s(o,this.instance),this.activeEditor.prepare(n,r,a,i,s,this.cellProperties)}else this.clearActiveEditor()}}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){this.activeEditor&&this.activeEditor.beginEditing(e,t)}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){return this.closeEditor(!0,e)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.priv.settings.enterMoves?this.priv.settings.enterMoves(event):this.priv.settings.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"moveSelectionUp",value:function(e){e?this.selection.transformEnd(-1,0):this.selection.transformStart(-1,0)}},{key:"moveSelectionDown",value:function(e){e?this.selection.transformEnd(1,0):this.selection.transformStart(1,0)}},{key:"moveSelectionRight",value:function(e){e?this.selection.transformEnd(0,1):this.selection.transformStart(0,1)}},{key:"moveSelectionLeft",value:function(e){e?this.selection.transformEnd(0,-1):this.selection.transformStart(0,-1)}},{key:"onAfterDocumentKeyDown",value:function(e){if(this.instance.isListening()&&(this.instance.runHooks("beforeKeyDown",e),!this.destroyed&&229!==e.keyCode&&!Fr(e)&&(this.priv.lastKeyCode=e.keyCode,this.selection.isSelected()))){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(!this.activeEditor||this.activeEditor.isWaiting()||co(e.keyCode)||fo(e.keyCode)||t||this.isEditorOpened()){var n,r=e.shiftKey,o=r?this.selection.setRangeEnd:this.selection.setRangeStart;switch(e.keyCode){case lo.A:!this.isEditorOpened()&&t&&(this.instance.selectAll(),e.preventDefault(),Wr(e));break;case lo.ARROW_UP:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionUp(r),e.preventDefault(),Wr(e);break;case lo.ARROW_DOWN:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionDown(r),e.preventDefault(),Wr(e);break;case lo.ARROW_RIGHT:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionRight(r),e.preventDefault(),Wr(e);break;case lo.ARROW_LEFT:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionLeft(r),e.preventDefault(),Wr(e);break;case lo.TAB:n="function"==typeof this.priv.settings.tabMoves?this.priv.settings.tabMoves(e):this.priv.settings.tabMoves,r?this.selection.transformStart(-n.row,-n.col):this.selection.transformStart(n.row,n.col,!0),e.preventDefault(),Wr(e);break;case lo.BACKSPACE:case lo.DELETE:this.instance.emptySelectedCells(),this.prepareEditor(),e.preventDefault();break;case lo.F2:this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e),e.preventDefault();break;case lo.ENTER:this.isEditorOpened()?(this.activeEditor&&this.activeEditor.state!==ka&&this.closeEditorAndSaveChanges(t),this.moveSelectionAfterEnter(r)):this.instance.getSettings().enterBeginsEditing?this.cellProperties.readOnly?this.moveSelectionAfterEnter():this.activeEditor&&(this.activeEditor.enableFullEditMode(),this.openEditor(null,e)):this.moveSelectionAfterEnter(r),e.preventDefault(),jr(e);break;case lo.ESCAPE:this.isEditorOpened()&&(this.closeEditorAndRestoreOriginalValue(t),this.activeEditor.focus()),e.preventDefault();break;case lo.HOME:e.ctrlKey||e.metaKey?o.call(this.selection,new Me(0,this.selection.selectedRange.current().from.col)):o.call(this.selection,new Me(this.selection.selectedRange.current().from.row,0)),e.preventDefault(),Wr(e);break;case lo.END:e.ctrlKey||e.metaKey?o.call(this.selection,new Me(this.instance.countRows()-1,this.selection.selectedRange.current().from.col)):o.call(this.selection,new Me(this.selection.selectedRange.current().from.row,this.instance.countCols()-1)),e.preventDefault(),Wr(e);break;case lo.PAGE_UP:this.selection.transformStart(-this.instance.countVisibleRows(),0),e.preventDefault(),Wr(e);break;case lo.PAGE_DOWN:this.selection.transformStart(this.instance.countVisibleRows(),0),e.preventDefault(),Wr(e)}}else this.openEditor("",e)}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&(this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e))}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}],n&&lu(t.prototype,n),e}(),cu=new WeakMap;uu.getInstance=function(e,t,n,r){var o=cu.get(e);return o||(o=new uu(e,t,n,r),cu.set(e,o)),o};const hu=uu;function fu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function du(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),i=o.length,a=i>0?o[0].length:0,s=["<table>","</table>"],l=t?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=n?1:0,h=t?1:0,f=0;f<i;f+=1){for(var d=t&&0===f,m=[],p=0;p<a;p+=1){var y=!d&&n&&0===p,v="";if(d)v="<th>".concat(e.getColHeader(p-c),"</th>");else if(y)v="<th>".concat(e.getRowHeader(f-h),"</th>");else{var g=o[f][p],w=e.getCellMeta(f-c,p-h),b=w.hidden,_=w.rowspan,M=w.colspan;if(!b){var k=[];if(_&&k.push('rowspan="'.concat(_,'"')),M&&k.push('colspan="'.concat(M,'"')),lr(g))v="<td ".concat(k.join(" "),"></td>");else{var S=g.toString().replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");v="<td ".concat(k.join(" "),">").concat(S,"</td>")}}}m.push(v)}var C=["<tr>"].concat(m,["</tr>"]).join("");d?l.splice(1,0,C):u.splice(-1,0,C)}return s.splice(1,0,l.join(""),u.join("")),s.join("")}function mu(e){for(var t=e.length,n=["<table>"],r=0;r<t;r+=1){var o=e[r],i=o.length,a=[];0===r&&n.push("<tbody>");for(var s=0;s<i;s+=1){var l=o[s],u=lr(l)?"":l.toString().replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");a.push("<td>".concat(u,"</td>"))}n.push.apply(n,["<tr>"].concat(a,["</tr>"])),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")}function pu(e,t){var n;return e.msMatchesSelector?n=e.msMatchesSelector(t):e.matches&&(n=e.matches(t)),n}function yu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),o=t.createElement("div");r.appendChild(o);var i=e;if("string"==typeof i&&(o.insertAdjacentHTML("afterbegin","".concat(i)),i=o.querySelector("table")),i&&function(e){return"TABLE"===(e&&e.nodeName||"")}(i)){var a=o.querySelector("style"),s=null,l=[];a&&(t.body.appendChild(a),a.disabled=!0,s=a.sheet,l=s?Array.from(s.cssRules):[],t.body.removeChild(a));var u,c=o.querySelector('meta[name$="enerator"]'),h=null!==i.querySelector("tbody th"),f=Array.from(i.querySelector("tr").cells).reduce((function(e,t){return e+t.colSpan}),0)-(h?1:0),d=i.tFoot&&Array.from(i.tFoot.rows)||[],m=[],p=!1,y=0;if(i.tHead){var v=Array.from(i.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&m.push(e),!t}));p=(y=v.length)>0,y>1?n.nestedHeaders=Array.from(v).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(h&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):p&&(n.colHeaders=Array.from(v[0].children).reduce((function(e,t,n){return h&&0===n||e.push(t.innerHTML),e}),[]))}m.length&&(n.fixedRowsTop=m.length),d.length&&(n.fixedRowsBottom=d.length);var g=[].concat(m,fu(Array.from(i.tBodies).reduce((function(e,t){return e.push.apply(e,fu(Array.from(t.rows))),e}),[])),fu(d));u=g.length;for(var w=new Array(u),b=0;b<u;b++)w[b]=new Array(f);for(var _=[],M=[],k=0;k<u;k++)for(var S=g[k],C=Array.from(S.cells),T=C.length,E=function(e){var t=C[e],n=t.nodeName,r=t.innerHTML,o=t.rowSpan,i=t.colSpan,a=w[k].findIndex((function(e){return void 0===e}));if("TD"===n){if(o>1||i>1){for(var s=k;s<k+o;s++)if(s<u)for(var h=a;h<a+i;h++)w[s][h]=null;var f=t.getAttribute("style");f&&f.includes("mso-ignore:colspan")||_.push({col:a,row:k,rowspan:o,colspan:i})}"nowrap"===l.reduce((function(e,n){if(n.selectorText&&pu(t,n.selectorText)){var r=n.style.whiteSpace;r&&(e.whiteSpace=r)}return e}),{}).whiteSpace?w[k][a]=r.replace(/[\r\n][\x20]{0,2}/gim," ").replace(/<br(\s*|\/)>/gim,"\r\n").replace(/(<([^>]+)>)/gi,"").replace(/&nbsp;/gi," "):c&&/excel/gi.test(c.content)?w[k][a]=r.replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,2}/gim,"\r\n").replace(/(<([^>]+)>)/gi,"").replace(/&nbsp;/gi," "):w[k][a]=r.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n").replace(/(<([^>]+)>)/gi,"").replace(/&nbsp;/gi," ")}else M.push(r)},O=0;O<T;O++)E(O);return _.length&&(n.mergeCells=_),M.length&&(n.rowHeaders=M),w.length&&(n.data=w),n}}n(92157),n(7899);var vu=new WeakMap;function gu(e,t){var n=$r(e);ce.getSingleton().add("construct",(function(){vu.has(this)||vu.set(this,{});var e=vu.get(this);e[n]||(e[n]=new t(this))})),ce.getSingleton().add("afterDestroy",(function(){vu.has(this)&&(ee(vu.get(this),(function(e){return e.destroy()})),vu.delete(this))}))}function wu(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=i.isSelected()?i.getSelectedRange().current():null,l=i.isSelectedByCorner(),u=i.isSelectedByRowHeader();if(t&&s)o.row>=0&&o.col>=0&&!a.cells?i.setRangeEnd(o):(l||u)&&o.row>=0&&o.col>=0&&!a.cells?i.setRangeEnd(new Me(o.row,o.col)):l&&o.row<0&&!a.column?i.setRangeEnd(new Me(s.to.row,o.col)):u&&o.col<0&&!a.row?i.setRangeEnd(new Me(o.row,s.to.col)):(!l&&!u&&o.col<0||l&&o.col<0)&&!a.row?i.selectRows(s.from.row,o.row):(!l&&!u&&o.row<0||u&&o.row<0)&&!a.column&&i.selectColumns(s.from.col,o.col);else{var c=new Me(o.row,o.col);c.row<0&&(c.row=0),c.col<0&&(c.col=0);var h=!i.inInSelection(c),f=n||r&&h;o.row<0&&o.col>=0&&!a.column?f&&i.selectColumns(o.col):o.col<0&&o.row>=0&&!a.row?f&&i.selectRows(o.row):o.col>=0&&o.row>=0&&!a.cells?f&&i.setRangeStart(o):o.col<0&&o.row<0&&i.setRangeStart(o)}}var bu=new Map([["mousedown",wu],["mouseover",function(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller;if(t){var i=r.isSelectedByRowHeader(),a=r.isSelectedByColumnHeader(),s=r.tableProps.countCols(),l=r.tableProps.countRows();a&&!o.column?r.setRangeEnd(new Me(l-1,n.col)):i&&!o.row?r.setRangeEnd(new Me(n.row,s-1)):o.cell||r.setRangeEnd(n)}}],["touchstart",wu]]);function _u(e,t){var n=t.coords,r=t.selection,o=t.controller;bu.get(e.type)({coords:n,selection:r,controller:o,isShiftKey:e.shiftKey,isLeftClick:zr(e)||"touchstart"===e.type,isRightClick:Ur(e)})}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ku=new WeakMap,Su=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.eventManager=new Jr(t),this.settings=t.getSettings(),this.THEAD=void 0,this.TBODY=void 0,this.wt=void 0,this.activeWt=void 0,ku.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}var t,n;return t=e,n=[{key:"render",value:function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1}},{key:"getCellAtCoords",value:function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,r,o){return this.wt.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this.wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this.wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=ku.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),wt(n,"handsontable"),e.table=r.createElement("TABLE"),wt(e.table,"htCore"),this.instance.getSettings().tableClassName&&wt(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var e=this,t=ku.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;Gt(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&Gt(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(i,"keyup",(function(t){e.instance.selection.isInProgress()&&!t.shiftKey&&e.instance.selection.finish()})),this.eventManager.addEventListener(i,"mouseup",(function(n){e.instance.selection.isInProgress()&&zr(n)&&e.instance.selection.finish(),t.mouseDown=!1,(tn(o.activeElement)||!e.instance.selection.isSelected()&&!Ur(n))&&e.instance.unlisten()})),this.eventManager.addEventListener(i,"contextmenu",(function(n){e.instance.selection.isInProgress()&&Ur(n)&&(e.instance.selection.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(i,"touchend",(function(){e.instance.selection.isInProgress()&&e.instance.selection.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(i,"mousedown",(function(n){var a=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view.wt.wtTable.holder;if(u===c){var h=Xt(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==i;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(a):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||en(t.target)||t.preventDefault()}))}},{key:"initializeWalkontable",value:function(){var e=this,t=ku.get(this),n={debug:function(){return e.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:this.instance.getDataAtCell,totalRows:function(){return e.instance.countRows()},totalColumns:function(){return e.instance.countCols()},fixedColumnsLeft:function(){return e.settings.fixedColumnsLeft},fixedRowsTop:function(){return e.settings.fixedRowsTop},fixedRowsBottom:function(){return e.settings.fixedRowsBottom},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){return e.appendRowHeader(t,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){e.appendColHeader(t,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:this.instance.getColWidth,rowHeight:this.instance.getRowHeight,cellRenderer:function(t,n,r){var o=e.instance.getCellMeta(t,n),i=e.instance.colToProp(n),a=e.instance.getDataAtRowProp(t,i);e.instance.hasHook("beforeValueRender")&&(a=e.instance.runHooks("beforeValueRender",a,o)),e.instance.runHooks("beforeRenderer",r,t,n,i,a,o),e.instance.getCellRenderer(o)(e.instance,r,t,n,i,a,o),e.instance.runHooks("afterRenderer",r,t,n,i,a,o)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,r,o,a),Fr(n)||(_u(n,{coords:r,selection:e.instance.selection,controller:a}),e.instance.runHooks("afterOnCellMouseDown",n,r,o),e.activeWt=e.wt)},onCellContextMenu:function(n,r,o,i){e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,r,o),Fr(n)||(e.instance.runHooks("afterOnCellContextMenu",n,r,o),e.activeWt=e.wt)},onCellMouseOut:function(t,n,r,o){e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,n,r),Fr(t)||(e.instance.runHooks("afterOnCellMouseOut",t,n,r),e.activeWt=e.wt)},onCellMouseOver:function(n,r,o,i){var a={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,r,o,a),Fr(n)||(t.mouseDown&&_u(n,{coords:r,selection:e.instance.selection,controller:a}),e.instance.runHooks("afterOnCellMouseOver",n,r,o),e.activeWt=e.wt)},onCellMouseUp:function(t,n,r,o){e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,n,r),e.instance.runHooks("afterOnCellMouseUp",t,n,r),e.activeWt=e.wt},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.onDraw(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onAfterDrawSelection:function(t,n,r,o){return e.instance.runHooks("afterDrawSelection",t,n,r,o)},onBeforeDrawBorders:function(t,n){return e.instance.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.instance.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){return e.instance.runHooks("modifyGetCellCoords",t,n,r)},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.instance.countRows();if("number"==typeof n)t.startRow=Math.max(t.startRow-n,0),t.endRow=Math.min(t.endRow+n,r-1);else if("auto"===n){var o=t.startRow+t.endRow-t.startRow,i=Math.ceil(o/r*12);t.startRow=Math.max(t.startRow-i,0),t.endRow=Math.min(t.endRow+i,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsLeft&&(n=10),n>0||"auto"===n){var r=e.instance.countCols();if("number"==typeof n&&(t.startColumn=Math.max(t.startColumn-n,0),t.endColumn=Math.min(t.endColumn+n,r-1)),"auto"===n){var o=t.startColumn+t.endColumn-t.startColumn,i=Math.ceil(o/r*12);t.startRow=Math.max(t.startColumn-i,0),t.endColumn=Math.min(t.endColumn+i,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this.wt=new Ro(n),this.activeWt=this.wt;var r=this.wt.wtTable.spreader,o=this.instance.rootElement.getBoundingClientRect(),i=o.width,a=o.height;this.setLastSize(i,a),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&Wr(e)})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&Wr(e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e.wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if(en(e))return!0;var t=ut(e,this.instance.view.wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell())}},{key:"isMouseDown",value:function(){return ku.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t,n=(e=this.instance.getSelectedLast()||[],t=4,function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),r=n[0],o=n[1],i=n[2],a=n[3];return void 0!==r&&r===i&&o===a}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)}},{key:"onDraw",value:function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!gt(n,"relative"))return Mt(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;gt(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):(Mt(t),this.appendColHeader(e,t))}else{var r=this.instance.rootDocument,o=r.createElement("div"),i=r.createElement("span");o.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetColHeader",e,t)}},{key:"updateCellHeader",value:function(e,t,n){var r=t,o=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&(gt(e,"colHeader")?r=o.wtTable.columnFilter.sourceToRendered(t):gt(e,"rowHeader")&&(r=o.wtTable.rowFilter.sourceToRendered(t))),r>-1?Ct(e,n(t)):(Tt(e,String.fromCharCode(160)),wt(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this.wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this.wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=ku.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=ku.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"mainViewIsActive",value:function(){return this.wt===this.activeWt}},{key:"destroy",value:function(){this.wt.destroy(),this.eventManager.destroy()}}],n&&Mu(t.prototype,n),e}();const Cu=Su;function Tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Eu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}var t,n;return t=e,n=[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return P(this.data,(function(r){var o,i=t.colToProp(e);o="string"==typeof i?te(r,i):"function"==typeof i?i(r):r[i],n.push(o)})),n}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,r=this.hot.runHooks("modifyRowData",e),o=isNaN(r)?r:this.data[e];if(o){var i=this.colToProp(t);n="string"==typeof i?te(o,i):"function"==typeof i?i(this.data.slice(e,e+1)[0]):o[i]}return n}},{key:"getByRange",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Math.min(e.row,t.row),i=Math.min(e.col,t.col),a=Math.max(e.row,t.row),s=Math.max(e.col,t.col),l=[];return Ra(o,a,(function(e){var t,o=n.getAtRow(e);"array"===n.dataType?t=o.slice(i,s+1):"object"===n.dataType&&(t=r?[]:{},Ra(i,s,(function(e){var i=n.colToProp(e);r?t.push(o[i]):t[i]=o[i]}))),l.push(t)})),l}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}],n&&Tu(t.prototype,n),e}();const Ou=Eu;function Ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Lu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t}var t,n;return t=e,n=[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return Q(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return Q(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}],n&&Ru(t.prototype,n),e}(),Du=new WeakMap,Au=new WeakMap;function Hu(e){var t,n=e instanceof Mf?e:function(e){if(!Du.has(e))throw Error("Record translator was not registered for this object identity");return Du.get(e)}(e);return Au.has(n)?t=Au.get(n):(t=new Lu(n),Au.set(n,t)),t}var Nu=new WeakMap,Pu=Symbol("rootInstance");function xu(e){return e===Pu}function Yu(e){return Nu.has(e)}function Iu(e){return Iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iu(e)}function ju(){}ju.prototype={licenseKey:void 0,data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,selectionMode:"multiple",fillHandle:{autoInsertRow:!1},fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!0,autoWrapCol:!0,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",activeHeaderClassName:"ht__active_highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,r,o;for(t=0,n=this.countCols();t<n;t++)if(""!==(r=this.getDataAtCell(e,t))&&null!==r&&ar(r))return"object"===Iu(r)&&(o=this.getCellMeta(e,t),$(this.getSchema()[o.prop],r));return!0},isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(""!==(r=this.getDataAtCell(t,e))&&null!==r&&ar(r))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:void 0,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,skipRowOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,copyPaste:!0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,multiColumnSorting:void 0,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,manualColumnFreeze:void 0,trimWhitespace:!0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,numericFormat:void 0,language:"en-US",selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:"DD/MM/YYYY",correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,preventWheel:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1,dragToScroll:!0,nestedRows:void 0};const Fu=ju;function Wu(){var e,t,n=(e=['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Wu=function(){return n},n}function Bu(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);return t?"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase()):e}function Vu(e){ar(e)&&function(){var e;ar(console)&&(e=console).error.apply(e,arguments)}(Jn(Wu(),e))}var Uu,zu="ContextMenu:items",Gu="".concat(zu,".noItems"),qu="".concat(zu,".insertRowAbove"),Xu="".concat(zu,".insertRowBelow"),Ku="".concat(zu,".insertColumnOnTheLeft"),Ju="".concat(zu,".insertColumnOnTheRight"),$u="".concat(zu,".removeRow"),Qu="".concat(zu,".removeColumn"),Zu="".concat(zu,".undo"),ec="".concat(zu,".redo"),tc="".concat(zu,".readOnly"),nc="".concat(zu,".clearColumn"),rc="".concat(zu,".copy"),oc="".concat(zu,".cut"),ic="".concat(zu,".freezeColumn"),ac="".concat(zu,".unfreezeColumn"),sc="".concat(zu,".mergeCells"),lc="".concat(zu,".unmergeCells"),uc="".concat(zu,".addComment"),cc="".concat(zu,".editComment"),hc="".concat(zu,".removeComment"),fc="".concat(zu,".readOnlyComment"),dc="".concat(zu,".align"),mc="".concat(zu,".align.left"),pc="".concat(zu,".align.center"),yc="".concat(zu,".align.right"),vc="".concat(zu,".align.justify"),gc="".concat(zu,".align.top"),wc="".concat(zu,".align.middle"),bc="".concat(zu,".align.bottom"),_c="".concat(zu,".borders"),Mc="".concat(zu,".borders.top"),kc="".concat(zu,".borders.right"),Sc="".concat(zu,".borders.bottom"),Cc="".concat(zu,".borders.left"),Tc="".concat(zu,".borders.remove"),Ec="".concat(zu,".nestedHeaders.insertChildRow"),Oc="".concat(zu,".nestedHeaders.detachFromParent"),Rc="".concat(zu,".hideColumn"),Lc="".concat(zu,".showColumn"),Dc="".concat(zu,".hideRow"),Ac="".concat(zu,".showRow"),Hc="Filters:",Nc="".concat(Hc,"conditions"),Pc="".concat(Nc,".none"),xc="".concat(Nc,".isEmpty"),Yc="".concat(Nc,".isNotEmpty"),Ic="".concat(Nc,".isEqualTo"),jc="".concat(Nc,".isNotEqualTo"),Fc="".concat(Nc,".beginsWith"),Wc="".concat(Nc,".endsWith"),Bc="".concat(Nc,".contains"),Vc="".concat(Nc,".doesNotContain"),Uc="".concat(Nc,".byValue"),zc="".concat(Nc,".greaterThan"),Gc="".concat(Nc,".greaterThanOrEqualTo"),qc="".concat(Nc,".lessThan"),Xc="".concat(Nc,".lessThanOrEqualTo"),Kc="".concat(Nc,".isBetween"),Jc="".concat(Nc,".isNotBetween"),$c="".concat(Nc,".after"),Qc="".concat(Nc,".before"),Zc="".concat(Nc,".today"),eh="".concat(Nc,".tomorrow"),th="".concat(Nc,".yesterday"),nh="".concat(Hc,"labels.filterByCondition"),rh="".concat(Hc,"labels.filterByValue"),oh="".concat(Hc,"labels.conjunction"),ih="".concat(Hc,"labels.disjunction"),ah="".concat(Hc,"values.blankCells"),sh="".concat(Hc,"buttons.selectAll"),lh="".concat(Hc,"buttons.clear"),uh="".concat(Hc,"buttons.ok"),ch="".concat(Hc,"buttons.cancel"),hh="".concat(Hc,"buttons.placeholder.search"),fh="".concat(Hc,"buttons.placeholder.value"),dh="".concat(Hc,"buttons.placeholder.secondValue");function mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ph=(mh(Uu={languageCode:"en-US"},Gu,"No available options"),mh(Uu,qu,"Insert row above"),mh(Uu,Xu,"Insert row below"),mh(Uu,Ku,"Insert column left"),mh(Uu,Ju,"Insert column right"),mh(Uu,$u,["Remove row","Remove rows"]),mh(Uu,Qu,["Remove column","Remove columns"]),mh(Uu,Zu,"Undo"),mh(Uu,ec,"Redo"),mh(Uu,tc,"Read only"),mh(Uu,nc,"Clear column"),mh(Uu,dc,"Alignment"),mh(Uu,mc,"Left"),mh(Uu,pc,"Center"),mh(Uu,yc,"Right"),mh(Uu,vc,"Justify"),mh(Uu,gc,"Top"),mh(Uu,wc,"Middle"),mh(Uu,bc,"Bottom"),mh(Uu,ic,"Freeze column"),mh(Uu,ac,"Unfreeze column"),mh(Uu,_c,"Borders"),mh(Uu,Mc,"Top"),mh(Uu,kc,"Right"),mh(Uu,Sc,"Bottom"),mh(Uu,Cc,"Left"),mh(Uu,Tc,"Remove border(s)"),mh(Uu,uc,"Add comment"),mh(Uu,cc,"Edit comment"),mh(Uu,hc,"Delete comment"),mh(Uu,fc,"Read-only comment"),mh(Uu,sc,"Merge cells"),mh(Uu,lc,"Unmerge cells"),mh(Uu,rc,"Copy"),mh(Uu,oc,"Cut"),mh(Uu,Ec,"Insert child row"),mh(Uu,Oc,"Detach from parent"),mh(Uu,Rc,["Hide column","Hide columns"]),mh(Uu,Lc,["Show column","Show columns"]),mh(Uu,Dc,["Hide row","Hide rows"]),mh(Uu,Ac,["Show row","Show rows"]),mh(Uu,Pc,"None"),mh(Uu,xc,"Is empty"),mh(Uu,Yc,"Is not empty"),mh(Uu,Ic,"Is equal to"),mh(Uu,jc,"Is not equal to"),mh(Uu,Fc,"Begins with"),mh(Uu,Wc,"Ends with"),mh(Uu,Bc,"Contains"),mh(Uu,Vc,"Does not contain"),mh(Uu,zc,"Greater than"),mh(Uu,Gc,"Greater than or equal to"),mh(Uu,qc,"Less than"),mh(Uu,Xc,"Less than or equal to"),mh(Uu,Kc,"Is between"),mh(Uu,Jc,"Is not between"),mh(Uu,$c,"After"),mh(Uu,Qc,"Before"),mh(Uu,Zc,"Today"),mh(Uu,eh,"Tomorrow"),mh(Uu,th,"Yesterday"),mh(Uu,ah,"Blank cells"),mh(Uu,nh,"Filter by condition"),mh(Uu,rh,"Filter by value"),mh(Uu,oh,"And"),mh(Uu,ih,"Or"),mh(Uu,sh,"Select all"),mh(Uu,lh,"Clear"),mh(Uu,uh,"OK"),mh(Uu,ch,"Cancel"),mh(Uu,hh,"Search"),mh(Uu,fh,"Value"),mh(Uu,dh,"Second value"),Uu);var yh=ph.languageCode,vh=O("languagesDictionaries"),gh=vh.register,wh=vh.getItem,bh=vh.hasItem,_h=vh.getValues;function Mh(e,t){var n=e,r=t;return Q(e)&&(n=(r=e).languageCode),function(e,t){var n;e!==yh&&(n=t,ee(wh(yh),(function(e,t){sr(n[t])&&(n[t]=e)})))}(n,r),gh(n,X(r)),X(r)}function kh(e){return Sh(e)?X(wh(e)):null}function Sh(e){return bh(e)}Mh(ph);var Ch=O("phraseFormatters"),Th=Ch.register,Eh=Ch.getValues;function Oh(e,t,n){var r=kh(e);if(null===r)return null;var o=r[t];if(sr(o))return null;var i=function(e,t){var n=e;return P(Eh(),(function(r){n=r(e,t)})),n}(o,n);return Array.isArray(i)?i[0]:i}Th("pluralize",(function(e,t){return Array.isArray(e)&&Number.isInteger(t)?e[t]:e})),n(45708);var Rh=new Jr,Lh=new Set,Dh=0;function Ah(e){0===Dh&&(Rh.addEventListener(e,"keydown",(function(e){Lh.has(e.keyCode)||Lh.add(e.keyCode)})),Rh.addEventListener(e,"keyup",(function(e){Lh.has(e.keyCode)&&Lh.delete(e.keyCode)})),Rh.addEventListener(e,"visibilitychange",(function(){e.hidden&&Lh.clear()})),Rh.addEventListener(e.defaultView,"blur",(function(){Lh.clear()}))),Dh+=1}function Hh(){Dh>0&&(Dh-=1),0===Dh&&(Rh.clearEvents(),Lh.clear(),Dh=0)}function Nh(){return Array.from(Lh.values()).some((function(e){return fo(e)}))}n(32982),n(3101);var Ph=O("highlight/types"),xh=Ph.register,Yh=Ph.getItem;function Ih(e,t){return Yh(e)(t)}function jh(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(n,!0).forEach((function(t){Bh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}xh("active-header",(function(e){var t=e.activeHeaderClassName;return new da({highlightHeaderClassName:t})})),xh("area",(function(e){var t=e.layerLevel,n=e.areaCornerVisible;return new da({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}})})),xh("cell",(function(e){var t=e.cellCornerVisible;return new da({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}})})),xh("custom-selection",(function(e){var t=e.border,n=e.cellRange;return new da(t,n)})),xh("fill",(function(){return new da({className:"fill",border:{width:1,color:"#ff0000"}})})),xh("header",(function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName;return new da({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r})}));var Uh="area",zh="cell",Gh="header",qh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.layerLevel=0,this.cell=Ih(zh,t),this.fill=Ih("fill",t),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}var t,n;return t=e,n=[{key:"isEnabledFor",value:function(e){var t="current"===e?zh:e,n=this.options.disableHighlight;return"string"==typeof n&&(n=[n]),!1===n||Array.isArray(n)&&!n.includes(t)}},{key:"useLayerLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=Ih(Uh,Wh({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return jh(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=Ih(Gh,Wh({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return jh(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=Ih("active-header",Wh({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return jh(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return jh(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push(Ih("custom-selection",Wh({},e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),P(this.areas.values(),(function(e){e.clear()})),P(this.headers.values(),(function(e){e.clear()})),P(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat(jh(this.areas.values()),jh(this.headers.values()),jh(this.activeHeaders.values()),jh(this.customSelections))[Symbol.iterator]()}}],n&&Vh(t.prototype,n),e}();const Xh=qh;function Kh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Jh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ranges=[]}var t,n;return t=e,n=[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(new Ce(e)),this}},{key:"add",value:function(e){return this.ranges.push(new Ce(e)),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some((function(t){return t.includes(e)}))}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:Symbol.iterator,value:function(){return this.ranges[Symbol.iterator]()}}],n&&Kh(t.prototype,n),e}();const $h=Jh;var Qh={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this._localHooks[e]&&P(this._localHooks[e],(function(e){return e.apply(t,r)}))},clearLocalHooks:function(){return this._localHooks={},this}};Z(Qh,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});const Zh=Qh;function ef(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tf=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.range=t,this.options=n}var t,n;return t=e,(n=[{key:"transformStart",value:function(e,t,n){var r=new Me(e,t);this.runLocalHooks("beforeTransformStart",r);var o=this.options.countRows(),i=this.options.countCols(),a=this.options.fixedRowsBottom(),s=this.options.minSpareRows(),l=this.options.minSpareCols(),u=this.options.autoWrapRow(),c=this.options.autoWrapCol(),h=this.range.current().highlight;h.row+e>o-1?n&&s>0&&!(a&&h.row>=o-a-1)?(this.runLocalHooks("insertRowRequire",o),o=this.options.countRows()):c&&(r.row=1-o,r.col=h.col+r.col===i-1?1-i:1):c&&h.row+r.row<0&&h.col+r.col>=0&&(r.row=o-1,r.col=h.col+r.col===0?i-1:-1),h.col+r.col>i-1?n&&l>0?(this.runLocalHooks("insertColRequire",i),i=this.options.countCols()):u&&(r.row=h.row+r.row===o-1?1-o:1,r.col=1-i):u&&h.col+r.col<0&&h.row+r.row>=0&&(r.row=h.row+r.row===0?o-1:-1,r.col=i-1);var f=new Me(h.row+r.row,h.col+r.col),d=0,m=0;return f.row<0?(d=-1,f.row=0):f.row>0&&f.row>=o&&(d=1,f.row=o-1),f.col<0?(m=-1,f.col=0):f.col>0&&f.col>=i&&(m=1,f.col=i-1),this.runLocalHooks("afterTransformStart",f,d,m),f}},{key:"transformEnd",value:function(e,t){var n=new Me(e,t);this.runLocalHooks("beforeTransformEnd",n);var r=this.options.countRows(),o=this.options.countCols(),i=this.range.current(),a=new Me(i.to.row+n.row,i.to.col+n.col),s=0,l=0;return a.row<0?(s=-1,a.row=0):a.row>0&&a.row>=r&&(s=1,a.row=r-1),a.col<0?(l=-1,a.col=0):a.col>0&&a.col>=o&&(l=1,a.col=o-1),this.runLocalHooks("afterTransformEnd",a,s,l),a}}])&&ef(t.prototype,n),e}();J(tf,Zh);const nf=tf;function rf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function of(e){return of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},of(e)}var af=[3,2],sf=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],lf=Symbol("root"),uf=Symbol("child");function cf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lf;if(t!==lf&&t!==uf)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===lf,o=0;if(n){var i=e[0];if(0===e.length)o=1;else if(r&&i instanceof Ce)o=3;else if(r&&Array.isArray(i))o=cf(i,uf);else if(e.length>=2&&e.length<=4){var a=!e.some((function(e,t){return!sf[t].includes(of(e))}));a&&(o=2)}}return o}function hf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!af.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=3===e,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],l=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof l&&(l=o(l))),sr(s)&&(s=i),sr(l)&&(l=a),!r){var u=i,c=a,h=s,f=l;i=Math.min(u,h),a=Math.min(c,f),s=Math.max(u,h),l=Math.max(c,f)}return[i,a,s,l]}}function ff(e){return"number"==typeof e&&e>=0&&e<(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0)}function df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function mf(){var e,t,n=(e=["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, columnEnd/columnPropEnd]]) \n or as an array of CellRange objects."],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return mf=function(){return n},n}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var yf=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new $h,this.highlight=new Xh({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disableHighlight:this.settings.disableVisualSelection,cellCornerVisible:function(){return r.isCellCornerVisible.apply(r,arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible.apply(r,arguments)}}),this.transformation=new nf(this.selectedRange,{countRows:function(){return r.tableProps.countRows()},countCols:function(){return r.tableProps.countCols()},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("beforeTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("afterTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("insertRowRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertRowRequire"].concat(t))})),this.transformation.addLocalHook("insertColRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertColRequire"].concat(t))}))}var t,n;return t=e,n=[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=sr(t)?Nh():t,i=e.row<0,a=e.col<0,s=i&&a;i&&(e.row=0),a&&(e.col=0),this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),e),(!r||r&&!o&&sr(t))&&this.selectedRange.clear(),this.selectedRange.add(e),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){this.runLocalHooks("beforeSetRangeEnd",e),this.begin();var t=this.selectedRange.current();"single"!==this.settings.selectionMode&&t.setTo(new Me(e.row,e.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(zh)&&this.highlight.getCell().add(this.selectedRange.current().highlight);var n=this.getLayerLevel();n<this.highlight.layerLevel&&(P(this.highlight.getAreas(),(function(e){e.clear()})),P(this.highlight.getHeaders(),(function(e){e.clear()})),P(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();r.clear(),o.clear(),i.clear(),this.highlight.isEnabledFor(Uh)&&(this.isMultiple()||n>=1)&&(r.add(t.from).add(t.to),1===n&&(this.highlight.useLayerLevel(n-1).createOrGetArea().add(this.selectedRange.previous().from),this.highlight.useLayerLevel(n))),this.highlight.isEnabledFor(Gh)&&("single"===this.settings.selectionMode?o.add(t.highlight):o.add(t.from).add(t.to)),this.isSelectedByRowHeader()&&this.tableProps.countCols()===t.getWidth()&&i.add(new Me(t.from.row,-1)).add(new Me(t.to.row,-1)),this.isSelectedByColumnHeader()&&this.tableProps.countRows()===t.getHeight()&&i.add(new Me(-1,t.from.col)).add(new Me(-1,t.to.col)),this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=re(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t,n){this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple()}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){this.clear(),this.setRangeStart(new Me(-1,-1)),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(new Me(this.tableProps.countRows()-1,this.tableProps.countCols()-1))}},{key:"selectCells",value:function(e){var t=this,n=cf(e);if(1===n)return!1;if(0===n)throw new Error(Jn(mf()));var r=hf(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),o=this.tableProps.countRows(),i=this.tableProps.countCols(),a=!e.some((function(e){var t=df(r(e),4),n=t[0],a=t[1],s=t[2],l=t[3];return!(ff(n,o)&&ff(a,i)&&ff(s,o)&&ff(l,i))}));return a&&(this.clear(),P(e,(function(e){var n=df(r(e),4),o=n[0],i=n[1],a=n[2],s=n[3];t.setRangeStartOnly(new Me(o,i),!1),t.setRangeEnd(new Me(a,s)),t.finish()}))),a}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n="string"==typeof e?this.tableProps.propToCol(e):e,r="string"==typeof t?this.tableProps.propToCol(t):t,o=this.tableProps.countCols(),i=ff(n,o)&&ff(r,o);return i&&(this.setRangeStartOnly(new Me(-1,n)),this.setRangeEnd(new Me(this.tableProps.countRows()-1,r)),this.finish()),i}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.tableProps.countRows(),r=ff(e,n)&&ff(t,n);return r&&(this.setRangeStartOnly(new Me(e,-1)),this.setRangeEnd(new Me(t,this.tableProps.countCols()-1)),this.finish()),r}}],n&&pf(t.prototype,n),e}();J(yf,Zh);const vf=yf;function gf(e){return gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gf(e)}function wf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bf(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var _f=null;function Mf(e,t){var n,r,o,i,a,s,l,u,c=this,h=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=!1,d=this,m=function(){},p=new Jr(d);G(m.prototype,Fu.prototype),G(m.prototype,t),G(m.prototype,k(t)),s=m.prototype,Sh(u=Bu(l=t.language))?s.language=u:(s.language=yh,Vu(l)),xu(h)&&Nu.set(this,!0),this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,Ah(this.rootDocument),this.isDestroyed=!1,this.isHotTableEnv=ct(this.rootElement),Jr.isHotTableEnv=this.isHotTableEnv,this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),Yu(this)&&_r(t.licenseKey,e),this.guid="ht_".concat(Zr());var y=Hu(d);o=new Ou(d),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),n={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width","language"],settings:new m,selRange:null,isPopulated:null,scrollable:null,firstRun:!0};var v=new vf(n.settings,{countCols:function(){return d.countCols()},countRows:function(){return d.countRows()},propToCol:function(e){return r.propToCol(e)},isEditorOpened:function(){return!!d.getActiveEditor()&&d.getActiveEditor().isOpened()}});function g(e){var t=Bu(e);Sh(t)?(d.runHooks("beforeLanguageChange",t),m.prototype.language=t,d.runHooks("afterLanguageChange",t)):Vu(e)}function w(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function b(e,t,n){if(e.length){var o=d.getActiveEditor(),i=d.runHooks("beforeChange",e,t||"edit"),a=!0;if(rn(i))Mr("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed).");else if(!1===i)return void(o&&o.cancelChanges());var s,l,u=new w,c=function(e){return e.length>0&&/^\s*[+-.]?\s*(?:(?:\d+(?:(\.|,)\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/.test(e)};u.onQueueEmpty=function(e){o&&a&&o.cancelChanges(),n(e)};for(var h=e.length-1;h>=0;h--)if(null===e[h])e.splice(h,1);else{var f=wf(e[h],4),m=f[0],p=f[1],y=f[3],v=r.propToCol(p),g=d.getCellMeta(m,v);"numeric"===g.type&&"string"==typeof y&&c(y)&&(e[h][3]=(void 0,l=(s=y).replace(",","."),!1===isNaN(parseFloat(l))?parseFloat(l):s)),d.getCellValidator(g)&&(u.addValidatorToQueue(),d.validateCell(e[h][3],g,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){a=!1,e.splice(t,1),n.valid=!0;var o=d.getCell(n.visualRow,n.visualCol);null!==o&&bt(o,d.getSettings().invalidCellClassName)}u.removeValidatorFormQueue()}}(h,g),t))}u.checkIfQueueIsEmpty()}}function _(e,t){var o=e.length-1;if(!(o<0)){for(;o>=0;o--){var s=!1;if(null!==e[o]){if(null!==e[o][2]&&void 0!==e[o][2]||null!==e[o][3]&&void 0!==e[o][3]){if(n.settings.allowInsertRow)for(;e[o][0]>d.countRows()-1;)if(0===r.createRow(void 0,void 0,t)){s=!0;break}if("array"===d.dataType&&(!n.settings.columns||0===n.settings.columns.length)&&n.settings.allowInsertColumn)for(;r.propToCol(e[o][1])>d.countCols()-1;)if(0===r.createCol(void 0,void 0,t)){s=!0;break}s||r.set(e[o][0],e[o][1],e[o][3])}}else e.splice(o,1)}d.forceFullRender=!0,i.adjustRowsAndCols(),d.runHooks("beforeChangeRender",e,t),a.lockEditor(),d._refreshBorders(null),a.unlockEditor(),d.view.wt.wtOverlays.adjustElementsSize(),d.runHooks("afterChange",e,t||"edit");var l=d.getActiveEditor();l&&ar(l.refreshValue)&&l.refreshValue()}}function M(e,t,n){return"object"===gf(e)?e:[[e,t,n]]}function k(e){if(oe(e,"type")){var t,n={};for(var r in"object"===gf(e.type)?t=e.type:"string"==typeof e.type&&(t=Fl(e.type)),t)oe(t,r)&&!oe(e,r)&&(n[r]=t[r]);return n}}this.selection=v,this.selection.addLocalHook("beforeSetRangeStart",(function(e){c.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){c.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){c.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=c.view.wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=c.view.wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=re(!1),n=c.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;c.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),c.runHooks("afterSelectionByProp",o.row,d.colToProp(o.col),i.row,d.colToProp(i.col),t,a);var s=c.selection.isSelectedByAnyHeader(),l=c.selection.selectedRange.current(),u=!0;f&&(u=!1),t.isTouched()&&(u=!t.value);var h=c.selection.isSelectedByRowHeader(),m=c.selection.isSelectedByColumnHeader();!1!==u&&(s?h?c.view.scrollViewportVertically(e.row):m&&c.view.scrollViewportHorizontally(e.col):l&&!c.selection.isMultiple()?c.view.scrollViewport(l.from):c.view.scrollViewport(e)),h&&m?wt(c.rootElement,["ht__selection--rows","ht__selection--columns"]):h?(bt(c.rootElement,"ht__selection--columns"),wt(c.rootElement,"ht__selection--rows")):m?(bt(c.rootElement,"ht__selection--rows"),wt(c.rootElement,"ht__selection--columns")):bt(c.rootElement,["ht__selection--rows","ht__selection--columns"]),c._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;c.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),c.runHooks("afterSelectionEndByProp",r.row,d.colToProp(r.col),o.row,d.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=c.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){c.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){c.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){c.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){c.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){a.destroyEditor(),c._refreshBorders(),bt(c.rootElement,["ht__selection--rows","ht__selection--columns"]),c.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){c.alter("insert_row",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){c.alter("insert_col",e,1,"auto")})),i={alter:function(e,t){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;function u(e,t,n,r){var o=N(new Array(n),(function(){return"array"===r?e=[]:"object"===r&&(e={}),e;var e}));o.unshift(t,0),e.splice.apply(e,bf(o))}var c=function(e){if(0===e.length)return[];var t=bf(e);return t.sort((function(e,t){var n=wf(e,1)[0],r=wf(t,1)[0];return n===r?0:n>r?1:-1})),A(t,(function(e,t){var n=wf(t,2),r=n[0],o=n[1],i=e[e.length-1],a=wf(i,2),s=a[0]+a[1];if(r<=s){var l=Math.max(o-(s-r),0);i[1]+=l}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row":var h=d.countSourceRows();if(d.getSettings().maxRows===h)return;t=ar(t)?t:h,o=r.createRow(t,a,s),u(n.cellSettings,t,a,"array"),o&&(v.isSelected()&&v.selectedRange.current().from.row>=t?(v.selectedRange.current().from.row+=o,v.transformEnd(o,0)):d._refreshBorders());break;case"insert_col":o=r.createCol(t,a,s);for(var f=0,m=d.countSourceRows();f<m;f++)n.cellSettings[f]&&u(n.cellSettings[f],t,a);if(o){if(Array.isArray(d.getSettings().colHeaders)){var p=[t,0];p.length+=o,Array.prototype.splice.apply(d.getSettings().colHeaders,p)}v.isSelected()&&v.selectedRange.current().from.col>=t?(v.selectedRange.current().from.col+=o,v.transformEnd(0,o)):d._refreshBorders()}break;case"remove_row":var g=function(e){var t=0;P(e,(function(e){var o=wf(e,2),i=o[0],l=o[1],u=lr(i)?d.countRows()-1:Math.max(i-t,0);Number.isInteger(i)&&(i=Math.max(i-t,0)),r.removeRow(i,l,s),n.cellSettings.splice(u,a);var c=d.countRows(),h=d.getSettings().fixedRowsTop;h>=u+1&&(d.getSettings().fixedRowsTop-=Math.min(l,h-u));var f=d.getSettings().fixedRowsBottom;f&&u>=c-f&&(d.getSettings().fixedRowsBottom-=Math.min(l,f)),t+=l}))};Array.isArray(t)?g(c(t)):g([[t,a]]),i.adjustRowsAndCols(),d._refreshBorders();break;case"remove_col":var w=function(e){var t=0;P(e,(function(e){var o=wf(e,2),i=o[0],a=o[1],l=lr(i)?d.countCols()-1:Math.max(i-t,0),u=y.toPhysicalColumn(l);Number.isInteger(i)&&(i=Math.max(i-t,0)),r.removeCol(i,a,s);for(var c=0,h=d.countSourceRows();c<h;c++)n.cellSettings[c]&&n.cellSettings[c].splice(u,a);var f=d.getSettings().fixedColumnsLeft;f>=l+1&&(d.getSettings().fixedColumnsLeft-=Math.min(a,f-l)),Array.isArray(d.getSettings().colHeaders)&&(void 0===u&&(u=-1),d.getSettings().colHeaders.splice(u,a)),t+=a}))};Array.isArray(t)?w(c(t)):w([[t,a]]),i.adjustRowsAndCols(),d._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}l||i.adjustRowsAndCols()},adjustRowsAndCols:function(){if(n.settings.minRows){var e=d.countRows();if(e<n.settings.minRows)for(var t=0,o=n.settings.minRows;t<o-e;t++)r.createRow(d.countRows(),1,"auto")}if(n.settings.minSpareRows){var i=d.countEmptyRows(!0);if(i<n.settings.minSpareRows)for(;i<n.settings.minSpareRows&&d.countSourceRows()<n.settings.maxRows;i++)r.createRow(d.countRows(),1,"auto")}var a;if((n.settings.minCols||n.settings.minSpareCols)&&(a=d.countEmptyCols(!0)),n.settings.minCols&&!n.settings.columns&&d.countCols()<n.settings.minCols)for(;d.countCols()<n.settings.minCols;a++)r.createCol(d.countCols(),1,"auto");if(n.settings.minSpareCols&&!n.settings.columns&&"array"===d.dataType&&a<n.settings.minSpareCols)for(;a<n.settings.minSpareCols&&d.countCols()<n.settings.maxCols;a++)r.createCol(d.countCols(),1,"auto");var s=d.countRows(),l=d.countCols();0!==s&&0!==l||v.deselect(),v.isSelected()&&P(v.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>s-1?(t=!0,o>(n=s-1)&&(o=n)):o>s-1&&(t=!0,n>(o=s-1)&&(n=o)),r>l-1?(t=!0,i>(r=l-1)&&(i=r)):i>l-1&&(t=!0,r>(i=l-1)&&(r=i)),t&&d.selectCell(n,r,o,i)})),d.view&&d.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,r,o,i,a,s){var l,u,c,h,f,m,p,y,v=[],g={};if(0===(u=t.length))return!1;switch(i){case"shift_down":for(f=r?r.col-e.col+1:0,m=r?r.row-e.row+1:0,c=0,h=(t=$l(t)).length,p=Math.max(h,f);c<p;c++)if(c<h){var w;for(l=0,u=t[c].length;l<m-u;l++)t[c].push(t[c][l%u]);t[c].unshift(e.col+c,e.row,0),(w=d).spliceCol.apply(w,bf(t[c]))}else{var b;t[c%h][0]=e.col+c,(b=d).spliceCol.apply(b,bf(t[c%h]))}break;case"shift_right":for(f=r?r.col-e.col+1:0,m=r?r.row-e.row+1:0,l=0,u=t.length,y=Math.max(u,m);l<y;l++)if(l<u){var _;for(c=0,h=t[l].length;c<f-h;c++)t[l].push(t[l][c%h]);t[l].unshift(e.row+l,e.col,0),(_=d).spliceRow.apply(_,bf(t[l]))}else{var M;t[l%u][0]=e.row+l,(M=d).spliceRow.apply(M,bf(t[l%u]))}break;default:g.row=e.row,g.col=e.col;var k,S={row:r&&e?r.row-e.row+1:1,col:r&&e?r.col-e.col+1:1},C=0,T=0,E=!0,O=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},R=t.length,L=r?r.row-e.row+1:0;for(u=r?L:Math.max(R,L),l=0;l<u&&!(r&&g.row>r.row&&L>R||!n.settings.allowInsertRow&&g.row>d.countRows()-1||g.row>=n.settings.maxRows);l++){var D=l-C,A=O(D).length,H=r?r.col-e.col+1:0;if(h=r?H:Math.max(A,H),g.col=e.col,k=d.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!k.skipRowOnPaste){for(T=0,c=0;c<h&&!(r&&g.col>r.col&&H>A||!n.settings.allowInsertColumn&&g.col>d.countCols()-1||g.col>=n.settings.maxCols);c++)if(k=d.getCellMeta(g.row,g.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!k.skipColumnOnPaste)if(k.readOnly)g.col+=1;else{var N=c-T,P=O(D,N),x=d.getDataAtCell(g.row,g.col),Y={row:D,col:N};if("Autofill.fill"===o){var I=d.runHooks("beforeAutofillInsidePopulate",Y,a,t,s,{},S);I&&(P=sr(I.value)?P:I.value)}null!==P&&"object"===gf(P)?(Array.isArray(P)&&null===x&&(x=[]),null===x||"object"!==gf(x)?E=!1:$(U(Array.isArray(x)?x:x[0]||x),U(Array.isArray(P)?P:P[0]||P))?P=X(P):E=!1):null!==x&&"object"===gf(x)&&(E=!1),E&&v.push([g.row,g.col,P]),E=!0,g.col+=1}else T+=1,g.col+=1,h+=1;g.row+=1}else C+=1,g.row+=1,u+=1}d.setDataAtCell(v,null,null,o||"populateFromArray")}}},this.init=function(){o.setData(n.settings.data),d.runHooks("beforeInit"),Pe()&&wt(d.rootElement,"mobile"),this.updateSettings(n.settings,!0),this.view=new Cu(this),a=hu.getInstance(d,n,v,r),this.forceFullRender=!0,d.runHooks("init"),this.view.render(),"object"===gf(n.firstRun)&&(d.runHooks("afterChange",n.firstRun[0],n.firstRun[1]),n.firstRun=!1),d.runHooks("afterInit")},this.validateCell=function(e,t,n,r){var o,i=d.getCellValidator(t);function a(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!0===t.hidden)n(e);else{var r=t.visualCol,o=t.visualRow,i=d.getCell(o,r,!0);i&&"TH"!==i.nodeName&&d.view.wt.wtSettings.settings.cellRenderer(o,r,i),n(e)}}ur(i)&&(o=i,i=function(e,t){t(o.test(e))}),rn(i)?(e=d.runHooks("beforeValidate",e,t.visualRow,t.prop,r),d._registerImmediate((function(){i.call(t,e,(function(n){d&&(n=d.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),d.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):d._registerImmediate((function(){t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,i){var a,s,l,u=M(e,t,n),c=[],h=i;for(a=0,s=u.length;a<s;a++){if("object"!==gf(u[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof u[a][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");var f=y.toPhysicalRow(u[a][0]);l=r.colToProp(u[a][1]),c.push([u[a][0],l,o.getAtCell(f,u[a][1]),u[a][2]])}h||"object"!==gf(e)||(h=t),d.runHooks("afterSetDataAtCell",c,h),b(c,h,(function(){_(c,h)}))},this.setDataAtRowProp=function(e,t,n,r){var i,a,s=M(e,t,n),l=[],u=r;for(i=0,a=s.length;i<a;i++){var c=y.toPhysicalRow(s[i][0]);l.push([s[i][0],s[i][1],o.getAtCell(c,s[i][1]),s[i][2]])}u||"object"!==gf(e)||(u=t),d.runHooks("afterSetDataAtRowProp",l,u),b(l,u,(function(){_(l,u)}))},this.listen=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=d.rootDocument;if(e){var n=!t.activeElement||t.activeElement&&void 0===t.activeElement.nodeName;t.activeElement&&t.activeElement!==t.body&&!n?t.activeElement.blur():n&&t.body.focus()}d&&!d.isListening()&&(_f=d.guid,d.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(_f=null,d.runHooks("afterUnlisten"))},this.isListening=function(){return _f===d.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];d._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,o,a,s,l,u){if("object"!==gf(n)||"object"!==gf(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var c="number"==typeof r?new Me(r,o):null;return i.populateFromArray(new Me(e,t),n,c,a,s,l,u)},this.spliceCol=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceCol.apply(o,[e,t,n].concat(a))},this.spliceRow=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceRow.apply(o,[e,t,n].concat(a))},this.getSelected=function(){if(v.isSelected())return N(v.getSelectedRange(),(function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(v.isSelected())return Array.from(v.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(v.isSelected()){var n=[];P(v.getSelectedRange(),(function(e){var r=e.getTopLeftCorner(),o=e.getBottomRightCorner();Ra(r.row,o.row,(function(e){Ra(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.render=function(){d.view&&(d.renderCall=!0,d.forceFullRender=!0,a.lockEditor(),d._refreshBorders(null),a.unlockEditor())},this.refreshDimensions=function(){if(d.view){var e=d.view.getLastSize(),t=e.width,n=e.height,r=d.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n;!1===d.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a)||((a||d.view.wt.wtOverlays.scrollableElement===d.rootWindow)&&(d.view.setLastSize(o,i),d.render()),d.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.loadData=function(e){if(Array.isArray(n.settings.dataSchema)?d.dataType="array":rn(n.settings.dataSchema)?d.dataType="function":d.dataType="object",r&&r.destroy(),r=new su(d,n,m),"object"===gf(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays (".concat(gf(e)," given)"));var t,a=r.getSchema();e=[];var s,l=0;for(l=0,s=n.settings.startRows;l<s;l++)if("object"!==d.dataType&&"function"!==d.dataType||!n.settings.dataSchema)if("array"===d.dataType)t=X(a[0]),e.push(t);else{t=[];for(var u=0,c=n.settings.startCols;u<c;u++)t.push(null);e.push(t)}else t=X(a),e.push(t)}n.isPopulated=!1,m.prototype.data=e,Array.isArray(e[0])&&(d.dataType="array"),r.dataSource=e,o.data=e,o.dataType=d.dataType,o.colToProp=r.colToProp.bind(r),o.propToCol=r.propToCol.bind(r),n.cellSettings.length=0,i.adjustRowsAndCols(),d.runHooks("afterLoadData",n.firstRun),n.firstRun?n.firstRun=[null,"loadData"]:(d.runHooks("afterChange",null,"loadData"),d.render()),n.isPopulated=!0},this.getData=function(e,t,n,o){return sr(e)?r.getAll():r.getRange(new Me(e,t),new Me(n,o),r.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return r.getCopyableText(new Me(e,t),new Me(n,o))},this.getCopyableData=function(e,t){return r.getCopyable(e,r.colToProp(t))},this.getSchema=function(){return r.getSchema()},this.updateSettings=function(e){var t,o,s,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=!1;if(ar(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if(ar(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(t in e)"data"!==t&&("language"!==t?ce.getSingleton().getRegistered().indexOf(t)>-1?(rn(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,d.addHook(t,e[t])):!l&&oe(e,t)&&(m.prototype[t]=e[t]):g(e.language));void 0===e.data&&void 0===n.settings.data?d.loadData(null):void 0!==e.data?d.loadData(e.data):void 0!==e.columns&&r.createMap(),s=d.countCols();var c,h,f=e.columns||m.prototype.columns;if(f&&rn(f)&&(s=d.countSourceCols(),u=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(n.cellSettings.length=0),s>0)for(t=0,o=0;t<s;t++)u&&!f(t)||(n.columnSettings[o]=Bl(m,n.columnsSettingConflicts),c=n.columnSettings[o].prototype,f&&(h=u?f(t):f[o])&&(G(c,h),G(c,k(h))),o+=1);ar(e.cell)&&ee(e.cell,(function(e){d.setCellMetaObject(e.row,e.col,e)})),d.runHooks("afterCellMetaReset"),ar(e.className)&&(m.prototype.className&&bt(d.rootElement,m.prototype.className),e.className&&wt(d.rootElement,e.className));var p=d.rootElement.style.height;""!==p&&(p=parseInt(d.rootElement.style.height,10));var y=e.height;if(rn(y)&&(y=y()),l&&d.rootElement.getAttribute("style")&&d.rootElement.setAttribute("data-initialstyle",d.rootElement.getAttribute("style")),null===y){var v=d.rootElement.getAttribute("data-initialstyle");v&&(v.indexOf("height")>-1||v.indexOf("overflow")>-1)?d.rootElement.setAttribute("style",v):(d.rootElement.style.height="",d.rootElement.style.overflow="")}else void 0!==y&&(d.rootElement.style.height=isNaN(y)?"".concat(y):"".concat(y,"px"),d.rootElement.style.overflow="hidden");if(void 0!==e.width){var w=e.width;rn(w)&&(w=w()),d.rootElement.style.width=isNaN(w)?"".concat(w):"".concat(w,"px")}l||(r.clearLengthCache(),d.view&&d.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),d.runHooks("afterUpdateSettings",e)),i.adjustRowsAndCols(),d.view&&!n.firstRun&&(d.forceFullRender=!0,a.lockEditor(),d._refreshBorders(null),a.unlockEditor()),l||!d.view||""!==p&&""!==y&&void 0!==y||p===y||d.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=d.getSelectedLast();if(m.prototype.getValue){if(rn(m.prototype.getValue))return m.prototype.getValue.call(d);if(e)return d.getData()[e[0][0]][m.prototype.getValue]}else if(e)return d.getDataAtCell(e[0],e[1])},this.getSettings=function(){return n.settings},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){i.alter(e,t,n,r,o)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return d.view.getCellAtCoords(new Me(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return r.colToProp(e)},this.propToCol=function(e){return r.propToCol(e)},this.toVisualRow=function(e){return y.toVisualRow(e)},this.toVisualColumn=function(e){return y.toVisualColumn(e)},this.toPhysicalRow=function(e){return y.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return y.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return r.get(e,r.colToProp(t))},this.getDataAtRowProp=function(e,t){return r.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,bf(r.getRange(new Me(0,e),new Me(n.settings.data.length-1,e),r.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,o=r.getRange(new Me(0,r.propToCol(e)),new Me(n.settings.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER);return(t=[]).concat.apply(t,bf(o))},this.getSourceData=function(e,t,n,r){return void 0===e?o.getData():o.getByRange(new Me(e,t),new Me(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?o.getData(!0):o.getByRange(new Me(e,t),new Me(n,r),!0)},this.getSourceDataAtCol=function(e){return o.getAtColumn(e)},this.getSourceDataAtRow=function(e){return o.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return o.getAtCell(e,t)},this.getDataAtRow=function(e){return r.getRange(new Me(e,0),new Me(e,this.countCols()-1),r.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],l=i[2],u=i[3],c=null,h=null;void 0===l&&(l=a),void 0===u&&(u=s);var f="mixed";return Ra(Math.min(a,l),Math.max(a,l),(function(e){var t=!0;return Ra(Math.min(s,u),Math.max(s,u),(function(n){var r=o.getCellMeta(e,n);return h=r.type,c?t=c===h:c=h,t})),f=t?h:"mixed",t})),f},this.removeCellMeta=function(e,t,r){var o=wf(y.toPhysical(e,t),2),i=o[0],a=o[1],s=n.cellSettings[i][a][r];!1!==d.runHooks("beforeRemoveCellMeta",e,t,r,s)&&(delete n.cellSettings[i][a][r],d.runHooks("afterRemoveCellMeta",e,t,r,s)),s=null},this.spliceCellsMeta=function(e,t){for(var r,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];(r=n.cellSettings).splice.apply(r,[e,t].concat(i))},this.setCellMetaObject=function(e,t,n){var r=this;"object"===gf(n)&&ee(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,r,o){var i=wf(y.toPhysical(e,t),2),a=i[0],s=i[1];n.columnSettings[s]||(n.columnSettings[s]=Bl(m,n.columnsSettingConflicts)),n.cellSettings[a]||(n.cellSettings[a]=[]),n.cellSettings[a][s]||(n.cellSettings[a][s]=new n.columnSettings[s]),n.cellSettings[a][s][r]=o,d.runHooks("afterSetCellMeta",e,t,r,o)},this.getCellsMeta=function(){return F(n.cellSettings)},this.getCellMeta=function(e,t){var o=r.colToProp(t),i=wf(y.toPhysical(e,t),2),a=i[0],s=i[1],l=a;null===l&&(l=e),n.columnSettings[s]||(n.columnSettings[s]=Bl(m,n.columnsSettingConflicts)),n.cellSettings[l]||(n.cellSettings[l]=[]),n.cellSettings[l][s]||(n.cellSettings[l][s]=new n.columnSettings[s]);var u=n.cellSettings[l][s];if(u.row=l,u.col=s,u.visualRow=e,u.visualCol=t,u.prop=o,u.instance=d,d.runHooks("beforeGetCellMeta",e,t,u),G(u,k(u)),u.cells){var c=u.cells.call(u,l,s,o);c&&(G(u,c),G(u,k(c)))}return d.runHooks("afterGetCellMeta",e,t,u),u},this.getCellMetaAtRow=function(e){return n.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===d.dataType||d.getSettings().columns)};var S=Ql("renderer");this.getCellRenderer=function(e,t){return cl(S.call(this,e,t))},this.getCellEditor=Ql("editor");var C=Ql("validator");this.getCellValidator=function(e,t){var n=C.call(this,e,t);return"string"==typeof n&&(n=wl(n)),n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var r=new w;e&&(r.onQueueEmpty=e);for(var o=d.countRows()-1;o>=0;)if(void 0===t||-1!==t.indexOf(o)){for(var i=d.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),d.validateCell(d.getDataAtCell(o,i),d.getCellMeta(o,i),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=n.settings.rowHeaders,r=e;return void 0!==r&&(r=d.runHooks("modifyRowHeader",r)),void 0===r?(t=[],Ra(d.countRows()-1,(function(e){t.push(d.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[r]?t=t[r]:rn(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!n.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==n.settings.colHeaders&&null!==n.settings.colHeaders)return!!n.settings.colHeaders;for(var e=0,t=d.countCols();e<t;e++)if(d.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=n.settings.columns&&rn(n.settings.columns),r=d.runHooks("modifyColHeader",e),o=n.settings.colHeaders;if(void 0===r){for(var i=[],a=t?d.countSourceCols():d.countCols(),s=0;s<a;s++)i.push(d.getColHeader(s));o=i}else{var l=r,u=d.runHooks("modifyCol",l),c=function(e){for(var t=[],n=d.countSourceCols(),r=0;r<n;r++)rn(d.getSettings().columns)&&d.getSettings().columns(r)&&t.push(r);return t[e]}(u);!1===n.settings.colHeaders?o=null:n.settings.columns&&rn(n.settings.columns)&&n.settings.columns(c)&&n.settings.columns(c).title?o=n.settings.columns(c).title:n.settings.columns&&n.settings.columns[u]&&n.settings.columns[u].title?o=n.settings.columns[u].title:Array.isArray(n.settings.colHeaders)&&void 0!==n.settings.colHeaders[u]?o=n.settings.colHeaders[u]:rn(n.settings.colHeaders)?o=n.settings.colHeaders(u):n.settings.colHeaders&&"string"!=typeof n.settings.colHeaders&&"number"!=typeof n.settings.colHeaders&&(o=Gl(l))}return o},this._getColWidthFromSettings=function(e){var t=d.getCellMeta(0,e),r=t.width;if(void 0!==r&&r!==n.settings.width||(r=t.colWidths),null!=r){switch(gf(r)){case"object":r=r[e];break;case"function":r=r(e)}"string"==typeof r&&(r=parseInt(r,10))}return r},this.getColWidth=function(e){var t=d._getColWidthFromSettings(e);return void 0===(t=d.runHooks("modifyColWidth",t,e))&&(t=pe.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=n.settings.rowHeights;if(null!=t){switch(gf(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=d._getRowHeightFromSettings(e);return d.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return d.runHooks("modifySourceLength")||(d.getSourceData()?d.getSourceData().length:0)},this.countSourceCols=function(){var e=d.getSourceData()&&d.getSourceData()[0]?d.getSourceData()[0]:[];return Q(e)?ne(e):e.length||0},this.countRows=function(){return r.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,o=0;if("array"===d.dataType&&(t=n.settings.data&&n.settings.data[0]&&n.settings.data[0].length),t&&(o=n.settings.data[0].length),n.settings.columns)if(rn(n.settings.columns))if("array"===d.dataType){for(var i=0,a=0;a<o;a++)n.settings.columns(a)&&(i+=1);o=i}else"object"!==d.dataType&&"function"!==d.dataType||(o=r.colToPropCache.length);else o=n.settings.columns.length;else"object"!==d.dataType&&"function"!==d.dataType||(o=r.colToPropCache.length);return Math.min(e,o)},this.rowOffset=function(){return d.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return d.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return d.view.wt.drawn?d.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return d.view.wt.drawn?d.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return d.view.wt.drawn?d.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return d.view.wt.drawn?d.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return La(d.countRows()-1,(function(n){if(d.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(d.countRows()<1)return 0;var t=0;return La(d.countCols()-1,(function(n){if(d.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return n.settings.isEmptyRow.call(d,e)},this.isEmptyCol=function(e){return n.settings.isEmptyCol.call(d,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!sr(e)&&!sr(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(f=!0);var n=v.selectCells(e);return n&&t&&d.listen(),f=!1,n},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return v.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return v.selectRows(e,t)},this.deselectCell=function(){v.deselect()},this.selectAll=function(){f=!0,v.selectAll(),f=!1},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!n,i=!r,a=!1;return void 0!==e&&void 0!==t&&(a=d.view.scrollViewport(new Me(e,t),o,r,n,i)),"number"==typeof e&&"number"!=typeof t&&(a=d.view.scrollViewportVertically(e,o,n)),"number"==typeof t&&"number"!=typeof e&&(a=d.view.scrollViewportHorizontally(t,r,i)),a},this.destroy=function(){if(d._clearTimeouts(),d._clearImmediates(),d.view&&d.view.destroy(),o&&o.destroy(),o=null,Hh(),Yu(d)){var e=this.rootDocument.querySelector("#hot-display-license-info");e&&e.parentNode.removeChild(e)}Mt(d.rootElement),p.destroy(),a&&a.destroy(),d.runHooks("afterDestroy"),ce.getSingleton().destroy(d),ee(d,(function(e,t,n){var r;rn(e)?n[t]=(r=t,function(){throw new Error('The "'.concat(r,'" method cannot be called because this Handsontable instance has been destroyed'))}):"guid"!==t&&(n[t]=null)})),d.isDestroyed=!0,r&&r.destroy(),r=null,n=null,i=null,v=null,a=null,d=null,m=null},this.getActiveEditor=function(){return a.getActiveEditor()},this.getPlugin=function(e){return function(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=$r(t);if(vu.has(e)&&vu.get(e)[n])return vu.get(e)[n]}(this,e)},this.getInstance=function(){return d},this.addHook=function(e,t){ce.getSingleton().add(e,t,d)},this.hasHook=function(e){return ce.getSingleton().has(e,d)},this.addHookOnce=function(e,t){ce.getSingleton().once(e,t,d)},this.removeHook=function(e,t){ce.getSingleton().remove(e,t,d)},this.runHooks=function(e,t,n,r,o,i,a){return ce.getSingleton().run(d,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return Oh(n.settings.language,e,t)},this.toHTML=function(){return du(c)},this.toTableElement=function(){var e=c.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",du(c)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){P(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){P(this.immediates,(function(e){clearImmediate(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a.destroyEditor(e),d.view.render(),t&&v.isSelected()&&a.prepareEditor()},ce.getSingleton().run(d,"construct")}function kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}var t,n;return t=e,n=[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){if(null!=this.hot.getColHeader(0)){var t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),P(this.rows,(function(t){e(t.row,It(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),P(this.columns,(function(t){e(t.col,Yt(t.table))}))}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach((function(n){P(n.strings,(function(n){t.appendChild(e.createColElement(n.col))}))})),t}},{key:"createRow",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),r.appendChild(o)),this.samples.forEach((function(o){P(o.strings,(function(o){var i=o.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");l.setAttribute("ghost-table",1),s(t.hot,l,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(l)}))})),r}},{key:"createColumnHeadersRow",value:function(){var e=this,t=this.hot.rootDocument,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var r=t.createElement("th");this.hot.view.appendColHeader(-1,r),n.appendChild(r)}return this.samples.forEach((function(r){P(r.strings,(function(r){var o=r.col,i=t.createElement("th");e.hot.view.appendColHeader(o,i),n.appendChild(i)}))})),n}},{key:"createCol",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment();return this.samples.forEach((function(o){P(o.strings,(function(o){var i=o.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),l=n.createElement("td"),u=n.createElement("tr");l.setAttribute("ghost-table",1),s(t.hot,l,i,e,t.hot.colToProp(e),o.value,a),u.appendChild(l),r.appendChild(u)}))})),r}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view.wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),s=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(s.appendChild(l),o.appendChild(s),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(s),r.appendChild(i),wt(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:s,th:l}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div");return wt(r,"htGhostTable htAutoSize ".concat(e.trim())),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}],n&&kf(t.prototype,n),e}();const Cf=Sf;function Tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ef=new WeakMap,Of=null;const Rf=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Z(this,"hot",t,{writable:!1}),Z(this,"t",Hu(t),{writable:!1}),Ef.set(this,{hooks:{}}),Of=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",(function(){return n.onAfterPluginsInitialized()})),this.hot.addHook("afterUpdateSettings",(function(e){return n.onUpdateSettings(e)})),this.hot.addHook("beforeInit",(function(){return n.init()}))}var t,n;return t=e,(n=[{key:"init",value:function(){var e,t,n;this.pluginName=(e=this.hot,t=this,n=null,vu.has(e)&&ee(vu.get(e),(function(e,r){e===t&&(n=r)})),n),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),Of||(Of=function(e){return vu.has(e)?Object.keys(vu.get(e)):[]}(this.hot)),Of.indexOf(this.pluginName)>=0&&Of.splice(Of.indexOf(this.pluginName),1),Of.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){Ef.get(this).hooks[e]=Ef.get(this).hooks[e]||[];var n=Ef.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),Ef.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;P(Ef.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=Ef.get(this).hooks;ee(t,(function(t,n){return e.removeHooks(n)})),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){P(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),ee(this,(function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}])&&Tf(t.prototype,n),e}();function Lf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Df=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootWindow=n,this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}var t,n;return t=e,n=[{key:"saveValue",value:function(e,t){this.rootWindow.localStorage.setItem("".concat(this.prefix,"_").concat(e),JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}},{key:"loadValue",value:function(e,t){var n=void 0===e?t:e,r=this.rootWindow.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===r?void 0:JSON.parse(r)}},{key:"reset",value:function(e){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var e=this;P(this.savedKeys,(function(t,n){e.rootWindow.localStorage.removeItem("".concat(e.prefix,"_").concat(e.savedKeys[n]))})),this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var e=this.rootWindow.localStorage.getItem("".concat(this.prefix,"__persistentStateKeys")),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}},{key:"saveSavedKeys",value:function(){this.rootWindow.localStorage.setItem("".concat(this.prefix,"__persistentStateKeys"),JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0,this.saveSavedKeys()}}],n&&Lf(t.prototype,n),e}();const Af=Df;function Hf(e){return Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hf(e)}function Nf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pf(e,t,n){return Pf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Pf(e,t,n||e)}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xf(e)}function Yf(e,t){return Yf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yf(e,t)}ce.getSingleton().register("persistentStateSave"),ce.getSingleton().register("persistentStateLoad"),ce.getSingleton().register("persistentStateReset");var If=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Hf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,xf(t).call(this,e))).storage=void 0,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yf(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.storage||(this.storage=new Af(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(function(t,n){return e.saveValue(t,n)})),this.addHook("persistentStateLoad",(function(t,n){return e.loadValue(t,n)})),this.addHook("persistentStateReset",(function(){return e.resetValue()})),Pf(xf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,Pf(xf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),Pf(xf(t.prototype),"updatePlugin",this).call(this)}},{key:"loadValue",value:function(e,t){t.value=this.storage.loadValue(e)}},{key:"saveValue",value:function(e,t){this.storage.saveValue(e,t)}},{key:"resetValue",value:function(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}},{key:"destroy",value:function(){Pf(xf(t.prototype),"destroy",this).call(this)}}],r&&Nf(n.prototype,r),t}(Rf);gu("persistentState",If);const jf=If;function Ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wf(e,t,n){return t&&Ff(e.prototype,t),n&&Ff(e,n),e}var Bf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return Wf(e,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),Wf(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var r=this,o=new Map,i="number"==typeof n?{from:n,to:n}:n;return Ra(i.from,i.to,(function(n){var i=r.generateSample(e,t,n);o.set(n,i)})),o}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var o=new Map,i="row"===e?"col":"row",a=[];return Ra(t.from,t.to,(function(t){var s,l="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),u=l.value,c=l.bundleCountSeed,h=c>0;s=Q(u)?Object.keys(u).length:Array.isArray(u)?u.length:ir(u).length,h&&(s+=c),o.has(s)||o.set(s,{needed:r.getSampleCount(),strings:[]});var f=o.get(s);f.needed&&(!(a.indexOf(u)>-1)||r.allowDuplicates||h)&&(f.strings.push(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({value:u},i,t)),a.push(u),f.needed-=1)})),o}}]),e}();const Vf=Bf;function Uf(e){return Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uf(e)}function zf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Gf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qf(e,t,n){return qf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},qf(e,t,n||e)}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xf(e)}function Kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jf(e,t,n){return t&&Kf(e.prototype,t),n&&Kf(e,n),e}function $f(e,t){return $f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$f(e,t)}var Qf=new WeakMap,Zf=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Uf(t)&&"function"!=typeof t?Gf(e):t}(this,Xf(t).call(this,e)),Qf.set(Gf(n),{cachedColumnHeaders:[]}),n.widths=[],n.ghostTable=new Cf(n.hot),n.samplesGenerator=new Vf((function(e,t){var r=n.hot.getCellMeta(e,t),o="";r.spanned||(o=n.hot.getDataAtCell(e,t));var i=0;if(r.label){var a=r.label,s=a.value,l=a.property,u="";if(s)u="function"==typeof s?s(e,t,n.hot.colToProp(t),o):s;else if(l){var c=n.hot.getDataAtRowProp(e,l);u=null!==c?c:""}i=u.length}return{value:o,bundleCountSeed:i}})),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeColumnResize",(function(e,t,r){return n.onBeforeColumnResize(e,t,r)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$f(e,t)}(t,e),Jf(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),Jf(t,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().autoColumnSize;n&&null!==n.useHeaders&&void 0!==n.useHeaders&&this.ghostTable.setSetting("useHeaders",n.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData()})),this.addHook("beforeChange",(function(t){return e.onBeforeChange(t)})),this.addHook("beforeRender",(function(t){return e.onBeforeRender(t)})),this.addHook("modifyColWidth",(function(t,n){return e.getColumnWidth(n,t)})),this.addHook("afterInit",(function(){return e.onAfterInit()})),qf(Xf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),qf(Xf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){qf(Xf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="number"==typeof t?{from:t,to:t}:t,i="number"==typeof n?{from:n,to:n}:n;Ra(o.from,o.to,(function(t){(r||void 0===e.widths[t]&&!e.hot._getColWidthFromSettings(t))&&P(e.samplesGenerator.generateColumnSamples(t,i),(function(t){var n=zf(t,2),r=n[0],o=n[1];return e.ghostTable.addColumn(r,o)}))})),this.ghostTable.columns.length&&(this.ghostTable.getWidths((function(t,n){e.widths[t]=n})),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},r=0,o=this.hot.countCols()-1,i=null;this.inProgress=!0;var a=this.getSyncCalculationLimit();this.firstCalculation&&a>=0&&(this.calculateColumnsWidth({from:0,to:a},n),this.firstCalculation=!1,r=a+1),r<o?function a(){if(!e.hot)return Ze(i),void(e.inProgress=!1);e.calculateColumnsWidth({from:r,to:Math.min(r+t.CALCULATION_STEP,o)},n),(r=r+t.CALCULATION_STEP+1)<o?i=Ke(a):(Ze(i),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&oe(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&oe(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&this.hot.view.wt.wtTable.isVisible()&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countCols()-1;return Q(this.hot.getSettings().autoColumnSize)&&(eo(e=this.hot.getSettings().autoColumnSize.syncLimit)?e=Da(n,e):e>>=0),Math.min(e,n)}},{key:"getColumnWidth",value:function(e){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return void 0===n&&(n=this.widths[e],t&&"number"==typeof n&&(n=Math.max(n,pe.DEFAULT_WIDTH))),n}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=Qf.get(this).cachedColumnHeaders;return A(e,(function(e,n,r){var o=t.length;return(o-1<r||t[r]!==n)&&e.push(r),o-1<r?t.push(n):t[r]=n,e}),[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?P(t,(function(t){e.widths[t]=void 0})):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!H(this.widths,(function(e){return void 0===e})).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.countRows(),n=this.getFirstVisibleColumn(),r=this.getLastVisibleColumn();-1!==n&&-1!==r&&t&&(this.calculateColumnsWidth({from:n,to:r},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout((function(){e.hot&&e.recalculateAllColumnsWidth()}),0)}},{key:"onBeforeChange",value:function(e){var t=this,n=N(e,(function(e){var n=zf(e,2)[1];return t.hot.propToCol(n)}));this.clearCache(n)}},{key:"onBeforeColumnResize",value:function(e,t,n){var r=t;return n&&(this.calculateColumnsWidth(e,void 0,!0),r=this.getColumnWidth(e,void 0,!1)),r}},{key:"onAfterInit",value:function(){Qf.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),qf(Xf(t.prototype),"destroy",this).call(this)}}]),t}(Rf);gu("autoColumnSize",Zf);const ed=Zf;var td={horizontal:"horizontal",vertical:"vertical"};function nd(e){return nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nd(e)}function rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function od(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function id(e,t,n){return id="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ad(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},id(e,t,n||e)}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ad(e)}function sd(e,t){return sd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sd(e,t)}ce.getSingleton().register("modifyAutofillRange"),ce.getSingleton().register("beforeAutofill");var ld=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==nd(t)&&"function"!=typeof t?od(e):t}(this,ad(t).call(this,e))).eventManager=new Jr(od(n)),n.addingStarted=!1,n.mouseDownOnCellCorner=!1,n.mouseDragOutside=!1,n.handleDraggedCells=0,n.directions=[],n.autoInsertRow=!1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sd(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.onAfterCellCornerMouseDown(t)})),this.addHook("afterOnCellCornerDblClick",(function(t){return e.onCellCornerDblClick(t)})),this.addHook("beforeOnCellMouseOver",(function(t,n){return e.onBeforeCellMouseOver(n)})),id(ad(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),id(ad(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),id(ad(t.prototype),"disablePlugin",this).call(this)}},{key:"getCopyableRanges",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),r=t.row,o=t.col,i=n.row,a=n.col,s=[];return s.push({startRow:r,startCol:o,endRow:i,endCol:a}),this.hot.runHooks("modifyCopyableRange",s)}},{key:"getSelectionData",value:function(){var e=this,t=this.getCopyableRanges(),n=[],r=[],o=[];return P(t,(function(e){Ra(e.startRow,e.endRow,(function(e){-1===n.indexOf(e)&&n.push(e)})),Ra(e.startCol,e.endCol,(function(e){-1===r.indexOf(e)&&r.push(e)}))})),P(n,(function(t){var n=[];P(r,(function(r){n.push(e.hot.getCopyableData(t,r))})),o.push(n)})),o}},{key:"fillIn",value:function(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;var e=this.hot.selection.highlight.getFill().getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells(),n=function(e,t){var n,r,o;return t[0]===e[0]&&t[1]<e[1]?(o="left",n=new Me(t[0],t[1]),r=new Me(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(o="right",n=new Me(t[0],e[3]+1),r=new Me(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(o="up",n=new Me(t[0],t[1]),r=new Me(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(o="down",n=new Me(e[2]+1,t[1]),r=new Me(t[2],t[3])),{directionOfDrag:o,startOfDragCoords:n,endOfDragCoords:r}}(t,e=this.hot.runHooks("modifyAutofillRange",e,t)),r=n.directionOfDrag,o=n.startOfDragCoords,i=n.endOfDragCoords;if(o&&o.row>-1&&o.col>-1){var a=this.getSelectionData();this.hot.runHooks("beforeAutofill",o,i,a);var s=function(e,t,n,r){var o=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(r)){for(var u=[],c=0;c<l;c++){var h=parseInt(n[0][c],10),f=parseInt(n[o-1][c],10),d=("down"===r?f-h:h-f)/(o-1)||0;u.push(d)}a.push(u)}if(-1!==["right","left"].indexOf(r))for(var m=0;m<s;m++){var p=parseInt(n[m][0],10),y=parseInt(n[m][i-1],10),v=("right"===r?y-p:p-y)/(i-1)||0;a.push([v])}return a}(o,i,a,r),l=a;if(["up","left"].indexOf(r)>-1){l=[];var u=null,c=null;if("up"===r){c=(u=i.row-o.row+1)%a.length;for(var h=0;h<u;h++)l.push(a[(h+(a.length-c))%a.length])}else{c=(u=i.col-o.col+1)%a[0].length;for(var f=0;f<a.length;f++){l.push([]);for(var d=0;d<u;d++)l[f].push(a[f][(d+(a[f].length-c))%a[f].length])}}}this.hot.populateFromArray(o.row,o.col,l,i.row,i.col,"".concat(this.pluginName,".fill"),null,r,s),this.setSelection(e)}else this.hot._refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t,n=this.hot.getSelectedRangeLast().getTopLeftCorner(),r=this.hot.getSelectedRangeLast().getBottomRightCorner();if(this.directions.includes(td.vertical)&&(r.row<e.row||n.row>e.row))t=new Me(e.row,r.col);else{if(!this.directions.includes(td.horizontal))return;t=new Me(r.row,e.col)}return this.reduceSelectionAreaIfNeeded(t)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout((function(){e.hot.alter("insert_row",void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1}),200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.selection.highlight.getFill().cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.selection.highlight.createOrGetArea().getCorners():this.hot.selection.highlight.getCell().getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t,n=this.hot.getData(),r=this.hot.countRows(),o=e[2]+1;o<r;o++){for(var i=e[1];i<=e[3];i++)if(n[o][i])return-1;var a=n[o][e[1]-1],s=n[o][e[3]+1];(a||s)&&(t=o)}return t}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(new Me(e[0],e[1])).add(new Me(t,e[3]))}},{key:"setSelection",value:function(e){var t,n;(t=this.hot).selectCell.apply(t,(n=e,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(n)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}},{key:"redrawBorders",value:function(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=this.hot.rootDocument.documentElement,n=Ot(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+It(this.hot.table),r=Ot(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+Yt(this.hot.table);return e.clientY>n&&e.clientX<=r}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)}))}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=function(e){var t={};return!0===e?(t.directions=Object.keys(td),t.autoInsertRow=!0):Q(e)?(ar(e.autoInsertRow)?e.direction===td.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,ar(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(td)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){id(ad(t.prototype),"destroy",this).call(this)}}],r&&rd(n.prototype,r),t}(Rf);gu("autofill",ld);const ud=ld;function cd(e){return cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cd(e)}function hd(e,t,n){return hd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fd(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},hd(e,t,n||e)}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fd(e)}function dd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function md(e,t,n){return t&&dd(e.prototype,t),n&&dd(e,n),e}function pd(e,t){return pd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pd(e,t)}var yd=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==cd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,fd(t).call(this,e))).heights=[],n.ghostTable=new Cf(n.hot),n.samplesGenerator=new Vf((function(e,t){var r;return e>=0?r=n.hot.getDataAtCell(e,t):-1===e&&(r=n.hot.getColHeader(t)),{value:r}})),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeRowResize",(function(e,t,r){return n.onBeforeRowResize(e,t,r)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pd(e,t)}(t,e),md(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),md(t,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||Q(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData()})),this.addHook("beforeChange",(function(t){return e.onBeforeChange(t)})),this.addHook("beforeColumnMove",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeColumnResize",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeColumnSort",(function(){return e.clearCache()})),this.addHook("beforeRender",(function(t){return e.onBeforeRender(t)})),this.addHook("beforeRowMove",(function(t,n){return e.onBeforeRowMove(t,n)})),this.addHook("modifyRowHeight",(function(t,n){return e.getRowHeight(n,t)})),this.addHook("modifyColumnHeaderHeight",(function(){return e.getColumnHeaderHeight()})),hd(fd(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){hd(fd(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="number"==typeof t?{from:t,to:t}:t,i="number"==typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){var a=this.samplesGenerator.generateRowSamples(-1,i);this.ghostTable.addColumnHeadersRow(a.get(-1))}Ra(o.from,o.to,(function(t){(r||void 0===e.heights[t])&&P(e.samplesGenerator.generateRowSamples(t,i),(function(t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1];return e.ghostTable.addRow(i,a)}))})),this.ghostTable.rows.length&&(this.ghostTable.getHeights((function(t,n){e.heights[t]=n})),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},r=0,o=this.hot.countRows()-1,i=null;this.inProgress=!0;var a=this.getSyncCalculationLimit();this.firstCalculation&&a>=0&&(this.calculateRowsHeight({from:0,to:a},n),this.firstCalculation=!1,r=a+1),r<o?function a(){if(!e.hot)return Ze(i),void(e.inProgress=!1);e.calculateRowsHeight({from:r,to:Math.min(r+t.CALCULATION_STEP,o)},n),(r=r+t.CALCULATION_STEP+1)<o?i=Ke(a):(Ze(i),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&oe(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&oe(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){Et(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countRows()-1;return Q(this.hot.getSettings().autoRowSize)&&(eo(e=this.hot.getSettings().autoRowSize.syncLimit)?e=Da(n,e):e>>=0),Math.min(e,n)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,r=n.from,o=n.to;Ra(Math.min(r,o),Math.max(r,o),(function(e){t.heights[e]=void 0}))}},{key:"isNeedRecalculate",value:function(){return!!H(this.heights,(function(e){return void 0===e})).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),r=this.getLastVisibleRow();if(-1!==n&&-1!==r){if(this.calculateRowsHeight({from:n,to:r},void 0,e),t){var o=this.hot.countRows()-1;this.calculateRowsHeight({from:o-t,to:o})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){var r=t;return n&&(this.calculateRowsHeight(e,void 0,!0),r=this.getRowHeight(e)),r}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout((function(){e.hot&&e.recalculateAllRowsHeight()}),0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),hd(fd(t.prototype),"destroy",this).call(this)}}]),t}(Rf);gu("autoRowSize",yd);const vd=yd;function gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(59581),n(69218);var wd=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],bd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sortedColumnsStates=[],this.sortEmptyCells=!1,this.indicator=!0,this.headerAction=!0,this.compareFunctionFactory=void 0}var t,n;return t=e,n=[{key:"updateAllColumnsProperties",value:function(e){var t=this;Q(e)&&ee(e,(function(e,n){wd.includes(n)&&(t[n]=e)}))}},{key:"getAllColumnsProperties",value:function(){var e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}},{key:"getFirstSortedColumn",value:function(){var e;return this.getNumberOfSortedColumns()>0&&(e=this.sortedColumnsStates[0].column),e}},{key:"getSortOrderOfColumn",value:function(e){var t,n=this.sortedColumnsStates.find((function(t){var n=t.column;return e===n}));return Q(n)&&(t=n.sortOrder),t}},{key:"getSortedColumns",value:function(){return N(this.sortedColumnsStates,(function(e){return e.column}))}},{key:"getIndexOfColumnInSortQueue",value:function(e){return this.getSortedColumns().indexOf(e)}},{key:"getNumberOfSortedColumns",value:function(){return this.sortedColumnsStates.length}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return this.getSortedColumns().includes(e)}},{key:"getSortStates",value:function(){return X(this.sortedColumnsStates)}},{key:"getColumnSortState",value:function(e){if(this.isColumnSorted(e))return X(this.sortedColumnsStates[this.getIndexOfColumnInSortQueue(e)])}},{key:"setSortStates",value:function(e){this.sortedColumnsStates=e}},{key:"destroy",value:function(){this.sortedColumnsStates.length=0,this.sortedColumnsStates=null}}],n&&gd(t.prototype,n),e}(),_d="asc",Md="desc";function kd(e){if(sr(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[_d,Md].includes(n)}function Sd(e){if(e!==Md)return e===_d?Md:_d}function Cd(e){return e.querySelector(".".concat("colHeader"))}function Td(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;return-1==Array.from(n).indexOf(t.parentNode)-n.length}function Ed(e,t,n){return-1===e&&t>=0&&!1===Ur(n)}var Od="indicatorDisabled",Rd="columnSorting",Ld="sortAction",Dd=new Map([[_d,"ascending"],[Md,"descending"]]);function Ad(e,t,n,r){var o=[Rd];if(r&&o.push(Ld),!1===n)o.push(Od);else if(e.isColumnSorted(t)){var i=e.getSortOrderOfColumn(t);o.push(Dd.get(i))}return o}var Hd={_arrayMap:[],getValueByIndex:function(e){var t=null;return e<this._arrayMap.length&&(t=this._arrayMap[e]),t},getIndexByValue:function(e){var t;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=Y(this._arrayMap)+1,o=[];return Ra(n-1,(function(n){o.push(t._arrayMap.splice(e+n,0,r+n))})),o},removeItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort((function(e,t){return t-e}));for(var o=0,i=e.length;o<i;o++){var a=e[o];this._arrayMap.splice(a,1),n.push(r[a])}}else n=this._arrayMap.splice(e,t);return n},unshiftItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.removeItems(e,t);this._arrayMap=N(this._arrayMap,(function(e){var t=e,r=function(e){return A(n,(function(t,n){var r=t;return e>n&&(r+=1),r}),0)}(t);return r&&(t-=r),t}))},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=N(this._arrayMap,(function(t){var r=t;return r>=e&&(r+=n),r})),Ra(n-1,(function(n){t._arrayMap.splice(e+n,0,e+n)}))},swapIndexes:function(e,t){var n,r;(n=this._arrayMap).splice.apply(n,[t,0].concat(function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(r=this._arrayMap.splice(e,1))||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()))},clearMap:function(){this._arrayMap.length=0}};Z(Hd,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1});const Nd=Hd;function Pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,Ra(n-1,(function(e){t._arrayMap[e]=e}))}},{key:"destroy",value:function(){this._arrayMap=null}}])&&Pd(t.prototype,n),e}();J(xd,Nd);const Yd=xd;var Id="default",jd=O("sorting.compareFunctionFactory"),Fd=jd.register,Wd=jd.getItem,Bd=jd.hasItem,Vd=O("sorting.mainSortComparator"),Ud=Vd.register,zd=Vd.getItem;function Gd(e){return Bd(e)?Wd(e):Wd(Id)}function qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Fd("numeric",(function(e,t,n){return function(t,r){var o=parseFloat(t),i=parseFloat(r),a=n.sortEmptyCells;if(o===i||isNaN(o)&&isNaN(i))return Zd;if(a){if(lr(t))return"asc"===e?em:tm;if(lr(r))return"asc"===e?tm:em}return isNaN(o)?tm:isNaN(i)?em:o<i?"asc"===e?em:tm:o>i?"asc"===e?tm:em:Zd}})),Fd("date",(function(e,t,n){return function(r,o){var i=n.sortEmptyCells;if(r===o)return Zd;if(lr(r))return lr(o)?Zd:i&&"asc"===e?em:tm;if(lr(o))return i&&"asc"===e?tm:em;var a=t.dateFormat,s=Kn()(r,a),l=Kn()(o,a);return s.isValid()?l.isValid()?l.isAfter(s)?"asc"===e?em:tm:l.isBefore(s)?"asc"===e?tm:em:Zd:em:tm}})),Fd(Id,(function(e,t,n){return function(t,r){var o=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLowerCase()),"string"==typeof r&&(r=r.toLowerCase()),t===r?Zd:lr(t)?lr(r)?Zd:o&&"asc"===e?em:tm:lr(r)?o&&"asc"===e?tm:em:isNaN(t)&&!isNaN(r)?"asc"===e?tm:em:!isNaN(t)&&isNaN(r)?"asc"===e?em:tm:(isNaN(t)||isNaN(r)||(t=parseFloat(t),r=parseFloat(r)),t<r?"asc"===e?em:tm:t>r?"asc"===e?tm:em:Zd)}}));var Kd=function e(t){Xd(this,e),this.data=t,this.next=null,this.prev=null};const Jd=function(){function e(){Xd(this,e),this.first=null,this.last=null}var t,n;return t=e,(n=[{key:"push",value:function(e){var t=new Kd(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}}},{key:"unshift",value:function(e){var t=new Kd(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t,n,r=this.first;r;){if(r.data===e)return t=r.next,n=r.prev,t&&(t.prev=n),n&&(n.next=t),r===this.first&&(this.first=t),r===this.last&&(this.last=n),!0;r=r.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if((e=e.next)===(t=t.next))return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){if(this.first){!function e(t,n){n&&(e(n,n.next),n.next=t)}(this.first,this.first.next),this.first.next=null;var e=this.first;this.first=this.last,this.last=e}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e,t=this.first.next,n=this.first;t;)e=t.next,t.next=n,n.prev=t,n=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=n,this.last=e}}}])&&qd(t.prototype,n),e}();var $d=function(e,t){var n=e.toString(),r=t.toString();return n===r?0:n<r?-1:1};function Qd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$d,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(Math.abs(r-n)<=1)return[];var o=Math.ceil((n+r)/2);return Qd(e,t,n,o),Qd(e,t,o,r),function(e,t,n,r,o){for(var i=new Jd,a=new Jd,s=r-n,l=o-r,u=Math.max(s,l),c=o-n,h=0;h<u;h+=1)h<s&&i.push(e[n+h]),h<l&&a.push(e[r+h]);for(var f=0;f<c;)i.first&&a.first?t(i.first.data,a.first.data)>0?e[n+f]=a.shift().data:e[n+f]=i.shift().data:i.first?e[n+f]=i.shift().data:e[n+f]=a.shift().data,f+=1;return e}(e,t,n,o,r)}var Zd=0,em=-1,tm=1;function nm(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function rm(e){return rm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rm(e)}function om(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function am(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?im(n,!0).forEach((function(t){sm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):im(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hm(e,t,n){return hm="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fm(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},hm(e,t,n||e)}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fm(e)}function dm(e,t){return dm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dm(e,t)}var mm="append",pm="columnSorting";Ud(pm,(function(e,t){return function(n,r){var o=nm(n).slice(1),i=nm(r).slice(1);return function(){var n=e[0],r=t[0],a=o[0],s=i[0],l=r.columnSorting;return(l.compareFunctionFactory?l.compareFunctionFactory:Gd(r.type))(n,r,l)(a,s)}()}})),ce.getSingleton().register("beforeColumnSort"),ce.getSingleton().register("afterColumnSort");var ym=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==rm(t)&&"function"!=typeof t?cm(e):t}(this,fm(t).call(this,e))).columnStatesManager=new bd,n.rowsMapper=new Yd(cm(n)),n.blockPluginTranslation=!0,n.columnMetaCache=new Map,n.pluginKey=pm,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dm(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(sr(this.hot.getSettings().observeChanges)&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",(function(){return e.sortByPresetSortStates()})),this.addHook("afterUntrimRow",(function(){return e.sortByPresetSortStates()})),this.addHook("modifyRow",(function(t,n){return e.onModifyRow(t,n)})),this.addHook("unmodifyRow",(function(t,n){return e.onUnmodifyRow(t,n)})),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})),this.addHook("beforeOnCellMouseDown",(function(t,n,r,o){return e.onBeforeOnCellMouseDown(t,n,r,o)})),this.addHook("afterOnCellMouseDown",(function(t,n){return e.onAfterOnCellMouseDown(t,n)})),this.addHook("afterCreateRow",(function(t,n){return e.onAfterCreateRow(t,n)})),this.addHook("afterRemoveRow",(function(t,n){return e.onAfterRemoveRow(t,n)})),this.addHook("afterInit",(function(){return e.loadOrSortBySettings()})),this.addHook("afterLoadData",(function(t){return e.onAfterLoadData(t)})),this.addHook("afterCreateCol",(function(){return e.onAfterCreateCol()})),this.addHook("afterRemoveCol",(function(){return e.onAfterRemoveCol()})),this.hot.view&&this.loadOrSortBySettings(),hm(fm(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,n=function(t,n){var r=Cd(n);!1!==Td(t,n)&&null!==r&&e.updateHeaderClasses(r)};this.hot.addHook("afterGetColHeader",n),this.hot.addHookOnce("afterRender",(function(){e.hot.removeHook("afterGetColHeader",n)})),this.rowsMapper.clearMap(),hm(fm(t.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var t=this,n=this.getSortConfig(),r=this.getNormalizedSortConfigs(e),o=this.areValidSortConfigs(r);if(!1!==this.hot.runHooks("beforeColumnSort",n,r,o)){if(o){var i=N(r,(function(e){return r=(n=e).column,o=lm(n,["column"]),am({column:t.hot.toPhysicalColumn(r)},o);var n,r,o}));this.columnStatesManager.setSortStates(i),this.sortByPresetSortStates(),this.saveAllSortSettings(),this.hot.render(),this.hot.view.wt.draw(!0)}this.hot.runHooks("afterColumnSort",n,this.getSortConfig(),o)}}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){var t=this,n=function(e){var n=e.column,r=lm(e,["column"]);return am({column:t.hot.toVisualColumn(n)},r)};if(ar(e)){var r=this.hot.toPhysicalColumn(e),o=this.columnStatesManager.getColumnSortState(r);return ar(o)?n(o):void 0}return N(this.columnStatesManager.getSortStates(),(function(e){return n(e)}))}},{key:"setSortConfig",value:function(e){var t=this,n=this.getNormalizedSortConfigs(e);if(this.areValidSortConfigs(n)){var r=N(n,(function(e){return r=(n=e).column,o=lm(n,["column"]),am({column:t.hot.toPhysicalColumn(r)},o);var n,r,o}));this.columnStatesManager.setSortStates(r)}}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e].slice(0,1)}},{key:"areValidSortConfigs",value:function(e){if(!1===Array.isArray(e))return!1;var t=e.map((function(e){return e.column})),n=this.hot.countCols(),r=t.every((function(e){return e<=n&&e>=0}));return function(e){if(!1===Array.isArray(e)||!1===e.every((function(e){return Q(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length&&e.every(kd)}(e)&&r}},{key:"saveAllSortSettings",value:function(){var e=this.columnStatesManager.getAllColumnsProperties();e.initialConfig=this.columnStatesManager.getSortStates(),this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value;return ar(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=N(n.initialConfig,(function(t){var n=t.column,r=lm(t,["column"]);return am({column:e.hot.toVisualColumn(n)},r)}))),n}},{key:"getColumnNextConfig",value:function(e){var t=this.hot.toPhysicalColumn(e);if(this.columnStatesManager.isColumnSorted(t)){var n=this.getSortConfig(e),r=Sd(n.sortOrder);return ar(r)?(n.sortOrder=r,n):void 0}var o=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<o)return{column:e,sortOrder:Sd()}}},{key:"getNextSortConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mm,n=this.hot.toPhysicalColumn(e),r=this.columnStatesManager.getIndexOfColumnInSortQueue(n),o=this.columnStatesManager.isColumnSorted(n),i=this.getSortConfig(),a=this.getColumnNextConfig(e);if(o){if(sr(a))return[].concat(om(i.slice(0,r)),om(i.slice(r+1)));if(t===mm)return[].concat(om(i.slice(0,r)),om(i.slice(r+1)),[a]);if("replace"===t)return[].concat(om(i.slice(0,r)),[a],om(i.slice(r+1)))}return ar(a)?i.concat(a):i}},{key:"setMergedPluginSettings",value:function(e){var t=this.hot.toPhysicalColumn(e),n=this.hot.getSettings()[this.pluginKey],r=this.columnStatesManager.getAllColumnsProperties(),o=this.hot.getCellMeta(0,e),i=Object.getPrototypeOf(o),a=Object.hasOwnProperty.call(i,this.pluginKey)?i[this.pluginKey]:{};this.columnMetaCache.set(t,Object.assign(r,n,a))}},{key:"getFirstCellSettings",value:function(e){var t=this.blockPluginTranslation;this.blockPluginTranslation=!0,(0===this.columnMetaCache.size||this.columnMetaCache.size<this.hot.countCols())&&this.rebuildColumnMetaCache();var n=this.hot.getCellMeta(0,e);this.blockPluginTranslation=t;var r=Object.create(n);return r[this.pluginKey]=this.columnMetaCache.get(this.hot.toPhysicalColumn(e)),r}},{key:"rebuildColumnMetaCache",value:function(){var e=this,t=this.hot.countCols();0===t?this.columnMetaCache.clear():Ra(t-1,(function(t){return e.setMergedPluginSettings(t)}))}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(){var e=this;if(this.columnStatesManager.isListOfSortedColumnsEmpty())this.rowsMapper.clearMap();else{var t=[],n=this.columnStatesManager.getSortedColumns(),r=this.hot.countRows();this.blockPluginTranslation=!0;for(var o=function(t){return N(n,(function(n){return e.hot.getDataAtCell(t,e.hot.toVisualColumn(n))}))},i=0;i<this.getNumberOfRowsToSort(r);i+=1)t.push([i].concat(o(i)));!function(e,t){for(var n=zd(t),r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];Qd(e,n.apply(void 0,o))}(t,this.pluginKey,N(n,(function(t){return e.columnStatesManager.getSortOrderOfColumn(t)})),N(n,(function(t){return e.getFirstCellSettings(e.hot.toVisualColumn(t))})));for(var a=t.length;a<r;a+=1)t.push([a].concat(o(a)));this.blockPluginTranslation=!1,this.rowsMapper._arrayMap=N(t,(function(e){return e[0]}))}}},{key:"loadOrSortBySettings",value:function(){this.columnMetaCache.clear();var e=this.getAllSavedSortSettings();if(Q(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if(Q(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||Q(t))&&this.sort(t)}else this.hot.render()}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout((function(){e.hot.updateSettings({observeChanges:!0})}),0))}},{key:"onModifyRow",value:function(e,t){if(!1===this.blockPluginTranslation&&t!==this.pluginName&&this.isSorted()){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e,t){return!1===this.blockPluginTranslation&&t!==this.pluginName&&this.isSorted()&&(e=this.rowsMapper.getIndexByValue(e)),e}},{key:"onAfterGetColHeader",value:function(e,t){var n=Cd(t);if(!1!==Td(e,t)&&null!==n){var r=this.hot.toPhysicalColumn(e),o=this.getFirstCellSettings(e)[this.pluginKey],i=o.indicator,a=o.headerAction;this.updateHeaderClasses(n,this.columnStatesManager,r,i,a)}}},{key:"updateHeaderClasses",value:function(e){if(bt(e,Array.from(Dd.values()).concat(Ld,Od,Rd)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];wt(e,Ad.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){hm(fm(t.prototype),"onUpdateSettings",this).call(this),this.columnMetaCache.clear(),ar(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}},{key:"onAfterLoadData",value:function(e){this.rowsMapper.clearMap(),this.columnMetaCache.clear(),!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.rowsMapper.unshiftItems(e,t)}},{key:"onAfterCreateCol",value:function(){this.columnMetaCache.clear()}},{key:"onAfterRemoveCol",value:function(){this.columnMetaCache.clear()}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&"SPAN"===e.realTarget.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){!1!==Ed(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&Nh()&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==Ed(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(Nh()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){this.rowsMapper.destroy(),this.columnStatesManager.destroy(),hm(fm(t.prototype),"destroy",this).call(this)}}],r&&um(n.prototype,r),t}(Rf);gu(pm,ym);const vm=ym;function gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wm(e,t,n){return t&&gm(e.prototype,t),n&&gm(e,n),e}var bm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=null,this.rootDocument=t,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return wm(e,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),wm(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left="".concat(e,"px"),this.editorStyle.top="".concat(t,"px")}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width="".concat(e,"px"),n.style.height="".concat(t,"px")}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return this.rootDocument.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return this.container=this.rootDocument.querySelector(".".concat(e.CLASS_EDITOR_CONTAINER)),this.container||(this.container=this.rootDocument.createElement("div"),wt(this.container,e.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container)),wt(t,e.CLASS_EDITOR),wt(n,e.CLASS_INPUT),t.appendChild(n),this.container.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(e.CLASS_INPUT))}},{key:"destroy",value:function(){var e=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null,e&&e.removeChild(this.container)}}]),e}();const _m=bm;n(98741);var Mm="---------";function km(e){return gt(e,"htSeparator")}function Sm(e){return gt(e,"htDisabled")}function Cm(e){return gt(e,"htSelectionDisabled")}function Tm(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function Em(e,t){var n={};return P(e,(function(e){for(var r=e.from,o=e.to,i=r.row;i<=o.row;i++)for(var a=r.col;a<=o.col;a++)n[i]||(n[i]=[]),n[i][a]=t(i,a)})),n}function Om(e,t,n,r,o){P(e,(function(e){var i=e.from,a=e.to;if(i.row===a.row&&i.col===a.col)Rm(i.row,i.col,t,n,r,o);else for(var s=i.row;s<=a.row;s++)for(var l=i.col;l<=a.col;l++)Rm(s,l,t,n,r,o)}))}function Rm(e,t,n,r,o,i){var a=o(e,t),s=r;a.className&&(s="vertical"===n?function(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}(a.className,r):function(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}(a.className,r)),i(e,t,"className",s)}function Lm(e,t){var n=!1;return Array.isArray(e)&&P(e,(function(e){return e.forAll((function(e,r){if(t(e,r))return n=!0,!1})),n})),n}function Dm(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)}function Am(e,t){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}function Hm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mm,n=e.slice(0);return n=function(e,t){var n=e.slice(0);return n.reverse(),(n=Am(n,t)).reverse(),n}(n=Am(n,t),t),n=function(e){var t=[];return P(e,(function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}(n),n}function Nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}var t,n;return t=e,n=[{key:"hide",value:function(){var e=this;this.wasLastActionShow=!1,this.hidingTimer=setTimeout((function(){!1===e.wasLastActionShow&&e.runLocalHooks("hide")}),250)}},{key:"show",value:function(e){this.wasLastActionShow=!0,this.showDebounced(e)}},{key:"cancelHiding",value:function(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}},{key:"updateDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=sn((function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)}),t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}],n&&Nm(t.prototype,n),e}();J(Pm,Zh);const xm=Pm;function Ym(e){return Ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ym(e)}function Im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wm(e,t,n){return Wm="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bm(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Wm(e,t,n||e)}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bm(e)}function Vm(e,t){return Vm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vm(e,t)}var Um=new WeakMap,zm="comment",Gm="value",qm="style",Xm="readOnly",Km=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Ym(t)&&"function"!=typeof t?Fm(e):t}(this,Bm(t).call(this,e))).editor=null,n.displaySwitch=null,n.eventManager=null,n.range={},n.mouseDown=!1,n.contextMenuEvent=!1,n.timer=null,Um.set(Fm(n),{tempEditorDimensions:{},cellBelowCursor:null}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vm(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new _m(this.hot.rootDocument)),this.eventManager||(this.eventManager=new Jr(this)),this.displaySwitch||(this.displaySwitch=new xm(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addToContextMenu(t)})),this.addHook("afterRenderer",(function(t,n,r,o,i,a){return e.onAfterRenderer(t,a)})),this.addHook("afterScrollHorizontally",(function(){return e.hide()})),this.addHook("afterScrollVertically",(function(){return e.hide()})),this.addHook("afterBeginEditing",(function(){return e.onAfterBeginEditing()})),this.displaySwitch.addLocalHook("hide",(function(){return e.hide()})),this.displaySwitch.addLocalHook("show",(function(t,n){return e.showAtCell(t,n)})),this.registerListeners(),Wm(Bm(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),Wm(Bm(t.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){Wm(Bm(t.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this,t=this.hot.rootDocument;this.eventManager.addEventListener(t,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(t,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",(function(){return e.onEditorBlur()})),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",(function(t){return e.onEditorMouseDown(t)})),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",(function(t){return e.onEditorMouseUp(t)}))}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=st(e.target,"TD","TBODY");return!!(t&&gt(t,"htCommentCell")&&st(t,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(e){return this.editor.getInputElement()===e.target}},{key:"setComment",value:function(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var t=this.editor.getValue(),n="";null!=e?n=e:null!=t&&(n=t);var r=this.range.from.row,o=this.range.from.col;this.updateCommentMeta(r,o,Im({},Gm,n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new Me(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,zm,void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:new Me(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,Gm)}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,Gm)}},{key:"show",value:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e[zm]?e[zm][Gm]:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new Me(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var e=this.hot.rootWindow,t=this.hot.view.wt,n=t.wtTable,r=t.wtOverlays,o=t.wtViewport,i=r.scrollableElement,a=n.getCell(this.range.from),s=this.range.from.row,l=this.range.from.col,u=Ot(a),c=n.getStretchedColumnWidth(l),h=u.top<0?0:u.top,f=u.left;o.hasVerticalScroll()&&i!==e&&(h-=r.topOverlay.getScrollPosition()),o.hasHorizontalScroll()&&i!==e&&(f-=r.leftOverlay.getScrollPosition());var d=f+c,m=h,p=this.getCommentMeta(s,l,qm),y=this.getCommentMeta(s,l,Xm);p?this.editor.setSize(p.width,p.height):this.editor.resetSize(),this.editor.setReadOnlyState(y),this.editor.setPosition(d,m)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,Gm)&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var r,o=this.hot.getCellMeta(e,t)[zm];o?q(r=X(o),n):r=n,this.hot.setCellMeta(e,t,zm,r)}},{key:"getCommentMeta",value:function(e,t,n){var r=this.hot.getCellMeta(e,t);if(r[zm])return r[zm][n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=st(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=Um.get(this),n=this.hot.rootDocument;if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||gt(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var r=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new Me(r.row,r.col)};this.displaySwitch.show(o)}else ut(e.target,n)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t[zm]&&t[zm][Gm]&&wt(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){Um.get(this).tempEditorDimensions={width:Yt(e.target),height:It(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=Um.get(this),n=Yt(e.target),r=It(e.target);n===t.tempEditorDimensions.width+1&&r===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,Im({},qm,{width:n,height:r}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout((function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())}),10)}},{key:"onContextMenuRemoveComment",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++)this.removeCommentAtCell(r,o,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this.hot.getSelectedRangeLast(),t=e.from,n=e.to;this.contextMenuEvent=!0;for(var r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){var i=!!this.getCommentMeta(r,o,Xm);this.updateCommentMeta(r,o,Im({},Xm,!i))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(cc):t.hot.getTranslatedPhrase(uc)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelectedLast()&&!this.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(hc)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return t.hot.selection.isSelectedByCorner()}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(fc),n=Lm(this.getSelectedRangeLast(),(function(t,n){var r=e.getCellMeta(t,n)[zm];if(r&&(r=r[Xm]),r)return!0}));return n&&(t=Dm(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return t.hot.selection.isSelectedByCorner()||!t.checkSelectionCommentsConsistency()}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if(Q(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),Wm(Bm(t.prototype),"destroy",this).call(this)}}],r&&jm(n.prototype,r),t}(Rf);gu("comments",Km);const Jm=Km;function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const Qm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.commands={},this.commonCallback=null}var t,n;return t=e,n=[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.split(":"),a=i[0],s=2===i.length?i[1]:null,l=this.commands[a];if(!l)throw new Error("Menu command '".concat(a,"' not exists."));if(s&&l.submenu&&(l=function(e,t){var n;return P(t,(function(t){var r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}(s,l.submenu.items)),!0!==l.disabled&&("function"!=typeof l.disabled||!0!==l.disabled.call(this.hot))&&!oe(l,"submenu")){var u=[];"function"==typeof l.callback&&u.push(l.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),r.unshift(i.join(":")),P(u,(function(e){return e.apply(t.hot,r)}))}}}],n&&$m(t.prototype,n),e}();var Zm="alignment";var ep="clear_column";var tp="col_left";var np="col_right",rp="make_read_only",op="redo";var ip="remove_col";var ap,sp="remove_row",lp="row_above",up="row_below",cp="no_items",hp="undo";function fp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dp=[lp,up,tp,np,ep,sp,ip,hp,op,rp,Zm,Mm,cp],mp=(fp(ap={},Mm,(function(){return{name:Mm}})),fp(ap,cp,(function(){return{key:cp,name:function(){return this.getTranslatedPhrase(Gu)},disabled:!0,isCommand:!1}})),fp(ap,lp,(function(){return{key:lp,name:function(){return this.getTranslatedPhrase(qu)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_row",n.start.row,1,"ContextMenu.rowAbove")},disabled:function(){return!Tm(this)||this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}})),fp(ap,up,(function(){return{key:up,name:function(){return this.getTranslatedPhrase(Xu)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_row",n.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){return!Tm(this)||this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}})),fp(ap,tp,(function(){return{key:tp,name:function(){return this.getTranslatedPhrase(Ku)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_col",n.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=Tm(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t,n,r=(t=e[0],n=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=[o,0,r[2],this.countCols()-1].join(",")===e.join(","),s=1===this.countCols();return i<0||this.countCols()>=this.getSettings().maxCols||!s&&a},hidden:function(){return!this.getSettings().allowInsertColumn}}})),fp(ap,np,(function(){return{key:np,name:function(){return this.getTranslatedPhrase(Ju)},callback:function(e,t){var n=t[Math.max(t.length-1,0)];this.alter("insert_col",n.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=Tm(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t,n,r=(t=e[0],n=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=[o,0,r[2],this.countCols()-1].join(",")===e.join(","),s=1===this.countCols();return i<0||this.countCols()>=this.getSettings().maxCols||!s&&a},hidden:function(){return!this.getSettings().allowInsertColumn}}})),fp(ap,ep,(function(){return{key:ep,name:function(){return this.getTranslatedPhrase(nc)},callback:function(e,t){var n=t[0].start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=Tm(this);if(!e)return!0;var t,n,r=(t=e[0],n=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=[o,0,r[2],this.countCols()-1].join(",")===e.join(",");return i<0||this.countCols()>=this.getSettings().maxCols||a}}})),fp(ap,sp,(function(){return{key:sp,name:function(){var e,t,n=this.getSelected(),r=0;if(n)if(n.length>1)r=1;else{var o=(e=n[0],t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}());o[0]-o[2]!=0&&(r=1)}return this.getTranslatedPhrase($u,r)},callback:function(){this.alter("remove_row",function(e){var t=cf(e);if(0===t||1===t)return[];var n=hf(t),r=new Set;P(e,(function(e){var t=rf(n(e),3),o=t[0],i=t[2]-o+1;P(Array.from(new Array(i),(function(e,t){return o+t})),(function(e){r.has(e)||r.add(e)}))}));var o=A(Array.from(r).sort((function(e,t){return e-t})),(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[]);return o}(this.getSelected()),1,"ContextMenu.removeRow")},disabled:function(){var e=Tm(this),t=this.countRows();return!e||this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner()||!t},hidden:function(){return!this.getSettings().allowRemoveRow}}})),fp(ap,ip,(function(){return{key:ip,name:function(){var e,t,n=this.getSelected(),r=0;if(n)if(n.length>1)r=1;else{var o=(e=n[0],t=4,function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}());o[1]-o[3]!=0&&(r=1)}return this.getTranslatedPhrase(Qu,r)},callback:function(){this.alter("remove_col",function(e){var t=cf(e);if(0===t||1===t)return[];var n=hf(t),r=new Set;P(e,(function(e){var t=rf(n(e),4),o=t[1],i=t[3]-o+1;P(Array.from(new Array(i),(function(e,t){return o+t})),(function(e){r.has(e)||r.add(e)}))}));var o=A(Array.from(r).sort((function(e,t){return e-t})),(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[]);return o}(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){var e=Tm(this),t=this.countCols();return!e||this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner()||!this.isColumnModificationAllowed()||!t},hidden:function(){return!this.getSettings().allowRemoveColumn}}})),fp(ap,hp,(function(){return{key:hp,name:function(){return this.getTranslatedPhrase(Zu)},callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}})),fp(ap,op,(function(){return{key:op,name:function(){return this.getTranslatedPhrase(ec)},callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}})),fp(ap,rp,(function(){return{key:rp,name:function(){var e=this,t=this.getTranslatedPhrase(tc),n=Lm(this.getSelectedRange(),(function(t,n){return e.getCellMeta(t,n).readOnly}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Lm(t,(function(t,n){return e.getCellMeta(t,n).readOnly}));P(t,(function(t){t.forAll((function(t,r){e.setCellMeta(t,r,"readOnly",!n)}))})),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())}}})),fp(ap,Zm,(function(){return{key:Zm,name:function(){return this.getTranslatedPhrase(dc)},disabled:function(){return!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(Zm,":left"),name:function(){var e=this,t=this.getTranslatedPhrase(mc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htLeft"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="horizontal",o="htLeft";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(Zm,":center"),name:function(){var e=this,t=this.getTranslatedPhrase(pc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htCenter"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="horizontal",o="htCenter";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(Zm,":right"),name:function(){var e=this,t=this.getTranslatedPhrase(yc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htRight"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="horizontal",o="htRight";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(Zm,":justify"),name:function(){var e=this,t=this.getTranslatedPhrase(vc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htJustify"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="horizontal",o="htJustify";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{name:Mm},{key:"".concat(Zm,":top"),name:function(){var e=this,t=this.getTranslatedPhrase(gc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htTop"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="vertical",o="htTop";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(Zm,":middle"),name:function(){var e=this,t=this.getTranslatedPhrase(wc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htMiddle"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="vertical",o="htMiddle";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(Zm,":bottom"),name:function(){var e=this,t=this.getTranslatedPhrase(bc),n=Lm(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htBottom"))return!0}));return n&&(t=Dm(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=Em(t,(function(t,n){return e.getCellMeta(t,n).className})),r="vertical",o="htBottom";this.runHooks("beforeCellAlignment",n,t,r,o),Om(t,r,o,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1}]}}})),ap);function pp(){var e={};return ee(mp,(function(t,n){e[n]=t()})),e}function yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var vp=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.predefinedItems=pp(),this.defaultOrderPattern=n}var t,n;return t=e,n=[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,ee(e,(function(e,r){var o="";e.name===Mm?(n[Mm]=e,o=Mm):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){return function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=[],r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r&&r.items?r=r.items:Array.isArray(r)||(r=e),Q(r)?ee(r,(function(e,r){var o=t["string"==typeof e?e:r];o||(o=e),Q(e)?G(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=r),n.push(o)})):P(r,(function(e,r){var o=t[e];!o&&dp.indexOf(e)>=0||(o||(o={name:e,key:"".concat(r)}),Q(e)&&G(o,e),void 0===o.key&&(o.key=r),n.push(o))})),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}],n&&yp(t.prototype,n),e}();const gp=vp;function wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bp=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r,o,i,a,s,l,u=Rt(n),c=Lt(n);this.rootWindow=n,this.type=this.getSourceType(t),"literal"===this.type?(r=parseInt(t.top,10),i=parseInt(t.left,10),s=t.height||0,l=t.width||0,o=r,a=i,r+=u,i+=c):"event"===this.type&&(r=parseInt(Vr(t),10),i=parseInt(Br(t),10),s=t.target.clientHeight,l=t.target.clientWidth,o=r-u,a=i-c),this.top=r,this.topRelative=o,this.left=i,this.leftRelative=a,this.scrollTop=u,this.scrollLeft=c,this.cellHeight=s,this.cellWidth=l}var t,n;return t=e,n=[{key:"getSourceType",value:function(e){var t="literal";return e instanceof Event&&(t="event"),t}},{key:"fitsAbove",value:function(e){return this.topRelative>=e.offsetHeight}},{key:"fitsBelow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}],n&&wp(t.prototype,n),e}();const _p=bp;function Mp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kp=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215},this.eventManager=new Jr(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}var t,n;return t=e,n=[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"mousedown",(function(t){return e.onDocumentMouseDown(t)}))}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=sn((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||215,r=!1,o=H(this.menuItems,(function(t){return t.key===cp&&(r=!0),function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}(t,e.hot)}));if(o.length<1&&!r)o.push(pp()[cp]);else if(0===o.length)return;var i={data:o=Hm(o,Mm),colHeaders:!1,autoColumnSize:!0,modifyColWidth:function(e){return ar(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,r,o,i,a){return e.menuItemRenderer(t,n,r,o,i,a)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===Mm?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new Mf(this.container,i),this.hotMenu.addHook("afterInit",(function(){return e.onAfterInit()})),this.hotMenu.addHook("afterSelection",(function(){return e.onAfterSelection.apply(e,arguments)})),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!function(e){return gt(e,"htSubmenu")}(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;P(this.hotMenu.getData(),(function(t,n){return e.closeSubMenu(n)}))}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelectedLast()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==Mm){var n=this.hot.getSelectedRange(),r=n?function(e){return N(e,(function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}))}(n):[],o=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(o=!1),this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e),o&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new _p(e,this.hot.rootWindow);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth+Xt(this.hot.rootDocument)+4;this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);km(e)||Sm(e)||Cm(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);km(t)||Sm(t)||Cm(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;r&&(km(r)||Sm(r)||Cm(r)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,r=n>=0?this.hotMenu.getCell(n,t):null;r&&(km(r)||Sm(r)||Cm(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a,s=this,l=e.getSourceDataAtRow(n),u=this.hot.rootDocument.createElement("div"),c=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),Mt(t),wt(u,"htItemWrapper"),t.appendChild(u),a=l,new RegExp(Mm,"i").test(a.name)?wt(t,"htSeparator"):"function"==typeof l.renderer?(wt(t,"htCustomMenuRenderer"),t.appendChild(l.renderer(e,u,n,r,o,h))):Ct(u,h),function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(l)?(wt(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):c(l)?(wt(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):function(e){return oe(e,"submenu")}(l)?(wt(t,"htSubmenu"),c(l)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):(bt(t,"htSubmenu"),bt(t,"htDisabled"),c(l)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)})))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.hot.rootDocument,r=t;return r&&(rn(r)&&(r=null===(r=r.call(this.hot))||sr(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(wt(e=n.createElement("div"),"htMenu ".concat(this.options.className)),r&&wt(e,r),n.getElementsByTagName("body")[0].appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelectedLast(),n=!1;switch(this.keyEvent=!0,e.keyCode){case lo.ESCAPE:this.close(),n=!0;break;case lo.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case lo.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case lo.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case lo.ARROW_RIGHT:if(t){var r=this.openSubMenu(t[0]);r&&r.selectFirstCell()}n=!0;break;case lo.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),jr(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view.wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=A(t,(function(e,t){return e+(t.name===Mm?1:26)}),0);r.width="".concat(o+22,"px"),r.height="".concat(i+4,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&ut(e.target,this.container)&&this.executeCommand(e),(this.options.standalone&&this.hotMenu&&!ut(e.target,this.hotMenu.rootElement)||(this.isAllSubMenusClosed()||this.isSubMenu())&&!ut(e.target,".htMenu")&&ut(e.target,this.hot.rootDocument))&&this.close(!0))}}],n&&Mp(t.prototype,n),e}();J(kp,Zh);const Sp=kp;function Cp(e){return Cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cp(e)}function Tp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ep(e,t,n){return Ep="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Op(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ep(e,t,n||e)}function Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Op(e)}function Rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lp(e,t,n){return t&&Rp(e.prototype,t),n&&Rp(e,n),e}function Dp(e,t){return Dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dp(e,t)}ce.getSingleton().register("afterContextMenuDefaultOptions"),ce.getSingleton().register("beforeContextMenuShow"),ce.getSingleton().register("afterContextMenuShow"),ce.getSingleton().register("afterContextMenuHide"),ce.getSingleton().register("afterContextMenuExecute");var Ap=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Cp(t)&&"function"!=typeof t?Tp(e):t}(this,Op(t).call(this,e))).eventManager=new Jr(Tp(n)),n.commandExecutor=new Qm(n.hot),n.itemsFactory=null,n.menu=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dp(e,t)}(t,e),Lp(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[lp,up,Mm,tp,np,Mm,sp,ip,Mm,hp,op,Mm,rp,Mm,Zm]}}]),Lp(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().contextMenu;"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),this.menu=new Sp(this.hot,{className:"htContextMenu",keepInViewport:!0}),this.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),this.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),this.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),this.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),this.addHook("afterOnCellContextMenu",(function(t){return e.onAfterOnCellContextMenu(t)})),Ep(Op(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),Ep(Op(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),Ep(Op(t.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){this.menu&&(this.prepareMenuItems(),this.menu.open(),this.menu.isOpened()&&(this.menu.setPosition({top:parseInt(Vr(e),10)-Rt(this.hot.rootWindow),left:parseInt(Br(e),10)-Lt(this.hot.rootWindow)}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv))}},{key:"close",value:function(){this.menu&&(this.menu.close(),this.itemsFactory=null)}},{key:"executeCommand",value:function(e){var t;null===this.itemsFactory&&this.prepareMenuItems();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"prepareMenuItems",value:function(){var e=this;this.itemsFactory=new gp(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().contextMenu,r={items:this.itemsFactory.getItems(n)};this.hot.runHooks("afterContextMenuDefaultOptions",r),this.itemsFactory.setPredefinedItems(r.items);var o=this.itemsFactory.getItems(n);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),P(o,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,r=t.colHeaders,o=e.realTarget;this.close(),gt(o,"handsontableInput")||(e.preventDefault(),Wr(e),(n||r||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(o)||gt(o,"current")&&gt(o,"wtBorder"))&&this.open(e))}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeContextMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),Ep(Op(t.prototype),"destroy",this).call(this)}}]),t}(Rf);Ap.SEPARATOR={name:Mm},gu("contextMenu",Ap);const Hp=Ap;function Np(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data={}}var t,n;return t=e,n=[{key:"setData",value:function(e,t){this.data[e]=t}},{key:"getData",value:function(e){return this.data[e]||void 0}}],n&&Np(t.prototype,n),e}(),xp=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clipboardData=new Pp};function Yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(70863);var Ip=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootDocument=t,this.mainElement=null,this.eventManager=new Jr(this),this.listenersCount=new WeakSet}var t,n;return t=e,(n=[{key:"useSecondaryElement",value:function(){var e=function(e){var t=Bp.get(e);if(t)return t.parentElement||this.rootDocument.body.appendChild(t),t;var n=e.createElement("textarea");return Bp.set(e,n),n.id="HandsontableCopyPaste",n.className="copyPaste",n.tabIndex=-1,n.autocomplete="off",n.wrap="hard",n.value=" ",e.body.appendChild(n),n}(this.rootDocument);this.listenersCount.has(e)||(this.listenersCount.add(e),Wp(this.eventManager,e,this)),this.mainElement=e}},{key:"setFocusableElement",value:function(e){this.listenersCount.has(e)||(this.listenersCount.add(e),Wp(this.eventManager,e,this)),this.mainElement=e}},{key:"getFocusableElement",value:function(){return this.mainElement}},{key:"focus",value:function(){this.mainElement.value=" ",Pe()||nn(this.mainElement)}}])&&Yp(t.prototype,n),e}();J(Ip,Zh);var jp=0,Fp=function(e,t){return function(n){return t.runLocalHooks(e,n)}};function Wp(e,t,n){e.addEventListener(t,"copy",Fp("copy",n)),e.addEventListener(t,"cut",Fp("cut",n)),e.addEventListener(t,"paste",Fp("paste",n))}var Bp=new WeakMap;function Vp(e){if(e instanceof Ip&&(jp>0&&(jp-=1),function(e){e.eventManager.clear()}(e),jp<=0)){jp=0;var t=Bp.get(e.rootDocument);t&&t.parentNode&&(t.parentNode.removeChild(t),Bp.delete(e.rootDocument)),e.mainElement=null}}function Up(e){return Up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(e)}function zp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qp(e,t,n){return qp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xp(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},qp(e,t,n||e)}function Xp(e){return Xp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xp(e)}function Kp(e,t){return Kp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kp(e,t)}ce.getSingleton().register("afterCopyLimit"),ce.getSingleton().register("modifyCopyableRange"),ce.getSingleton().register("beforeCut"),ce.getSingleton().register("afterCut"),ce.getSingleton().register("beforePaste"),ce.getSingleton().register("afterPaste"),ce.getSingleton().register("beforeCopy"),ce.getSingleton().register("afterCopy");var Jp=new WeakMap,$p=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join(""),Qp=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Up(t)&&"function"!=typeof t?Gp(e):t}(this,Xp(t).call(this,e))).columnsLimit=1e3,n.copyableRanges=[],n.focusableElement=void 0,n.pasteMode="overwrite",n.rowsLimit=1e3,Jp.set(Gp(n),{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kp(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n,r,o=this.hot.getSettings();Jp.get(this).isFragmentSelectionEnabled=o.fragmentSelection,"object"===Up(o.copyPaste)&&(this.pasteMode=o.copyPaste.pasteMode||this.pasteMode,this.rowsLimit=o.copyPaste.rowsLimit||this.rowsLimit,this.columnsLimit=o.copyPaste.columnsLimit||this.columnsLimit),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterOnCellMouseUp",(function(){return e.onAfterOnCellMouseUp()})),this.addHook("afterSelectionEnd",(function(){return e.onAfterSelectionEnd()})),this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()})),this.focusableElement=(n=this.hot.rootDocument,r=new Ip(n),jp+=1,r),this.focusableElement.addLocalHook("copy",(function(t){return e.onCopy(t)})).addLocalHook("cut",(function(t){return e.onCut(t)})).addLocalHook("paste",(function(t){return e.onPaste(t)})),qp(Xp(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),qp(Xp(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&Vp(this.focusableElement),qp(Xp(t.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){Jp.get(this).isTriggeredByCopy=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("copy")}},{key:"cut",value:function(){Jp.get(this).isTriggeredByCut=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],r=[],o=[];return P(e,(function(e){Ra(e.startRow,e.endRow,(function(e){-1===r.indexOf(e)&&r.push(e)})),Ra(e.startCol,e.endCol,(function(e){-1===o.indexOf(e)&&o.push(e)}))})),P(r,(function(e){var r=[];P(o,(function(n){r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),Vl.stringify(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],r=[],o=[];return P(e,(function(e){Ra(e.startRow,e.endRow,(function(e){-1===r.indexOf(e)&&r.push(e)})),Ra(e.startCol,e.endCol,(function(e){-1===o.indexOf(e)&&o.push(e)}))})),P(r,(function(e){var r=[];P(o,(function(n){r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),n}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e||t){var n=new xp;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.getOrCreateFocusableElement(),this.onPaste(n)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),r=t.row,o=t.col,i=n.row,a=n.col,s=Math.min(i,r+this.rowsLimit-1),l=Math.min(a,o+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:r,startCol:o,endRow:s,endCol:l}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),i===s&&a===l||this.hot.runHooks("afterCopyLimit",i-r+1,a-o+1,this.rowsLimit,this.columnsLimit)}}},{key:"getOrCreateFocusableElement",value:function(){var e=this.hot.getActiveEditor(),t=e?e.TEXTAREA:void 0;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e=this.hot.getActiveEditor();return e&&e.isOpened()}},{key:"populateValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedLast();if(e.length){for(var n=e.length-1,r=e[0].length-1,o=Math.min(t[0],t[2]),i=Math.max(t[0],t[2],n+o),a=Math.min(t[1],t[3]),s=Math.max(t[1],t[3],r+a),l=[],u=o,c=0;u<=i;u+=1){for(var h=[],f=a,d=0;f<=s;f+=1)h.push(e[c][d]),d=d===r?0:d+=1;l.push(h),c=c===n?0:c+=1}return this.hot.populateFromArray(o,a,l,void 0,void 0,"CopyPaste.paste",this.pasteMode),[o,a,i,s]}}},{key:"onCopy",value:function(e){var t=Jp.get(this);if((this.hot.isListening()||t.isTriggeredByCopy)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCopy=!1;var n=this.getRangedData(this.copyableRanges);if(this.hot.runHooks("beforeCopy",n,this.copyableRanges)){var r=Vl.stringify(n);if(e&&e.clipboardData){var o=mu(n,this.hot.rootDocument);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",[$p,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",r);this.hot.runHooks("afterCopy",n,this.copyableRanges)}e.preventDefault()}}},{key:"onCut",value:function(e){var t=Jp.get(this);if((this.hot.isListening()||t.isTriggeredByCut)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCut=!1;var n=this.getRangedData(this.copyableRanges);if(this.hot.runHooks("beforeCut",n,this.copyableRanges)){var r=Vl.stringify(n);if(e&&e.clipboardData){var o=mu(n,this.hot.rootDocument);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",[$p,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",r);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",n,this.copyableRanges)}e.preventDefault()}}},{key:"onPaste",value:function(e){if(this.hot.isListening()&&!this.isEditorOpened()){var t;if(e&&e.preventDefault&&e.preventDefault(),e&&void 0!==e.clipboardData){var n=e.clipboardData.getData("text/html");t=n&&/(<table)|(<TABLE)/g.test(n)?yu(n,this.hot.rootDocument).data:e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(t=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof t&&(t=Vl.parse(t)),(!t||0!==t.length)&&!1!==this.hot.runHooks("beforePaste",t,this.copyableRanges)){var r=(l=this.populateValues(t),u=4,function(e){if(Array.isArray(e))return e}(l)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=r[2],s=r[3];this.hot.selectCell(o,i,Math.min(this.hot.countRows()-1,a),Math.min(this.hot.countCols()-1,s)),this.hot.runHooks("afterPaste",t,this.copyableRanges)}}var l,u}},{key:"onAfterContextMenuDefaultOptions",value:function(e){var t;e.items.push({name:"---------"},(t=this,{key:"copy",name:function(){return this.getTranslatedPhrase(rc)},callback:function(){t.copy()},disabled:function(){var e=this.getSelected();return!e||e.length>1},hidden:!1}),function(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(oc)},callback:function(){e.cut()},disabled:function(){var e=this.getSelected();return!e||e.length>1},hidden:!1}}(this))}},{key:"onAfterOnCellMouseUp",value:function(){this.hot.isListening()&&!this.isEditorOpened()&&(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){var e=Jp.get(this).isFragmentSelectionEnabled;this.isEditorOpened()||(this.getOrCreateFocusableElement(),e&&this.focusableElement.getFocusableElement()!==this.hot.rootDocument.activeElement&&zt()||(this.setCopyableText(),this.focusableElement.focus()))}},{key:"onBeforeKeyDown",value:function(){if(this.hot.isListening()&&!this.isEditorOpened()){var e=this.hot.rootDocument.activeElement,t=this.hot.getActiveEditor();!t||e!==this.focusableElement.getFocusableElement()&&e!==t.select||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}}},{key:"destroy",value:function(){this.focusableElement&&(Vp(this.focusableElement),this.focusableElement=null),qp(Xp(t.prototype),"destroy",this).call(this)}}],r&&zp(n.prototype,r),t}(Rf);gu("CopyPaste",Qp);const Zp=Qp;function ey(e,t){return"border_row".concat(e,"col").concat(t)}function ty(e,t){return{id:ey(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},right:{hide:!0},bottom:{hide:!0},left:{hide:!0}}}function ny(e,t){var n=!1;return P(e.getSelectedRange(),(function(r){r.forAll((function(r,o){var i=e.getCellMeta(r,o).borders;if(i){if(!t)return n=!0,!1;if(!oe(i[t],"hide")||!1===i[t].hide)return n=!0,!1}}))})),n}function ry(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)}function oy(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(Sc);return ny(this,"bottom")&&(e=ry(e)),e},callback:function(t,n){var r=ny(this,"bottom");e.prepareBorder(n,"bottom",r)}}}function iy(e){return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(Cc);return ny(this,"left")&&(e=ry(e)),e},callback:function(t,n){var r=ny(this,"left");e.prepareBorder(n,"left",r)}}}function ay(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(Tc)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!ny(this)}}}function sy(e){return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(kc);return ny(this,"right")&&(e=ry(e)),e},callback:function(t,n){var r=ny(this,"right");e.prepareBorder(n,"right",r)}}}function ly(e){return ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ly(e)}function uy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hy(e,t,n){return hy="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},hy(e,t,n||e)}function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fy(e)}function dy(e,t){return dy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dy(e,t)}var my=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==ly(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,fy(t).call(this,e))).savedBorders=[],n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dy(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("init",(function(){return e.onAfterInit()})),hy(fy(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),hy(fy(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),hy(fy(t.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,t){var n=this,r=t?Object.keys(t):["top","right","bottom","left"],o=hf(cf(e));P(e,(function(e){for(var i=uy(o(e),4),a=i[0],s=i[1],l=i[2],u=i[3],c=function(e){for(var o=function(o){P(r,(function(r){n.prepareBorderFromCustomAdded(e,o,t,r)}))},i=s;i<=u;i+=1)o(i)},h=a;h<=l;h+=1)c(h)})),this.hot.view.render()}},{key:"getBorders",value:function(e){var t=this;if(!Array.isArray(e))return this.savedBorders;var n=hf(cf(e)),r=[];return P(e,(function(e){for(var o=uy(n(e),4),i=o[0],a=o[1],s=o[2],l=o[3],u=function(e){for(var n=function(n){P(t.savedBorders,(function(t){t.row===e&&t.col===n&&r.push(t)}))},o=a;o<=l;o+=1)n(o)},c=i;c<=s;c+=1)u(c)})),r}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):(P(this.savedBorders,(function(e){t.clearBordersFromSelectionSettings(e.id),t.clearNullCellRange(),t.hot.removeCellMeta(e.row,e.col,"borders")})),this.savedBorders.length=0)}},{key:"insertBorderIntoSettings",value:function(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);var n={row:e.row,col:e.col},r=new Ce(n,n,n);this.checkCustomSelections(e,r,t)||this.hot.selection.highlight.addCustomSelection({border:e,cellRange:r})}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,r){var o,i,a=ty(e,t);n&&(o=a,oe(i=n,"border")&&(o.border=i.border),oe(i,"top")&&(i.top?(Q(i.top)||(i.top={width:1,color:"#000"}),o.top=i.top):(i.top={hide:!0},o.top=i.top)),oe(i,"right")&&(i.right?(Q(i.right)||(i.right={width:1,color:"#000"}),o.right=i.right):(i.right={hide:!0},o.right=i.right)),oe(i,"bottom")&&(i.bottom?(Q(i.bottom)||(i.bottom={width:1,color:"#000"}),o.bottom=i.bottom):(i.bottom={hide:!0},o.bottom=i.bottom)),oe(i,"left")&&(i.left?(Q(i.left)||(i.left={width:1,color:"#000"}),o.left=i.left):(i.left={hide:!0},o.left=i.left)),a=o,P(this.hot.selection.highlight.customSelections,(function(e){if(a.id===e.settings.id)return Object.assign(e.settings,n),a=e.settings,!1}))),this.hot.setCellMeta(e,t,"borders",a),this.insertBorderIntoSettings(a,r)}},{key:"prepareBorderFromCustomAddedRange",value:function(e){var t=this,n=e.range;Ra(n.from.row,n.to.row,(function(r){Ra(n.from.col,n.to.col,(function(o){var i=ty(r,o),a=0;r===n.from.row&&oe(e,"top")&&(a+=1,i.top=e.top),r===n.to.row&&oe(e,"bottom")&&(a+=1,i.bottom=e.bottom),o===n.from.col&&oe(e,"left")&&(a+=1,i.left=e.left),o===n.to.col&&oe(e,"right")&&(a+=1,i.right=e.right),a>0&&(t.hot.setCellMeta(r,o,"borders",i),t.insertBorderIntoSettings(i))}))}))}},{key:"removeAllBorders",value:function(e,t){var n=ey(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,r){var o=this.hot.getCellMeta(e,t).borders;o&&void 0!==o.border||(o=ty(e,t)),r?(o[n]={hide:!0},4===this.countHide(o)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",o))):(o[n]={width:1,color:"#000"},this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",o))}},{key:"prepareBorder",value:function(e,t,n){var r=this;P(e,(function(e){var o=e.start,i=e.end;if(o.row===i.row&&o.col===i.col)"noBorders"===t?r.removeAllBorders(o.row,o.col):r.setBorder(o.row,o.col,t,n);else switch(t){case"noBorders":Ra(o.col,i.col,(function(e){Ra(o.row,i.row,(function(t){r.removeAllBorders(t,e)}))}));break;case"top":Ra(o.col,i.col,(function(e){r.setBorder(o.row,e,t,n)}));break;case"right":Ra(o.row,i.row,(function(e){r.setBorder(e,i.col,t,n)}));break;case"bottom":Ra(o.col,i.col,(function(e){r.setBorder(i.row,e,t,n)}));break;case"left":Ra(o.row,i.row,(function(e){r.setBorder(e,o.col,t,n)}))}}))}},{key:"createCustomBorders",value:function(e){var t=this;P(e,(function(e){e.range?t.prepareBorderFromCustomAddedRange(e):t.prepareBorderFromCustomAdded(e.row,e.col,e)}))}},{key:"countHide",value:function(e){return A(Object.values(e),(function(e,t){var n=e;return t.hide&&(n+=1),n}),0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=N(this.hot.selection.highlight.customSelections,(function(e){return e.settings.id})).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}},{key:"clearNullCellRange",value:function(){var e=this;P(this.hot.selection.highlight.customSelections,(function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections[n].destroy(),e.hot.selection.highlight.customSelections.splice(n,1),!1}))}},{key:"hideBorders",value:function(){var e=this;P(this.savedBorders,(function(t){e.clearBordersFromSelectionSettings(t.id),e.clearNullCellRange()}))}},{key:"spliceBorder",value:function(e){var t=N(this.savedBorders,(function(e){return e.id})).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),n=!0):P(this.savedBorders,(function(r,o){if(e.id===r.id)return t.savedBorders[o]=e,n=!0,!1})),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var r=!1;return P(this.hot.selection.highlight.customSelections,(function(o){if(e.id===o.settings.id)return ee(o.instanceBorders,(function(e){e.toggleHiddenClass(t,n)})),r=!0,!1})),r}},{key:"checkCustomSelections",value:function(e,t,n){var r=this.countHide(e),o=!1;return 4===r?(this.removeAllBorders(e.row,e.col),o=!0):P(this.hot.selection.highlight.customSelections,(function(r){if(e.id===r.settings.id)return r.cellRange=t,n&&ee(r.instanceBorders,(function(t){t.changeBorderStyle(n,e)})),o=!0,!1})),o}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;Array.isArray(e)?(e.length||(this.savedBorders=e),this.createCustomBorders(e)):void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"onAfterContextMenuDefaultOptions",value:function(e){var t;this.hot.getSettings().customBorders&&e.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(_c)},disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[(t=this,{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(Mc);return ny(this,"top")&&(e=ry(e)),e},callback:function(e,n){var r=ny(this,"top");t.prepareBorder(n,"top",r)}}),sy(this),oy(this),iy(this),ay(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){hy(fy(t.prototype),"destroy",this).call(this)}}],r&&cy(n.prototype,r),t}(Rf);gu("customBorders",my);const py=my;function yy(e){return yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yy(e)}function vy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wy(e,t,n){return wy="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=by(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},wy(e,t,n||e)}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},by(e)}function _y(e,t){return _y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_y(e,t)}var My=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==yy(t)&&"function"!=typeof t?gy(e):t}(this,by(t).call(this,e))).eventManager=new Jr(gy(n)),n.boundaries=null,n.callback=null,n.listening=!1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_y(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",(function(){return e.setupListening()})),this.addHook("afterOnCellCornerMouseDown",(function(){return e.setupListening()})),this.registerEvents(),wy(by(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),wy(by(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents(),wy(by(t.prototype),"disablePlugin",this).call(this)}},{key:"setBoundaries",value:function(e){this.boundaries=e}},{key:"setCallback",value:function(e){this.callback=e}},{key:"check",value:function(e,t){var n=0,r=0;t<this.boundaries.top?r=t-this.boundaries.top:t>this.boundaries.bottom&&(r=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,r)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument;this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(){var e=this.hot.view.wt.wtTable.holder;e!==this.hot.rootWindow&&(this.setBoundaries(e.getBoundingClientRect()),this.setCallback((function(t,n){t<0?e.scrollLeft-=50:t>0&&(e.scrollLeft+=50),n<0?e.scrollTop-=20:n>0&&(e.scrollTop+=20)})),this.listening=!0)}},{key:"onMouseMove",value:function(e){this.listening&&this.check(e.clientX,e.clientY)}},{key:"onMouseUp",value:function(){this.listening=!1}},{key:"destroy",value:function(){wy(by(t.prototype),"destroy",this).call(this)}}],r&&vy(n.prototype,r),t}(Rf);gu("dragToScroll",My);const ky=My;function Sy(e){return Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sy(e)}function Cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ty(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ey(e,t,n){return Ey="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Oy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ey(e,t,n||e)}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oy(e)}function Ry(e,t){return Ry=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ry(e,t)}var Ly=new WeakMap,Dy=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Sy(t)&&"function"!=typeof t?Ty(e):t}(this,Oy(t).call(this,e)),Ly.set(Ty(n),{moveByFreeze:!1,afterFirstUse:!1}),n.frozenColumnsBasePositions=[],n.manualColumnMovePlugin=void 0,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ry(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addContextMenuEntry(t)})),this.addHook("afterInit",(function(){return e.onAfterInit()})),this.addHook("beforeColumnMove",(function(t,n){return e.onBeforeColumnMove(t,n)})),Ey(Oy(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=Ly.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,Ey(Oy(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),Ey(Oy(t.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=Ly.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft===this.hot.countCols()||e<=n.fixedColumnsLeft-1||(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft),n.fixedColumnsLeft+=1)}},{key:"unfreezeColumn",value:function(e){var t=Ly.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),!(n.fixedColumnsLeft<=0||e>n.fixedColumnsLeft-1)){var r=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft-=1,this.getMovePlugin().moveColumn(e,r+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t,n=this.getMovePlugin(),r=this.hot.getSettings().fixedColumnsLeft,o=n.columnsMapper.getValueByIndex(r);if(null===this.frozenColumnsBasePositions[e]||void 0===this.frozenColumnsBasePositions[e])for(t=n.columnsMapper.getValueByIndex(e);null!==o&&o<=t;)r+=1,o=n.columnsMapper.getValueByIndex(r);else{for(t=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;null!==o&&o<=t;)r+=1,o=n.columnsMapper.getValueByIndex(r);r=o}return r-1}},{key:"addContextMenuEntry",value:function(e){var t;e.items.push({name:"---------"},(t=this,{key:"freeze_column",name:function(){return this.getTranslatedPhrase(ic)},callback:function(e,n){var r,o,i=(r=n,o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0].start.col;t.freezeColumn(i),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsLeft-1)&&(t=!0),t}}),function(e){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(ac)},callback:function(t,n){var r,o,i=(r=n,o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0].start.col;e.unfreezeColumn(i),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsLeft)&&(t=!0),t}}}(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=Ly.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var r=this.hot.getSettings().fixedColumnsLeft,o=t<r;if(o||P(e,(function(e){if(e<r)return o=!0,!1})),o)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){Ey(Oy(t.prototype),"destroy",this).call(this)}}],r&&Cy(n.prototype,r),t}(Rf);gu("manualColumnFreeze",Dy);const Ay=Dy;function Hy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ny=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manualColumnMove=t}var t,n;return t=e,(n=[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,Ra(n-1,(function(e){t._arrayMap[e]=e}))}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=H(this._arrayMap,(function(e){return null!==e}))}}])&&Hy(t.prototype,n),e}();J(Ny,Nd);const Py=Ny;function xy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Yy="px",Iy=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this._element=null,this.state=0}var t,n;return t=e,n=[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=this.hot.rootDocument.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){Oa(e)&&(this._element.style.top=e+Yy),Oa(t)&&(this._element.style.left=t+Yy)}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){Oa(e)&&(this._element.style.width=e+Yy),Oa(t)&&(this._element.style.height=t+Yy)}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){Oa(e)&&(this._element.style.marginTop=e+Yy),Oa(t)&&(this._element.style.marginLeft=t+Yy)}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}],n&&xy(t.prototype,n),e}();const jy=Iy;function Fy(e){return Fy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fy(e)}function Wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function By(e,t,n){return By="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Vy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},By(e,t,n||e)}function Vy(e){return Vy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vy(e)}function Uy(e,t){return Uy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uy(e,t)}const zy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Fy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Vy(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uy(e,t)}(t,e),n=t,(r=[{key:"build",value:function(){By(Vy(t.prototype),"build",this).call(this),wt(this._element,"ht__manualColumnMove--backlight")}}])&&Wy(n.prototype,r),t}(jy);function Gy(e){return Gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gy(e)}function qy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xy(e,t,n){return Xy="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ky(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Xy(e,t,n||e)}function Ky(e){return Ky=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ky(e)}function Jy(e,t){return Jy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jy(e,t)}const $y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Gy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ky(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jy(e,t)}(t,e),n=t,(r=[{key:"build",value:function(){Xy(Ky(t.prototype),"build",this).call(this),wt(this._element,"ht__manualColumnMove--guideline")}}])&&qy(n.prototype,r),t}(jy);function Qy(e){return Qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qy(e)}function Zy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ev(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tv(e,t,n){return tv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nv(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},tv(e,t,n||e)}function nv(e){return nv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nv(e)}function rv(e,t){return rv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rv(e,t)}ce.getSingleton().register("beforeColumnMove"),ce.getSingleton().register("afterColumnMove"),ce.getSingleton().register("unmodifyCol");var ov=new WeakMap,iv="ht__manualColumnMove",av="show-ui",sv="on-moving--columns",lv="after-selection--columns",uv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Qy(t)&&"function"!=typeof t?ev(e):t}(this,nv(t).call(this,e)),ov.set(ev(n),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),n.removedColumns=[],n.columnsMapper=new Py(ev(n)),n.eventManager=new Jr(ev(n)),n.backlight=new zy(e),n.guideline=new $y(e),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rv(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(t,n,r,o){return e.onBeforeOnCellMouseDown(t,n,r,o)})),this.addHook("beforeOnCellMouseOver",(function(t,n,r,o){return e.onBeforeOnCellMouseOver(t,n,r,o)})),this.addHook("afterScrollVertically",(function(){return e.onAfterScrollVertically()})),this.addHook("modifyCol",(function(t,n){return e.onModifyCol(t,n)})),this.addHook("beforeRemoveCol",(function(t,n){return e.onBeforeRemoveCol(t,n)})),this.addHook("afterRemoveCol",(function(){return e.onAfterRemoveCol()})),this.addHook("afterCreateCol",(function(t,n){return e.onAfterCreateCol(t,n)})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData()})),this.addHook("unmodifyCol",(function(t){return e.onUnmodifyCol(t)})),this.registerEvents(),wt(this.hot.rootElement,iv),tv(nv(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),tv(nv(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),bt(this.hot.rootElement,iv),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),tv(nv(t.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n,r=this,o=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(n=e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),i=ov.get(this),a=this.hot.runHooks("beforeColumnMove",o,t);i.disallowMoving=!a,!1!==a&&(P(e,(function(e,t,n){n[t]=r.columnsMapper.getValueByIndex(e)})),P(e,(function(e,n){var o=r.columnsMapper.getIndexByValue(e);o!==t&&r.columnsMapper.moveColumn(o,t+n)})),this.columnsMapper.clearNull(),this.hot.runHooks("afterColumnMove",o,t))}},{key:"changeSelection",value:function(e,t){this.hot.selectColumns(e,t)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,r=e;r<t;r++)n+=r<0?this.hot.view.wt.wtViewport.getRowHeaderWidth()||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(r)||0;return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return Ra(e,t,(function(e){n.push(e)})),n}},{key:"refreshPositions",value:function(){var e=ov.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),r=this.hot.view.wt.wtTable,o=this.hot.view.wt.wtOverlays.scrollableElement,i="number"==typeof o.scrollX?o.scrollX:o.scrollLeft,a=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),s=e.target.eventPageX-(e.rootElementOffset-(void 0===o.scrollX?i:0)),l=r.hider.offsetWidth,u=r.TBODY.offsetLeft,c=this.backlight.getOffset().left,h=this.backlight.getSize().width,f=0;if(e.rootElementOffset+r.holder.offsetWidth+i<e.target.eventPageX&&e.coordsColumn<e.countCols&&(e.coordsColumn+=1),e.hasRowHeaders&&(f=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(a+=i),a+=f,e.coordsColumn<0)e.fixedColumns>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+a<=s){var d=e.coordsColumn>=e.countCols?e.countCols-1:e.coordsColumn;e.target.col=d+1,a+=e.target.TD.offsetWidth,e.target.col>n&&n<e.countCols&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}else e.target.col=e.coordsColumn,e.target.col<=t&&e.target.col>=e.fixedColumns&&t>0&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumns&&t>0&&this.hot.scrollViewportTo(void 0,t-1);var m=s,p=a;s+h+c>=l?m=l-h-c:s+c<u+f&&(m=u+f+Math.abs(c)),a>=l-1?p=l-1:0===p?p=1:void 0!==o.scrollX&&e.coordsColumn<e.fixedColumns&&(p-=e.rootElementOffset<=o.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,m),this.guideline.setPosition(null,p)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(t<e){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var r=e-1,o=[];P(this.columnsMapper._arrayMap,(function(e,t){e>r&&o.push(t)})),this.columnsMapper.removeItems(o)}}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view.wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),a=this.hot.getSelectedRangeLast(),s=ov.get(this),l=gt(e.realTarget,"sortAction");if(!a||!i||s.pressed||0!==e.button||l)return s.pressed=!1,s.columnsToMove.length=0,void bt(this.hot.rootElement,[sv,av]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(o.hider),this.backlight.appendTo(o.hider));var h=a.from,f=a.to,d=Math.min(h.col,f.col),m=Math.max(h.col,f.col);if(t.row<0&&t.col>=d&&t.col<=m){r.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.coordsColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(d,m),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumns=this.hot.getSettings().fixedColumnsLeft,s.rootElementOffset=Ot(this.hot.rootElement).left;var p=s.hasRowHeaders?-1:0,y=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,v=t.col<s.fixedColumns,g=this.hot.view.wt.wtOverlays.scrollableElement,w=g.scrollX?g.scrollX-s.rootElementOffset:0,b=e.layerX-(v?w:0),_=Math.abs(this.getColumnsWidth(d,t.col)+b);this.backlight.setPosition(y,this.getColumnsWidth(p,d)+_),this.backlight.setSize(this.getColumnsWidth(d,m+1),o.hider.offsetHeight-y),this.backlight.setOffset(null,-1*_),wt(this.hot.rootElement,sv)}else bt(this.hot.rootElement,lv),s.pressed=!1,s.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=ov.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout((function(){this.backlight.setPosition(n)}))}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o=this.hot.getSelectedRangeLast(),i=ov.get(this);o&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?bt(this.hot.rootElement,av):wt(this.hot.rootElement,av),r.row=!0,r.column=!0,r.cell=!0,i.coordsColumn=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=ov.get(this);if(e.coordsColumn=void 0,e.pressed=!1,e.backlightWidth=0,bt(this.hot.rootElement,[sv,av,lv]),this.hot.selection.isSelectedByColumnHeader()&&wt(this.hot.rootElement,lv),!(e.columnsToMove.length<1||void 0===e.target.col||e.columnsToMove.indexOf(e.target.col)>-1)){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){var t=this.columnsMapper.getIndexByValue(e.columnsToMove[0]),n=this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]);this.changeSelection(t,n)}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;this.backlight.setPosition(t),this.backlight.setSize(null,e.hider.offsetHeight-t)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&Ra(e,e+t-1,(function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))}))}},{key:"onAfterRemoveCol",value:function(){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){var n=e;if(t!==this.pluginName){var r=this.columnsMapper.getValueByIndex(n);n=null===r?n:r}return n}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),tv(nv(t.prototype),"destroy",this).call(this)}}],r&&Zy(n.prototype,r),t}(Rf);gu("ManualColumnMove",uv);const cv=uv;function hv(e){return hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hv(e)}function fv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mv(e,t,n){return mv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pv(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},mv(e,t,n||e)}function pv(e){return pv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pv(e)}function yv(e,t){return yv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yv(e,t)}var vv=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=(n=function(e,t){return!t||"object"!==hv(t)&&"function"!=typeof t?dv(e):t}(this,pv(t).call(this,e))).hot.rootDocument;return n.currentTH=null,n.currentCol=null,n.selectedCols=[],n.currentWidth=null,n.newSize=null,n.startY=null,n.startWidth=null,n.startOffset=null,n.handle=r.createElement("DIV"),n.guide=r.createElement("DIV"),n.eventManager=new Jr(dv(n)),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualColumnWidths=[],wt(n.handle,"manualColumnResizer"),wt(n.guide,"manualColumnResizerGuide"),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yv(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var n=this.hot.getSettings().manualColumnResize,r=this.loadManualColumnWidths();this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("beforeStretchingColumnWidth",(function(t,n){return e.onBeforeStretchingColumnWidth(t,n)})),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)})),void 0!==r?this.manualColumnWidths=r:Array.isArray(n)?this.manualColumnWidths=n:this.manualColumnWidths=[],this.bindEvents(),mv(pv(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){mv(pv(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(this.currentTH),r=n.col,o=It(this.currentTH);if(r>=0){var i=this.currentTH.getBoundingClientRect(),a=r<this.hot.getSettings().fixedColumnsLeft?this.hot.view.wt.wtOverlays.topLeftCornerOverlay:this.hot.view.wt.wtOverlays.topOverlay,s=a.getRelativeCellPosition(this.currentTH,n.row,n.col);if(!s){var l=a.clone.wtTable.THEAD.lastChild.children[+!!this.hot.getSettings().rowHeaders+r];s=a.getRelativeCellPosition(l,n.row,n.col)}if(this.currentCol=r,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByColumnHeader()){var u=this.hot.getSelectedRangeLast(),c=u.from,h=u.to,f=c.col,d=h.col;f>=d&&(f=h.col,d=c.col),this.currentCol>=f&&this.currentCol<=d?Ra(f,d,(function(e){return t.selectedCols.push(e)})):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=s.left-6,this.startWidth=parseInt(i.width,10),this.handle.style.top="".concat(s.top,"px"),this.handle.style.left="".concat(this.startOffset+this.startWidth,"px"),this.handle.style.height="".concat(o,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt(It(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);wt(this.handle,"active"),wt(this.guide,"active"),this.guide.style.top="".concat(t,"px"),this.guide.style.left=this.handle.style.left,this.guide.style.height="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){bt(this.handle,"active"),bt(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e!==this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==o&&(e.newSize=o),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),r&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};this.dblclick>=2&&(this.selectedCols.length>1?(P(this.selectedCols,(function(e){n(e)})),t()):P(this.selectedCols,(function(e){n(e,!0)}))),this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;gt(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=Br(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+(Br(e)-this.startX),P(this.selectedCols,(function(e){t.newSize=t.setManualSize(e,t.currentWidth)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeColumnResize",n,e.newSize,!1),r&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize)};this.pressed&&(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth&&(this.selectedCols.length>1?(P(this.selectedCols,(function(e){n(e)})),t()):P(this.selectedCols,(function(e){n(e,!0)}))),this.setupHandlePosition(this.currentTH))}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootWindow,r=t.rootElement;this.eventManager.addEventListener(r,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(r,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(n,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(n,"mouseup",(function(){return e.onMouseUp()}))}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20),r=this.hot.runHooks("modifyCol",e);return this.manualColumnWidths[r]=n,n}},{key:"clearManualSize",value:function(e){var t=this.hot.runHooks("modifyCol",e);this.manualColumnWidths[t]=void 0}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.runHooks("modifyCol",t),o=this.manualColumnWidths[r];this.hot.getSettings().manualColumnResize&&o&&(n=o)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}],r&&fv(n.prototype,r),t}(Rf);gu("manualColumnResize",vv);const gv=vv;function wv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manualRowMove=t}var t,n;return t=e,(n=[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,Ra(n-1,(function(e){t._arrayMap[e]=e}))}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=H(this._arrayMap,(function(e){return null!==e}))}}])&&wv(t.prototype,n),e}();J(bv,Nd);const _v=bv;function Mv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kv="px",Sv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this._element=null,this.state=0}var t,n;return t=e,n=[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=this.hot.rootDocument.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+kv),void 0!==t&&(this._element.style.left=t+kv)}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+kv),t&&(this._element.style.height=t+kv)}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+kv),t&&(this._element.style.marginLeft=t+kv)}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}],n&&Mv(t.prototype,n),e}();const Cv=Sv;function Tv(e){return Tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tv(e)}function Ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ov(e,t,n){return Ov="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rv(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ov(e,t,n||e)}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rv(e)}function Lv(e,t){return Lv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lv(e,t)}const Dv=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Tv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Rv(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lv(e,t)}(t,e),n=t,(r=[{key:"build",value:function(){Ov(Rv(t.prototype),"build",this).call(this),wt(this._element,"ht__manualRowMove--backlight")}}])&&Ev(n.prototype,r),t}(Cv);function Av(e){return Av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Av(e)}function Hv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nv(e,t,n){return Nv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Pv(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Nv(e,t,n||e)}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pv(e)}function xv(e,t){return xv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xv(e,t)}const Yv=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Av(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Pv(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xv(e,t)}(t,e),n=t,(r=[{key:"build",value:function(){Nv(Pv(t.prototype),"build",this).call(this),wt(this._element,"ht__manualRowMove--guideline")}}])&&Hv(n.prototype,r),t}(Cv);function Iv(e){return Iv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iv(e)}function jv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wv(e,t,n){return Wv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bv(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Wv(e,t,n||e)}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bv(e)}function Vv(e,t){return Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vv(e,t)}ce.getSingleton().register("beforeRowMove"),ce.getSingleton().register("afterRowMove"),ce.getSingleton().register("unmodifyRow");var Uv=new WeakMap,zv="ht__manualRowMove",Gv="show-ui",qv="on-moving--rows",Xv="after-selection--rows",Kv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Iv(t)&&"function"!=typeof t?Fv(e):t}(this,Bv(t).call(this,e)),Uv.set(Fv(n),{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),n.removedRows=[],n.rowsMapper=new _v(Fv(n)),n.eventManager=new Jr(Fv(n)),n.backlight=new Dv(e),n.guideline=new Yv(e),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vv(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(t,n,r,o){return e.onBeforeOnCellMouseDown(t,n,r,o)})),this.addHook("beforeOnCellMouseOver",(function(t,n,r,o){return e.onBeforeOnCellMouseOver(t,n,r,o)})),this.addHook("afterScrollHorizontally",(function(){return e.onAfterScrollHorizontally()})),this.addHook("modifyRow",(function(t,n){return e.onModifyRow(t,n)})),this.addHook("beforeRemoveRow",(function(t,n){return e.onBeforeRemoveRow(t,n)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow()})),this.addHook("afterCreateRow",(function(t,n){return e.onAfterCreateRow(t,n)})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData()})),this.addHook("beforeColumnSort",(function(t,n){return e.onBeforeColumnSort(t,n)})),this.addHook("unmodifyRow",(function(t){return e.onUnmodifyRow(t)})),this.registerEvents(),wt(this.hot.rootElement,zv),Wv(Bv(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),Wv(Bv(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),bt(this.hot.rootElement,zv),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),Wv(Bv(t.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n,r=this,o=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(n=e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),i=Uv.get(this),a=this.hot.runHooks("beforeRowMove",o,t);i.disallowMoving=!1===a,i.disallowMoving||(P(e,(function(e,t,n){n[t]=r.rowsMapper.getValueByIndex(e)})),P(e,(function(e,n){var o=r.rowsMapper.getIndexByValue(e);o!==t&&r.rowsMapper.moveRow(o,t+n)})),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",o,t)}},{key:"changeSelection",value:function(e,t){this.hot.selectRows(e,t)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,r=e;r<t;r++)n+=this.hot.view.wt.wtTable.getRowHeight(r)||23;return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;var n=e.from,r=e.to;return Ra(Math.min(n.row,r.row),Math.max(n.row,r.row),(function(e){t.push(e)})),t}},{key:"refreshPositions",value:function(){var e=Uv.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),r=this.hot.view.wt.wtTable.getLastVisibleRow(),o=this.hot.getSettings().fixedRowsTop,i=this.hot.countRows();t.row<o&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=r&&r<i&&this.hot.scrollViewportTo(r+1,void 0,!0);var a=this.hot.view.wt.wtTable,s=e.target.TD,l=Ot(this.hot.rootElement),u=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),c=e.target.eventPageY-l.top+a.holder.scrollTop,h=a.hider.offsetHeight,f=a.TBODY.offsetTop,d=this.backlight.getOffset().top,m=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(u+=a.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:s.offsetHeight/2+u<=c?(e.target.row=t.row+1,u+=0===t.row?s.offsetHeight-1:s.offsetHeight):e.target.row=t.row;var p=c,y=u;c+m+d>=h?p=h-m-d:c+d<f&&(p=f+Math.abs(d)),u>=h-1&&(y=h-1);var v=0;this.hot.view.wt.wtOverlays.topOverlay&&(v=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=o&&y-a.holder.scrollTop<v&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(p),this.guideline.setPosition(y)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(t<e){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var r=e-1,o=[];P(this.rowsMapper._arrayMap,(function(e,t){e>r&&o.push(t)})),this.rowsMapper.removeItems(o)}}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){Uv.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view.wt,i=o.wtTable,a=o.wtViewport,s=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeLast(),u=Uv.get(this);if(!l||!s||u.pressed||0!==e.button)return u.pressed=!1,u.rowsToMove.length=0,void bt(this.hot.rootElement,[qv,Gv]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),h=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&h&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var f=l.from,d=l.to,m=Math.min(f.row,d.row),p=Math.max(f.row,d.row);if(t.col<0&&t.row>=m&&t.row<=p){r.row=!0,u.pressed=!0,u.target.eventPageY=e.pageY,u.target.coords=t,u.target.TD=n,u.rowsToMove=this.prepareRowsToMoving();var y=i.holder.scrollLeft+a.getRowHeaderWidth();this.backlight.setPosition(null,y),this.backlight.setSize(i.hider.offsetWidth-y,this.getRowsHeight(m,p+1)),this.backlight.setOffset(-1*(this.getRowsHeight(m,t.row)+e.layerY),null),wt(this.hot.rootElement,qv),this.refreshPositions()}else bt(this.hot.rootElement,Xv),u.pressed=!1,u.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=Uv.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout((function(){this.backlight.setPosition(null,n)}))}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o=this.hot.getSelectedRangeLast(),i=Uv.get(this);o&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?bt(this.hot.rootElement,Gv):wt(this.hot.rootElement,Gv),r.row=!0,r.column=!0,r.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=Uv.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,bt(this.hot.rootElement,[qv,Gv,Xv]),this.hot.selection.isSelectedByRowHeader()&&wt(this.hot.rootElement,Xv),!(n<1||void 0===t||e.rowsToMove.indexOf(t)>-1||e.rowsToMove[n-1]===t-1)){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){var r=this.rowsMapper.getIndexByValue(e.rowsToMove[0]),o=this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]);this.changeSelection(r,o)}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=this.hot.view.wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;this.backlight.setPosition(null,t),this.backlight.setSize(e.hider.offsetWidth-t)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&Ra(e,e+t-1,(function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))}))}},{key:"onAfterRemoveRow",value:function(){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){var n=e;if(t!==this.pluginName){var r=this.rowsMapper.getValueByIndex(n);n=null===r?n:r}return n}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),this.rowsMapper.destroy(),Wv(Bv(t.prototype),"destroy",this).call(this)}}],r&&jv(n.prototype,r),t}(Rf);gu("ManualRowMove",Kv);const Jv=Kv;function $v(e){return $v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$v(e)}function Qv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eg(e,t,n){return eg="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tg(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},eg(e,t,n||e)}function tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tg(e)}function ng(e,t){return ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ng(e,t)}var rg=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=(n=function(e,t){return!t||"object"!==$v(t)&&"function"!=typeof t?Zv(e):t}(this,tg(t).call(this,e))).hot.rootDocument;return n.currentTH=null,n.currentRow=null,n.selectedRows=[],n.currentHeight=null,n.newSize=null,n.startY=null,n.startHeight=null,n.startOffset=null,n.handle=r.createElement("DIV"),n.guide=r.createElement("DIV"),n.eventManager=new Jr(Zv(n)),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualRowHeights=[],wt(n.handle,"manualRowResizer"),wt(n.guide,"manualRowResizerGuide"),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ng(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var n=this.hot.getSettings().manualRowResize,r=this.loadManualRowHeights();void 0!==r?this.manualRowHeights=r:Array.isArray(n)?this.manualRowHeights=n:this.manualRowHeights=[],this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.bindEvents(),eg(tg(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){eg(tg(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.getCoords(this.currentTH),r=n.row,o=Yt(this.currentTH);if(r>=0){var i=this.currentTH.getBoundingClientRect(),a=r<this.hot.getSettings().fixedRowsTop,s=r>=this.hot.countRows()-this.hot.getSettings().fixedRowsBottom,l=this.hot.view.wt.wtOverlays.leftOverlay;a?l=this.hot.view.wt.wtOverlays.topLeftCornerOverlay:s&&(l=this.hot.view.wt.wtOverlays.bottomLeftCornerOverlay);var u=l.getRelativeCellPosition(this.currentTH,n.row,n.col);if(!u){var c=l.clone.wtTable.TBODY.children[+!!this.hot.getSettings().colHeaders+r].firstChild;u=l.getRelativeCellPosition(c,n.row,n.col)}if(this.currentRow=r,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.isSelectedByRowHeader()){var h=this.hot.getSelectedRangeLast(),f=h.from,d=h.to,m=f.row,p=d.row;m>=p&&(m=d.row,p=f.row),this.currentRow>=m&&this.currentRow<=p?Ra(m,p,(function(e){return t.selectedRows.push(e)})):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=u.top-6,this.startHeight=parseInt(i.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style.left="".concat(u.left,"px"),this.handle.style.width="".concat(o,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top="".concat(this.startOffset+this.currentHeight,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt(Yt(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);wt(this.handle,"active"),wt(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left="".concat(t,"px"),this.guide.style.width="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){bt(this.handle,"active"),bt(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){if(e!==this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==o&&(e.newSize=o),e.setManualSize(n,e.newSize),r&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};this.dblclick>=2&&(this.selectedRows.length>1?(P(this.selectedRows,(function(e){n(e)})),t()):P(this.selectedRows,(function(e){n(e,!0)}))),this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;gt(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=Vr(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(Vr(e)-this.startY),P(this.selectedRows,(function(e){t.newSize=t.setManualSize(e,t.currentHeight)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeRowResize",n,e.newSize),r&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",n,e.newSize,!1)};this.pressed&&(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight&&(this.selectedRows.length>1?(P(this.selectedRows,(function(e){n(e)})),t()):P(this.selectedRows,(function(e){n(e,!0)}))),this.setupHandlePosition(this.currentTH))}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootElement,r=t.rootWindow;this.eventManager.addEventListener(n,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(n,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(r,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(r,"mouseup",(function(){return e.onMouseUp()}))}},{key:"setManualSize",value:function(e,t){var n=this.hot.runHooks("modifyRow",e);return this.manualRowHeights[n]=t,t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),r=n?n.heights[t]:null,o=this.hot.runHooks("modifyRow",t),i=this.manualRowHeights[o];if(void 0!==i&&(i===r||i>(e||0)))return i}return e}}],r&&Qv(n.prototype,r),t}(Rf);gu("manualRowResize",rg);const og=rg;function ig(){var e=ug(["The merged cell declared at [",", ",'] has "rowspan" or "colspan" declared as \n "0", which is not supported. It cannot be added to the collection.']);return ig=function(){return e},e}function ag(){var e=ug(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.']);return ag=function(){return e},e}function sg(){var e=ug(["The merged cell declared at [",", ","] is positioned (or positioned partially) \n outside of the table range. It was not added to the table, please fix your setup."]);return sg=function(){return e},e}function lg(){var e=ug(["The merged cell declared with {row: ",", col: ",", rowspan: \n ",", colspan: ","} contains negative values, which is not supported. It \n will not be added to the collection."]);return lg=function(){return e},e}function ug(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function cg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var hg=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1}var t,n,r;return t=e,n=[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),l=this[i],u=this[i]+this[o]-1;if(l>=t&&(this[i]+=n),n>0)t<=u&&t>l&&(this[o]+=n);else if(n<0){if(a<=l&&s>=u)return this.removed=!0,!1;if(l>=a&&l<=s){var c=s-l+1,h=Math.abs(n)-c;this[i]-=h+n,this[o]-=c}else if(l<=a&&u>=s)this[o]+=n;else if(l<=a&&u>=a&&u<s){var f=u-a+1;this[o]-=f}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return new Ce(new Me(this.row,this.col),new Me(this.row,this.col),new Me(this.getLastRow(),this.getLastColumn()))}}],r=[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return Jn(lg(),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return Jn(sg(),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return Jn(ag(),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return Jn(ig(),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}],n&&cg(t.prototype,n),r&&cg(t,r),e}();const fg=hg;function dg(e,t,n,r){t?t.row===n&&t.col===r?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")}function mg(){var e,t,n=(e=["The merged cell declared at [",", ","], overlaps with the other declared merged \n cell. The overlapping merged cell was not added to the table, please fix your setup."],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return mg=function(){return n},n}function pg(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var vg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.mergedCells=[],this.hot=t.hot}var t,n,r;return t=e,n=[{key:"get",value:function(e,t){var n=this.mergedCells,r=!1;return P(n,(function(n){return!(n.row<=e&&n.row+n.rowspan-1>=e&&n.col<=t&&n.col+n.colspan-1>=t&&(r=n,1))})),r}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return P(t,(function(t){return!(t.row<=e.from.row&&t.row+t.rowspan-1>=e.to.row&&t.col<=e.from.col&&t.col+t.colspan-1>=e.to.col)||(n=t)})),n}},{key:"getWithinRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.mergedCells,r=[],o=e;if(!o.includesRange){var i=new Me(o.from.row,o.from.col),a=new Me(o.to.row,o.to.col);o=new Ce(i,i,a)}return P(n,(function(e){var n=new Me(e.row,e.col),i=new Me(e.row+e.rowspan-1,e.col+e.colspan-1),a=new Ce(n,n,i);t?o.overlaps(a)&&r.push(e):o.includesRange(a)&&r.push(e)})),!!r.length&&r}},{key:"add",value:function(t){var n=this.mergedCells,r=t.row,o=t.col,i=t.rowspan,a=t.colspan,s=new fg(r,o,i,a),l=this.get(r,o),u=this.isOverlapping(s);return l||u?(Mr(e.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),n.push(s),s)}},{key:"remove",value:function(e,t){var n=this.mergedCells,r=this.get(e,t),o=r?this.mergedCells.indexOf(r):null;return!(!r||!1===o)&&(n.splice(o,1),r)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],r=[];P(t,(function(t){var r=e.hot.getCell(t.row,t.col);r&&n.push([r,e.get(t.row,t.col),t.row,t.col])})),this.mergedCells.length=0,P(n,(function(t,o){Ra(0,t.rowspan-1,(function(n){Ra(0,t.colspan-1,(function(o){if(0!==o||0!==n){var i=e.hot.getCell(t.row+n,t.col+o);i&&r.push([i,null,null,null])}}))})),n[o][1]=null})),P(n,(function(e){dg.apply(void 0,pg(e))})),P(r,(function(e){dg.apply(void 0,pg(e))}))}},{key:"isOverlapping",value:function(e){var t=new Ce(null,new Me(e.row,e.col),new Me(e.row+e.rowspan-1,e.col+e.colspan-1)),n=!1;return P(this.mergedCells,(function(e){return!new Ce(null,new Me(e.row,e.col),new Me(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(t)||(n=!0,!1)})),n}},{key:"isMergedParent",value:function(e,t){var n=this.mergedCells,r=!1;return P(n,(function(n){return n.row!==e||n.col!==t||(r=!0,!1)})),r}},{key:"shiftCollections",value:function(e,t,n){var r=this,o=[0,0];switch(e){case"right":o[0]+=n;break;case"left":o[0]-=n;break;case"down":o[1]+=n;break;case"up":o[1]-=n}P(this.mergedCells,(function(e){e.shift(o,t)})),La(this.mergedCells.length-1,0,(function(e){var t=r.mergedCells[e];t&&t.removed&&r.mergedCells.splice(r.mergedCells.indexOf(t),1)}))}}],r=[{key:"IS_OVERLAPPING_WARNING",value:function(e){return Jn(mg(),e.row,e.col)}}],n&&yg(t.prototype,n),r&&yg(t,r),e}();const gg=vg;function wg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}var t,n;return t=e,n=[{key:"correctSelectionAreaSize",value:function(e){if(e[0]===e[2]&&e[1]===e[3]){var t=this.mergedCellsCollection.get(e[0],e[1]);t&&(e[2]=e[0]+t.rowspan-1,e[3]=e[1]+t.colspan-1)}}},{key:"getDirection",value:function(e,t){return t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left"}},{key:"snapDragArea",value:function(e,t,n,r){var o=t.slice(0),i=this.getAutofillSize(e,t,n),a=wg(e,4),s=a[0],l=a[1],u=a[2],c=a[3],h=["up","down"].indexOf(n)>-1?u-s+1:c-l+1,f=i-Math.floor(i/h)*h,d=this.getFarthestCollection(e,t,n,r);if(d)if("down"===n){var m=d.row+d.rowspan-s-f;o[2]+m>=this.plugin.hot.countRows()?o[2]-=f:o[2]+=f?m:0}else if("right"===n){var p=d.col+d.colspan-l-f;o[3]+p>=this.plugin.hot.countCols()?o[3]-=f:o[3]+=f?p:0}else if("up"===n){var y=u-f-d.row+1;o[0]+y<0?o[0]+=f:o[0]-=f?y:0}else if("left"===n){var v=c-f-d.col+1;o[1]+v<0?o[1]+=f:o[1]-=f?v:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:i,dragArea:o,cycleLength:h}),o}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),G(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var r=wg(e,4),o=r[0],i=r[1],a=r[2],s=r[3],l=wg(t,4),u=l[0],c=l[1],h=l[2],f=l[3];switch(n){case"up":return o-u;case"down":return h-a;case"left":return i-c;case"right":return f-s;default:return null}}},{key:"getDragArea",value:function(e,t,n){var r=wg(e,4),o=r[0],i=r[1],a=r[2],s=r[3],l=wg(t,4),u=l[0],c=l[1],h=l[2],f=l[3];switch(n){case"up":return[u,c,o-1,s];case"down":return[a+1,i,h,s];case"left":return[u,c,a,i-1];case"right":return[o,s+1,h,f];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,r){var o=wg(e,4),i=o[0],a=o[1],s=o[2],l=o[3],u=["up","down"].indexOf(n)>-1,c=u?s:l,h=u?i:a,f=this.getAutofillSize(e,t,n),d=u?s-i+1:l-a+1,m=f-Math.floor(f/d)*d,p=null,y=null,v=null;switch(n){case"up":p="includesVertically",v=c-m+1;break;case"left":p="includesHorizontally",v=c-m+1;break;case"down":p="includesVertically",v=h+m-1;break;case"right":p="includesHorizontally",v=h+m-1}return P(r,(function(e){e[p](v)&&e.isFarther(y,n)&&(y=e)})),y}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,o=function(e,n){switch(r){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}},i=0,a=null,s=1;do{for(var l=0;l<n.length;l+=1){if(o(a=n[l],i=s*this.currentFillData.cycleLength))switch(r){case"up":this.plugin.mergedCellsCollection.add({row:a.row-i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"left":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col-i,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+i,colspan:a.colspan})}l===n.length-1&&(s+=1)}}while(o(a,i));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var t=this,n={min:null,max:null},r={min:null,max:null};return P(e,(function(e){var o=e[0],i=t.plugin.hot.propToCol(e[1]);(null===n.min||o<n.min)&&(n.min=o),(null===n.max||o>n.max)&&(n.max=o),(null===r.min||i<r.min)&&(r.min=i),(null===r.max||i>r.max)&&(r.max=i)})),{from:{row:n.min,column:r.min},to:{row:n.max,column:r.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var r=wg(this.getDragArea(e,t,n),4),o=r[0],i=r[1],a=r[2],s=r[3],l=new Me(o,i),u=new Me(a,s),c=new Ce(l,l,u);return!!this.mergedCellsCollection.getWithinRange(c,!0)}}],n&&bg(t.prototype,n),e}();const Mg=_g;function kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}var t,n;return t=e,n=[{key:"snapDelta",value:function(e,t,n){var r=t.to,o=r.row+e.row,i=r.col+e.col;e.row?this.jumpOverMergedCell(e,n,o):e.col&&this.jumpOverMergedCell(e,n,i)}},{key:"jumpOverMergedCell",value:function(e,t,n){var r=e.row||e.col,o=null,i=null,a=null;e.row?(o=t.includesVertically(n),i=t.row,a=t.getLastRow()):e.col&&(o=t.includesHorizontally(n),i=t.col,a=t.getLastColumn()),0!==r&&(r>0?o&&n!==i&&(r+=a-n+1):o&&n!==a&&(r-=n-i+1),e.row?e.row=r:e.col&&(e.col=r))}},{key:"getUpdatedSelectionRange",value:function(e,t){return new Ce(e.highlight,e.from,new Me(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,r){var o,i,a=(i=4,function(e){if(Array.isArray(e))return e}(o=n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=a[0],l=a[1],u=a[2],c=a[3];if(void 0!==r&&e>=s&&e<=u&&t>=l&&t<=c){if(!this.plugin.mergedCellsCollection.isMergedParent(e,t))return;var h=this.plugin.mergedCellsCollection.get(e,t);if(!h)return;if(h.row+h.rowspan-1<=u&&h.col+h.colspan-1<=c)return"".concat(this.fullySelectedMergedCellClassName,"-").concat(r);if(this.plugin.selectionCalculations.isMergeCellFullySelected(h,this.plugin.hot.getSelectedRange()))return"".concat(this.fullySelectedMergedCellClassName,"-multiple")}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var r=0;r<e.rowspan;r+=1)for(var o=0;o<e.colspan;o+=1)n.push(new Me(e.row+r,e.col+o));for(var i=0;i<n.length;i+=1){for(var a=[],s=0;s<t.length;s+=1)a[s]=t[s].includes(n[i]);if(!a.includes(!0))return!1}return!0}},{key:"getSelectedMergedCellClassNameToRemove",value:function(){for(var e=[],t=0;t<=7;t+=1)e.push("".concat(this.fullySelectedMergedCellClassName,"-").concat(t));return e.push("".concat(this.fullySelectedMergedCellClassName,"-multiple")),e}}],n&&kg(t.prototype,n),e}();const Cg=Sg;function Tg(e){return Tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tg(e)}function Eg(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Og(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lg(e,t,n){return Lg="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Dg(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Lg(e,t,n||e)}function Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dg(e)}function Ag(e,t){return Ag=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ag(e,t)}ce.getSingleton().register("beforeMergeCells"),ce.getSingleton().register("afterMergeCells"),ce.getSingleton().register("beforeUnmergeCells"),ce.getSingleton().register("afterUnmergeCells");var Hg=new WeakMap,Ng=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Tg(t)&&"function"!=typeof t?Rg(e):t}(this,Dg(t).call(this,e)),Hg.set(Rg(n),{lastDesiredCoords:null}),n.mergedCellsCollection=null,n.autofillCalculations=null,n.selectionCalculations=null,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ag(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new gg(this),this.autofillCalculations=new Mg(this),this.selectionCalculations=new Cg(this),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown.apply(e,arguments)})),this.addHook("modifyTransformStart",(function(){return e.onModifyTransformStart.apply(e,arguments)})),this.addHook("afterModifyTransformStart",(function(){return e.onAfterModifyTransformStart.apply(e,arguments)})),this.addHook("modifyTransformEnd",(function(){return e.onModifyTransformEnd.apply(e,arguments)})),this.addHook("modifyGetCellCoords",(function(){return e.onModifyGetCellCoords.apply(e,arguments)})),this.addHook("beforeSetRangeEnd",(function(){return e.onBeforeSetRangeEnd.apply(e,arguments)})),this.addHook("afterIsMultipleSelection",(function(){return e.onAfterIsMultipleSelection.apply(e,arguments)})),this.addHook("afterRenderer",(function(){return e.onAfterRenderer.apply(e,arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){return e.addMergeActionsToContextMenu.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(){return e.onAfterGetCellMeta.apply(e,arguments)})),this.addHook("afterViewportRowCalculatorOverride",(function(){return e.onAfterViewportRowCalculatorOverride.apply(e,arguments)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)})),this.addHook("modifyAutofillRange",(function(){return e.onModifyAutofillRange.apply(e,arguments)})),this.addHook("afterCreateCol",(function(){return e.onAfterCreateCol.apply(e,arguments)})),this.addHook("afterRemoveCol",(function(){return e.onAfterRemoveCol.apply(e,arguments)})),this.addHook("afterCreateRow",(function(){return e.onAfterCreateRow.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.apply(e,arguments)})),this.addHook("afterChange",(function(){return e.onAfterChange.apply(e,arguments)})),this.addHook("beforeDrawBorders",(function(){return e.onBeforeDrawAreaBorders.apply(e,arguments)})),this.addHook("afterDrawSelection",(function(){return e.onAfterDrawSelection.apply(e,arguments)})),this.addHook("beforeRemoveCellClassNames",(function(){return e.onBeforeRemoveCellClassNames.apply(e,arguments)})),Lg(Dg(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.hot.render(),Lg(Dg(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().mergeCells;this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(e),Lg(Dg(t.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(fg.containsNegativeValues(e)?(Mr(fg.NEGATIVE_VALUES_WARNING(e)),t=!1):fg.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?(Mr(fg.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):fg.isSingleCell(e)?(Mr(fg.IS_SINGLE_CELL(e)),t=!1):fg.containsZeroSpan(e)&&(Mr(fg.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var t=this;if(Array.isArray(e)){var n,r=[];P(e,(function(e){if(t.validateSetting(e)){var n=new Me(e.row,e.col),o=new Me(e.row+e.rowspan-1,e.col+e.colspan-1),i=new Ce(n,n,o);r.push(t.mergeRange(i,!0,!0))}})),r=r.filter((function(e){return!0!==e}));var o=this.getBulkCollectionData(r);(n=this.hot).populateFromArray.apply(n,Eg(o))}}},{key:"getBulkCollectionData",value:function(e){var t,n=this.getBulkCollectionDataRange(e),r=(t=this.hot).getData.apply(t,Eg(n)).splice(0);return P(e,(function(e){var t,o,i=(o=3,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],s=i[1];P(i[2],(function(e,t){P(e,(function(e,o){r[a-n[0]+t][s-n[1]+o]=e}))}))})),[n[0],n[1],r]}},{key:"getBulkCollectionDataRange",value:function(e){var t=[0,0],n=[0,0],r=null,o=null,i=null;return P(e,(function(e){r=e[0],o=e[1],i=e[2],t[0]=Math.min(r,t[0]),t[1]=Math.min(o,t[1]),n[0]=Math.max(r+i.length-1,n[0]),n[1]=Math.max(o+i[0].length-1,n[1])})),[].concat(t,n)}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.toggleMerge(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.getTopLeftCorner(),i=e.getBottomRightCorner(),a={row:o.row,col:o.col,rowspan:i.row-o.row+1,colspan:i.col-o.col+1},s=[],l=null;return!!this.canMergeRange(a,n)&&(this.hot.runHooks("beforeMergeCells",e,n),Ra(0,a.rowspan-1,(function(e){Ra(0,a.colspan-1,(function(n){var r=null;s[e]||(s[e]=[]),0===e&&0===n?r=t.hot.getDataAtCell(a.row,a.col):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=r}))})),this.hot.setCellMeta(a.row,a.col,"spanned",!0),!this.mergedCellsCollection.add(a)||(r?l=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),l))}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCellsCollection.getWithinRange(e);r&&(this.hot.runHooks("beforeUnmergeCells",e,n),P(r,(function(e){t.mergedCellsCollection.remove(e.row,e.col),Ra(0,e.rowspan-1,(function(n){Ra(0,e.colspan-1,(function(r){t.hot.removeCellMeta(e.row+n,e.col+r,"hidden")}))})),t.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.render(),this.hot.runHooks("afterUnmergeCells",e,n))}},{key:"toggleMerge",value:function(e){var t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}},{key:"merge",value:function(e,t,n,r){var o=new Me(e,t),i=new Me(n,r);this.mergeRange(new Ce(o,o,i))}},{key:"unmerge",value:function(e,t,n,r){var o=new Me(e,t),i=new Me(n,r);this.unmergeRange(new Ce(o,o,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"onBeforeKeyDown",value:function(e){(e.ctrlKey||e.metaKey)&&!e.altKey&&77===e.keyCode&&(this.toggleMerge(this.hot.getSelectedRangeLast()),this.hot.render(),jr(e))}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),r=0;r<t.length;r+=1)if(n.highlight.row===t[r].row&&n.highlight.col===t[r].col&&n.to.row===t[r].row+t[r].rowspan-1&&n.to.col===t[r].col+t[r].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t,n=Hg.get(this),r=this.hot.getSelectedRangeLast(),o={row:e.row,col:e.col},i=new Me(r.highlight.row,r.highlight.col),a=this.mergedCellsCollection.get(i.row,i.col);if(n.lastDesiredCoords||(n.lastDesiredCoords=new Me(null,null)),a){var s=new Me(a.row,a.col),l=new Me(a.row+a.rowspan-1,a.col+a.colspan-1);new Ce(s,s,l).includes(n.lastDesiredCoords)||(n.lastDesiredCoords=new Me(null,null)),o.row=n.lastDesiredCoords.row?n.lastDesiredCoords.row-i.row:o.row,o.col=n.lastDesiredCoords.col?n.lastDesiredCoords.col-i.col:o.col,e.row>0?o.row=a.row+a.rowspan-1-i.row+e.row:e.row<0&&(o.row=i.row-a.row+e.row),e.col>0?o.col=a.col+a.colspan-1-i.col+e.col:e.col<0&&(o.col=i.col-a.col+e.col)}t=new Me(r.highlight.row+o.row,r.highlight.col+o.col);var u=this.mergedCellsCollection.get(t.row,t.col);u&&(n.lastDesiredCoords=t,o={row:u.row-i.row,col:u.col-i.col}),0!==o.row&&(e.row=o.row),0!==o.col&&(e.col=o.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),r=K(e),o=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=K(r),a=this.mergedCellsCollection.getWithinRange(o,!0);do{i=K(r),this.selectionCalculations.getUpdatedSelectionRange(n,r),P(a,(function(e){t.selectionCalculations.snapDelta(r,n,e)}))}while(r.row!==i.row||r.col!==i.col);e.row=r.row,e.col=r.col}},{key:"onModifyGetCellCoords",value:function(e,t){var n=this.mergedCellsCollection.get(e,t);return n?[n.row,n.col,n.row+n.rowspan-1,n.col+n.colspan-1]:void 0}},{key:"addMergeActionsToContextMenu",value:function(e){var t;e.items.push({name:"---------"},(t=this,{key:"mergeCells",name:function(){var e=this.getSelectedLast();if(e){var n=t.mergedCellsCollection.get(e[0],e[1]);if(n.row===e[0]&&n.col===e[1]&&n.row+n.rowspan-1===e[2]&&n.col+n.colspan-1===e[3])return this.getTranslatedPhrase(lc)}return this.getTranslatedPhrase(sc)},callback:function(){t.toggleMergeOnSelection()},disabled:function(){var e=this.getSelectedLast();return!e||fg.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}))}},{key:"onAfterRenderer",value:function(e,t,n){dg(e,this.mergedCellsCollection.get(t,n),t,n)}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=new Me(t.highlight.row,t.highlight.col),t.to=e;var n=!1;if(!this.hot.selection.isSelectedByColumnHeader()&&!this.hot.selection.isSelectedByRowHeader())do{n=!1;for(var r=0;r<this.mergedCellsCollection.mergedCells.length;r+=1){var o=this.mergedCellsCollection.mergedCells[r].getRange();t.expandByRange(o)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var r=this.mergedCellsCollection.get(e,t);r&&(r.row!==e||r.col!==t?n.copyable=!1:(n.rowspan=r.rowspan,n.colspan=r.colspan))}},{key:"onAfterViewportRowCalculatorOverride",value:function(e){var t,n=this;Ra(0,this.hot.countCols()-1,(function(r){if((t=n.mergedCellsCollection.get(e.startRow,r))&&t.row<e.startRow)return e.startRow=t.row,n.onAfterViewportRowCalculatorOverride.call(n,e);if(t=n.mergedCellsCollection.get(e.endRow,r)){var o=t.row+t.rowspan-1;if(o>e.endRow)return e.endRow=o,n.onAfterViewportRowCalculatorOverride.call(n,e)}return!0}))}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t,n=this;Ra(0,this.hot.countRows()-1,(function(r){if((t=n.mergedCellsCollection.get(r,e.startColumn))&&t.col<e.startColumn)return e.startColumn=t.col,n.onAfterViewportColumnCalculatorOverride.call(n,e);if(t=n.mergedCellsCollection.get(r,e.endColumn)){var o=t.col+t.colspan-1;if(o>e.endColumn)return e.endColumn=o,n.onAfterViewportColumnCalculatorOverride.call(n,e)}return!0}))}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),r=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,r,n))return t;var o=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return o?r=this.autofillCalculations.snapDragArea(t,r,n,o):r}},{key:"onAfterCreateCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}},{key:"onAfterCreateRow",value:function(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}},{key:"onAfterChange",value:function(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}},{key:"onBeforeDrawAreaBorders",value:function(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast();P(this.mergedCellsCollection.getWithinRange(n),(function(t){n.getBottomRightCorner().row===t.getLastRow()&&n.getBottomRightCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)}))}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var r=this.mergedCellsCollection.get(e.row,e.col);if(r){var o=t>0,i=t<0,a=n<0,s=n>0,l=r.row+r.rowspan-1==this.hot.countRows()-1,u=0===r.row,c=r.col+r.colspan-1==this.hot.countCols()-1,h=0===r.col;(o&&l||i&&u||s&&c||a&&h)&&(e.row=r.row,e.col=r.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,r){return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}],r&&Og(n.prototype,r),t}(Rf);gu("mergeCells",Ng);const Pg=Ng;function xg(e){return xg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xg(e)}function Yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ig(e,t,n){return Ig="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jg(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ig(e,t,n||e)}function jg(e){return jg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jg(e)}function Fg(e,t){return Fg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fg(e,t)}var Wg=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==xg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,jg(t).call(this,e))).dragged=[],n.eventManager=null,n.lastSetCell=null,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fg(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return Pe()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new Jr(this)),this.registerListeners(),Ig(jg(t.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var e=this,t=this,n=this.hot.rootElement;function r(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var n=t.dragged.indexOf(e);if(-1===n)return!1;0===n?t.dragged=t.dragged.slice(0,1):1===n&&(t.dragged=t.dragged.slice(-1))}this.eventManager.addEventListener(n,"touchstart",(function(e){var n;return gt(e.target,"topLeftSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("topLeft"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):gt(e.target,"bottomRightSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("bottomRight"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchend",(function(e){return gt(e.target,"topLeftSelectionHandle-HitArea")?(r.call(t,"topLeft"),t.touchStartRange=void 0,e.preventDefault(),!1):gt(e.target,"bottomRightSelectionHandle-HitArea")?(r.call(t,"bottomRight"),t.touchStartRange=void 0,e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchmove",(function(n){var r,o,i,a,s,l,u=e.hot,c=u.rootWindow,h=u.rootDocument,f=Rt(c),d=Lt(c);if(0!==t.dragged.length){var m=h.elementFromPoint(n.touches[0].screenX-d,n.touches[0].screenY-f);m&&m!==t.lastSetCell&&("TD"!==m.nodeName&&"TH"!==m.nodeName||(-1===(r=t.hot.getCoords(m)).col&&(r.col=0),i=(o=t.hot.getSelectedRangeLast()).getWidth(),a=o.getHeight(),s=o.getDirection(),1===i&&1===a&&t.hot.selection.setRangeEnd(r),null!==(l=t.getCurrentRangeCoords(o,r,t.touchStartRange.direction,s,t.dragged[0])).start&&t.hot.selection.setRangeStart(l.start),t.hot.selection.setRangeEnd(l.end),t.lastSetCell=m),n.preventDefault())}}))}},{key:"getCurrentRangeCoords",value:function(e,t,n,r,o){var i=e.getTopLeftCorner(),a=e.getBottomRightCorner(),s=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(r){case"NE-SW":case"NW-SE":u="topLeft"===o?{start:new Me(t.row,e.highlight.col),end:new Me(s.row,t.col)}:{start:new Me(e.highlight.row,t.col),end:new Me(t.row,i.col)};break;case"SE-NW":"bottomRight"===o&&(u={start:new Me(a.row,t.col),end:new Me(t.row,i.col)})}break;case"NW-SE":switch(r){case"NE-SW":"topLeft"===o?u={start:t,end:s}:u.end=t;break;case"NW-SE":"topLeft"===o?u={start:t,end:a}:u.end=t;break;case"SE-NW":"topLeft"===o?u={start:t,end:i}:u.end=t;break;case"SW-NE":"topLeft"===o?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(r){case"NW-SE":u="bottomRight"===o?{start:new Me(t.row,i.col),end:new Me(s.row,t.col)}:{start:new Me(i.row,t.col),end:new Me(t.row,a.col)};break;case"SW-NE":u="topLeft"===o?{start:new Me(e.highlight.row,t.col),end:new Me(t.row,a.col)}:{start:new Me(t.row,i.col),end:new Me(i.row,t.col)};break;case"SE-NW":"bottomRight"===o?u={start:new Me(t.row,l.col),end:new Me(i.row,t.col)}:"topLeft"===o&&(u={start:s,end:t})}break;case"SE-NW":switch(r){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"===o&&(u.end=t);break;case"SE-NW":"topLeft"===o?u.end=t:u={start:t,end:i}}}return u}},{key:"isDragged",value:function(){return this.dragged.length>0}}],r&&Yg(n.prototype,r),t}(Rf);gu("multipleSelectionHandles",Wg);const Bg=Wg;var Vg=n(78717),Ug=n.n(Vg);function zg(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n,r,o=(r=3,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[1],a=o[2];return{row:parseInt(i,10),col:/^\d*$/.test(a)?parseInt(a,10):a}}function Gg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(t)}var t,n;return t=e,(n=[{key:"setObservedData",value:function(e){var t=this;this.observer&&Ug().unobserve(this.observedData,this.observer),this.observedData=e,this.observer=Ug().observe(this.observedData,(function(e){return t.onChange(e)}))}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",function(e){var t=[],n=H(e,(function(e){return!/[/]length/gi.test(e.path)&&!!zg(e.path)}));return n=H(n=N(n,(function(e){var t=zg(e.path);return e.row=t.row,e.col=t.col,e})),(function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0})),t.length=0,n}(e))}},{key:"destroy",value:function(){Ug().unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}])&&Gg(t.prototype,n),e}();J(qg,Zh);const Xg=qg;function Kg(e){return Kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kg(e)}function Jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $g(e,t,n){return $g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Qg(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},$g(e,t,n||e)}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qg(e)}function Zg(e,t){return Zg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zg(e,t)}var ew=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Kg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Qg(t).call(this,e))).observer=null,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zg(e,t)}(t,e),n=t,(r=[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.observer||(this.observer=new Xg(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",(function(t){return e.onDataChange(t)})),this.addHook("afterCreateRow",(function(){return e.onAfterTableAlter()})),this.addHook("afterRemoveRow",(function(){return e.onAfterTableAlter()})),this.addHook("afterCreateCol",(function(){return e.onAfterTableAlter()})),this.addHook("afterRemoveCol",(function(){return e.onAfterTableAlter()})),this.addHook("afterChange",(function(t,n){return e.onAfterTableAlter(n)})),this.addHook("afterLoadData",(function(t){return e.onAfterLoadData(t)})),$g(Qg(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),$g(Qg(t.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n="".concat(this.pluginName,".change"),r={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[[e.row,e.col,null,e.value]],n)}};P(e,(function(e){r[e.op]&&r[e.op](e)})),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",(function(){return t.observer.resume()})))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),$g(Qg(t.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}])&&Jg(n.prototype,r),t}(Rf);const tw=ew;function nw(e){return nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nw(e)}function rw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ow(e,t,n){return ow="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=iw(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},ow(e,t,n||e)}function iw(e){return iw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iw(e)}function aw(e,t){return aw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aw(e,t)}gu("observeChanges",ew);var sw=function(e,t,n,r,o){e.getCellMeta(t,n).isSearchResult=o},lw=function(e,t){return!(sr(e)||null===e||!e.toLowerCase||0===e.length||sr(t)||null===t||-1===t.toString().toLowerCase().indexOf(e.toLowerCase()))},uw=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==nw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,iw(t).call(this,e))).callback=sw,n.queryMethod=lw,n.searchResultClass="htSearchResult",n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aw(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return this.hot.getSettings().search}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().search;this.updatePluginSettings(n),this.addHook("beforeRenderer",(function(){return e.onBeforeRenderer.apply(e,arguments)})),ow(iw(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e=this,n=function(){return e.onBeforeRenderer.apply(e,arguments)};this.hot.addHook("beforeRenderer",n),this.hot.addHookOnce("afterRender",(function(){e.hot.removeHook("beforeRenderer",n)})),ow(iw(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),ow(iw(t.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),o=this.hot.countRows(),i=this.hot.countCols(),a=[],s=this.hot;return Ra(0,o-1,(function(o){Ra(0,i-1,(function(i){var l=t.hot.getDataAtCell(o,i),u=t.hot.getCellMeta(o,i),c=u.search.callback||n,h=(u.search.queryMethod||r)(e,l,u);if(h){var f={row:o,col:i,data:l};a.push(f)}c&&c(s,o,i,l,h)}))})),a}},{key:"getCallback",value:function(){return this.callback}},{key:"setCallback",value:function(e){this.callback=e}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(e){this.queryMethod=e}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(e){this.searchResultClass=e}},{key:"updatePluginSettings",value:function(e){Q(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}},{key:"onBeforeRenderer",value:function(e,t,n,r,o,i){var a,s,l=i.className||[],u=[];"string"==typeof l?u=l.split(" "):(a=u).push.apply(a,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(s=l)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),this.isEnabled()&&i.isSearchResult?u.includes(this.searchResultClass)||u.push("".concat(this.searchResultClass)):u.includes(this.searchResultClass)&&u.splice(u.indexOf(this.searchResultClass),1),i.className=u.join(" ")}},{key:"destroy",value:function(){ow(iw(t.prototype),"destroy",this).call(this)}}],r&&rw(n.prototype,r),t}(Rf);gu("search",uw);const cw=uw;function hw(e){return hw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hw(e)}function fw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dw(e,t,n){return dw="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mw(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},dw(e,t,n||e)}function mw(e){return mw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mw(e)}function pw(e,t){return pw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pw(e,t)}var yw=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==hw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,mw(t).call(this,e))).scrollbars=[],n.clones=[],n.lockedCollection=!1,n.freezeOverlays=!1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pw(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return et()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",(function(){return e.onAfterRender()})),this.registerEvents(),dw(mw(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,dw(mw(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){dw(mw(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",(function(){return e.onBeforeTouchScroll()})),this.addHook("afterMomentumScroll",(function(){return e.onAfterMomentumScroll()}))}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,r=e.leftOverlay,o=e.topLeftCornerOverlay,i=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(r),o&&this.scrollbars.push(o),i&&i.clone&&this.scrollbars.push(i),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),o&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,P(this.clones,(function(e){wt(e,"hide-tween")}))}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,P(this.clones,(function(e){bt(e,"hide-tween"),wt(e,"show-tween")})),setTimeout((function(){P(e.clones,(function(e){bt(e,"show-tween")}))}),400),P(this.scrollbars,(function(e){e.refresh(),e.resetFixedPosition()})),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}],r&&fw(n.prototype,r),t}(Rf);gu("touchScroll",yw);const vw=yw;function gw(e){return gw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gw(e)}function ww(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _w(e,t,n){return t&&bw(e.prototype,t),n&&bw(e,n),e}function Mw(e,t){return!t||"object"!==gw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kw(e){return kw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kw(e)}function Sw(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cw(e,t)}function Cw(e,t){return Cw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Cw(e,t)}function Tw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ew(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",(function(n,r){var o=n&&n.length;if(o&&!["UndoRedo.undo","UndoRedo.redo","MergeCells"].includes(r)&&n.find((function(e){var t=Tw(e,4);return t[2]!==t[3]}))){var i=n.reduce((function(e,t){return e.push(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t)),e}),[]);P(i,(function(t){t[1]=e.propToCol(t[1])}));var a=o>1?this.getSelected():[[i[0][0],i[0][1]]];t.done(new Ew.ChangeAction(i,a))}})),e.addHook("afterCreateRow",(function(e,n,r){if("UndoRedo.undo"!==r&&"UndoRedo.undo"!==r&&"auto"!==r){var o=new Ew.CreateRowAction(e,n);t.done(o)}})),e.addHook("beforeRemoveRow",(function(n,r,o,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var a=t.instance.getSourceDataArray(),s=(a.length+n)%a.length,l=e.toPhysicalRow(s),u=X(a.slice(l,l+r));t.done(new Ew.RemoveRowAction(s,u))}})),e.addHook("afterCreateCol",(function(e,n,r){"UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r&&t.done(new Ew.CreateColumnAction(e,n))})),e.addHook("beforeRemoveCol",(function(n,r,o,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var a=t.instance.getSourceDataArray(),s=(t.instance.countCols()+n)%t.instance.countCols(),l=[],u=[],c=[];Ra(a.length-1,(function(t){var n=[],o=a[t];Ra(s,s+(r-1),(function(t){n.push(o[e.runHooks("modifyCol",t)])})),l.push(n)})),Ra(r-1,(function(t){c.push(e.runHooks("modifyCol",s+t))})),Array.isArray(e.getSettings().colHeaders)&&Ra(r-1,(function(t){u.push(e.getSettings().colHeaders[e.runHooks("modifyCol",s+t)]||null)}));var h=t.instance.getPlugin("manualColumnMove"),f=h.isEnabled()?h.columnsMapper.__arrayMap:[],d=new Ew.RemoveColumnAction(s,c,l,u,f);t.done(d)}})),e.addHook("beforeCellAlignment",(function(e,n,r,o){var i=new Ew.CellAlignmentAction(e,n,r,o);t.done(i)})),e.addHook("beforeFilter",(function(e){t.done(new Ew.FiltersAction(e))})),e.addHook("beforeRowMove",(function(e,n){!1!==e&&t.done(new Ew.RowMoveAction(e,n))})),e.addHook("beforeMergeCells",(function(n,r){r||t.done(new Ew.MergeCellsAction(e,n))})),e.addHook("afterUnmergeCells",(function(n,r){r||t.done(new Ew.UnmergeCellsAction(e,n))}))}Ew.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},Ew.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=X(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var r=this;e.undo(this.instance,(function(){r.ignoreNewActions=!1,r.undoneActions.push(e)})),n.runHooks("afterUndo",t)}},Ew.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=X(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var r=this;e.redo(this.instance,(function(){r.ignoreNewActions=!1,r.doneActions.push(e)})),n.runHooks("afterRedo",t)}},Ew.prototype.isUndoAvailable=function(){return this.doneActions.length>0},Ew.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},Ew.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},Ew.Action=function(){},Ew.Action.prototype.undo=function(){},Ew.Action.prototype.redo=function(){},Ew.ChangeAction=function(e,t){this.changes=e,this.selected=t,this.actionType="change"},z(Ew.ChangeAction,Ew.Action),Ew.ChangeAction.prototype.undo=function(e,t){for(var n=X(this.changes),r=e.countEmptyRows(!0),o=e.countEmptyCols(!0),i=0,a=n.length;i<a;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.undo");for(var s=0,l=n.length;s<l;s++){var u=Tw(n[s],2),c=u[0],h=u[1];e.getSettings().minSpareRows&&c+1+e.getSettings().minSpareRows===e.countRows()&&r===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(c+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&h+1+e.getSettings().minSpareCols===e.countCols()&&o===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(h+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())}e.selectCells(this.selected,!1,!1)},Ew.ChangeAction.prototype.redo=function(e,t){for(var n=X(this.changes),r=0,o=n.length;r<o;r++)n[r].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)},Ew.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},z(Ew.CreateRowAction,Ew.Action),Ew.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),r=e.getSettings().minSpareRows;this.index>=n&&this.index-r<n&&(this.index-=r),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},Ew.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},Ew.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},z(Ew.RemoveRowAction,Ew.Action),Ew.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},Ew.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},Ew.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},z(Ew.CreateColumnAction,Ew.Action),Ew.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},Ew.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},Ew.RemoveColumnAction=function(e,t,n,r,o){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=r,this.columnPositions=o.slice(0),this.actionType="remove_col"},z(Ew.RemoveColumnAction,Ew.Action),Ew.RemoveColumnAction.prototype.undo=function(e,t){var n,r,o=this,i=this.indexes.slice(0).sort(),a=function(e,t,n){return n[o.indexes.indexOf(i[t])]},s=[];Ra(this.data.length-1,(function(e){s[e]=N(o.data[e],a)})),r=N(this.headers,a);var l=[];e.runHooks("beforeCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),Ra(this.data.length-1,(function(t){n=e.getSourceDataAtRow(t),Ra(i.length-1,(function(e){n.splice(i[e],0,s[t][e]),l.push([t,i[e],null,s[t][e]])}))})),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(l),void 0!==this.headers&&Ra(r.length-1,(function(t){e.getSettings().colHeaders.splice(i[t],0,r[t])})),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),e.runHooks("afterCreateCol",this.indexes[0],this.indexes.length,"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},Ew.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},Ew.CellAlignmentAction=function(e,t,n,r){this.stateBefore=e,this.range=t,this.type=n,this.alignment=r},Ew.CellAlignmentAction.prototype.undo=function(e,t){var n=this;P(this.range,(function(t){for(var r=t.from,o=t.to,i=r.row;i<=o.row;i+=1)for(var a=r.col;a<=o.col;a+=1)e.setCellMeta(i,a,"className",n.stateBefore[i][a]||" htLeft")})),e.addHookOnce("afterRender",t),e.render()},Ew.CellAlignmentAction.prototype.redo=function(e,t){Om(this.range,this.type,this.alignment,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),e.addHookOnce("afterRender",t),e.render()},Ew.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},z(Ew.FiltersAction,Ew.Action),Ew.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},Ew.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()};var Ow=function(e){function t(e,n){var r;return ww(this,t),(r=Mw(this,kw(t).call(this))).cellRange=n,r.rangeData=e.getData(n.from.row,n.from.col,n.to.row,n.to.col),r}return Sw(t,e),_w(t,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.populateFromArray(this.cellRange.from.row,this.cellRange.from.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange)}}]),t}(Ew.Action);Ew.MergeCellsAction=Ow;var Rw=function(e){function t(e,n){var r;return ww(this,t),(r=Mw(this,kw(t).call(this))).cellRange=n,r}return Sw(t,e),_w(t,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),t}(Ew.Action);function Lw(){var e=this;void 0===e.getSettings().undo||e.getSettings().undo?e.undoRedo||(e.undoRedo=new Ew(e),function(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}(e),e.addHook("beforeKeyDown",Dw),e.addHook("afterChange",Aw)):e.undoRedo&&(delete e.undoRedo,function(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}(e),e.removeHook("beforeKeyDown",Dw),e.removeHook("afterChange",Aw))}function Dw(e){if(!Fr(e)){var t=this,n=t.getActiveEditor();if(!n||!n.isOpened()){var r=e.altKey,o=e.ctrlKey,i=e.keyCode,a=e.metaKey,s=e.shiftKey;!o&&!a||r||(89===i||s&&90===i?(t.undoRedo.redo(),jr(e)):90===i&&(t.undoRedo.undo(),jr(e)))}}}function Aw(e,t){if("loadData"===t)return this.undoRedo.clear()}Ew.UnmergeCellsAction=Rw,Ew.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},z(Ew.RowMoveAction,Ew.Action),Ew.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var r=this.rows[0]<this.target?-1*this.rows.length:0,o=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],i=[],a=this.rows.length+r,s=r;s<a;s+=1)i.push(this.target+s);n.moveRows(i.slice(),o),e.render(),e.selectCell(this.rows[0],0,this.rows[this.rows.length-1],e.countCols()-1,!1,!1)},Ew.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var r=this.rows[0]<this.target?this.target-this.rows.length:this.target;e.selectCell(r,0,r+this.rows.length-1,e.countCols()-1,!1,!1)};var Hw=ce.getSingleton();Hw.add("afterInit",Lw),Hw.add("afterUpdateSettings",Lw),Hw.register("beforeUndo"),Hw.register("afterUndo"),Hw.register("beforeRedo"),Hw.register("afterRedo");const Nw=Ew;function Pw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xw=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"createRow",value:function(e,t){this.shiftItems(e,t)}},{key:"removeRow",value:function(e,t){this.unshiftItems(e,t)}},{key:"destroy",value:function(){this._arrayMap=null}}],r=[{key:"STRATEGY_NAME",get:function(){return"loose"}}],n&&Pw(t.prototype,n),r&&Pw(t,r),e}();J(xw,Nd);const Yw=xw;function Iw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var jw=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"createRow",value:function(e,t){this.insertItems(e,t)}},{key:"removeRow",value:function(e,t){this.removeItems(e,t)}},{key:"destroy",value:function(){this._arrayMap=null}}],r=[{key:"STRATEGY_NAME",get:function(){return"strict"}}],n&&Iw(t.prototype,n),r&&Iw(t,r),e}();J(jw,Nd);const Fw=jw;function Ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bw(e,t,n){return t&&Ww(e.prototype,t),n&&Ww(e,n),e}const Vw=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.strategy=null}return Bw(e,null,[{key:"DEFAULT_STRATEGY",get:function(){return"loose"}}]),Bw(e,[{key:"setStrategy",value:function(e){var t=w[$r(e)];if(!t)throw new Error('Bind strategy "'.concat(e,'" does not exist.'));this.strategy=new t}},{key:"createMap",value:function(e){var t=this.strategy,n=void 0===e?t._arrayMap.length:e;t._arrayMap.length=0,Ra(n-1,(function(e){t._arrayMap.push(e)}))}},{key:"createRow",value:function(){var e;(e=this.strategy).createRow.apply(e,arguments)}},{key:"removeRow",value:function(){var e;(e=this.strategy).removeRow.apply(e,arguments)}},{key:"translate",value:function(){var e;return(e=this.strategy).getValueByIndex.apply(e,arguments)}},{key:"clearMap",value:function(){this.strategy.clearMap()}},{key:"destroy",value:function(){this.strategy&&this.strategy.destroy(),this.strategy=null}}]),e}();function Uw(e){return Uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uw(e)}function zw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gw(e,t,n){return Gw="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qw(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Gw(e,t,n||e)}function qw(e){return qw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qw(e)}function Xw(e,t){return Xw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xw(e,t)}var Kw=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Uw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,qw(t).call(this,e))).bindStrategy=new Vw,n.removedRows=[],n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xw(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().bindRowsWithHeaders}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().bindRowsWithHeaders;"string"!=typeof n&&(n=Vw.DEFAULT_STRATEGY),this.bindStrategy.setStrategy(n),this.bindStrategy.createMap(this.hot.countSourceRows()),this.addHook("modifyRowHeader",(function(t){return e.onModifyRowHeader(t)})),this.addHook("afterCreateRow",(function(t,n){return e.onAfterCreateRow(t,n)})),this.addHook("beforeRemoveRow",(function(t,n){return e.onBeforeRemoveRow(t,n)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow()})),this.addHook("afterLoadData",(function(t){return e.onAfterLoadData(t)})),Gw(qw(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){Gw(qw(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.removedRows.length=0,this.bindStrategy.clearMap(),Gw(qw(t.prototype),"disablePlugin",this).call(this)}},{key:"onModifyRowHeader",value:function(e){return this.bindStrategy.translate(this.hot.runHooks("modifyRow",e))}},{key:"onAfterCreateRow",value:function(e,t){this.bindStrategy.createRow(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&Ra(e,e+t-1,(function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e))}))}},{key:"onAfterRemoveRow",value:function(){this.bindStrategy.removeRow(this.removedRows)}},{key:"onAfterLoadData",value:function(e){e||this.bindStrategy.createMap(this.hot.countSourceRows())}},{key:"destroy",value:function(){this.bindStrategy.destroy(),Gw(qw(t.prototype),"destroy",this).call(this)}}],r&&zw(n.prototype,r),t}(Rf);gu("bindRowsWithHeaders",Kw);const Jw=Kw;function $w(e){return $w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$w(e)}function Qw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zw(e,t,n){return Zw="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eb(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Zw(e,t,n||e)}function eb(e){return eb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eb(e)}function tb(e,t){return tb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tb(e,t)}var nb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==$w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,eb(t).call(this,e))).settings=null,n.buttonEnabledList={},n.hiddenColumnsPlugin=null,n.nestedHeadersPlugin=null,n.collapsedSections={},n.columnHeaderLevelCount=null,n.eventManager=null,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tb(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().collapsibleColumns}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().collapsibleColumns,"boolean"!=typeof this.settings&&this.parseSettings(),this.hiddenColumnsPlugin=this.hot.getPlugin("hiddenColumns"),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.checkDependencies(),this.addHook("afterRender",(function(){return e.onAfterRender()})),this.addHook("afterInit",(function(){return e.onAfterInit()})),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})),this.addHook("beforeOnCellMouseDown",(function(t,n,r){return e.onBeforeOnCellMouseDown(t,n,r)})),this.eventManager=new Jr(this.hot),Zw(eb(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.settings=null,this.buttonEnabledList={},this.hiddenColumnsPlugin=null,this.collapsedSections={},this.clearButtons(),Zw(eb(t.prototype),"disablePlugin",this).call(this)}},{key:"clearButtons",value:function(){if(this.hot.view){var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,o=function(e){e&&e.parentNode.removeChild(e)};Ra(0,e-1,(function(e){var i=t.childNodes[e],a=n.childNodes[e],s=r?r.childNodes[e]:null;Ra(0,i.childNodes.length-1,(function(e){var t=i.childNodes[e].querySelector(".collapsibleIndicator");o(t),a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(".collapsibleIndicator"),o(t)),r&&s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(".collapsibleIndicator"),o(t))}))}))}}},{key:"parseSettings",value:function(){var e=this;ee(this.settings,(function(t){e.buttonEnabledList[t.row]||(e.buttonEnabledList[t.row]={}),e.buttonEnabledList[t.row][t.col]=t.collapsible}))}},{key:"meetsDependencies",value:function(){var e=this.hot.getSettings();return e.nestedHeaders&&e.hiddenColumns}},{key:"checkDependencies",value:function(){var e=this.hot.getSettings();this.meetsDependencies()||(e.nestedHeaders||Mr("You need to configure the Nested Headers plugin in order to use collapsible headers."),e.hiddenColumns||Mr("You need to configure the Hidden Columns plugin in order to use collapsible headers."))}},{key:"generateIndicator",value:function(e,t){var n=t.parentNode,r=n.parentNode,o=-1*r.childNodes.length+Array.prototype.indexOf.call(r.childNodes,n);if(Object.keys(this.buttonEnabledList).length>0&&(!this.buttonEnabledList[o]||!this.buttonEnabledList[o][e]))return null;var i=this.hot.rootDocument.createElement("DIV");return wt(i,"collapsibleIndicator"),this.collapsedSections[o]&&!0===this.collapsedSections[o][e]?(wt(i,"collapsed"),Tt(i,"+")):(wt(i,"expanded"),Tt(i,"-")),i}},{key:"markSectionAs",value:function(e,t,n,r){switch(this.collapsedSections[t]||(this.collapsedSections[t]={}),e){case"collapsed":this.collapsedSections[t][n]=!0;break;case"expanded":this.collapsedSections[t][n]=void 0}if(r)for(var o=this.nestedHeadersPlugin.colspanArray,i=this.nestedHeadersPlugin.rowCoordsToLevel(t),a=this.nestedHeadersPlugin.getChildHeaders(t,n),s=o[i+1],l=1;l<a.length;l++)s&&s[a[l]].colspan>1&&this.markSectionAs(e,t+1,a[l],!0)}},{key:"expandSection",value:function(e){this.markSectionAs("expanded",e.row,e.col,!0),this.toggleCollapsibleSection(e,"expand")}},{key:"collapseSection",value:function(e){this.markSectionAs("collapsed",e.row,e.col,!0),this.toggleCollapsibleSection(e,"collapse")}},{key:"toggleAllCollapsibleSections",value:function(e){var t=this,n=this.nestedHeadersPlugin.colspanArray;!0===this.settings?P(n,(function(n,r){P(n,(function(n,o){if(n.colspan>1){var i=t.nestedHeadersPlugin.levelToRowCoords(parseInt(r,10)),a=parseInt(o,10);t.markSectionAs("collapse"===e?"collapsed":"expanded",i,a,!0),t.toggleCollapsibleSection({row:i,col:a},e)}}))})):ee(this.buttonEnabledList,(function(n,r){ee(n,(function(n,o){var i=parseInt(r,10),a=parseInt(o,10);t.markSectionAs("collapse"===e?"collapsed":"expanded",i,a,!0),t.toggleCollapsibleSection({row:i,col:a},e)}))}))}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(e,t){var n=this;e.row&&(e.row=parseInt(e.row,10)),e.col&&(e.col=parseInt(e.col,10));for(var r=this.hiddenColumnsPlugin.hiddenColumns,o=this.nestedHeadersPlugin.colspanArray,i=this.nestedHeadersPlugin.rowCoordsToLevel(e.row),a=o[i][e.col].colspan,s=this.nestedHeadersPlugin.getChildHeaders(e.row,e.col),l=i+1,u=o[l],c=u&&u[s[0]].colspan||1;c===a&&l<this.columnHeaderLevelCount;)c=(u=o[l+=1])&&u[s[0]].colspan||1;Ra(c,a-1,(function(o){var i=e.col+o;switch(t){case"collapse":n.hiddenColumnsPlugin.isHidden(i)||r.push(i);break;case"expand":n.hiddenColumnsPlugin.isHidden(i)&&r.splice(r.indexOf(i),1)}})),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0)}},{key:"onAfterGetColHeader",value:function(e,t){if(t.hasAttribute("colspan")&&t.getAttribute("colspan")>1&&e>=this.hot.getSettings().fixedColumnsLeft){var n=this.generateIndicator(e,t);null!==n&&t.querySelector("div:first-child").appendChild(n)}}},{key:"onBeforeOnCellMouseDown",value:function(e,t){if(gt(e.target,"collapsibleIndicator"))return gt(e.target,"expanded")?(this.collapsedSections[t.row]||(this.collapsedSections[t.row]=[]),this.markSectionAs("collapsed",t.row,t.col,!0),this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection(t,"collapse")):gt(e.target,"collapsed")&&(this.markSectionAs("expanded",t.row,t.col,!0),this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection(t,"expand")),jr(e),!1}},{key:"onAfterInit",value:function(){this.columnHeaderLevelCount=this.hot.view.wt.getSetting("columnHeaders").length}},{key:"onAfterRender",value:function(){this.nestedHeadersPlugin.enabled&&this.hiddenColumnsPlugin.enabled||this.disablePlugin()}},{key:"destroy",value:function(){this.settings=null,this.buttonEnabledList=null,this.hiddenColumnsPlugin=null,this.nestedHeadersPlugin=null,this.collapsedSections=null,this.columnHeaderLevelCount=null,Zw(eb(t.prototype),"destroy",this).call(this)}}],r&&Qw(n.prototype,r),t}(Rf);gu("collapsibleColumns",nb);const rb=nb;function ob(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(34867);var ib=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugin=t,this.hot=this.plugin.hot,this.endpoints=[],this.settings=n,this.settingsType="array",this.currentEndpoint=null,this.cellsToSetCache=[],this.recordTranslator=Hu(this.hot)}var t,n;return t=e,n=[{key:"getEndpoint",value:function(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}},{key:"getAllEndpoints",value:function(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}},{key:"fillMissingEndpointData",value:function(e){return this.parseSettings(e.call(this))}},{key:"parseSettings",value:function(e){var t=this,n=[],r=e;if(r||"function"!=typeof this.settings)return r||(r=this.settings),P(r,(function(e){var r={};t.assignSetting(e,r,"ranges",[[0,t.hot.countRows()-1]]),t.assignSetting(e,r,"reversedRowCoords",!1),t.assignSetting(e,r,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"sourceColumn",e.destinationColumn),t.assignSetting(e,r,"type","sum"),t.assignSetting(e,r,"forceNumeric",!1),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"customFunction",null),t.assignSetting(e,r,"readOnly",!0),t.assignSetting(e,r,"roundFloat",!1),n.push(r)})),n;this.settingsType="function"}},{key:"assignSetting",value:function(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}},{key:"resetSetupBeforeStructureAlteration",value:function(e,t,n){if("function"===this.settingsType){var r=e.indexOf("row")>-1?"row":"col",o=this.getAllEndpoints();P(o,(function(o){"row"===r&&o.destinationRow>=t&&("insert_row"===e?o.alterRowOffset=n:"remove_row"===e&&(o.alterRowOffset=-1*n)),"col"===r&&o.destinationColumn>=t&&("insert_col"===e?o.alterColumnOffset=n:"remove_col"===e&&(o.alterColumnOffset=-1*n))})),this.resetAllEndpoints(o,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(e,t,n,r,o){var i=this,a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"!==this.settingsType){var s=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,u=this.getAllEndpoints(),c=0===e.indexOf("move_row"),h=t;P(u,(function(e){"row"===s&&e.destinationRow>=h&&(e.alterRowOffset=l*n),"col"===s&&e.destinationColumn>=h&&(e.alterColumnOffset=l*n)})),this.resetAllEndpoints(u,!c),P(u,c?function(e){i.extendEndpointRanges(e,h,r[0],r.length),i.recreatePhysicalRanges(e),i.clearOffsetInformation(e)}:function(e){i.shiftEndpointCoordinates(e,h)}),a&&this.refreshAllEndpoints()}else this.hot.addHookOnce("beforeRender",(function e(){return i.hot.removeHook("beforeRender",e),i.refreshAllEndpoints()}))}},{key:"clearOffsetInformation",value:function(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(e,t,n,r){P(e.ranges,(function(e){e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}},{key:"recreatePhysicalRanges",value:function(e){var t=this,n=e.ranges,r=[],o=[];P(n,(function(e){var n=[];if(e[1])for(var r=e[0];r<=e[1];r++)n.push(t.recordTranslator.toPhysicalRow(r));else n.push(t.recordTranslator.toPhysicalRow(e[0]));o.push(n)})),P(o,(function(e){var t=[];P(e,(function(n,o){0===o?t.push(n):e[o]!==e[o-1]+1&&(t.push(e[o-1]),r.push(t),(t=[]).push(n)),o===e.length-1&&(t.push(n),r.push(t))}))})),e.ranges=r}},{key:"shiftEndpointCoordinates",value:function(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,P(e.ranges,(function(n){P(n,(function(r,o){r>=t&&(n[o]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e;this.cellsToSetCache=[],r||(r=this.getAllEndpoints()),P(r,(function(e){t.resetEndpointValue(e,n)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshAllEndpoints",value:function(){var e=this;this.cellsToSetCache=[],P(this.getAllEndpoints(),(function(t){e.currentEndpoint=t,e.plugin.calculate(t),e.setEndpointValue(t,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(e){var t=this,n=[];this.cellsToSetCache=[],P(e,(function(e,r,o){"".concat(e[2]||"")!=="".concat(e[3])&&P(t.getAllEndpoints(),(function(e,i){t.hot.propToCol(o[r][1])===e.sourceColumn&&-1===n.indexOf(i)&&n.push(i)}))})),P(n,(function(e){t.refreshEndpoint(t.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshEndpoint",value:function(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}},{key:"resetEndpointValue",value:function(e){var t,n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=e.alterRowOffset||0,i=e.alterColumnOffset||0,a=(t=this.recordTranslator.toVisual(e.destinationRow,e.destinationColumn),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=a[0],l=a[1],u=this.hot.getCellMeta(s,l);u.readOnly=!1,u.className="",this.cellsToSetCache.push([this.recordTranslator.toVisualRow(e.destinationRow+(r?o:0)),this.recordTranslator.toVisualColumn(e.destinationColumn+(r?i:0)),""])}},{key:"setEndpointValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1*e.alterRowOffset||0,o=-1*e.alterColumnOffset||0,i=this.getVisualRowIndex(e.destinationRow),a=this.hot.getCellMeta(this.getVisualRowIndex(e.destinationRow+r),e.destinationColumn+o);i>this.hot.countRows()||e.destinationColumn>this.hot.countCols()?this.throwOutOfBoundsWarning():("init"!==t&&a.readOnly===e.readOnly||(a.readOnly=e.readOnly,a.className="columnSummaryResult"),e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),n?this.hot.setDataAtCell(i,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([i,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0)}},{key:"getVisualRowIndex",value:function(e){return this.hot.runHooks("unmodifyRow",e,"columnSummary")}},{key:"getVisualColumnIndex",value:function(e){return this.hot.runHooks("unmodifyCol",e,"columnSummary")}},{key:"throwOutOfBoundsWarning",value:function(){Mr("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}],n&&ob(t.prototype,n),e}();const ab=ib;function sb(e){return sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sb(e)}function lb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ub(e,t,n){return ub="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=cb(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},ub(e,t,n||e)}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cb(e)}function hb(e,t){return hb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hb(e,t)}var fb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==sb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,cb(t).call(this,e))).endpoints=null,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hb(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSummary}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary,this.endpoints=new ab(this,this.settings),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("afterChange",(function(){return e.onAfterChange.apply(e,arguments)})),this.addHook("beforeCreateRow",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_row",t,n,null,r)})),this.addHook("beforeCreateCol",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_col",t,n,null,r)})),this.addHook("beforeRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("beforeRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("beforeRowMove",(function(){return e.onBeforeRowMove.apply(e,arguments)})),this.addHook("afterCreateRow",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_row",t,n,null,r)})),this.addHook("afterCreateCol",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_col",t,n,null,r)})),this.addHook("afterRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("afterRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterRowMove",(function(){return e.onAfterRowMove.apply(e,arguments)})),ub(cb(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.endpoints=null,this.settings=null,this.currentEndpoint=null}},{key:"calculate",value:function(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}},{key:"calculateSum",value:function(e){var t=this,n=0;return ee(e.ranges,(function(r){n+=t.getPartialSum(r,e.sourceColumn)})),n}},{key:"getPartialSum",value:function(e,t){var n=0,r=e[1]||e[0],o=null,i=0;do{o=this.getCellValue(r,t)||0;var a=("".concat(o).split(".")[1]||[]).length||1;a>i&&(i=a),n+=o||0,r-=1}while(r>=e[0]);return Math.round(n*Math.pow(10,i))/Math.pow(10,i)}},{key:"calculateMinMax",value:function(e,t){var n=this,r=null;return ee(e.ranges,(function(o){var i=n.getPartialMinMax(o,e.sourceColumn,t);if(null===r&&null!==i&&(r=i),null!==i)switch(t){case"min":r=Math.min(r,i);break;case"max":r=Math.max(r,i)}})),null===r?"Not enough data":r}},{key:"getPartialMinMax",value:function(e,t,n){var r,o=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t)||null,null===o)o=r;else if(null!==r)switch(n){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}i-=1}while(i>=e[0]);return o}},{key:"countEmpty",value:function(e,t){var n=0,r=e[1]||e[0];do{this.getCellValue(r,t)||(n+=1),r-=1}while(r>=e[0]);return n}},{key:"countEntries",value:function(e){var t=this,n=0;return ee(e.ranges,(function(r){var o=void 0===r[1]?1:r[1]-r[0]+1,i=t.countEmpty(r,e.sourceColumn);n+=o,n-=i})),n}},{key:"calculateAverage",value:function(e){return this.calculateSum(e)/this.countEntries(e)}},{key:"getCellValue",value:function(e,t){var n=this.endpoints.getVisualRowIndex(e),r=this.endpoints.getVisualColumnIndex(t),o=this.hot.getSourceDataAtCell(e,t);if((this.hot.getCellMeta(n,r).className||"").indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof o&&(o=o.replace(/,/,".")),o=parseFloat(o)),isNaN(o)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error("ColumnSummary plugin: cell at (".concat(e,", ").concat(t,") is not in a numeric format. Cannot do the calculation."));return o}},{key:"onAfterInit",value:function(){this.endpoints.endpoints=this.endpoints.parseSettings(),this.endpoints.refreshAllEndpoints(!0)}},{key:"onAfterChange",value:function(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}},{key:"onBeforeRowMove",value:function(e){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName)}},{key:"onAfterRowMove",value:function(e,t){this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}}],r&&lb(n.prototype,r),t}(Rf);gu("columnSummary",fb);const db=fb;function mb(e){return mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mb(e)}function pb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yb(e,t,n){return yb="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=vb(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},yb(e,t,n||e)}function vb(e){return vb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vb(e)}function gb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wb(e,t,n){return t&&gb(e.prototype,t),n&&gb(e,n),e}function bb(e,t){return bb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bb(e,t)}ce.getSingleton().register("afterDropdownMenuDefaultOptions"),ce.getSingleton().register("beforeDropdownMenuShow"),ce.getSingleton().register("afterDropdownMenuShow"),ce.getSingleton().register("afterDropdownMenuHide"),ce.getSingleton().register("afterDropdownMenuExecute");var _b="changeType",Mb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==mb(t)&&"function"!=typeof t?pb(e):t}(this,vb(t).call(this,e))).eventManager=new Jr(pb(n)),n.commandExecutor=new Qm(n.hot),n.itemsFactory=null,n.menu=null,n.hot.addHook("afterGetColHeader",(function(e,t){return n.onAfterGetColHeader(e,t)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bb(e,t)}(t,e),wb(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[tp,np,Mm,ip,Mm,ep,Mm,rp,Mm,Zm]}}]),wb(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().dropdownMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new gp(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().dropdownMenu,r={items:this.itemsFactory.getItems(n)};this.registerEvents(),"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),yb(vb(t.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady((function(){e.hot.runHooks("afterDropdownMenuDefaultOptions",r),e.itemsFactory.setPredefinedItems(r.items);var t=e.itemsFactory.getItems(n);e.menu&&e.menu.destroy(),e.menu=new Sp(e.hot,{className:"htDropdownMenu",keepInViewport:!0}),e.hot.runHooks("beforeDropdownMenuSetItems",t),e.menu.setMenuItems(t),e.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),e.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),e.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),e.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),P(t,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}))}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),yb(vb(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&this.menu.destroy(),yb(vb(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",(function(t){return e.onTableClick(t)}))}},{key:"open",value:function(e){this.menu&&(this.menu.open(),e.width&&this.menu.setOffset("left",e.width),this.menu.setPosition(e),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"setListening",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(e){if(Wr(e),gt(e.target,_b)&&!this.menu.isOpened()){var t=e.target.getBoundingClientRect();this.open({left:t.left,top:t.top+e.target.offsetHeight+3,width:t.width,height:t.height})}}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode;if(n){var r=n.parentNode.childNodes,o=Array.prototype.indexOf.call(r,n);if(!(e<0||o!==r.length-1)){var i=t.querySelector(".".concat(_b));if(!this.enabled||!i)if(this.enabled){var a=this.hot.rootDocument.createElement("button");a.className=_b,a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}else i&&i.parentNode.removeChild(i)}}}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeDropdownMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterDropdownMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),yb(vb(t.prototype),"destroy",this).call(this)}}]),t}(Rf);Mb.SEPARATOR={name:Mm},gu("dropdownMenu",Mb);const kb=Mb;function Sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Cb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.options={}}var t,n;return t=e,n=[{key:"setOptions",value:function(e){this.options=e}},{key:"getData",value:function(){var e=this,t=this._getDataRange(),n=t.startRow,r=t.startCol,o=t.endRow,i=t.endCol,a=this.options,s=[];return Ra(n,o,(function(t){var n=[];!a.exportHiddenRows&&e._isHiddenRow(t)||(Ra(r,i,(function(r){!a.exportHiddenColumns&&e._isHiddenColumn(r)||n.push(e.hot.getDataAtCell(t,r))})),s.push(n))})),s}},{key:"getRowHeaders",value:function(){var e=this,t=[];if(this.options.rowHeaders){var n=this._getDataRange(),r=n.startRow,o=n.endRow,i=this.hot.getRowHeader();Ra(r,o,(function(n){!e.options.exportHiddenRows&&e._isHiddenRow(n)||t.push(i[n])}))}return t}},{key:"getColumnHeaders",value:function(){var e=this,t=[];if(this.options.columnHeaders){var n=this._getDataRange(),r=n.startCol,o=n.endCol,i=this.hot.getColHeader();Ra(r,o,(function(n){!e.options.exportHiddenColumns&&e._isHiddenColumn(n)||t.push(i[n])}))}return t}},{key:"_getDataRange",value:function(){var e,t,n=this.hot.countCols()-1,r=this.hot.countRows()-1,o=(e=this.options.range,t=4,function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=void 0===i?0:i,s=o[1],l=void 0===s?0:s,u=o[2],c=void 0===u?r:u,h=o[3],f=void 0===h?n:h;return{startRow:a=Math.max(a,0),startCol:l=Math.max(l,0),endRow:c=Math.min(c,r),endCol:f=Math.min(f,n)}}},{key:"_isHiddenRow",value:function(e){return this.hot.hasHook("hiddenRow")&&this.hot.runHooks("hiddenRow",e)}},{key:"_isHiddenColumn",value:function(e){return this.hot.hasHook("hiddenColumn")&&this.hot.runHooks("hiddenColumn",e)}}],n&&Sb(t.prototype,n),e}();const Tb=Cb;function Eb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ob(e,t,n){return t&&Eb(e.prototype,t),n&&Eb(e,n),e}var Rb=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataProvider=t,this.options=this._mergeOptions(n),this.dataProvider.setOptions(this.options)}return Ob(e,null,[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}}]),Ob(e,[{key:"_mergeOptions",value:function(t){var n=K(this.constructor.DEFAULT_OPTIONS),r=new Date;return n=G(K(e.DEFAULT_OPTIONS),n),(n=G(n,t)).filename=to(n.filename,{YYYY:r.getFullYear(),MM:"".concat(r.getMonth()+1).padStart(2,"0"),DD:"".concat(r.getDate()).padStart(2,"0")}),n}}]),e}();const Lb=Rb;function Db(e){return Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(e)}function Ab(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hb(e)}function Nb(e,t){return Nb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nb(e,t)}var Pb=String.fromCharCode(13),xb=String.fromCharCode(34),Yb=String.fromCharCode(10),Ib=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Db(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Hb(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nb(e,t)}(t,e),n=t,r=[{key:"export",value:function(){var e=this,t=this.options,n=this.dataProvider.getData(),r=this.dataProvider.getColumnHeaders(),o=r.length>0,i=this.dataProvider.getRowHeaders(),a=i.length>0,s=t.bom?String.fromCharCode(65279):"";return o&&(r=N(r,(function(t){return e._escapeCell(t,!0)})),a&&(s+=t.columnDelimiter),s+=r.join(t.columnDelimiter),s+=t.rowDelimiter),P(n,(function(n,r){r>0&&(s+=t.rowDelimiter),a&&(s+=e._escapeCell(i[r])+t.columnDelimiter),s+=n.map((function(t){return e._escapeCell(t)})).join(t.columnDelimiter)})),s}},{key:"_escapeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ir(e);return""!==n&&(t||n.indexOf(Pb)>=0||n.indexOf(xb)>=0||n.indexOf(Yb)>=0||n.indexOf(this.options.columnDelimiter)>=0)&&(n=n.replace(new RegExp('"',"g"),'""'),n='"'.concat(n,'"')),n}}],o=[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}],r&&Ab(n.prototype,r),o&&Ab(n,o),t}(Lb),jb=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"csv",Ib);function Fb(e){return Fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fb(e)}function Wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bb(e){return Bb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bb(e)}function Vb(e,t){return Vb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vb(e,t)}var Ub=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==Fb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Bb(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vb(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!0}},{key:"exportAsString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}},{key:"exportAsBlob",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}},{key:"downloadFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hot,r=n.rootDocument,o=n.rootWindow,i=this._createTypeFormatter(e,t),a=this._createBlob(i),s=o.URL||o.webkitURL,l=r.createElement("a"),u="".concat(i.options.filename,".").concat(i.options.fileExtension);if(void 0!==l.download){var c=s.createObjectURL(a);l.style.display="none",l.setAttribute("href",c),l.setAttribute("download",u),r.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),r.body.removeChild(l),setTimeout((function(){s.revokeObjectURL(c)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(a,u)}},{key:"_createTypeFormatter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!jb[e])throw new Error('Export format type "'.concat(e,'" is not supported.'));return function(e,t,n){return"function"==typeof jb[e]?new jb[e](t,n):null}(e,new Tb(this.hot),t)}},{key:"_createBlob",value:function(e){var t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:"".concat(e.options.mimeType,";charset=").concat(e.options.encoding)})),t}}],r&&Wb(n.prototype,r),t}(Rf);gu("exportFile",Ub);const zb=Ub;function Gb(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function qb(){Mr("Plugins `columnSorting` and `multiColumnSorting` should not be enabled simultaneously.")}var Xb="sort";function Kb(e,t,n){var r=[];return!1===n||e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push("".concat(Xb,"-").concat(e.getIndexOfColumnInSortQueue(t)+1)),r}function Jb(e){return Jb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jb(e)}function $b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qb(e,t,n){return Qb="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Zb(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Qb(e,t,n||e)}function Zb(e){return Zb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zb(e)}function e_(e,t){return e_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e_(e,t)}var t_="multiColumnSorting",n_="columnSorting";Ud(t_,(function(e,t){return function(n,r){var o=Gb(n).slice(1),i=Gb(r).slice(1);return function n(r){var a=e[r],s=t[r],l=o[r],u=i[r],c=s.multiColumnSorting,h=(c.compareFunctionFactory?c.compareFunctionFactory:Gd(s.type))(a,s,c)(l,u);if(h===Zd){var f=r+1;if(void 0!==t[f])return n(f)}return h}(0)}}));var r_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Jb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Zb(t).call(this,e))).pluginKey=t_,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&e_(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return Qb(Zb(t.prototype),"isEnabled",this).call(this)}},{key:"enablePlugin",value:function(){return!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[n_]&&qb(),Qb(Zb(t.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){return Qb(Zb(t.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){return Qb(Zb(t.prototype),"sort",this).call(this,e)}},{key:"clearSort",value:function(){return Qb(Zb(t.prototype),"clearSort",this).call(this)}},{key:"isSorted",value:function(){return Qb(Zb(t.prototype),"isSorted",this).call(this)}},{key:"getSortConfig",value:function(e){return Qb(Zb(t.prototype),"getSortConfig",this).call(this,e)}},{key:"setSortConfig",value:function(e){return Qb(Zb(t.prototype),"setSortConfig",this).call(this,e)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}},{key:"updateHeaderClasses",value:function(e){for(var n,r,o,i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];(n=Qb(Zb(t.prototype),"updateHeaderClasses",this)).call.apply(n,[this,e].concat(a)),bt(e,(r=e.className.split(" "),o=new RegExp("^".concat(Xb,"-[0-9]{1,2}$")),r.filter((function(e){return o.test(e)})))),!1!==this.enabled&&wt(e,Kb.apply(void 0,a))}},{key:"onUpdateSettings",value:function(e){return this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[n_]&&qb(),Qb(Zb(t.prototype),"onUpdateSettings",this).call(this,e)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==Ed(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(Nh()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,"append"))):this.sort(this.getColumnNextConfig(t.col)))}}],r&&$b(n.prototype,r),t}(vm);gu(t_,r_);const o_=r_;var i_;function a_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(54989);var s_="state_",l_="_states",u_=function(e,t){return e[l_][s_+t]},c_=function(e,t,n){e[l_][s_+t]=n},h_=(a_(i_={},l_,{}),a_(i_,"getCachedState",(function(e){return u_(this,e)})),a_(i_,"setCachedState",(function(e,t){c_(this,e,t)})),a_(i_,"saveState",(function(e){c_(this,e,this.getState())})),a_(i_,"restoreState",(function(e){this.setState(u_(this,e))})),a_(i_,"hasSavedState",(function(e){return void 0!==u_(this,e)})),a_(i_,"clearState",(function(e){c_(this,e)})),a_(i_,"clearStates",(function(){this[l_]={}})),i_);Z(h_,"MIXIN_NAME","stateSaver",{writable:!1,enumerable:!1});const f_=h_;function d_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.elements=[],this.hidden=!1}var t,n;return t=e,(n=[{key:"reset",value:function(){P(this.elements,(function(e){return e.reset()}))}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return this.hidden}},{key:"destroy",value:function(){this.clearLocalHooks(),P(this.elements,(function(e){return e.destroy()})),this.elements=null,this.hot=null}}])&&d_(t.prototype,n),e}();J(m_,Zh),J(m_,f_);const p_=m_;var y_={};function v_(e,t){if(!y_[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=y_[e],r=n.condition,o=n.descriptor,i=t;return o.inputValuesDecorator&&(i=o.inputValuesDecorator(i)),function(e){return r.apply(e.meta.instance,[].concat([e],[i]))}}function g_(e){if(!y_[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return y_[e].descriptor}function w_(e,t,n){n.key=e,y_[e]={condition:t,descriptor:n}}var b_="none";w_(b_,(function(){return!0}),{name:Pc,inputsCount:0,showOperators:!1});var __="empty";w_(__,(function(e){return""===e.value||null===e.value||void 0===e.value}),{name:xc,inputsCount:0,showOperators:!0});var M_="not_empty";w_(M_,(function(e,t){return!v_(__,t)(e)}),{name:Yc,inputsCount:0,showOperators:!0});var k_="eq";w_(k_,(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return ir(e.value).toLowerCase()===ir(o)}),{name:Ic,inputsCount:1,showOperators:!0});var S_="neq";w_(S_,(function(e,t){return!v_(k_,t)(e)}),{name:jc,inputsCount:1,showOperators:!0}),w_("gt",(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value>o}),{name:zc,inputsCount:1,showOperators:!0}),w_("gte",(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value>=o}),{name:Gc,inputsCount:1,showOperators:!0}),w_("lt",(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value<o}),{name:qc,inputsCount:1,showOperators:!0}),w_("lte",(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value<=o}),{name:Xc,inputsCount:1,showOperators:!0});var C_="date_after";w_(C_,(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0],i=Kn()(e.value,e.meta.dateFormat),a=Kn()(o,e.meta.dateFormat);return!(!i.isValid()||!a.isValid())&&i.diff(a)>=0}),{name:$c,inputsCount:1,showOperators:!0});var T_="date_before";w_(T_,(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0],i=Kn()(e.value,e.meta.dateFormat),a=Kn()(o,e.meta.dateFormat);return!(!i.isValid()||!a.isValid())&&i.diff(a)<=0}),{name:Qc,inputsCount:1,showOperators:!0});var E_="between";w_(E_,(function(e,t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1];if("numeric"===e.meta.type){var s=parseFloat(i,10),l=parseFloat(a,10);i=Math.min(s,l),a=Math.max(s,l)}else if("date"===e.meta.type){var u=v_(T_,[a]),c=v_(C_,[i]);return u(e)&&c(e)}return e.value>=i&&e.value<=a}),{name:Kc,inputsCount:2,showOperators:!0});var O_="not_between";w_(O_,(function(e,t){return!v_(E_,t)(e)}),{name:Jc,inputsCount:2,showOperators:!0});var R_="begins_with";w_(R_,(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return ir(e.value).toLowerCase().startsWith(ir(o))}),{name:Fc,inputsCount:1,showOperators:!0}),n(67500);var L_="ends_with";w_(L_,(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return ir(e.value).toLowerCase().endsWith(ir(o))}),{name:Wc,inputsCount:1,showOperators:!0});var D_="contains";w_(D_,(function(e,t){var n,r,o=(n=t,r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return ir(e.value).toLowerCase().indexOf(ir(o))>=0}),{name:Bc,inputsCount:1,showOperators:!0});var A_="not_contains";w_(A_,(function(e,t){return!v_(D_,t)(e)}),{name:Vc,inputsCount:1,showOperators:!0});var H_="date_tomorrow";w_(H_,(function(e){var t=Kn()(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(Kn()().subtract(-1,"days").startOf("day"),"d")}),{name:eh,inputsCount:0});var N_="date_today";w_(N_,(function(e){var t=Kn()(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(Kn()().startOf("day"),"d")}),{name:Zc,inputsCount:0});var P_="date_yesterday";function x_(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}w_(P_,(function(e){var t=Kn()(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(Kn()().subtract(1,"days").startOf("day"),"d")}),{name:th,inputsCount:0}),rt();var Y_=new Set([1]).has(1),I_=Y_&&"function"==typeof Array.from;function j_(e){var t=e;return Y_&&(t=new Set(t)),function(e){return Y_?t.has(e):!!~t.indexOf(e)}}function F_(e){return null==e?"":e}function W_(e){var t=e;return(t=I_?Array.from(new Set(t)):W(t)).sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))}function B_(e,t,n,r){var o,i=[],a=e===t;return a||(o=j_(t)),P(e,(function(e){var t=!1;(a||o(e))&&(t=!0);var s={checked:t,value:e,visualValue:x_(e,n)};r&&r(s),i.push(s)})),i}function V_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var U_="by_value";w_(U_,(function(e,t){return(0,V_(t,1)[0])(e.value)}),{name:"By value",inputsCount:0,inputValuesDecorator:function(e){return[j_(V_(e,1)[0])]},showOperators:!1}),w_("true",(function(){return!0}),{name:"True"}),w_("false",(function(){return!1}),{name:"False"});var z_={};function G_(e,t,n){z_[e]={name:t,func:n}}var q_="conjunction";G_(q_,oh,(function(e,t){return e.every((function(e){return e.func(t)}))}));var X_="disjunction";G_(X_,ih,(function(e,t){return e.some((function(e){return e.func(t)}))}));var K_,J_="disjunctionWithExtraCondition";function $_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}G_(J_,ih,(function(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((function(e){return e.func(t)}))&&e[e.length-1].func(t)}));var Q_="text",Z_=($_(K_={},"numeric",[b_,Mm,__,M_,Mm,k_,S_,Mm,"gt","gte","lt","lte",E_,O_]),$_(K_,Q_,[b_,Mm,__,M_,Mm,k_,S_,Mm,R_,L_,Mm,D_,A_]),$_(K_,"date",[b_,Mm,__,M_,Mm,k_,S_,Mm,T_,C_,E_,Mm,H_,N_,P_]),K_);function eM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tM(e,t,n){return t&&eM(e.prototype,t),n&&eM(e,n),e}var nM="built",rM="building",oM=["click","input","keydown","keypress","keyup","focus","blur","change"],iM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.eventManager=new Jr(this),this.options=G(e.DEFAULTS,n),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=!1}return tM(e,null,[{key:"DEFAULTS",get:function(){return K({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),tM(e,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"isBuilt",value:function(){return this.buildState===nM}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(Hc)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){var e=this,t=function(t,n){e.eventManager.addEventListener(t,n,(function(t){return e.runLocalHooks(n,t,e)}))};if(this.buildState||(this.buildState=rM),this.options.className&&wt(this._element,this.options.className),this.options.children.length)P(this.options.children,(function(t){return e._element.appendChild(t.element)}));else if(this.options.wrapIt){var n=this.hot.rootDocument.createElement(this.options.tagName);ee(this.options,(function(t,r){void 0!==n[r]&&"className"!==r&&"tagName"!==r&&"children"!==r&&(n[r]=e.translateIfPossible(t))})),this._element.appendChild(n),P(oM,(function(e){return t(n,e)}))}else P(oM,(function(n){return t(e._element,n)}))}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}},{key:"element",get:function(){return this.buildState===rM?this._element:this.buildState===nM?(this.update(),this._element):(this.buildState=rM,this.build(),this.buildState=nM,this._element)}}]),e}();J(iM,Zh);const aM=iM;function sM(e){return sM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sM(e)}function lM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uM(e,t,n){return uM="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=cM(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},uM(e,t,n||e)}function cM(e){return cM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cM(e)}function hM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fM(e,t,n){return t&&hM(e.prototype,t),n&&hM(e,n),e}function dM(e,t){return dM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dM(e,t)}var mM=new WeakMap,pM=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==sM(t)&&"function"!=typeof t?lM(e):t}(this,cM(t).call(this,e,G(t.DEFAULTS,n))),mM.set(lM(r),{}),r.registerHooks(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dM(e,t)}(t,e),fM(t,null,[{key:"DEFAULTS",get:function(){return K({placeholder:"",type:"text",tagName:"input"})}}]),fM(t,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()})),this.addLocalHook("keyup",(function(t){return e.onKeyup(t)}))}},{key:"build",value:function(){uM(cM(t.prototype),"build",this).call(this);var e=mM.get(this),n=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,wt(this._element,"htUIInput"),wt(n,"htUIInputIcon"),this._element.appendChild(n),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=mM.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&mM.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}]),t}(aM);const yM=pM;function vM(e){return vM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vM(e)}function gM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wM(e,t,n){return wM="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bM(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},wM(e,t,n||e)}function bM(e){return bM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bM(e)}function _M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function MM(e,t,n){return t&&_M(e.prototype,t),n&&_M(e,n),e}function kM(e,t){return kM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kM(e,t)}var SM=new WeakMap;const CM=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==vM(t)&&"function"!=typeof t?gM(e):t}(this,bM(t).call(this,e,G(t.DEFAULTS,n))),SM.set(gM(r),{}),r.menu=null,r.items=[],r.registerHooks(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kM(e,t)}(t,e),MM(t,null,[{key:"DEFAULTS",get:function(){return K({className:"htUISelect",wrapIt:!1})}}]),MM(t,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()}))}},{key:"setItems",value:function(e){this.items=this.translateNames(e),this.menu&&this.menu.setMenuItems(this.items)}},{key:"translateNames",value:function(e){var t=this;return P(e,(function(e){e.name=t.translateIfPossible(e.name)})),e}},{key:"build",value:function(){var e=this;wM(bM(t.prototype),"build",this).call(this),this.menu=new Sp(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0}),this.menu.setMenuItems(this.items);var n=new aM(this.hot,{className:"htUISelectCaption"}),r=new aM(this.hot,{className:"htUISelectDropdown"}),o=SM.get(this);o.caption=n,o.captionElement=n.element,o.dropdown=r,P([n,r],(function(t){return e._element.appendChild(t.element)})),this.menu.addLocalHook("select",(function(t){return e.onMenuSelect(t)})),this.menu.addLocalHook("afterClose",(function(){return e.onMenuClosed()})),this.update()}},{key:"update",value:function(){var e;this.isBuilt()&&(e=this.options.value?this.options.value.name:this.menu.hot.getTranslatedPhrase(Pc),SM.get(this).captionElement.textContent=e,wM(bM(t.prototype),"update",this).call(this))}},{key:"openOptions",value:function(){var e=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:e.left-5,top:e.top,width:e.width,height:e.height}))}},{key:"closeOptions",value:function(){this.menu&&this.menu.close()}},{key:"onMenuSelect",value:function(e){e.name!==Mm&&(this.options.value=e,this.closeOptions(),this.update(),this.runLocalHooks("select",this.options.value))}},{key:"onMenuClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onClick",value:function(){this.openOptions()}},{key:"destroy",value:function(){this.menu&&(this.menu.destroy(),this.menu=null);var e=SM.get(this),n=e.caption,r=e.dropdown;n&&n.destroy(),r&&r.destroy(),wM(bM(t.prototype),"destroy",this).call(this)}}]),t}(aM);function TM(e){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TM(e)}function EM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OM(e,t,n){return OM="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=RM(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},OM(e,t,n||e)}function RM(e){return RM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},RM(e)}function LM(e,t){return LM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},LM(e,t)}var DM=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==TM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,RM(t).call(this,e))).id=n.id,r.name=n.name,r.addSeparator=n.addSeparator,r.elements.push(new CM(r.hot)),r.elements.push(new yM(r.hot,{placeholder:fh})),r.elements.push(new yM(r.hot,{placeholder:dh})),r.registerHooks(),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&LM(e,t)}(t,e),n=t,r=[{key:"registerHooks",value:function(){var e=this;this.getSelectElement().addLocalHook("select",(function(t){return e.onConditionSelect(t)})),this.getSelectElement().addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),P(this.getInputElements(),(function(t){t.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}))}},{key:"setState",value:function(e){var t=this;if(this.reset(),e){var n=K(e.command);n.name.startsWith(Nc)&&(n.name=this.hot.getTranslatedPhrase(n.name)),this.getSelectElement().setValue(n),P(e.args,(function(e,r){if(r>n.inputsCount-1)return!1;var o=t.getInputElement(r);o.setValue(e),o[n.inputsCount>r?"show":"hide"](),r||setTimeout((function(){return o.focus()}),10)}))}}},{key:"getState",value:function(){var e=this.getSelectElement().getValue()||g_(b_),t=[];return P(this.getInputElements(),(function(n,r){e.inputsCount>r&&t.push(n.getValue())})),{command:e,args:t}}},{key:"updateState",value:function(e,t){var n=g_(e?e.name:b_);this.setCachedState(t,{command:n,args:e?e.args:[]}),e||P(this.getInputElements(),(function(e){return e.setValue(null)}))}},{key:"getSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof CM}))[0]}},{key:"getInputElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}},{key:"getInputElements",value:function(){return this.elements.filter((function(e){return e instanceof yM}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){wt(n.parentNode,"htFiltersMenuCondition"),e.addSeparator&&wt(n.parentNode,"border");var s=e.hot.rootDocument.createElement("div");return wt(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||P(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e,n,r=this.hot.getPlugin("filters").getSelectedColumn(),o=r&&r.visualIndex,i=function(e){var t=[],n=e;return Z_[n]||(n=Q_),P(Z_[n],(function(e){var n;n=e===Mm?{name:Mm}:K(g_(e)),t.push(n)})),t}((e=this.hot).getDataType.apply(e,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(n=this.hot.getSelectedLast()||[0,o])||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()));P(this.getInputElements(),(function(e){return e.hide()})),this.getSelectElement().setItems(i),OM(RM(t.prototype),"reset",this).call(this),this.getSelectElement().setValue(i[0])}},{key:"onConditionSelect",value:function(e){P(this.getInputElements(),(function(t,n){t[e.inputsCount>n?"show":"hide"](),n||setTimeout((function(){return t.focus()}),10)})),this.runLocalHooks("change",e)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onInputKeyDown",value:function(e){mo(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),jr(e)):mo(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),jr(e))}}],r&&EM(n.prototype,r),t}(p_);const AM=DM;function HM(e){return HM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HM(e)}function NM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PM(e,t,n){return PM="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xM(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},PM(e,t,n||e)}function xM(e){return xM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xM(e)}function YM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IM(e,t,n){return t&&YM(e.prototype,t),n&&YM(e,n),e}function jM(e,t){return jM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jM(e,t)}var FM=new WeakMap,WM=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==HM(t)&&"function"!=typeof t?NM(e):t}(this,xM(t).call(this,e,G(t.DEFAULTS,n))),FM.set(NM(r),{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jM(e,t)}(t,e),IM(t,null,[{key:"DEFAULTS",get:function(){return K({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}}]),IM(t,[{key:"build",value:function(){PM(xM(t.prototype),"build",this).call(this);var e=FM.get(this);e.input=this._element.firstChild;var n=this.hot.rootDocument.createElement("label");n.textContent=this.translateIfPossible(this.options.label.textContent),n.htmlFor=this.translateIfPossible(this.options.label.htmlFor),e.label=n,this._element.appendChild(n),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=FM.get(this);e.input.checked=this.options.checked,e.label.textContent=this.translateIfPossible(this.options.label.textContent)}}},{key:"isChecked",value:function(){return this.options.checked}},{key:"setChecked",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.checked=e,this.update()}},{key:"focus",value:function(){this.isBuilt()&&FM.get(this).input.focus()}}]),t}(aM);const BM=WM;function VM(e){return VM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VM(e)}function UM(){var e,t,n=(e=["Radio button with index "," doesn't exist."],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return UM=function(){return n},n}function zM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function GM(e){return GM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},GM(e)}function qM(e,t){return qM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qM(e,t)}var XM=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==VM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,GM(t).call(this,e))).id=n.id,r.name=n.name,r.buildOperatorsElement(),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qM(e,t)}(t,e),n=t,r=[{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return wt(n.parentNode,"htFiltersMenuOperators"),n.parentNode.hasAttribute("ghost-table")||P(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"buildOperatorsElement",value:function(){var e=this,t=[q_,X_];P(t,(function(n){var r,o=new BM(e.hot,{name:"operator",label:{htmlFor:n,textContent:(r=n,z_[r].name)},value:n,checked:n===t[0],id:n});o.addLocalHook("change",(function(t){return e.onRadioInputChange(t)})),e.elements.push(o)}))}},{key:"setChecked",value:function(e){if(this.elements.length<e)throw Error(Jn(UM(),e));P(this.elements,(function(t,n){t.setChecked(n===e)}))}},{key:"getActiveOperationId",value:function(){var e=this.elements.find((function(e){return e instanceof BM&&e.isChecked()}));return e?e.getValue():q_}},{key:"getState",value:function(){return this.getActiveOperationId()}},{key:"setState",value:function(e){this.reset(),e&&this.getActiveOperationId()!==e&&P(this.elements,(function(t){t.setChecked(t.getValue()===e)}))}},{key:"updateState",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q_;t===J_&&(t=X_),this.setCachedState(e,t)}},{key:"reset",value:function(){this.setChecked(0)}},{key:"onRadioInputChange",value:function(e){this.setState(e.realTarget.value)}}],r&&zM(n.prototype,r),t}(p_);const KM=XM;function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function $M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QM(e,t,n){return QM="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ZM(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},QM(e,t,n||e)}function ZM(e){return ZM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ZM(e)}function ek(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tk(e,t,n){return t&&ek(e.prototype,t),n&&ek(e,n),e}function nk(e,t){return nk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nk(e,t)}n(77249);var rk=new WeakMap;const ok=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==JM(t)&&"function"!=typeof t?$M(e):t}(this,ZM(t).call(this,e,G(t.DEFAULTS,n))),rk.set($M(r),{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nk(e,t)}(t,e),tk(t,null,[{key:"DEFAULTS",get:function(){return K({href:"#",tagName:"a"})}}]),tk(t,[{key:"build",value:function(){QM(ZM(t.prototype),"build",this).call(this),rk.get(this).link=this._element.firstChild}},{key:"update",value:function(){this.isBuilt()&&(rk.get(this).link.textContent=this.translateIfPossible(this.options.textContent))}}]),t}(aM);function ik(e){return ik="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ik(e)}function ak(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lk(e,t,n){return lk="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=uk(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},lk(e,t,n||e)}function uk(e){return uk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uk(e)}function ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hk(e,t,n){return t&&ck(e.prototype,t),n&&ck(e,n),e}function fk(e,t){return fk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fk(e,t)}var dk=new WeakMap,mk=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==ik(t)&&"function"!=typeof t?sk(e):t}(this,uk(t).call(this,e,G(t.DEFAULTS,n))),dk.set(sk(r),{}),r.searchInput=new yM(r.hot,{placeholder:hh,className:"htUIMultipleSelectSearch"}),r.selectAllUI=new ok(r.hot,{textContent:sh,className:"htUISelectAll"}),r.clearAllUI=new ok(r.hot,{textContent:lh,className:"htUIClearAll"}),r.items=[],r.itemsBox=null,r.registerHooks(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fk(e,t)}(t,e),hk(t,null,[{key:"DEFAULTS",get:function(){return K({className:"htUIMultipleSelect",value:[]})}}]),hk(t,[{key:"registerHooks",value:function(){var e=this;this.searchInput.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)})),this.searchInput.addLocalHook("input",(function(t){return e.onInput(t)})),this.selectAllUI.addLocalHook("click",(function(t){return e.onSelectAllClick(t)})),this.clearAllUI.addLocalHook("click",(function(t){return e.onClearAllClick(t)}))}},{key:"setItems",value:function(e){this.items=e,this.itemsBox&&this.itemsBox.loadData(this.items)}},{key:"getItems",value:function(){return ak(this.items)}},{key:"getValue",value:function(){return e=this.items,t=[],P(e,(function(e){e.checked&&t.push(e.value)})),t;var e,t}},{key:"isSelectedAllValues",value:function(){return this.items.length===this.getValue().length}},{key:"build",value:function(){var e=this;lk(uk(t.prototype),"build",this).call(this);var n=this.hot.rootDocument,r=n.createElement("div"),o=new aM(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element),this._element.appendChild(o.element),this._element.appendChild(r);var i=function(t){e._element&&(e.itemsBox&&e.itemsBox.destroy(),wt(t,"htUIMultipleSelectHot"),e.itemsBox=new e.hot.constructor(t,{data:e.items,columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:function(e,t,n,r,o,i){e.title=i.instance.getDataAtRowProp(t,i.label.property)},autoWrapCol:!0,height:110,colWidths:function(){return e.itemsBox.container.scrollWidth-Xt(n)},copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},beforeKeyDown:function(t){return e.onItemsBoxBeforeKeyDown(t)}}),e.itemsBox.init())};i(r),setTimeout((function(){return i(r)}),100)}},{key:"reset",value:function(){this.searchInput.reset(),this.selectAllUI.reset(),this.clearAllUI.reset()}},{key:"update",value:function(){var e,n,r;this.isBuilt()&&(this.itemsBox.loadData((e=this.items,n=this.options.value,r=j_(n),N(e,(function(e){return e.checked=r(e.value),e})))),lk(uk(t.prototype),"update",this).call(this))}},{key:"destroy",value:function(){this.itemsBox&&this.itemsBox.destroy(),this.searchInput.destroy(),this.clearAllUI.destroy(),this.selectAllUI.destroy(),this.searchInput=null,this.clearAllUI=null,this.selectAllUI=null,this.itemsBox=null,this.items=null,lk(uk(t.prototype),"destroy",this).call(this)}},{key:"onInput",value:function(e){var t,n=e.target.value.toLowerCase();t=""===n?ak(this.items):H(this.items,(function(e){return"".concat(e.value).toLowerCase().indexOf(n)>=0})),this.itemsBox.loadData(t)}},{key:"onInputKeyDown",value:function(e){this.runLocalHooks("keydown",e,this),un(mo,e.keyCode)("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&(jr(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onItemsBoxBeforeKeyDown",value:function(e){var t=un(mo,e.keyCode);t("ESCAPE")&&this.runLocalHooks("keydown",e,this),t("ARROW_UP|ARROW_DOWN|ARROW_LEFT|ARROW_RIGHT|TAB|SPACE|ENTER")||(jr(e),this.itemsBox.unlisten(),this.itemsBox.deselectCell(),this.searchInput.focus())}},{key:"onSelectAllClick",value:function(e){e.preventDefault(),P(this.itemsBox.getSourceData(),(function(e){e.checked=!0})),this.itemsBox.render()}},{key:"onClearAllClick",value:function(e){e.preventDefault(),P(this.itemsBox.getSourceData(),(function(e){e.checked=!1})),this.itemsBox.render()}}]),t}(aM);const pk=mk;function yk(e){return yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yk(e)}function vk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gk(e,t,n){return gk="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wk(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},gk(e,t,n||e)}function wk(e){return wk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wk(e)}function bk(e,t){return bk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bk(e,t)}var _k=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==yk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,wk(t).call(this,e))).id=n.id,r.name=n.name,r.elements.push(new pk(r.hot)),r.registerHooks(),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bk(e,t)}(t,e),n=t,r=[{key:"registerHooks",value:function(){var e=this;this.getMultipleSelectElement().addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}},{key:"setState",value:function(e){if(this.reset(),e&&e.command.key===U_){var t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0])}}},{key:"getState",value:function(){var e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?b_:U_},args:[e.getValue()],itemsSnapshot:t}}},{key:"updateState",value:function(e){var t=this,n=function(e,n,r,o,i){var a,s,l=H(n,(function(e){return e.name===U_})),u=(a=l,s=1,function(e){if(Array.isArray(e))return e}(a)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0],c={},h=t.hot.getTranslatedPhrase(ah);if(u){var f=N(o(e,i),(function(e){return e.value}));f=W_(f),r&&(u.args[0]=r);var d=[],m=B_(f,u.args[0],h,(function(e){e.checked&&d.push(e.value)}));c.args=[d],c.command=g_(U_),c.itemsSnapshot=m}else c.args=[],c.command=g_(b_);t.setCachedState(e,c)};n(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&n(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}},{key:"getMultipleSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof pk}))[0]}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){wt(n.parentNode,"htFiltersMenuValue");var s=e.hot.rootDocument.createElement("div");return wt(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||P(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e=this.hot.getTranslatedPhrase(ah),n=W_(this._getColumnVisibleValues()),r=B_(n,n,e);this.getMultipleSelectElement().setItems(r),gk(wk(t.prototype),"reset",this).call(this),this.getMultipleSelectElement().setValue(n)}},{key:"onInputKeyDown",value:function(e){mo(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),jr(e))}},{key:"_getColumnVisibleValues",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn(),t=e&&e.visualIndex;return N(this.hot.getDataAtCol(t),(function(e){return F_(e)}))}}],r&&vk(n.prototype,r),t}(p_);const Mk=_k;function kk(e){return kk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kk(e)}function Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sk(e)}function Ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tk(e,t,n){return t&&Ck(e.prototype,t),n&&Ck(e,n),e}function Ek(e,t){return Ek=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ek(e,t)}const Ok=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==kk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Sk(t).call(this,e))).id=n.id,r.name=n.name,r.elements.push(new yM(r.hot,{type:"button",value:uh,className:"htUIButton htUIButtonOK",identifier:t.BUTTON_OK})),r.elements.push(new yM(r.hot,{type:"button",value:ch,className:"htUIButton htUIButtonCancel",identifier:t.BUTTON_CANCEL})),r.registerHooks(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ek(e,t)}(t,e),Tk(t,null,[{key:"BUTTON_OK",get:function(){return"ok"}},{key:"BUTTON_CANCEL",get:function(){return"cancel"}}]),Tk(t,[{key:"registerHooks",value:function(){var e=this;P(this.elements,(function(t){t.addLocalHook("click",(function(t,n){return e.onButtonClick(t,n)}))}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return wt(n.parentNode,"htFiltersMenuActionBar"),n.parentNode.hasAttribute("ghost-table")||P(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"accept",value:function(){this.runLocalHooks("accept")}},{key:"cancel",value:function(){this.runLocalHooks("cancel")}},{key:"onButtonClick",value:function(e,n){n.options.identifier===t.BUTTON_OK?this.accept():this.cancel()}}]),t}(p_);function Rk(){var e,t,n=(e=["The column of index "," has been already applied with a `","`\n filter operation. Use `removeConditions` to clear the current conditions and then add new ones.\n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`,\n use it consequently for a particular column)."],(t=["The column of index "," has been already applied with a \\`","\\`\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\n use it consequently for a particular column)."])||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Rk=function(){return n},n}function Lk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Dk=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.conditions=this.initConditionsCollection(),this.columnTypes={},this.orderStack=[]}var t,n;return t=e,n=[{key:"isEmpty",value:function(){return!this.orderStack.length}},{key:"isMatch",value:function(e,t){var n=this,r=!0;if(void 0===t)ee(this.columnTypes,(function(t,o){return r=n.isMatchInConditions(n.conditions[t][o],e,t)}));else{var o=this.columnTypes[t];r=this.isMatchInConditions(this.getConditions(t),e,o)}return r}},{key:"isMatchInConditions",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q_;return n=!e.length||function(e){if(!z_[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=z_[e].func;return function(e,n){return t(e,n)}}(r)(e,t),n}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q_,r=N(t.args,(function(e){return"string"==typeof e?e.toLowerCase():e})),o=t.name||t.command.key;this.runLocalHooks("beforeAdd",e),-1===this.orderStack.indexOf(e)&&this.orderStack.push(e);var i=this.columnTypes[e];if(i){if(i!==n)throw Error(Jn(Rk(),e,i))}else{if(!this.conditions[n])throw new Error("Unexpected operation named `".concat(n,"`. Possible ones are `disjunction` and `conjunction`."));this.columnTypes[e]=n}this.getConditions(e).push({name:o,args:r,func:v_(o,r)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t=this.columnTypes[e];return t?(this.conditions[t][e]||(this.conditions[t][e]=[]),this.conditions[t][e]):[]}},{key:"exportAllConditions",value:function(){var e=this,t=[];return P(this.orderStack,(function(n){var r=N(e.getConditions(n),(function(e){return{name:e.name,args:e.args}})),o=e.columnTypes[n];t.push({column:n,operation:o,conditions:r})})),t}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),P(e,(function(e){t.orderStack.push(e.column),P(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.orderStack.indexOf(e)>=0&&this.orderStack.splice(this.orderStack.indexOf(e),1),this.clearConditions(e),this.runLocalHooks("afterRemove",e)}},{key:"clearConditions",value:function(e){this.runLocalHooks("beforeClear",e),this.getConditions(e).length=0,delete this.columnTypes[e],this.runLocalHooks("afterClear",e)}},{key:"hasConditions",value:function(e,t){if(!this.columnTypes[e])return!1;var n=this.getConditions(e);return t?H(n,(function(e){return e.name===t})).length>0:n.length>0}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.columnTypes=Object.create(null),this.orderStack.length=0,this.conditions=this.initConditionsCollection(),this.runLocalHooks("afterClean")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.conditions=null,this.orderStack=null,this.columnTypes=null}},{key:"initConditionsCollection",value:function(){var e=Object.create(null);return ee(z_,(function(t,n){e[n]=Object.create(null)})),e}}],n&&Lk(t.prototype,n),e}();J(Dk,Zh);const Ak=Dk;function Hk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Nk=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.conditionCollection=t,this.columnDataFactory=n}var t,n;return t=e,n=[{key:"filter",value:function(){var e=this,t=[];return this.conditionCollection.isEmpty()||P(this.conditionCollection.orderStack,(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=[];return P(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],(function(r){void 0!==r&&t.conditionCollection.isMatch(r,e)&&n.push(r)})),n}},{key:"_getIntersectData",value:function(e,t){var n=[];return P(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}],n&&Hk(t.prototype,n),e}();const Pk=Nk;function xk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Yk=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.conditionCollection=t,this.columnDataFactory=r,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.conditionCollection.addLocalHook("beforeRemove",(function(e){return n._onConditionBeforeModify(e)})),this.conditionCollection.addLocalHook("afterAdd",(function(e){return n.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("afterClear",(function(e){return n.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("beforeClean",(function(){return n._onConditionBeforeClean()})),this.conditionCollection.addLocalHook("afterClean",(function(){return n._onConditionAfterClean()}))}var t,n;return t=e,n=[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var e=this;this.grouping=!1,P(this.changes,(function(t){e.updateStatesAtColumn(t)})),this.changes.length=0}},{key:"_onConditionBeforeModify",value:function(e){this.latestEditedColumnPosition=this.conditionCollection.orderStack.indexOf(e)}},{key:"updateStatesAtColumn",value:function(e,t){var n=this;if(this.grouping)-1===this.changes.indexOf(e)&&this.changes.push(e);else{var r=this.conditionCollection.exportAllConditions(),o=this.conditionCollection.orderStack.indexOf(e);-1===o&&(o=this.latestEditedColumnPosition);var i=r.slice(0,o),a=r.slice(o);a.length&&a[0].column===e&&a.shift();var s=cn((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=new Ak,i=[].concat(e,r);o.importAllConditions(i);var a=n.columnDataFactory(t),s=j_(N(o.isEmpty()?a:new Pk(o,(function(e){return n.columnDataFactory(e)})).filter(),(function(e){return e.meta.visualRow})));return H(a,(function(e){return s(e.meta.visualRow)}))}))(i),l=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:l},dependentConditionStacks:a,filteredRowsFactory:s,conditionArgsChange:t})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=[].concat(this.conditionCollection.orderStack)}},{key:"_onConditionAfterClean",value:function(){var e=this;P(this.latestOrderStack,(function(t){e.updateStatesAtColumn(t)}))}},{key:"destroy",value:function(){var e=this;this.clearLocalHooks(),ee(this,(function(t,n){e[n]=null}))}}],n&&xk(t.prototype,n),e}();J(Yk,Zh);const Ik=Yk;function jk(e){return jk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jk(e)}function Fk(){var e,t,n=(e=["The filter conditions have been applied properly, but couldnt be displayed visually.\n The overall amount of conditions exceed the capability of the dropdown menu.\n For more details see the documentation."],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Fk=function(){return n},n}function Wk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Bk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uk(e,t,n){return Uk="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zk(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Uk(e,t,n||e)}function zk(e){return zk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zk(e)}function Gk(e,t){return Gk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gk(e,t)}var qk=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==jk(t)&&"function"!=typeof t?Vk(e):t}(this,zk(t).call(this,e))).eventManager=new Jr(Vk(n)),n.trimRowsPlugin=null,n.dropdownMenuPlugin=null,n.conditionCollection=null,n.conditionUpdateObserver=null,n.components=new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]]),n.lastSelectedColumn=null,n.hiddenRowsCache=new Map,n.hot.addHook("afterGetColHeader",(function(e,t){return n.onAfterGetColHeader(e,t)})),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gk(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().filters}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.trimRowsPlugin=this.hot.getPlugin("trimRows"),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var n=function(t){return t.addLocalHook("accept",(function(){return e.onActionBarSubmit("accept")})),t.addLocalHook("cancel",(function(){return e.onActionBarSubmit("cancel")})),t.addLocalHook("change",(function(n){return e.onComponentChange(t,n)})),t};if(!this.components.get("filter_by_condition")){var r=new AM(this.hot,{id:"filter_by_condition",name:function(){return"".concat(e.hot.getTranslatedPhrase(nh),":")},addSeparator:!1});r.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition",n(r))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new KM(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){var o=new AM(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0});o.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition2",n(o))}this.components.get("filter_by_value")||this.components.set("filter_by_value",n(new Mk(this.hot,{id:"filter_by_value",name:function(){return"".concat(e.hot.getTranslatedPhrase(rh),":")}}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",n(new Ok(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new Ak),this.conditionUpdateObserver||(this.conditionUpdateObserver=new Ik(this.conditionCollection,(function(t){return e.getDataMapAtColumn(t)})),this.conditionUpdateObserver.addLocalHook("update",(function(t){return e.updateComponents(t)}))),this.components.forEach((function(e){e.show()})),this.registerEvents(),this.addHook("beforeDropdownMenuSetItems",(function(t){return e.onBeforeDropdownMenuSetItems(t)})),this.addHook("afterDropdownMenuDefaultOptions",(function(t){return e.onAfterDropdownMenuDefaultOptions(t)})),this.addHook("afterDropdownMenuShow",(function(){return e.onAfterDropdownMenuShow()})),this.addHook("afterDropdownMenuHide",(function(){return e.onAfterDropdownMenuHide()})),this.addHook("afterChange",(function(t){return e.onAfterChange(t)})),this.hot.getSettings().trimRows=!0,this.trimRowsPlugin.enablePlugin(),this.hot.getSettings().dropdownMenu&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),Uk(zk(t.prototype),"enablePlugin",this).call(this)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",(function(t){return e.onTableClick(t)}))}},{key:"disablePlugin",value:function(){this.enabled&&(this.dropdownMenuPlugin.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((function(e){e.hide()})),this.conditionCollection.clean(),this.trimRowsPlugin.untrimAll()),Uk(zk(t.prototype),"disablePlugin",this).call(this)}},{key:"addCondition",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:q_,o=this.t.toPhysicalColumn(e);this.conditionCollection.addCondition(o,{command:{key:t},args:n},r)}},{key:"removeConditions",value:function(e){var t=this.t.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}},{key:"clearConditions",value:function(e){if(void 0===e)this.conditionCollection.clean();else{var t=this.t.toPhysicalColumn(e);this.conditionCollection.clearConditions(t)}}},{key:"filter",value:function(){var e=this._createDataFilter(),t=!this.conditionCollection.isEmpty(),n=[],r=this.conditionCollection.exportAllConditions();if(!1!==this.hot.runHooks("beforeFilter",r))if(t){var o=[];this.trimRowsPlugin.trimmedRows.length=0;var i=j_(n=N(e.filter(),(function(e){return e.meta.visualRow})));Ra(this.hot.countSourceRows()-1,(function(e){i(e)||o.push(e)})),this.trimRowsPlugin.trimRows(o),n.length||this.hot.deselectCell()}else this.trimRowsPlugin.untrimAll();this.hot.view.wt.wtOverlays.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection(),this.hot.runHooks("afterFilter",r)}},{key:"getSelectedColumn",value:function(){return this.lastSelectedColumn}},{key:"clearColumnSelection",value:function(){var e=Wk(this.hot.getSelectedLast()||[],2),t=e[0],n=e[1];void 0!==t&&void 0!==n&&this.hot.selectCell(t,n)}},{key:"getDataMapAtColumn",value:function(e){var t=this,n=this.t.toVisualColumn(e),r=[];return P(this.hot.getSourceDataAtCol(n),(function(e,o){var i=t.hot.getCellMeta(o,n),a=i.row,s=i.col,l=i.visualCol,u=i.visualRow,c=i.type,h=i.instance,f=i.dateFormat;r.push({meta:{row:a,col:s,visualCol:l,visualRow:u,type:c,instance:h,dateFormat:f},value:F_(e)})})),r}},{key:"onAfterChange",value:function(e){var t=this;e&&P(e,(function(e){var n=Wk(e,2)[1],r=t.hot.propToCol(n);t.conditionCollection.hasConditions(r)&&t.updateValueComponentCondition(r)}))}},{key:"updateValueComponentCondition",value:function(e){var t=W_(this.hot.getDataAtCol(e));this.conditionUpdateObserver.updateStatesAtColumn(e,t)}},{key:"restoreComponents",value:function(e){var t=this.getSelectedColumn(),n=t&&t.physicalIndex;e.forEach((function(e){!1===e.isHidden()&&e.restoreState(n)}))}},{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents([this.components.get("filter_by_condition"),this.components.get("filter_operators"),this.components.get("filter_by_condition2"),this.components.get("filter_by_value")])}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(e){var t=N(e,(function(e){return e.key}));this.components.forEach((function(e){e[-1===t.indexOf(e.getMenuItemDescriptor().key)?"hide":"show"]()})),this.initHiddenRowsCache()}},{key:"onAfterDropdownMenuDefaultOptions",value:function(e){e.items.push({name:Mm}),this.components.forEach((function(t){e.items.push(t.getMenuItemDescriptor())}))}},{key:"getOperationBasedOnArguments",value:function(e,t,n,r){var o=e;return o===X_&&t.command.key!==b_&&n.command.key!==b_&&r.command.key!==b_?o=J_:r.command.key!==b_&&(t.command.key!==b_&&n.command.key!==b_||(o=q_)),o}},{key:"onActionBarSubmit",value:function(e){if("accept"===e){var t=this.getSelectedColumn(),n=t&&t.physicalIndex,r=this.components.get("filter_by_condition").getState(),o=this.components.get("filter_by_condition2").getState(),i=this.components.get("filter_by_value").getState(),a=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),r,o,i);this.conditionUpdateObserver.groupChanges(),this.conditionCollection.clearConditions(n),r.command.key===b_&&o.command.key===b_&&i.command.key===b_?this.conditionCollection.removeConditions(n):(r.command.key!==b_&&(this.conditionCollection.addCondition(n,r,a),o.command.key!==b_&&this.conditionCollection.addCondition(n,o,a)),i.command.key!==b_&&this.conditionCollection.addCondition(n,i,a)),this.conditionUpdateObserver.flush(),this.components.get("filter_operators").saveState(n),this.components.get("filter_by_value").saveState(n),this.saveHiddenRowsCache(n),this.trimRowsPlugin.trimmedRows.length=0,this.filter()}this.dropdownMenuPlugin.close()}},{key:"onComponentChange",value:function(e,t){e===this.components.get("filter_by_condition")&&(t.showOperators?this.showComponents(this.components.get("filter_by_condition2"),this.components.get("filter_operators")):this.hideComponents(this.components.get("filter_by_condition2"),this.components.get("filter_operators"))),e.constructor!==AM||t.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin.setListening()}},{key:"onAfterGetColHeader",value:function(e,t){var n=this.t.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)?wt(t,"htFiltersActive"):bt(t,"htFiltersActive")}},{key:"onTableClick",value:function(e){var t=st(e.target,"TH");if(t){var n=this.hot.getCoords(t).col,r=this.t.toPhysicalColumn(n);this.lastSelectedColumn={visualIndex:n,physicalIndex:r}}}},{key:"destroy",value:function(){this.enabled&&(this.components.forEach((function(e){e.destroy()})),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hiddenRowsCache.clear(),this.trimRowsPlugin.disablePlugin()),Uk(zk(t.prototype),"destroy",this).call(this)}},{key:"_createDataFilter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new Pk(t,(function(t){return e.getDataMapAtColumn(t)}))}},{key:"updateComponents",value:function(e){if(this.dropdownMenuPlugin.enabled){var t=e.editedConditionStack.conditions,n=e.editedConditionStack.column,r=t.filter((function(e){return e.name===U_})),o=t.filter((function(e){return e.name!==U_})),i=this.conditionCollection.columnTypes[n];2===r.length||3===o.length?Mr(Jn(Fk())):(o.length>0&&this.showComponentForParticularColumn(this.components.get("filter_operators"),n),this.components.get("filter_by_condition").updateState(o[0],n),this.components.get("filter_by_condition2").updateState(o[1],n),this.components.get("filter_by_value").updateState(e),this.components.get("filter_operators").updateState(i,n))}}},{key:"showComponentForParticularColumn",value:function(e,t){if(this.hiddenRowsCache.has(t)){var n=this.getIndexesOfComponents(e);this.removeIndexesFromHiddenRowsCache(t,n)}else this.hiddenRowsCache.set(t,[])}},{key:"removeIndexesFromHiddenRowsCache",value:function(e,t){var n=this.hiddenRowsCache.get(e);P(t,(function(e){n.includes(e)&&n.splice(n.indexOf(e),1)}))}},{key:"getIndexesOfComponents",value:function(){for(var e=this.dropdownMenuPlugin.menu,t=[],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P(r,(function(n){P(e.menuItems,(function(e,r){e.key===n.getMenuItemDescriptor().key&&t.push(r)}))})),t}},{key:"changeComponentsVisibility",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.dropdownMenuPlugin.menu.hotMenu,n=t.getPlugin("hiddenRows"),r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=this.getIndexesOfComponents.apply(this,o);e?n.showRows(a):n.hideRows(a),t.render()}},{key:"initHiddenRowsCache",value:function(){var e=this;this.dropdownMenuPlugin.menu.addLocalHook("afterOpen",(function(){var t=e.lastSelectedColumn.physicalIndex;e.hiddenRowsCache.has(t)||e.hiddenRowsCache.set(t,e.getIndexesOfComponents(e.components.get("filter_operators"),e.components.get("filter_by_condition2"))),e.dropdownMenuPlugin.menu.hotMenu.updateSettings({hiddenRows:{rows:e.hiddenRowsCache.get(t)}})}))}},{key:"saveHiddenRowsCache",value:function(e){this.hiddenRowsCache.set(e,this.dropdownMenuPlugin.menu.hotMenu.getPlugin("hiddenRows").hiddenRows)}},{key:"hideComponents",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility.apply(this,[!1].concat(t))}},{key:"showComponents",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility.apply(this,[!0].concat(t))}}],r&&Bk(n.prototype,r),t}(Rf);gu("filters",qk);const Xk=qk;function Kk(e){return"string"==typeof e&&e.length>=2&&"="===e.charAt(0)}function Jk(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}function $k(e){var t=/(\\"|"(?:\\"|[^"])*"|(\+))|(\\'|'(?:\\'|[^'])*'|(\+))/g,n=e.match(t)||[],r=-1;return e.toUpperCase().replace(t,(function(){return n[r+=1]}))}function Qk(e,t){return function(n){return{row:"row"===e?t:n.row,column:"column"===e?t:n.column}}}var Zk=n(95058);function eS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tS=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=Q(t),o=Q(n);this._row=r?t.index:t,this.rowAbsolute=!r||t.isAbsolute,this._column=o?n.index:n,this.columnAbsolute=!o||n.isAbsolute,this.rowOffset=0,this.columnOffset=0,Object.defineProperty(this,"row",{get:function(){return this.rowOffset+this._row},set:function(e){this._row=e},enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{get:function(){return this.columnOffset+this._column},set:function(e){this._column=e},enumerable:!0,configurable:!0})}var t,n;return t=e,n=[{key:"translateTo",value:function(e,t){this.row=this.row+e,this.column=this.column+t}},{key:"isEqual",value:function(e){return e.row===this.row&&e.column===this.column}},{key:"toString",value:function(){return(0,Zk.toLabel)({index:this.row,isAbsolute:this.rowAbsolute},{index:this.column,isAbsolute:this.columnAbsolute})}}],n&&eS(t.prototype,n),e}();const nS=tS;function rS(e){return rS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rS(e)}function oS(e){return oS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oS(e)}function iS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aS(e,t,n){return t&&iS(e.prototype,t),n&&iS(e,n),e}function sS(e,t){return sS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sS(e,t)}var lS=[1,2,3],uS=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==rS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,oS(t).call(this,e,n))).precedents=[],r.value=null,r.error=null,r.state=t.STATE_UP_TO_DATE,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sS(e,t)}(t,e),aS(t,null,[{key:"STATE_OUT_OFF_DATE",get:function(){return 1}},{key:"STATE_COMPUTING",get:function(){return 2}},{key:"STATE_UP_TO_DATE",get:function(){return 3}}]),aS(t,[{key:"setValue",value:function(e){this.value=e}},{key:"getValue",value:function(){return this.value}},{key:"setError",value:function(e){this.error=e}},{key:"getError",value:function(){return this.error}},{key:"hasError",value:function(){return null!==this.error}},{key:"setState",value:function(e){if(-1===lS.indexOf(e))throw Error("Unrecognized state: ".concat(e));this.state=e}},{key:"isState",value:function(e){return this.state===e}},{key:"addPrecedent",value:function(e){if(this.isEqual(e))throw Error(Zk.ERROR_REF);this.hasPrecedent(e)||this.precedents.push(e)}},{key:"removePrecedent",value:function(e){if(this.isEqual(e))throw Error(Zk.ERROR_REF);this.precedents=H(this.precedents,(function(t){return!t.isEqual(e)}))}},{key:"clearPrecedents",value:function(){this.precedents.length=0}},{key:"getPrecedents",value:function(){return this.precedents}},{key:"hasPrecedents",value:function(){return this.precedents.length>0}},{key:"hasPrecedent",value:function(e){return H(this.precedents,(function(t){return t.isEqual(e)})).length>0}}]),t}(nS);const cS=uS;function hS(e){return hS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hS(e)}function fS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dS(e){return dS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dS(e)}function mS(e,t){return mS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mS(e,t)}const pS=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==hS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,dS(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mS(e,t)}(t,e),n=t,(r=[{key:"toString",value:function(){return(0,Zk.toLabel)({index:this.row,isAbsolute:!1},{index:this.column,isAbsolute:!1})}}])&&fS(n.prototype,r),t}(nS);function yS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var vS=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=t,this.data=[],this.cellReferences=[]}var t,n;return t=e,n=[{key:"getCellAt",value:function(e,t){var n=null;return P(this.data,(function(r){if(r.row===e&&r.column===t)return n=r,!1})),n}},{key:"getOutOfDateCells",value:function(){return H(this.data,(function(e){return e.isState(cS.STATE_OUT_OFF_DATE)}))}},{key:"add",value:function(e){H(this.data,(function(t){return t.isEqual(e)})).length||this.data.push(e)}},{key:"remove",value:function(e){var t=Array.isArray(e);this.data=H(this.data,(function(n){return!function(e,n){var r=!1;return t?P(n,(function(t){if(e.isEqual(t))return r=!0,!1})):r=e.isEqual(n),r}(n,e)}))}},{key:"getDependencies",value:function(e){var t=this;return function e(n){var r=function(e){return A(t.data,(function(t,n){return n.hasPrecedent(e)&&-1===t.indexOf(n)&&t.push(n),t}),[])}(n);return r.length&&P(r,(function(n){n.hasPrecedents()&&(r=r.concat(e(t.t.toVisual(n))))})),r}(e)}},{key:"registerCellRef",value:function(e){H(this.cellReferences,(function(t){return t.isEqual(e)})).length||this.cellReferences.push(e)}},{key:"removeCellRefsAtRange",value:function(e,t){var n=e.row,r=e.column,o=t.row,i=t.column,a=[];return this.cellReferences=H(this.cellReferences,(function(e){return!function(e){return void 0===n||e.row>=n&&e.row<=o}(e)||!function(e){return void 0===r||e.column>=r&&e.column<=i}(e)||(a.push(e),!1)})),a}},{key:"reset",value:function(){this.data.length=0,this.cellReferences.length=0}}],n&&yS(t.prototype,n),e}();const gS=vS;function wS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _S=/^\$?[A-Z]+\$?\d+$/,MS=/\$?[A-Z]+\$?\d+/,kS=/(?:[^0-9A-Z$: ]|^)\s*(\$?[A-Z]+\$?\d+)\s*(?![0-9A-Z_: ])/g,SS=/\$?[A-Z]+\$?\d+\s*:\s*\$?[A-Z]+\$?\d+/g,CS=/((?:[^0-9A-Z$: ]|^)\s*(\$?[A-Z]+\$?\d+)\s*(?![0-9A-Z_: ]))|(\$?[A-Z]+\$?\d+\s*:\s*\$?[A-Z]+\$?\d+)/g,TS=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.expression="",this.cells=[],this.customModifier=null,"string"==typeof t&&this.setExpression(t)}var t,n;return t=e,n=[{key:"setExpression",value:function(e){return this.cells.length=0,this.expression=$k(e),this._extractCells(),this._extractCellsRange(),this}},{key:"useCustomModifier",value:function(e){this.customModifier=e}},{key:"translate",value:function(e){var t=this,n=e.row,r=e.column,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this.cells,(function(e){null!=n&&t._translateCell(e,"row",n,o.row),null!=r&&t._translateCell(e,"column",r,o.column)})),this}},{key:"toString",value:function(){var e=this,t=this.expression.replace(CS,(function(t,n,r){var o=-1===t.indexOf(":"),i=t,a=t,s=null;o&&(a=_S.test(n)?n:r);var l=e._searchCell(a);return l&&(s=l.refError?(0,Zk.error)(Zk.ERROR_REF):l.toLabel(),i=o?t.replace(a,s):s),i}));return t.startsWith("=")||(t="=".concat(t)),t}},{key:"_translateCell",value:function(e,t,n,r){var o=e.start,i=e.end,a=o[t].index,s=i[t].index,l=n,u=n,c=!1;if(this.customModifier){var h=wS(this.customModifier(e,t,n,r),3);l=h[0],u=h[1],c=h[2]}else o[t].isAbsolute&&(l=0),i[t].isAbsolute&&(u=0);l&&!c&&(a+l<0&&(c=!0),o[t].index=Math.max(a+l,0)),u&&!c&&(s+u<0&&(c=!0),i[t].index=Math.max(s+u,0)),c&&(e.refError=!0)}},{key:"_extractCells",value:function(){var e=this,t=this.expression.match(kS);t&&P(t,(function(t){var n=t.match(MS);if(n){var r=wS((0,Zk.extractLabel)(n[0]),2),o=r[0],i=r[1];e.cells.push(e._createCell({row:o,column:i},{row:o,column:i},n[0]))}}))}},{key:"_extractCellsRange",value:function(){var e=this,t=this.expression.match(SS);t&&P(t,(function(t){var n=wS(t.split(":"),2),r=n[0],o=n[1],i=wS((0,Zk.extractLabel)(r),2),a=i[0],s=i[1],l=wS((0,Zk.extractLabel)(o),2),u={row:a,column:s},c={row:l[0],column:l[1]};e.cells.push(e._createCell(u,c,t))}))}},{key:"_searchCell",value:function(e){return wS(H(this.cells,(function(t){return t.origLabel===e})),1)[0]||null}},{key:"_createCell",value:function(e,t,n){return{start:e,end:t,origLabel:n,type:-1===n.indexOf(":")?"cell":"range",refError:!1,toLabel:function(){var e=(0,Zk.toLabel)(this.start.row,this.start.column);return"range"===this.type&&(e+=":".concat((0,Zk.toLabel)(this.end.row,this.end.column))),e}}}}],n&&bS(t.prototype,n),e}();J(TS,Zh);const ES=TS;var OS,RS="column_sorting";function LS(){var e=this.matrix,t=this.dataProvider;OS=new WeakMap,P(e.data,(function(e){OS.set(e,t.t.toVisualRow(e.row))}))}function DS(){var e=this.matrix,t=this.dataProvider;e.cellReferences.length=0,P(e.data,(function(e){e.setState(cS.STATE_OUT_OFF_DATE),e.clearPrecedents();var n=e.row,r=e.column,o=t.getSourceDataAtCell(n,r);if(Kk(o)){var i=OS.get(e),a=new ES(o);a.translate({row:t.t.toVisualRow(n)-i}),t.updateSourceData(n,r,a.toString())}})),OS=null}var AS="insert_column";function HS(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.matrix,o=this.dataProvider,i=[0,t];P(r.cellReferences,(function(t){t.column>=e&&t.translateTo.apply(t,i)})),P(r.data,(function(r){var a=r.row,s=r.column;if(r.column>=e&&(r.translateTo.apply(r,i),r.setState(cS.STATE_OUT_OFF_DATE)),n){var l=r.row,u=r.column,c=o.getSourceDataAtCell(l,u);if(Kk(c)){var h=Qk("column",e),f=new ES(c);f.useCustomModifier(NS),f.translate({column:t},h({row:a,column:s})),o.updateSourceData(l,u,f.toString())}}}))}function NS(e,t,n,r){var o=e.start,i=e.end,a=n,s=n;return r>o[t].index&&(a=0),r>i[t].index&&(s=0),[a,s,!1]}var PS="insert_row";function xS(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.matrix,o=this.dataProvider,i=[t,0];P(r.cellReferences,(function(t){t.row>=e&&t.translateTo.apply(t,i)})),P(r.data,(function(r){var a=r.row,s=r.column;if(r.row>=e&&(r.translateTo.apply(r,i),r.setState(cS.STATE_OUT_OFF_DATE)),n){var l=r.row,u=r.column,c=o.getSourceDataAtCell(l,u);if(Kk(c)){var h=Qk("row",e),f=new ES(c);f.useCustomModifier(YS),f.translate({row:t},h({row:a,column:s})),o.updateSourceData(l,u,f.toString())}}}))}function YS(e,t,n,r){var o=e.start,i=e.end,a=n,s=n;return r>o[t].index&&(a=0),r>i[t].index&&(s=0),[a,s,!1]}var IS="remove_column";function jS(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=-t,o=this.matrix,i=this.dataProvider,a=this.sheet,s=[0,r],l=Math.abs(r)-1,u=o.removeCellRefsAtRange({column:e},{column:e+l}),c=[];P(o.data,(function(t){P(u,(function(e){t.hasPrecedent(e)&&(t.removePrecedent(e),t.setState(cS.STATE_OUT_OFF_DATE),P(a.getCellDependencies(t.row,t.column),(function(e){e.setState(cS.STATE_OUT_OFF_DATE)})))})),t.column>=e&&t.column<=e+l&&c.push(t)})),o.remove(c),P(o.cellReferences,(function(t){t.column>=e&&t.translateTo.apply(t,s)})),P(o.data,(function(t){var o=t.row,a=t.column;if(t.column>=e&&(t.translateTo.apply(t,s),t.setState(cS.STATE_OUT_OFF_DATE)),n){var l=t.row,u=t.column,c=i.getSourceDataAtCell(l,u);if(Kk(c)){var h=Qk("column",e),f=new ES(c);f.useCustomModifier(FS),f.translate({column:r},h({row:o,column:a})),i.updateSourceData(l,u,f.toString())}}}))}function FS(e,t,n,r){var o=e.start,i=e.end,a=e.type,s=o[t].index,l=i[t].index,u=Math.abs(n)-1,c=n,h=n,f=!1;return s>=r&&l<=r+u&&(f=!0),f||"cell"!==a||r>=s&&(c=0,h=0),f||"range"!==a||(r>=s&&(c=0),r>l?h=0:l<=r+u&&(h-=Math.min(l-(r+u),0))),s+c<0&&(c-=s+c),[c,h,f]}var WS="remove_row";function BS(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=-t,o=this.matrix,i=this.dataProvider,a=this.sheet,s=[r,0],l=Math.abs(r)-1,u=o.removeCellRefsAtRange({row:e},{row:e+l}),c=[];P(o.data,(function(t){P(u,(function(e){t.hasPrecedent(e)&&(t.removePrecedent(e),t.setState(cS.STATE_OUT_OFF_DATE),P(a.getCellDependencies(t.row,t.column),(function(e){e.setState(cS.STATE_OUT_OFF_DATE)})))})),t.row>=e&&t.row<=e+l&&c.push(t)})),o.remove(c),P(o.cellReferences,(function(t){t.row>=e&&t.translateTo.apply(t,s)})),P(o.data,(function(t){var o=t.row,a=t.column;if(t.row>=e&&(t.translateTo.apply(t,s),t.setState(cS.STATE_OUT_OFF_DATE)),n){var l=t.row,u=t.column,c=i.getSourceDataAtCell(l,u);if(Kk(c)){var h=Qk("row",e),f=new ES(c);f.useCustomModifier(VS),f.translate({row:r},h({row:o,column:a})),i.updateSourceData(l,u,f.toString())}}}))}function VS(e,t,n,r){var o=e.start,i=e.end,a=e.type,s=o[t].index,l=i[t].index,u=Math.abs(n)-1,c=n,h=n,f=!1;return s>=r&&l<=r+u&&(f=!0),f||"cell"!==a||r>=s&&(c=0,h=0),f||"range"!==a||(r>=s&&(c=0),r>l?h=0:l<=r+u&&(h-=Math.min(l-(r+u),0))),s+c<0&&(c-=s+c),[c,h,f]}function US(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var zS=new Map;KS(RS,b),KS(AS,_),KS(PS,M),KS(IS,k),KS(WS,S);var GS=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sheet=t,this.hot=t.hot,this.dataProvider=t.dataProvider,this.matrix=t.matrix}var t,n;return t=e,n=[{key:"prepareAlter",value:function(e){if(!zS.has(e))throw Error('Alter operation "'.concat(e,'" not exist.'));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];zS.get(e).prepare.apply(this,n)}},{key:"triggerAlter",value:function(e){if(!zS.has(e))throw Error('Alter operation "'.concat(e,'" not exist.'));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];zS.get(e).operate.apply(this,n),this.runLocalHooks.apply(this,["afterAlter"].concat(n))}},{key:"destroy",value:function(){this.sheet=null,this.hot=null,this.dataProvider=null,this.matrix=null}}],n&&US(t.prototype,n),e}();J(GS,Zh);const qS=GS;var XS=function(){};function KS(e,t){zS.has(e)||zS.set(e,{prepare:t.prepare||XS,operate:t.operate||XS})}function JS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $S=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.t=Hu(this.hot),this.dataProvider=n,this.parser=new Zk.Parser,this.matrix=new gS(this.t),this.alterManager=new qS(this),this._processingCell=null,this._state=3,this.parser.on("callCellValue",(function(){return r._onCallCellValue.apply(r,arguments)})),this.parser.on("callRangeValue",(function(){return r._onCallRangeValue.apply(r,arguments)})),this.alterManager.addLocalHook("afterAlter",(function(){return r._onAfterAlter.apply(r,arguments)}))}var t,n;return t=e,n=[{key:"recalculate",value:function(){switch(this._state){case 3:this.recalculateFull();break;case 2:this.recalculateOptimized()}}},{key:"recalculateOptimized",value:function(){var e=this,t=this.matrix.getOutOfDateCells();P(t,(function(t){var n=e.dataProvider.getSourceDataAtCell(t.row,t.column);Kk(n)&&e.parseExpression(t,n.substr(1))})),this._state=1,this.runLocalHooks("afterRecalculate",t,"optimized")}},{key:"recalculateFull",value:function(){var e=this,t=this.dataProvider.getSourceDataByRange();this.matrix.reset(),P(t,(function(t,n){P(t,(function(t,r){Kk(t)&&e.parseExpression(new cS(n,r),t.substr(1))}))})),this._state=1,this.runLocalHooks("afterRecalculate",t,"full")}},{key:"setVariable",value:function(e,t){this.parser.setVariable(e,t)}},{key:"getVariable",value:function(e){return this.parser.getVariable(e)}},{key:"applyChanges",value:function(e,t,n){var r;this.matrix.remove({row:e,column:t}),Kk(n)&&this.parseExpression(new cS(e,t),n.substr(1)),P(this.getCellDependencies.apply(this,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(r=this.t.toVisual(e,t))||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),(function(e){e.setState(cS.STATE_OUT_OFF_DATE)})),this._state=2}},{key:"parseExpression",value:function(e,t){e.setState(cS.STATE_COMPUTING),this._processingCell=e;var n=this.parser.parse($k(t)),r=n.error,o=n.result;Kk(o)?this.parseExpression(e,o.substr(1)):(e.setValue(o),e.setError(r),e.setState(cS.STATE_UP_TO_DATE)),this.matrix.add(e),this._processingCell=null}},{key:"getCellAt",value:function(e,t){return this.matrix.getCellAt(e,t)}},{key:"getCellDependencies",value:function(e,t){return this.matrix.getDependencies({row:e,column:t})}},{key:"_onCallCellValue",value:function(e,t){var n=e.row,r=e.column,o=new pS(n,r);if(!this.dataProvider.isInDataRange(o.row,o.column))throw Error(Zk.ERROR_REF);this.matrix.registerCellRef(o),this._processingCell.addPrecedent(o);var i=this.dataProvider.getRawDataAtCell(n.index,r.index);if((0,Zk.error)(i)){var a=this.matrix.getCellAt(n.index,r.index);if(a&&a.hasError())throw Error(i)}if(Kk(i)){var s=this.parser.parse(i.substr(1)),l=s.error,u=s.result;if(l)throw Error(l);t(u)}else t(i)}},{key:"_onCallRangeValue",value:function(e,t,n){var r=this,o=e.row,i=e.column,a=t.row,s=t.column,l=N(this.dataProvider.getRawDataByRange(o.index,i.index,a.index,s.index),(function(e,t){return function(e,t){return N(e,(function(e,n){var a=o.index+t,s=i.index+n,l=new pS(a,s);if(!r.dataProvider.isInDataRange(l.row,l.column))throw Error(Zk.ERROR_REF);r.matrix.registerCellRef(l),r._processingCell.addPrecedent(l);var u=e;if((0,Zk.error)(u)){var c=r.matrix.getCellAt(l.row,l.column);if(c&&c.hasError())throw Error(u)}if(Kk(u)){var h=r.parser.parse(u.substr(1)),f=h.error,d=h.result;if(f)throw Error(f);u=d}return u}))}(e,t)}));n(l)}},{key:"_onAfterAlter",value:function(){this.recalculateOptimized()}},{key:"destroy",value:function(){this.hot=null,this.t=null,this.dataProvider.destroy(),this.dataProvider=null,this.alterManager.destroy(),this.alterManager=null,this.parser=null,this.matrix.reset(),this.matrix=null}}],n&&JS(t.prototype,n),e}();J($S,Zh);const QS=$S;function ZS(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function eC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tC=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.changes={},this.t=Hu(this.hot)}var t,n;return t=e,n=[{key:"collectChanges",value:function(e,t,n){this.changes[this._coordId(e,t)]=n}},{key:"clearChanges",value:function(){this.changes={}}},{key:"isInDataRange",value:function(e,t){return e>=0&&e<this.hot.countRows()&&t>=0&&t<this.hot.countCols()}},{key:"getDataAtCell",value:function(e,t){var n=this._coordId.apply(this,ZS(this.t.toPhysical(e,t)));return oe(this.changes,n)?this.changes[n]:this.hot.getDataAtCell(e,t)}},{key:"getDataByRange",value:function(e,t,n,r){var o=this,i=this.hot.getData(e,t,n,r);return P(i,(function(n,r){P(n,(function(n,a){var s=o._coordId.apply(o,ZS(o.t.toPhysical(r+e,a+t)));oe(o.changes,s)&&(i[r][a]=o.changes[s])}))})),i}},{key:"getSourceDataAtCell",value:function(e,t){var n=this._coordId(e,t);return oe(this.changes,n)?this.changes[n]:this.hot.getSourceDataAtCell(e,t)}},{key:"getSourceDataByRange",value:function(e,t,n,r){return this.hot.getSourceDataArray(e,t,n,r)}},{key:"getRawDataAtCell",value:function(e,t){return this.getSourceDataAtCell.apply(this,ZS(this.t.toPhysical(e,t)))}},{key:"getRawDataByRange",value:function(e,t,n,r){var o=this,i=[];return Ra(e,n,(function(e){var n=[];Ra(t,r,(function(t){var r,i,a=(r=o.t.toPhysical(e,t),i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=a[0],l=a[1],u=o._coordId(s,l);oe(o.changes,u)?n.push(o.changes[u]):n.push(o.getSourceDataAtCell(s,l))})),i.push(n)})),i}},{key:"updateSourceData",value:function(e,t,n){this.hot.getSourceData()[e][this.hot.colToProp(t)]=n}},{key:"_coordId",value:function(e,t){return"".concat(e,":").concat(t)}},{key:"destroy",value:function(){this.hot=null,this.changes=null,this.t=null}}],n&&eC(t.prototype,n),e}();const nC=tC;function rC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const oC=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.items=t}var t,n;return t=e,n=[{key:"push",value:function(){var e;(e=this.items).push.apply(e,arguments)}},{key:"pop",value:function(){return this.items.pop()}},{key:"peek",value:function(){return this.isEmpty()?void 0:this.items[this.items.length-1]}},{key:"isEmpty",value:function(){return!this.size()}},{key:"size",value:function(){return this.items.length}}],n&&rC(t.prototype,n),e}();function iC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var aC=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sheet=t,this.stack=new oC}var t,n;return t=e,n=[{key:"save",value:function(e,t,n){var r=this.sheet,o=r.matrix,i=r.dataProvider,a=[];P(o.data,(function(r){var o=r.row,s=r.column;if(r[e]<t||r[e]>t+(n-1)){var l=i.getSourceDataAtCell(o,s);a.push({row:o,column:s,value:l})}})),this.stack.push({axis:e,index:t,amount:n,changes:a})}},{key:"restore",value:function(){var e=this.sheet,t=e.matrix,n=e.dataProvider,r=this.stack.pop(),o=r.axis,i=r.index,a=r.amount,s=r.changes;s&&P(s,(function(e){e[o]>i+(a-1)&&(e[o]-=a);var r=e.row,s=e.column,l=e.value;n.getSourceDataAtCell(r,s)!==l&&(n.updateSourceData(r,s,l),t.getCellAt(r,s).setState(cS.STATE_OUT_OFF_DATE))}))}},{key:"destroy",value:function(){this.sheet=null,this.stack=null}}],n&&iC(t.prototype,n),e}();const sC=aC;function lC(e){return lC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lC(e)}function uC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hC(e,t,n){return hC="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fC(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},hC(e,t,n||e)}function fC(e){return fC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fC(e)}function dC(e,t){return dC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dC(e,t)}var mC=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==lC(t)&&"function"!=typeof t?cC(e):t}(this,fC(t).call(this,e))).eventManager=new Jr(cC(n)),n.dataProvider=new nC(n.hot),n.sheet=new QS(n.hot,n.dataProvider),n.undoRedoSnapshot=new sC(n.sheet),n._skipRendering=!1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dC(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().formulas}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().formulas;Q(n)&&Q(n.variables)&&ee(n.variables,(function(t,n){return e.setVariable(n,t)})),this.addHook("afterColumnSort",(function(){return e.onAfterColumnSort.apply(e,arguments)})),this.addHook("afterCreateCol",(function(){return e.onAfterCreateCol.apply(e,arguments)})),this.addHook("afterCreateRow",(function(){return e.onAfterCreateRow.apply(e,arguments)})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData()})),this.addHook("afterRemoveCol",(function(){return e.onAfterRemoveCol.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.apply(e,arguments)})),this.addHook("afterSetDataAtCell",(function(){return e.onAfterSetDataAtCell.apply(e,arguments)})),this.addHook("afterSetDataAtRowProp",(function(){return e.onAfterSetDataAtCell.apply(e,arguments)})),this.addHook("beforeColumnSort",(function(){return e.onBeforeColumnSort.apply(e,arguments)})),this.addHook("beforeCreateCol",(function(){return e.onBeforeCreateCol.apply(e,arguments)})),this.addHook("beforeCreateRow",(function(){return e.onBeforeCreateRow.apply(e,arguments)})),this.addHook("beforeRemoveCol",(function(){return e.onBeforeRemoveCol.apply(e,arguments)})),this.addHook("beforeRemoveRow",(function(){return e.onBeforeRemoveRow.apply(e,arguments)})),this.addHook("beforeValidate",(function(){return e.onBeforeValidate.apply(e,arguments)})),this.addHook("beforeValueRender",(function(){return e.onBeforeValueRender.apply(e,arguments)})),this.addHook("modifyData",(function(){return e.onModifyData.apply(e,arguments)})),this.sheet.addLocalHook("afterRecalculate",(function(){return e.onSheetAfterRecalculate.apply(e,arguments)})),hC(fC(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){hC(fC(t.prototype),"disablePlugin",this).call(this)}},{key:"getCellValue",value:function(e,t){var n=this.sheet.getCellAt(e,t);return n?n.getError()||n.getValue():void 0}},{key:"hasComputedCellValue",value:function(e,t){return null!==this.sheet.getCellAt(e,t)}},{key:"recalculate",value:function(){this.sheet.recalculate()}},{key:"recalculateFull",value:function(){this.sheet.recalculateFull()}},{key:"recalculateOptimized",value:function(){this.sheet.recalculateOptimized()}},{key:"setVariable",value:function(e,t){this.sheet.setVariable(e,t)}},{key:"getVariable",value:function(e){return this.sheet.getVariable(e)}},{key:"onSheetAfterRecalculate",value:function(e){if(this._skipRendering)this._skipRendering=!1;else{var t=this.hot;P(e,(function(e){var n=e.row,r=e.column;t.validateCell(t.getDataAtCell(n,r),t.getCellMeta(n,r),(function(){}))})),t.render()}}},{key:"onModifyData",value:function(e,t,n,r){"get"===r&&this.hasComputedCellValue(e,t)?n.value=this.getCellValue(e,t):"set"===r&&Kk(n.value)&&(n.value=$k(n.value))}},{key:"onBeforeValueRender",value:function(e){var t,n=e;return Jk(n)&&(n=Jk(t=n)?t.substr(1):t),n}},{key:"onBeforeValidate",value:function(e,t,n){var r=this.hot.propToCol(n),o=e;return this.hasComputedCellValue(t,r)&&(o=this.getCellValue(t,r)),o}},{key:"onAfterSetDataAtCell",value:function(e,t){var n=this;"loadData"!==t&&(this.dataProvider.clearChanges(),P(e,(function(e){var t,r,o=(r=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1],s=o[2],l=o[3],u=n.hot.propToCol(a),c=n.t.toPhysicalRow(i),h=l;Kk(h)&&(h=$k(h)),n.dataProvider.collectChanges(c,u,h),s!==h&&n.sheet.applyChanges(c,u,h)})),this.recalculate())}},{key:"onBeforeCreateRow",value:function(e,t,n){"UndoRedo.undo"===n&&this.undoRedoSnapshot.restore()}},{key:"onAfterCreateRow",value:function(e,t,n){this.sheet.alterManager.triggerAlter("insert_row",e,t,"UndoRedo.undo"!==n)}},{key:"onBeforeRemoveRow",value:function(e,t){this.undoRedoSnapshot.save("row",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.sheet.alterManager.triggerAlter("remove_row",e,t)}},{key:"onBeforeCreateCol",value:function(e,t,n){"UndoRedo.undo"===n&&this.undoRedoSnapshot.restore()}},{key:"onAfterCreateCol",value:function(e,t,n){this.sheet.alterManager.triggerAlter("insert_column",e,t,"UndoRedo.undo"!==n)}},{key:"onBeforeRemoveCol",value:function(e,t){this.undoRedoSnapshot.save("column",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.sheet.alterManager.triggerAlter("remove_column",e,t)}},{key:"onBeforeColumnSort",value:function(e,t){this.sheet.alterManager.prepareAlter("column_sorting",e,t)}},{key:"onAfterColumnSort",value:function(e,t){this.sheet.alterManager.triggerAlter("column_sorting",e,t)}},{key:"onAfterLoadData",value:function(){this._skipRendering=!0,this.recalculateFull()}},{key:"destroy",value:function(){this.dataProvider.destroy(),this.dataProvider=null,this.sheet.destroy(),this.sheet=null,hC(fC(t.prototype),"destroy",this).call(this)}}],r&&uC(n.prototype,r),t}(Rf);gu("formulas",mC);const pC=mC;function yC(e,t){return{name:e,days:7,daysBeforeFullWeeks:0,daysAfterFullWeeks:0,fullWeeks:1,index:t}}function vC(e,t){var n=gC(t[e].name),r=e>0?gC(t[e-1].name):null,o=gC(t[0].name),i=gC(t[t.length-1].name);return e>0?"".concat(r,"/").concat(n):e===t.length-1?"".concat(n,"/").concat(o):"".concat(i,"/").concat(n)}function gC(e){return e.substring(0,3)}function wC(e){return _C(Array.isArray(e)?e[1]:e.startDate)}function bC(e){return _C(Array.isArray(e)?e[2]:e.endDate)}function _C(e){var t=e;return null===t?null:t instanceof Date||"Invalid Date"!==(t=new Date(t)).toString()?t:null}function MC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function kC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var SC=function(){function e(t){var n=t.year,r=t.allowSplitWeeks,o=void 0===r||r,i=t.hideDaysBeforeFullWeeks,a=void 0!==i&&i,s=t.hideDaysAfterFullWeeks,l=void 0!==s&&s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.year=n,this.firstWeekDay="monday",this.allowSplitWeeks=o,this.hideDaysBeforeFullWeeks=a,this.hideDaysAfterFullWeeks=l,this.weekSectionCount=0,this.monthListCache={},this.daysInColumns={},this.calculateWeekStructure()}var t,n;return t=e,n=[{key:"setYear",value:function(e){this.year=e,this.monthListCache[e]=this.calculateMonthData(e),this.calculateWeekStructure(e)}},{key:"setFirstWeekDay",value:function(e){var t=e.toLowerCase();"monday"!==t&&"sunday"!==t&&Mr("First day of the week must be set to either Monday or Sunday"),this.firstWeekDay=t,this.calculateWeekStructure()}},{key:"countWeekSections",value:function(){return this.weekSectionCount}},{key:"getFirstWeekDay",value:function(){return this.firstWeekDay}},{key:"getYear",value:function(){return this.year}},{key:"getMonthList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.year;return this.monthListCache[e]||(this.monthListCache[e]=this.calculateMonthData(e)),this.monthListCache[e]}},{key:"getFullMonthList",value:function(){return this.monthListCache}},{key:"dateToColumn",value:function(e){var t=_C(e);if(!t)return!1;var n=t.getMonth(),r=t.getDate()-1,o=t.getFullYear();return this.getWeekColumn(r,n,o)}},{key:"getWeekColumn",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getYear(),r=null;return P(this.getMonthCacheArray(t,n),(function(t){if(ee(t,(function(t,n){if(t.indexOf(e+1)>-1)return r=parseInt(n,10),!1})),r)return!1})),r}},{key:"getMonthCacheArray",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getYear(),r=this.getMonthList(n),o=[];if(this.allowSplitWeeks)o.push(this.daysInColumns[n][e]);else{var i=-1;ee(this.daysInColumns[n],(function(a,s){var l=r[s];if(Object.keys(a).length>1&&(i+=1),i===e)return l.daysBeforeFullWeeks>0&&o.push(t.daysInColumns[n][parseInt(s,10)-1]),o.push(a),l.daysAfterFullWeeks>0&&o.push(t.daysInColumns[n][parseInt(s,10)+1]),!1}))}return o}},{key:"columnToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getYear(),n=null;ee(this.daysInColumns[t],(function(t,r){if(t[e])return n=r,!1}));var r=this.daysInColumns[t][n][e];if(1===r.length){var o=new Date(t,n,r[0]);return{start:o,end:o}}return{start:new Date(t,n,r[0]),end:new Date(t,n,r[r.length-1])}}},{key:"isOnTheEdgeOfWeek",value:function(e){var t=this,n=_C(e);if(!n)return null;var r=n.getMonth(),o=n.getDate()-1,i=n.getFullYear(),a=this.getMonthCacheArray(r,i),s=!1;return P(a,(function(e){if(ee(e,(function(e){if(!t.allowSplitWeeks&&7!==e.length&&(0===o||o===new Date(n.getYear(),n.getMonth()+1,0).getDate()-1))return!0;var r=e.indexOf(o+1);return 0===r?(s=[1,0],!1):r===e.length-1?(s=[0,1],!1):void 0})),s)return!1})),s}},{key:"generateHeaderSet",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.year,o=this.getMonthList(r),i=[];return ee(o,(function(o,a){var s=o.daysBeforeFullWeeks>0?1:0,l=o.daysAfterFullWeeks>0?1:0,u=n.hideDaysBeforeFullWeeks?0:s,c=n.hideDaysAfterFullWeeks?0:l,h=o.fullWeeks+(n.allowSplitWeeks?u+c:0),f=parseInt(a,10),d="";if("months"===e)i.push({label:o.name,colspan:h});else if("weeks"===e)for(var m=0;m<h;m++){var p=null,y=null;if(n.allowSplitWeeks||1!==o.fullWeeks){var v=MC(n.getWeekColumnRange({monthObject:o,monthNumber:f,headerIndex:m,areDaysBeforeFullWeeksVisible:u,areDaysAfterFullWeeksVisible:c,headerCount:h,year:r}),2);p=v[0],y=v[1]}else{var g=MC(n.getWeekColumnRange({monthObject:o,monthNumber:f,headerIndex:m,headerCount:h,areDaysBeforeFullWeeksVisible:u,areDaysAfterFullWeeksVisible:c,mixedMonth:!0,year:r}),2);p=g[0],y=g[1]}d=p===y?"".concat(p):"".concat(p," - ").concat(y),i.push(t?t.call(n,p,y):d),n.addDaysToCache(f,i.length-1,p,y,r)}})),i}},{key:"getWeekColumnRange",value:function(e){var t=e.monthObject,n=e.monthNumber,r=e.headerIndex,o=e.headerCount,i=e.areDaysBeforeFullWeeksVisible,a=e.areDaysAfterFullWeeksVisible,s=e.mixedMonth,l=void 0!==s&&s,u=e.year,c=void 0===u?this.year:u,h=this.getMonthList(c),f=this.allowSplitWeeks,d=null,m=null;return l?0===n?d=31-(7-(m=h[n+1].daysBeforeFullWeeks))+1:n===h.length-1?(m=7-h[n-1].daysAfterFullWeeks,d=h[n-1].days-h[n-1].daysAfterFullWeeks+1):(m=h[n+1].daysBeforeFullWeeks,d=h[n-1].days-(7-m)+1):f&&i&&0===r?(d=r+1,m=t.daysBeforeFullWeeks):f&&a&&r===o-1?(d=t.days-t.daysAfterFullWeeks+1,m=t.days):(d=null,m=(d=f?t.daysBeforeFullWeeks+7*(r-i)+1:t.daysBeforeFullWeeks+7*r+1)+7-1),[d,m]}},{key:"addDaysToCache",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getYear();if(this.daysInColumns[o]||(this.daysInColumns[o]={}),this.daysInColumns[o][e]||(this.daysInColumns[o][e]={}),this.daysInColumns[o][e][t]||(this.daysInColumns[o][e][t]=[]),n<=r)for(var i=n;i<=r;i++)this.daysInColumns[o][e][t].push(i);else{for(var a=e-1>=0?this.countMonthDays(e):31,s=n;s<=a;s++)this.daysInColumns[o][e][t].push(s);for(var l=1;l<=r;l++)this.daysInColumns[o][e][t].push(l)}}},{key:"isValidRangeBarData",value:function(e,t){var n=_C(e),r=_C(t);return n&&r&&n.getTime()<=r.getTime()}},{key:"calculateMonthData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.year;return[{name:"January",days:31},{name:"February",days:new Date(e,2,0).getDate()},{name:"March",days:31},{name:"April",days:30},{name:"May",days:31},{name:"June",days:30},{name:"July",days:31},{name:"August",days:31},{name:"September",days:30},{name:"October",days:31},{name:"November",days:30},{name:"December",days:31}].slice(0)}},{key:"countMonths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getYear();return this.monthListCache[e].length}},{key:"countMonthDays",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getYear();return this.monthListCache[t][e-1].days}},{key:"countMonthFullWeeks",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getYear();return this.monthListCache[t][e-1].fullWeeks}},{key:"calculateWeekStructure",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getYear();this.monthListCache[t]=this.calculateMonthData(t);var n=this.getFirstWeekDay(),r=this.getMonthList(t),o=[],i=this.hideDaysBeforeFullWeeks?0:1,a=this.hideDaysAfterFullWeeks?0:1,s=0,l=0;"monday"===n&&(s=1),P(r,(function(n,u){var c=new Date(t,u,1).getDay(),h=0;if(n.daysBeforeFullWeeks=(7-c+s)%7,!e.allowSplitWeeks&&n.daysBeforeFullWeeks&&(o.push(yC(vC(u,r),u)),h+=1),n.fullWeeks=Math.floor((n.days-n.daysBeforeFullWeeks)/7),n.daysAfterFullWeeks=n.days-n.daysBeforeFullWeeks-7*n.fullWeeks,e.allowSplitWeeks){var f=i*(n.daysBeforeFullWeeks?1:0),d=a*(n.daysAfterFullWeeks?1:0);l+=n.fullWeeks+f+d}else u===r.length-1&&n.daysAfterFullWeeks&&(o.push(yC(vC(u,r),null)),h+=1),l+=n.fullWeeks+h})),P(o,(function(n,r){var o=n.index;delete n.index,e.addMixedMonth(null===o?o:r+o,n,t)})),t===this.getYear()&&(this.weekSectionCount=l)}},{key:"addMixedMonth",value:function(e,t,n){null===e?this.monthListCache[n].push(t):this.monthListCache[n].splice(e,0,t)}}],n&&kC(t.prototype,n),e}();const CC=SC;function TC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var EC=function(){function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=n,this.chartInstance=t,this.chartPlugin=this.chartInstance.getPlugin("ganttChart"),this.hotSource=null,this.sourceHooks={},this.ongoingAsync=!1,this.applyData(n,r,o,i,a||!1)}var t,n;return t=e,n=[{key:"applyData",value:function(e,t,n,r,o){if("[object Array]"===Object.prototype.toString.call(e))e.length>1&&this.chartInstance.alter("insert_row",0,e.length-1,"".concat(this.pluginName,".loadData")),this.loadData(e);else if(e instanceof this.chartInstance.constructor){var i=e.countRows();i>1&&this.chartInstance.alter("insert_row",0,i-1,"".concat(this.pluginName,".loadData")),this.bindWithHotInstance(e,t,n,r,o)}}},{key:"bindWithHotInstance",value:function(e,t,n,r,o){this.hotSource={instance:e,startColumn:t,endColumn:n,additionalData:r,asyncUpdates:o},this.addSourceHotHooks(),this.asyncCall(this.updateFromSource)}},{key:"asyncCall",value:function(e){var t=this;this.hotSource.asyncUpdates?(this.asyncStart(),setTimeout((function(){e.call(t),t.asyncEnd()}),0)):e.call(this)}},{key:"asyncStart",value:function(){this.ongoingAsync=!0}},{key:"asyncEnd",value:function(){this.ongoingAsync=!1}},{key:"addSourceHotHooks",value:function(){var e=this;this.sourceHooks={afterLoadData:function(){return e.onAfterSourceLoadData()},afterChange:function(t){return e.onAfterSourceChange(t)},afterColumnSort:function(){return e.onAfterColumnSort()}},this.hotSource.instance.addHook("afterLoadData",this.sourceHooks.afterLoadData),this.hotSource.instance.addHook("afterChange",this.sourceHooks.afterChange),this.hotSource.instance.addHook("afterColumnSort",this.sourceHooks.afterColumnSort)}},{key:"removeSourceHotHooks",value:function(e){this.sourceHooks.afterLoadData&&e.instance.removeHook("afterLoadData",this.sourceHooks.afterLoadData),this.sourceHooks.afterChange&&e.instance.removeHook("afterChange",this.sourceHooks.afterChange),this.sourceHooks.afterColumnSort&&e.instance.removeHook("afterColumnSort",this.sourceHooks.afterColumnSort)}},{key:"getDataFromSource",value:function(e){var t,n={},r=this.hotSource,o=[];void 0===e?t=r.instance.getData(0,0,r.instance.countRows()-1,r.instance.countCols()-1):(t=[])[e]=r.instance.getDataAtRow(e);for(var i=function(e,i){n={};var a=t[e];if(null===a[r.startColumn]||""===a[r.startColumn])return"continue";ee(r.additionalData,(function(e,t){n[t]=a[e]})),o.push([e,a[r.startColumn],a[r.endColumn],n,e])},a=e||0,s=t.length;a<(e?e+1:s);a++)i(a);return o}},{key:"updateFromSource",value:function(e){var t=this.getDataFromSource(e);!e&&isNaN(e)&&(this.chartPlugin.clearRangeBars(),this.chartPlugin.clearRangeList()),this.loadData(t),this.chartInstance.render()}},{key:"loadData",value:function(e){var t=this,n=[];P(e,(function(e,r){e.row=r;var o=t.splitRangeIfNeeded(e);n=n.concat(o)})),P(n,(function(e){var n;t.chartPlugin.addRangeBar(e.row,wC(e),bC(e),(n=e,Array.isArray(n)?n[3]:n.additionalData)),delete e.row}))}},{key:"splitRangeIfNeeded",value:function(e){var t=[],n=new Date(wC(e)),r=new Date(bC(e));if("string"==typeof n||"string"==typeof r)return!1;var o=n.getFullYear(),i=r.getFullYear();return o===i?[e]:(Ra(o,i,(function(n){var r=K(e);n!==o&&function(e,t){Array.isArray(e)?e[1]=t:e.startDate=t}(r,"01/01/".concat(n)),n!==i&&function(e,t){Array.isArray(e)?e[2]=t:e.endDate=t}(r,"12/31/".concat(n)),t.push(r)})),t)}},{key:"onAfterSourceChange",value:function(e){var t=this;this.asyncCall((function(){if(e){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r],a=parseInt(i[0],10),s=parseInt(i[1],10);n[a]||(n[a]={}),n[a][s]=[i[2],i[3]]}ee(n,(function(e,n){var r=parseInt(n,10);t.chartPlugin.getRangeBarCoordinates(r)&&t.chartPlugin.removeRangeBarByColumn(r,t.chartPlugin.rangeList[r][1]),t.updateFromSource(n)}))}}))}},{key:"onAfterSourceLoadData",value:function(){var e=this;this.asyncCall((function(){e.chartPlugin.removeAllRangeBars(),e.updateFromSource()}))}},{key:"onAfterColumnSort",value:function(){var e=this;this.asyncCall((function(){e.chartPlugin.removeAllRangeBars(),e.updateFromSource()}))}}],n&&TC(t.prototype,n),e}();const OC=EC;function RC(e){return RC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RC(e)}function LC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DC(e,t,n){return DC="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=AC(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},DC(e,t,n||e)}function AC(e){return AC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},AC(e)}function HC(e,t){return HC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},HC(e,t)}var NC=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==RC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,AC(t).call(this,e))).settings={},n.dateCalculator=null,n.currentYear=null,n.monthList=[],n.monthHeadersArray=[],n.weekHeadersArray=[],n.rangeBars={},n.rangeList={},n.nestedHeadersPlugin=null,n.hotSource=null,n.overallWeekSectionCount=null,n.initialSettings=null,n.dataFeed=null,n.colorData={},n.rangeBarMeta=Object.create(null),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&HC(e,t)}(t,e),n=t,r=[{key:"checkDependencies",value:function(){this.hot.getSettings().colHeaders||Mr("You need to enable the colHeaders property in your Gantt Chart Handsontable in order for it to work properly.")}},{key:"isEnabled",value:function(){return!!this.hot.getSettings().ganttChart}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.checkDependencies(),this.parseSettings(),this.currentYear=this.settings.startYear||(new Date).getFullYear(),this.dateCalculator=new CC({year:this.currentYear,allowSplitWeeks:this.settings.allowSplitWeeks,hideDaysBeforeFullWeeks:this.settings.hideDaysBeforeFullWeeks,hideDaysAfterFullWeeks:this.settings.hideDaysAfterFullWeeks}),this.dateCalculator.setFirstWeekDay(this.settings.firstWeekDay),this.monthList=this.dateCalculator.getMonthList(),this.monthHeadersArray=this.generateMonthHeaders(),this.weekHeadersArray=this.generateWeekHeaders(),this.overallWeekSectionCount=this.dateCalculator.countWeekSections(),this.assignGanttSettings(),this.nestedHeadersPlugin&&(this.applyDataSource(),this.colorData&&this.setRangeBarColors(this.colorData)),this.addHook("afterInit",(function(){return e.onAfterInit()})),wt(this.hot.rootElement,"ganttChart"),DC(AC(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.internalUpdateSettings||(this.dataFeed&&this.dataFeed.hotSource&&this.dataFeed.removeSourceHotHooks(this.dataFeed.hotSource),this.settings={},this.dataFeed={},this.currentYear=null,this.monthList=[],this.rangeBars={},this.rangeList={},this.rangeBarMeta={},this.hotSource=null,this.deassignGanttSettings(),bt(this.hot.rootElement,"ganttChart"),DC(AC(t.prototype),"disablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),DC(AC(t.prototype),"updatePlugin",this).call(this)}},{key:"parseSettings",value:function(){this.settings=this.hot.getSettings().ganttChart,"boolean"==typeof this.settings&&(this.settings={}),this.settings.firstWeekDay||(this.settings.firstWeekDay="monday"),void 0===this.settings.allowSplitWeeks&&(this.settings.allowSplitWeeks=!0),"function"!=typeof this.settings.weekHeaderGenerator&&(this.settings.weekHeaderGenerator=null)}},{key:"applyDataSource",value:function(){if(this.settings.dataSource){var e=this.settings.dataSource;e.instance?this.loadData(e.instance,e.startDateColumn,e.endDateColumn,e.additionalData,e.asyncUpdates):this.loadData(e)}}},{key:"loadData",value:function(e,t,n,r,o){this.dataFeed=new OC(this.hot,e,t,n,r,o),this.hot.render()}},{key:"clearRangeBars",value:function(){this.rangeBars={}}},{key:"clearRangeList",value:function(){this.rangeList={}}},{key:"getRangeBarCoordinates",value:function(e){return this.rangeList[e]}},{key:"generateMonthHeaders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentYear;return this.dateCalculator.generateHeaderSet("months",this.settings.weekHeaderGenerator,e)}},{key:"generateWeekHeaders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentYear;return this.dateCalculator.generateHeaderSet("weeks",this.settings.weekHeaderGenerator,e)}},{key:"assignGanttSettings",value:function(){var e=this;this.initialSettings=X(this.hot.getSettings());var t={data:Jl(1,this.overallWeekSectionCount),readOnly:!0,renderer:function(t,n,r,o,i,a,s){return e.uniformBackgroundRenderer(t,n,r,o,i,a,s)},colWidths:60,hiddenColumns:!this.hot.getSettings().hiddenColumns||this.hot.getSettings().hiddenColumns,nestedHeaders:[this.monthHeadersArray.slice(),this.weekHeadersArray.slice()],collapsibleColumns:!this.hot.getSettings().collapsibleColumns||this.hot.getSettings().collapsibleColumns,columnSorting:!1,copyPaste:!1};this.internalUpdateSettings=!0,this.hot.updateSettings(t),this.internalUpdateSettings=void 0}},{key:"deassignGanttSettings",value:function(){this.internalUpdateSettings=!0,this.initialSettings&&this.hot.updateSettings(this.initialSettings),this.internalUpdateSettings=void 0}},{key:"cacheRangeBarMeta",value:function(e,t,n,r){this.rangeBarMeta[e]||(this.rangeBarMeta[e]={}),this.rangeBarMeta[e][t]||(this.rangeBarMeta[e][t]={}),this.rangeBarMeta[e][t][n]=r}},{key:"applyRangeBarMetaCache",value:function(){var e=this;ee(this.rangeBarMeta,(function(t,n){ee(t,(function(t,r){ee(t,(function(t,o){e.hot.setCellMeta(n,r,o,t)}))}))}))}},{key:"getAdjacentWeekColumn",value:function(e,t,n){var r=_C(e),o=!0===n?-7:7,i=r.setDate(r.getDate()+o);return this.dateCalculator.dateToColumn(i)}},{key:"addRangeBar",value:function(e,t,n,r){var o=this;null!==t&&null!==n&&this.prepareDaysInColumnsInfo(_C(t),_C(n));var i,a=this.dateCalculator.dateToColumn(t),s=this.dateCalculator.dateToColumn(n),l=(i=_C(t))?i.getFullYear():null,u=!1,c=!1;return null===a&&this.settings.hideDaysBeforeFullWeeks&&!1!==(a=this.getAdjacentWeekColumn(t,!0,!1))&&(u=!0),null===s&&this.settings.hideDaysAfterFullWeeks&&!1!==(s=this.getAdjacentWeekColumn(n,!1,!0))&&(c=!0),!(!this.dateCalculator.isValidRangeBarData(t,n)||!1===a||!1===s)&&(this.rangeBars[l]||(this.rangeBars[l]={}),this.rangeBars[l][e]||(this.rangeBars[l][e]={}),this.rangeBars[l][e][a]={barLength:s-a+1,partialStart:!u&&!this.dateCalculator.isOnTheEdgeOfWeek(t)[0],partialEnd:!c&&!this.dateCalculator.isOnTheEdgeOfWeek(n)[1],additionalData:{}},ee(r,(function(t,n){o.rangeBars[l][e][a].additionalData[n]=t})),l===this.dateCalculator.getYear()&&(this.colorData[e]&&(this.rangeBars[l][e][a].colors=this.colorData[e]),this.rangeList[e]=[e,a],this.renderRangeBar(e,a,s,r)),[e,a])}},{key:"prepareDaysInColumnsInfo",value:function(e,t){for(var n=e.getFullYear();n<=t.getFullYear();n++)void 0===this.dateCalculator.daysInColumns[n]&&(this.dateCalculator.calculateWeekStructure(n),this.dateCalculator.generateHeaderSet("weeks",null,n))}},{key:"getRangeBarData",value:function(e,t){var n=this.dateCalculator.getYear(),r=this.getRangeBarCoordinates(e);if(!r)return!1;var o=this.rangeBars[n][r[0]][r[1]];return!(!o||e!==r[0]||!(t===r[1]||t>r[1]&&t<r[1]+o.barLength))&&o}},{key:"updateRangeBarData",value:function(e,t,n){var r=this.getRangeBarData(e,t);ee(n,(function(e,t){r[t]!==e&&(r[t]=e)}))}},{key:"renderRangeBar",value:function(e,t,n){for(var r=this.dateCalculator.getYear(),o=this.rangeBars[r][e][t],i=t;i<=n;i++){var a=this.hot.getCellMeta(e,i),s="".concat(a.className||""," rangeBar");(i===t&&o.partialStart||i===n&&o.partialEnd)&&(s+=" partial"),i===n&&(s+=" last"),this.hot.setCellMeta(e,i,"originalClassName",a.className),this.hot.setCellMeta(e,i,"className",s),this.hot.setCellMeta(e,i,"additionalData",o.additionalData),this.cacheRangeBarMeta(e,i,"originalClassName",a.className),this.cacheRangeBarMeta(e,i,"className",s),this.cacheRangeBarMeta(e,i,"additionalData",o.additionalData)}}},{key:"removeRangeBarByDate",value:function(e,t){var n=this.dateCalculator.dateToColumn(t);this.removeRangeBarByColumn(e,n)}},{key:"removeRangeBarByColumn",value:function(e,t){var n=this,r=this.dateCalculator.getYear(),o=this.rangeBars[r][e][t];o&&(this.unrenderRangeBar(e,t,t+o.barLength-1),this.rangeBars[r][e][t]=null,ee(this.rangeList,(function(r,o){var i=parseInt(o,10);JSON.stringify(r)===JSON.stringify([e,t])&&(n.rangeList[i]=null)})))}},{key:"removeAllRangeBars",value:function(){var e=this;ee(this.rangeBars,(function(t,n){ee(t,(function(t,r){e.removeRangeBarByColumn(n,r)}))}))}},{key:"unrenderRangeBar",value:function(e,t,n){for(var r=t;r<=n;r++){var o=this.hot.getCellMeta(e,r);this.hot.setCellMeta(e,r,"className",o.originalClassName),this.hot.setCellMeta(e,r,"originalClassName",void 0),this.cacheRangeBarMeta(e,r,"className",o.originalClassName),this.cacheRangeBarMeta(e,r,"originalClassName",void 0)}this.hot.render()}},{key:"uniformBackgroundRenderer",value:function(e,t,n,r,o,i,a){var s=this.getRangeBarData(n,r),l=this.getRangeBarCoordinates(n);t.innerHTML="",a.className&&(t.className=a.className);var u="";ee(a.additionalData,(function(e,t){u+="".concat(t,": ").concat(e,"\n")})),u=u.replace(/\n$/,""),t.title=u,s&&s.colors?r===l[1]&&s.partialStart||r===l[1]+s.barLength-1&&s.partialEnd?t.style.background=s.colors[1]:t.style.background=s.colors[0]:t.style.background=""}},{key:"setRangeBarColors",value:function(e){var t=this;this.colorData=e,ee(e,(function(e,n){var r=t.getRangeBarCoordinates(n);r&&t.updateRangeBarData(r[0],r[1],{colors:e})})),this.hot.render()}},{key:"setYear",value:function(e){var t=G(this.hot.getSettings().ganttChart,{startYear:e});this.hot.updateSettings({ganttChart:t})}},{key:"onAfterInit",value:function(){this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.applyDataSource()}},{key:"onUpdateSettings",value:function(){this.internalUpdateSettings?this.applyRangeBarMetaCache():DC(AC(t.prototype),"onUpdateSettings",this).call(this)}},{key:"destroy",value:function(){this.hotSource&&this.dataFeed.removeSourceHotHooks(this.hotSource),DC(AC(t.prototype),"destroy",this).call(this)}}],r&&LC(n.prototype,r),t}(Rf);gu("ganttChart",NC);const PC=NC;function xC(e){return xC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xC(e)}function YC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IC(e,t,n){return IC="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jC(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},IC(e,t,n||e)}function jC(e){return jC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jC(e)}function FC(e,t){return FC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},FC(e,t)}var WC=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==xC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,jC(t).call(this,e))).settings=null,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FC(e,t)}(t,e),n=t,(r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().headerTooltips}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().headerTooltips,this.parseSettings(),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetHeader(t,n)})),this.addHook("afterGetRowHeader",(function(t,n){return e.onAfterGetHeader(t,n)})),IC(jC(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.settings=null,this.clearTitleAttributes(),IC(jC(t.prototype),"disablePlugin",this).call(this)}},{key:"parseSettings",value:function(){"boolean"==typeof this.settings&&(this.settings={rows:!0,columns:!0,onlyTrimmed:!1})}},{key:"clearTitleAttributes",value:function(){var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view.wt.wtOverlays.topLeftCornerOverlay,o=r?r.clone.wtTable.THEAD:null;Ra(0,e-1,(function(e){var r=t.childNodes[e],i=n.childNodes[e],a=o?o.childNodes[e]:null;Ra(0,r.childNodes.length-1,(function(e){r.childNodes[e].removeAttribute("title"),i&&i.childNodes[e]&&i.childNodes[e].removeAttribute("title"),o&&a&&a.childNodes[e]&&a.childNodes[e].removeAttribute("title")}))}))}},{key:"onAfterGetHeader",value:function(e,t){var n=t.querySelector("span"),r="THEAD"===t.parentNode.parentNode.nodeName;(r&&this.settings.columns||!r&&this.settings.rows)&&(this.settings.onlyTrimmed?Yt(n)>=Yt(t)&&0!==Yt(n)&&t.setAttribute("title",n.textContent):t.setAttribute("title",n.textContent))}},{key:"destroy",value:function(){this.settings=null,IC(jC(t.prototype),"destroy",this).call(this)}}])&&YC(n.prototype,r),t}(Rf);gu("headerTooltips",WC);const BC=WC;function VC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var UC=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nestedHeaders=t,this.container=void 0,this.widthsCache=[]}var t,n;return t=e,n=[{key:"buildWidthsMapper",value:function(){this.container=this.nestedHeaders.hot.rootDocument.createElement("div"),this.buildGhostTable(this.container),this.nestedHeaders.hot.rootElement.appendChild(this.container);for(var e=this.container.querySelectorAll("tr:last-of-type th"),t=e.length,n=0;n<t;n++)this.widthsCache.push(e[n].offsetWidth);this.container.parentNode.removeChild(this.container),this.container=null,this.nestedHeaders.hot.render()}},{key:"buildGhostTable",value:function(e){for(var t=this.nestedHeaders.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=!1,i=!!this.nestedHeaders.hot.getSettings().dropdownMenu,a=this.nestedHeaders.colspanArray.length,s=this.nestedHeaders.hot.countCols(),l=a-1,u=0;u<a;u++){var c=t.createElement("tr");o=!1;for(var h=0;h<s;h++){var f=t.createElement("th"),d=K(this.nestedHeaders.colspanArray[u][h]);d&&!d.hidden&&(u===l&&(d.colspan>1&&(o=!0),i&&(d.label+='<button class="changeType"></button>')),Ct(f,d.label),f.colSpan=d.colspan,c.appendChild(f))}r.appendChild(c)}if(o){for(var m=t.createElement("tr"),p=0;p<s;p++){var y=t.createElement("th");m.appendChild(y)}r.appendChild(m)}n.appendChild(r),e.appendChild(n)}},{key:"clear",value:function(){this.container=null,this.widthsCache.length=0}}],n&&VC(t.prototype,n),e}();const zC=UC;function GC(e){return GC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GC(e)}function qC(){var e=KC(["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\n is currently not supported and might result in glitches."]);return qC=function(){return e},e}function XC(){var e=KC(["You have declared a Nested Header overlapping the Fixed Columns section - it may lead to visual\n glitches. To prevent that kind of problems, split the nested headers between the fixed and non-fixed columns."]);return XC=function(){return e},e}function KC(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function JC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QC(e,t,n){return QC="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ZC(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},QC(e,t,n||e)}function ZC(e){return ZC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ZC(e)}function eT(e,t){return eT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eT(e,t)}var tT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==GC(t)&&"function"!=typeof t?$C(e):t}(this,ZC(t).call(this,e))).settings=[],n.columnHeaderLevelCount=0,n.colspanArray=[],n.ghostTable=new zC($C(n)),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eT(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedHeaders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().nestedHeaders,this.addHook("afterGetColumnHeaderRenderers",(function(t){return e.onAfterGetColumnHeaderRenderers(t)})),this.addHook("afterInit",(function(){return e.onAfterInit()})),this.addHook("afterOnCellMouseDown",(function(t,n){return e.onAfterOnCellMouseDown(t,n)})),this.addHook("beforeOnCellMouseOver",(function(t,n,r,o){return e.onBeforeOnCellMouseOver(t,n,r,o)})),this.addHook("afterViewportColumnCalculatorOverride",(function(t){return e.onAfterViewportColumnCalculatorOverride(t)})),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.setupColspanArray(),this.checkForFixedColumnsCollision(),this.columnHeaderLevelCount=this.hot.view?this.hot.view.wt.getSetting("columnHeaders").length:0,QC(ZC(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearColspans(),this.settings=[],this.columnHeaderLevelCount=0,this.colspanArray=[],this.ghostTable.clear(),QC(ZC(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),QC(ZC(t.prototype),"updatePlugin",this).call(this),this.ghostTable.buildWidthsMapper()}},{key:"clearColspans",value:function(){if(this.hot.view)for(var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,o=0;o<e;o++){var i=t.childNodes[o];if(!i)break;for(var a=n.childNodes[o],s=r?r.childNodes[o]:null,l=0,u=i.childNodes.length;l<u;l++)i.childNodes[l].removeAttribute("colspan"),a&&a.childNodes[l]&&a.childNodes[l].removeAttribute("colspan"),r&&s&&s.childNodes[l]&&s.childNodes[l].removeAttribute("colspan")}}},{key:"checkForFixedColumnsCollision",value:function(){var e=this,t=this.hot.getSettings().fixedColumnsLeft;P(this.colspanArray,(function(n,r){e.getNestedParent(r,t)!==t&&Mr(Jn(XC()))}))}},{key:"checkForOverlappingHeaders",value:function(){var e=this;P(this.colspanArray,(function(t,n){P(e.colspanArray[n],(function(t,r){if(t.colspan>1){var o=e.levelToRowCoords(n),i=e.getChildHeaders(o,r);if(i.length>0){var a=0;return P(i,(function(t){a+=e.getColspan(o+1,t)})),a>t.colspan&&Mr(Jn(qC())),!1}}}))}))}},{key:"setupColspanArray",value:function(){var e=this;ee(this.settings,(function(t,n){ee(t,(function(t,r,o){if(function(e,t){e[t]||(e[t]=[])}(e.colspanArray,n),void 0===o[r].colspan)e.colspanArray[n].push({label:o[r]||"",colspan:1,hidden:!1});else{var i=o[r].colspan||1;e.colspanArray[n].push({label:o[r].label||"",colspan:i,hidden:!1}),e.fillColspanArrayWithDummies(i,n)}}))}))}},{key:"fillColspanArrayWithDummies",value:function(e,t){var n=this;Ra(0,e-2,(function(){n.colspanArray[t].push({label:"",colspan:1,hidden:!0})}))}},{key:"headerRendererFactory",value:function(e){var t=this;return function(n,r){var o=t.hot.rootDocument;if(r.removeAttribute("colspan"),bt(r,"hiddenHeader"),t.colspanArray[e][n]&&t.colspanArray[e][n].colspan){var i=t.colspanArray[e][n].colspan,a=t.hot.getSettings().fixedColumnsLeft||0,s=t.hot.view.wt.wtOverlays,l=s.leftOverlay,u=s.topLeftCornerOverlay,c=!!u&&u.clone.wtTable.THEAD.contains(r),h=!!l&&l.clone.wtTable.THEAD.contains(r);i>1&&r.setAttribute("colspan",c||h?Math.min(i,a-n):i),(c||h&&n===a-1)&&wt(r,"overlayEdge")}t.colspanArray[e][n]&&t.colspanArray[e][n].hidden&&wt(r,"hiddenHeader"),Mt(r);var f=o.createElement("DIV");wt(f,"relative");var d=o.createElement("SPAN");wt(d,"colHeader"),Ct(d,t.colspanArray[e][n]&&t.colspanArray[e][n].label||""),f.appendChild(d),r.appendChild(f),t.hot.runHooks("afterGetColHeader",n,r)}}},{key:"getColspan",value:function(e,t){var n=this.colspanArray[this.rowCoordsToLevel(e)][t];return n?n.colspan:1}},{key:"levelToRowCoords",value:function(e){return e-this.columnHeaderLevelCount}},{key:"rowCoordsToLevel",value:function(e){return e+this.columnHeaderLevelCount}},{key:"getNestedParent",value:function(e,t){if(e<0)return!1;var n=this.colspanArray[e][t]?this.colspanArray[e][t].colspan:1,r=!!this.colspanArray[e][t]&&this.colspanArray[e][t].hidden;if(n>1||1===n&&!1===r)return t;var o=t-1;do{if(this.colspanArray[e][o].colspan>1)break;o-=1}while(t>=0);return o}},{key:"getChildHeaders",value:function(e,t){var n=this.rowCoordsToLevel(e),r=this.colspanArray[n+1],o=this.getNestedParent(n,t),i=this.colspanArray[n][t].colspan,a=[];return r?(Ra(o,o+i-1,(function(e){r[e]&&r[e].colspan>1&&(i-=r[e].colspan-1),r[e]&&!r[e].hidden&&-1===a.indexOf(e)&&a.push(e)})),a):a}},{key:"fillTheRemainingColspans",value:function(){var e=this;ee(this.settings,(function(t,n){Ra(e.colspanArray[n].length-1,e.hot.countCols()-1,(function(r){e.colspanArray[n].push({label:t[r]||"",colspan:1,hidden:!1})}))}))}},{key:"updateHeadersHighlight",value:function(){var e=this,t=this.hot.getSelectedLast();if(void 0!==t){var n=this.hot.view.wt.wtOverlays,r=this.hot.selection.isSelectedByColumnHeader(),o=Math.min(t[1],t[3]),i=Math.max(t[1],t[3]),a=r?-1:this.columnHeaderLevelCount-1,s=[],l=function(e){return function(t,n){return function(){return n(t,e)}}},u=l("ht__highlight"),c=l("ht__active_highlight");Ra(o,i,(function(t){for(var l=function(l){var h=e.getNestedParent(l,t),f=[n.topOverlay?n.topOverlay.clone.wtTable.getColumnHeader(h,l):void 0,n.topLeftCornerOverlay?n.topLeftCornerOverlay.clone.wtTable.getColumnHeader(h,l):void 0],d=e.getColspan(l-e.columnHeaderLevelCount,h),m=h>=o&&h+d-1<=i;P(f,(function(e){if(void 0===e)return!1;!r&&l<a||r&&!m?(s.push(u(e,bt)),r&&s.push(c(e,bt))):(s.push(u(e,wt)),r&&s.push(c(e,wt)))}))},h=e.columnHeaderLevelCount-1;h>-1;h--)l(h)})),P(s,(function(e){e()})),s.length=0}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t=this,n=e.startColumn;Ra(0,Math.max(this.columnHeaderLevelCount-1,0),(function(r){var o=t.getNestedParent(r,e.startColumn);o<e.startColumn&&(n=Math.min(n,o))})),e.startColumn=n}},{key:"onAfterOnCellMouseDown",value:function(e,t){if(t.row<0){var n=this.getColspan(t.row,t.col),r=t.col+n-1;if(n>1){var o=this.hot.countRows()-1;this.hot.selection.setRangeEnd(new Me(o,r))}}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){if(!(t.row>=0||t.col<0)&&this.hot.view.isMouseDown()){var o=this.hot.getSelectedRangeLast(),i=o.from,a=o.to,s=this.getColspan(t.row,t.col),l=t.col+s-1,u=!1;if(i.col<=a.col?(t.col<i.col&&l===a.col||t.col<i.col&&l<i.col||t.col<i.col&&l>=i.col&&l<a.col)&&(u=!0):(t.col<a.col&&l>i.col||t.col>i.col||t.col<=a.col&&l>i.col||t.col>a.col&&l>i.col)&&(u=!0),u){var c=[a.col,i.col];i.col=c[0],a.col=c[1]}if(s>1){var h;r.column=!0,r.cell=!0;var f=[];i.col===a.col&&(l<=i.col&&t.col<i.col?f.push(a.col,t.col):f.push(t.col<i.col?t.col:i.col,l>a.col?l:a.col)),i.col<a.col&&f.push(t.col<i.col?t.col:i.col,l),i.col>a.col&&f.push(i.col,t.col),(h=this.hot).selectColumns.apply(h,f)}}}},{key:"onAfterInit",value:function(){this.columnHeaderLevelCount=this.hot.view.wt.getSetting("columnHeaders").length,this.fillTheRemainingColspans(),this.checkForOverlappingHeaders(),this.ghostTable.buildWidthsMapper()}},{key:"onAfterGetColumnHeaderRenderers",value:function(e){if(e){e.length=0;for(var t=this.colspanArray.length-1;t>=0;t--)e.push(this.headerRendererFactory(t));e.reverse()}this.updateHeadersHighlight()}},{key:"onModifyColWidth",value:function(e,t){var n=this.ghostTable.widthsCache[t];return e>n?e:n}},{key:"destroy",value:function(){this.settings=null,this.columnHeaderLevelCount=null,this.colspanArray=null,QC(ZC(t.prototype),"destroy",this).call(this)}}],r&&JC(n.prototype,r),t}(Rf);gu("nestedHeaders",tT);const nT=tT;function rT(e){return rT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rT(e)}function oT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var iT=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=n,this.data=r,this.plugin=t,this.parentReference=new WeakMap,this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},this.recordTranslator=Hu(this.hot)}var t,n;return t=e,n=[{key:"rewriteCache",value:function(){var e=this;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},Ra(0,this.data.length-1,(function(t){e.cacheNode(e.data[t],0,null)}))}},{key:"cacheNode",value:function(e,t,n){var r=this;this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&P(e.__children,(function(n){r.cacheNode(n,t+1,e)}))}},{key:"getDataObject",value:function(e){return null==e?null:this.cache.rows[e]}},{key:"readTreeNodes",value:function(e,t,n,r){var o=this,i=!1,a=t;if(isNaN(a)&&a.end)return a;var s=e;return s||(s={__children:this.data},i=!0,a-=1),null!=n&&a===n?{result:s,end:!0}:null!=r&&s===r?{result:a,end:!0}:(a+=1,s.__children&&P(s.__children,(function(e){if(o.parentReference.set(e,i?null:s),a=o.readTreeNodes(e,a,n,r),isNaN(a)&&a.end)return!1})),a)}},{key:"updateParentReference",value:function(){this.readTreeNodes({__children:this.data},0,this.hot.countRows())}},{key:"mockParent",value:function(){var e=this.mockNode();return e.__children=this.data,e}},{key:"mockNode",value:function(){var e={};return ee(this.data[0],(function(t,n){e[n]=null})),e}},{key:"getRowIndex",value:function(e){return null==e?null:this.cache.nodeInfo.get(e).row}},{key:"getRowIndexWithinParent",value:function(e){var t;t=isNaN(e)?e:this.getDataObject(e);var n=this.getRowParent(e);return null==n?this.data.indexOf(t):n.__children.indexOf(t)}},{key:"countAllRows",value:function(){var e={__children:this.data};return this.countChildren(e)}},{key:"countChildren",value:function(e){var t=this,n=0,r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&r.__children?(P(r.__children,(function(e){n+=1,e.__children&&(n+=t.countChildren(e))})),n):0}},{key:"getRowParent",value:function(e){var t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}},{key:"getRowObjectParent",value:function(e){return"object"!==rT(e)?null:this.cache.nodeInfo.get(e).parent}},{key:"getRowLevel",value:function(e){var t;return(t=isNaN(e)?e:this.getDataObject(e))?this.getRowObjectLevel(t):null}},{key:"getRowObjectLevel",value:function(e){return null==e?null:this.cache.nodeInfo.get(e).level}},{key:"hasChildren",value:function(e){var t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}},{key:"isParent",value:function(e){var t=e;return isNaN(t)||(t=this.getDataObject(t)),!!oe(t,"__children")}},{key:"addChild",value:function(e,t){var n=t;this.hot.runHooks("beforeAddChild",e,n);var r=null;e&&(r=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",r+this.countChildren(e)+1,1);var o=e;e||(o=this.mockParent()),o.__children||(o.__children=[]),n||(n=this.mockNode()),o.__children.push(n),this.rewriteCache();var i=this.getRowIndex(n);this.hot.runHooks("afterCreateRow",i,1),this.hot.runHooks("afterAddChild",e,n)}},{key:"addChildAtIndex",value:function(e,t,n,r){var o=n;this.hot.runHooks("beforeAddChild",e,o,t),this.hot.runHooks("beforeCreateRow",r+1,1);var i=e;e||(i=this.mockParent()),i.__children||(i.__children=[]),o||(o=this.mockNode()),i.__children.splice(t,null,o),this.rewriteCache(),this.hot.runHooks("afterCreateRow",r+1,1),this.hot.runHooks("afterAddChild",e,o,t)}},{key:"addSibling",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below",n=this.translateTrimmedRow(e),r=this.getRowParent(n),o=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,o+1,null,e);break;case"above":this.addChildAtIndex(r,o,null,e)}}},{key:"detachFromParent",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,o=[];Array.isArray(e)?(Ra(e[0],e[2],(function(e){var n=t.translateTrimmedRow(e);o.push(t.getDataObject(n))})),Ra(0,o.length-2,(function(e){t.detachFromParent(o[e],!1)})),r=o[o.length-1]):r=e;var i=this.getRowIndex(r),a=this.getRowIndexWithinParent(r),s=this.getRowParent(r),l=this.getRowParent(s),u=this.getRowIndex(l),c=null;this.hot.runHooks("beforeDetachChild",s,r),null!=a&&(this.hot.runHooks("beforeRemoveRow",i,1,[i],this.plugin.pluginName),s.__children.splice(a,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,1,[i],this.plugin.pluginName),l?(c=u+this.countChildren(l),this.hot.runHooks("beforeCreateRow",c,1,this.plugin.pluginName),l.__children.push(r)):(c=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",c,1,this.plugin.pluginName),this.data.push(r))),this.rewriteCache(),this.hot.runHooks("afterCreateRow",c,1,this.plugin.pluginName),n&&this.hot.render(),this.hot.runHooks("afterDetachChild",s,r)}},{key:"filterData",value:function(e,t,n){var r=this,o=[];P(n,(function(e){o.push(r.getDataObject(e))})),P(o,(function(e){var t=r.getRowIndexWithinParent(e),n=r.getRowParent(e);null===n?r.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}},{key:"spliceData",value:function(e,t,n){var r=this.translateTrimmedRow(e);if(null!=r){var o=this.getDataObject(r-1),i=null,a=null;o&&o.__children&&0===o.__children.length?(i=o,a=0):(i=this.getRowParent(r),a=this.getRowIndexWithinParent(r)),i?n?i.__children.splice(a,t,n):i.__children.splice(a,t):n?this.data.splice(a,t,n):this.data.splice(a,t),this.rewriteCache()}}},{key:"moveRow",value:function(e,t){var n=this.isParent(t),r=this.getRowParent(e),o=this.getRowIndexWithinParent(e),i=this.getRowParent(t);null==i&&(i=this.getRowParent(t-1)),null==i&&(i=this.getDataObject(t-1)),i?i.__children||(i.__children=[]):(i=this.getDataObject(t)).__children=[];var a=this.getRowParent(t-1),s=n?this.countChildren(a):this.getRowIndexWithinParent(t),l=r.__children.slice(o,o+1);r.__children.splice(o,1),i.__children.splice(s,0,l[0])}},{key:"moveCellMeta",value:function(e,t){var n=this.hot.getCellMetaAtRow(e);this.hot.spliceCellsMeta(t,0,n),this.hot.spliceCellsMeta(e+(e<t?0:1),1)}},{key:"translateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}}],n&&oT(t.prototype,n),e}();const aT=iT,sT=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=n,this.plugin=t};function lT(e){return lT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lT(e)}function uT(e){return uT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uT(e)}function cT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hT(e,t,n){return t&&cT(e.prototype,t),n&&cT(e,n),e}function fT(e,t){return fT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fT(e,t)}var dT=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==lT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,uT(t).call(this,e,n))).dataManager=r.plugin.dataManager,r.collapsingUI=r.plugin.collapsingUI,r.rowHeaderWidthCache=null,r.trimRowsPlugin=e.trimRowsPlugin,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fT(e,t)}(t,e),hT(t,null,[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),hT(t,[{key:"appendLevelIndicators",value:function(e,n){var r=this.trimRowsPlugin.rowsMapper.getValueByIndex(e),o=this.dataManager.getRowLevel(r),i=this.dataManager.getDataObject(r),a=n.getElementsByTagName("DIV")[0],s=a.querySelector("span.rowHeader");if(P(a.querySelectorAll('[class^="ht_nesting"]'),(function(e){e&&a.removeChild(e)})),wt(n,t.CSS_CLASSES.indicatorContainer),o){var l=this.hot.rootDocument,u=s.cloneNode(!0);a.innerHTML="",Ra(0,o-1,(function(){var e=l.createElement("SPAN");wt(e,t.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(u)}if(this.dataManager.hasChildren(i)){var c=this.hot.rootDocument.createElement("DIV");wt(n,t.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?wt(c,"".concat(t.CSS_CLASSES.button," ").concat(t.CSS_CLASSES.expandButton)):wt(c,"".concat(t.CSS_CLASSES.button," ").concat(t.CSS_CLASSES.collapseButton)),a.appendChild(c)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t||(t=this.dataManager.cache.levelCount),this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}]),t}(sT);const mT=dT;function pT(e){return pT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pT(e)}function yT(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function vT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gT(e){return gT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gT(e)}function wT(e,t){return wT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wT(e,t)}var bT=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==pT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,gT(t).call(this,e,n))).trimRowsPlugin=e.trimRowsPlugin,r.dataManager=r.plugin.dataManager,r.collapsedRows=[],r.collapsedRowsStash={stash:function(){r.lastCollapsedRows=r.collapsedRows.slice(0),r.expandMultipleChildren(r.lastCollapsedRows,!1)},shiftStash:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=r.translateTrimmedRow(e);P(r.lastCollapsedRows,(function(e,o){e>n-1&&(r.lastCollapsedRows[o]=e+t)}))},applyStash:function(){r.hot.runHooks("skipLengthCache",100),r.collapseMultipleChildren(r.lastCollapsedRows,!0),r.lastCollapsedRows=void 0},trimStash:function(e,t){Ra(e,e+t-1,(function(e){var t=r.lastCollapsedRows.indexOf(e);t>-1&&r.lastCollapsedRows.splice(t,1)}))}},r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wT(e,t)}(t,e),n=t,r=[{key:"collapseChildren",value:function(e){var t,n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[],a=null,s=null;return isNaN(e)?(a=e,s=this.dataManager.getRowIndex(a)):(a=this.dataManager.getDataObject(e),s=e),this.dataManager.hasChildren(a)&&P(a.__children,(function(e){i.push(n.dataManager.getRowIndex(e))})),t=this.collapseRows(i,!0,!1),o&&this.trimRowsPlugin.trimRows(t),r&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(s)&&this.collapsedRows.push(s),t}},{key:"collapseMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];P(e,(function(e){o.push.apply(o,yT(t.collapseChildren(e,!1,!1)))})),r&&this.trimRowsPlugin.trimRows(o),n&&this.renderAndAdjust()}},{key:"collapseRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}},{key:"collapseRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return P(e,(function(e){o.push(e),n&&t.collapseChildRows(e,o)})),r&&this.trimRowsPlugin.trimRows(o),o}},{key:"collapseChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.dataManager.hasChildren(e)&&P(this.dataManager.getDataObject(e).__children,(function(e){var r=t.dataManager.getRowIndex(e);n.push(r),t.collapseChildRows(r,n)})),r&&this.trimRowsPlugin.trimRows(n)}},{key:"expandRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}},{key:"expandRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return P(e,(function(e){o.push(e),n&&t.expandChildRows(e,o)})),r&&this.trimRowsPlugin.untrimRows(o),o}},{key:"expandChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.dataManager.hasChildren(e)&&P(this.dataManager.getDataObject(e).__children,(function(e){if(!t.isAnyParentCollapsed(e)){var r=t.dataManager.getRowIndex(e);n.push(r),t.expandChildRows(r,n)}})),r&&this.trimRowsPlugin.untrimRows(n)}},{key:"expandChildren",value:function(e){var t,n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[],a=null,s=null;return isNaN(e)?(a=e,s=this.dataManager.getRowIndex(e)):(a=this.dataManager.getDataObject(e),s=e),this.collapsedRows.splice(this.collapsedRows.indexOf(s),1),this.dataManager.hasChildren(a)&&P(a.__children,(function(e){var t=n.dataManager.getRowIndex(e);i.push(t)})),t=this.expandRows(i,!0,!1),o&&this.trimRowsPlugin.untrimRows(t),r&&this.renderAndAdjust(),t}},{key:"expandMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];P(e,(function(e){o.push.apply(o,yT(t.expandChildren(e,!1,!1)))})),r&&this.trimRowsPlugin.untrimRows(o),n&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var e=this,t=this.hot.getSourceData(),n=[];P(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.collapseMultipleChildren(n),this.renderAndAdjust()}},{key:"expandAll",value:function(){var e=this,t=this.hot.getSourceData(),n=[];P(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.expandMultipleChildren(n),this.renderAndAdjust()}},{key:"areChildrenCollapsed",value:function(e){var t,n=this,r=!0;return t=isNaN(e)?e:this.dataManager.getDataObject(e),this.dataManager.hasChildren(t)&&P(t.__children,(function(e){var t=n.dataManager.getRowIndex(e);if(!n.trimRowsPlugin.isTrimmed(t))return r=!1,!1})),r}},{key:"isAnyParentCollapsed",value:function(e){for(var t=e;null!==t;){t=this.dataManager.getRowParent(t);var n=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(n)>-1)return!0}return!1}},{key:"toggleState",value:function(e,t){if(!(t.col>=0)){var n=this.translateTrimmedRow(t.row);gt(e.target,mT.CSS_CLASSES.button)&&(this.areChildrenCollapsed(n)?this.expandChildren(n):this.collapseChildren(n),jr(e))}}},{key:"translateTrimmedRow",value:function(e){return this.trimRowsPlugin.rowsMapper.getValueByIndex(e)}},{key:"renderAndAdjust",value:function(){this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize()}}],r&&vT(n.prototype,r),t}(sT);const _T=bT;function MT(e){return MT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MT(e)}function kT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ST(e){return ST=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ST(e)}function CT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TT(e,t){return TT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},TT(e,t)}var ET=new WeakMap,OT=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==MT(t)&&"function"!=typeof t?CT(e):t}(this,ST(t).call(this,e,n)),ET.set(CT(r),{row_above:function(e,t){r.dataManager.addSibling(t.start.row,"above")},row_below:function(e,t){r.dataManager.addSibling(t.start.row,"below")}}),r.dataManager=r.plugin.dataManager,r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&TT(e,t)}(t,e),n=t,(r=[{key:"appendOptions",value:function(e){var t=this,n=[{key:"add_child",name:function(){return this.getTranslatedPhrase(Ec)},callback:function(){var e=t.dataManager.translateTrimmedRow(t.hot.getSelectedLast()[0]),n=t.dataManager.getDataObject(e);t.dataManager.addChild(n)},disabled:function(){var e=t.hot.getSelectedLast();return!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(Oc)},callback:function(){t.dataManager.detachFromParent(t.hot.getSelectedLast())},disabled:function(){var e=t.hot.getSelectedLast(),n=t.dataManager.translateTrimmedRow(e[0]);return!t.dataManager.getRowParent(n)||!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{name:"---------"}];return Ra(0,e.items.length-1,(function(t){if(0===t)return P(n,(function(n,r){e.items.splice(t+r,0,n)})),!1})),this.modifyRowInsertingOptions(e)}},{key:"modifyRowInsertingOptions",value:function(e){var t=ET.get(this);return Ra(0,e.items.length-1,(function(n){var r=t[e.items[n].key];null!=r&&(e.items[n].callback=r)})),e}}])&&kT(n.prototype,r),t}(sT);const RT=OT;function LT(e){return LT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LT(e)}function DT(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function AT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NT(e,t,n){return NT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=PT(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},NT(e,t,n||e)}function PT(e){return PT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},PT(e)}function xT(e,t){return xT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xT(e,t)}var YT=new WeakMap,IT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==LT(t)&&"function"!=typeof t?HT(e):t}(this,PT(t).call(this,e))).sourceData=null,n.trimRowsPlugin=null,n.bindRowsWithHeadersPlugin=null,n.dataManager=null,n.headersUI=null,YT.set(HT(n),{changeSelection:!1,movedToFirstChild:!1,movedToCollapsed:!1,skipRender:null}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xT(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedRows}},{key:"enablePlugin",value:function(){var e=this;this.sourceData=this.hot.getSourceData(),this.trimRowsPlugin=this.hot.getPlugin("trimRows"),this.manualRowMovePlugin=this.hot.getPlugin("manualRowMove"),this.bindRowsWithHeadersPlugin=this.hot.getPlugin("bindRowsWithHeaders"),this.dataManager=new aT(this,this.hot,this.sourceData),this.collapsingUI=new _T(this,this.hot,this.trimRowsPlugin),this.headersUI=new mT(this,this.hot),this.contextMenuUI=new RT(this,this.hot),this.dataManager.rewriteCache(),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("beforeRender",(function(){return e.onBeforeRender.apply(e,arguments)})),this.addHook("modifyRowData",(function(){return e.onModifyRowData.apply(e,arguments)})),this.addHook("modifySourceLength",(function(){return e.onModifySourceLength.apply(e,arguments)})),this.addHook("beforeDataSplice",(function(){return e.onBeforeDataSplice.apply(e,arguments)})),this.addHook("beforeDataFilter",(function(){return e.onBeforeDataFilter.apply(e,arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetRowHeader",(function(){return e.onAfterGetRowHeader.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.apply(e,arguments)})),this.addHook("modifyRemovedAmount",(function(){return e.onModifyRemovedAmount.apply(e,arguments)})),this.addHook("beforeAddChild",(function(){return e.onBeforeAddChild.apply(e,arguments)})),this.addHook("afterAddChild",(function(){return e.onAfterAddChild.apply(e,arguments)})),this.addHook("beforeDetachChild",(function(){return e.onBeforeDetachChild.apply(e,arguments)})),this.addHook("afterDetachChild",(function(){return e.onAfterDetachChild.apply(e,arguments)})),this.addHook("modifyRowHeaderWidth",(function(){return e.onModifyRowHeaderWidth.apply(e,arguments)})),this.addHook("afterCreateRow",(function(){return e.onAfterCreateRow.apply(e,arguments)})),this.addHook("beforeRowMove",(function(){return e.onBeforeRowMove.apply(e,arguments)})),this.addHook("afterRowMove",(function(){return e.onAfterRowMove.apply(e,arguments)})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.trimRowsPlugin.isEnabled()||(this.trimRowsPlugin.enablePlugin(),this.hot.getSettings().trimRows=!0),NT(PT(t.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){NT(PT(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),NT(PT(t.prototype),"updatePlugin",this).call(this)}},{key:"onBeforeRowMove",value:function(e,t){var n,r,o,i=YT.get(this),a=e.length,s=[],l=this.dataManager.translateTrimmedRow(t),u=!0,c=null;for(n=0;n<a;n++)s.push(this.dataManager.translateTrimmedRow(e[n])),this.dataManager.isParent(s[n])&&(u=!1);if(s.indexOf(l)>-1||!u)return!1;if(r=this.dataManager.getRowParent(s[0]),null==(c=this.dataManager.getRowParent(l))&&(c=this.dataManager.getRowParent(l-1)),null==c&&(c=this.dataManager.getDataObject(l-1),i.movedToFirstChild=!0),!c)return!1;for(o=r===c,i.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),o||(Math.max.apply(Math,s)<=l?this.collapsingUI.collapsedRowsStash.shiftStash(s[0],-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(l,e.length)),i.changeSelection=!0,(s[a-1]<=l&&o||!0===i.movedToFirstChild)&&(e.reverse(),s.reverse(),!0!==i.movedToFirstChild&&(l-=1)),n=0;n<a;n++)this.dataManager.moveRow(s[n],l);if(s[s.length-1]<l)for(n=a-1;n>=0;n--)this.dataManager.moveCellMeta(s[n],l);else for(n=0;n<a;n++)this.dataManager.moveCellMeta(s[n],l);return(s[a-1]<=l&&o||this.dataManager.isParent(l))&&e.reverse(),this.dataManager.rewriteCache(),!1}},{key:"onAfterRowMove",value:function(e,t){var n=YT.get(this);if(n.changeSelection){var r,o,i=e.length,a=0,s=0,l=null;if(this.collapsingUI.collapsedRowsStash.applyStash(),r=this.dataManager.translateTrimmedRow(t),n.movedToFirstChild)n.movedToFirstChild=!1,a=t,s=t+i-1,t>=Math.max.apply(Math,DT(e))&&(a-=i,s-=i);else if(n.movedToCollapsed){var u=this.dataManager.getRowParent(r-1);null==u&&(u=this.dataManager.getDataObject(r-1)),s=a=this.dataManager.getRowIndex(u)}else e[i-1]<t?a=(s=t-1)-i+1:s=(a=t)+i-1;l=this.hot.selection,o=this.hot.countCols()-1,l.setRangeStart(new Me(a,0)),l.setRangeEnd(new Me(s,o),!0),n.changeSelection=!1}}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n){this.collapsingUI.toggleState(e,t,n)}},{key:"onModifyRowData",value:function(e){return this.dataManager.getDataObject(e)}},{key:"onModifySourceLength",value:function(){return this.dataManager.countAllRows()}},{key:"onBeforeDataSplice",value:function(e,t,n){return this.dataManager.spliceData(e,t,n),!1}},{key:"onBeforeDataFilter",value:function(e,t){var n=[],r=this.dataManager.translateTrimmedRow(e),o=YT.get(this);return Ra(r,r+t-1,(function(e){n.push(e)})),this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(r,t),this.collapsingUI.collapsedRowsStash.shiftStash(r,-1*t),this.dataManager.filterData(e,t,n),o.skipRender=!0,!1}},{key:"onAfterContextMenuDefaultOptions",value:function(e){return this.contextMenuUI.appendOptions(e)}},{key:"onAfterGetRowHeader",value:function(e,t){this.headersUI.appendLevelIndicators(e,t)}},{key:"onModifyRowHeaderWidth",value:function(e){return this.headersUI.rowHeaderWidthCache||e}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(r!==this.pluginName){var i=YT.get(this);setTimeout((function(){i.skipRender=null,o.headersUI.updateRowHeaderWidth(),o.collapsingUI.collapsedRowsStash.applyStash()}),0)}}},{key:"onModifyRemovedAmount",value:function(e,t){var n=this,r=[],o=0;return Ra(t,t+e-1,(function(e){var t=!1,i=n.collapsingUI.translateTrimmedRow(e),a=n.dataManager.getDataObject(i);n.dataManager.hasChildren(a)&&(r.push(a),P(r,(function(e){if(e.__children.indexOf(a)>-1)return t=!0,!1})),t||(o+=n.dataManager.countChildren(a))),t=!1,P(r,(function(e){if(e.__children.indexOf(a)>-1)return t=!0,!1})),t&&(o-=1)})),e+o}},{key:"onBeforeAddChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterAddChild",value:function(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onBeforeDetachChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterDetachChild",value:function(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onAfterCreateRow",value:function(e,t,n){n!==this.pluginName&&this.dataManager.rewriteCache()}},{key:"onAfterInit",value:function(){this.bindRowsWithHeadersPlugin.bindStrategy.strategy&&this.bindRowsWithHeadersPlugin.bindStrategy.createMap(this.hot.countSourceRows());var e=Math.max.apply(Math,DT(this.dataManager.cache.levels));e>0&&this.headersUI.updateRowHeaderWidth(e)}},{key:"onBeforeRender",value:function(e,t){YT.get(this).skipRender&&(t.skipRender=!0)}},{key:"onAfterLoadData",value:function(){this.dataManager.data=this.hot.getSourceData(),this.dataManager.rewriteCache()}}],r&&AT(n.prototype,r),t}(Rf);gu("nestedRows",IT);const jT=IT;function FT(e){return FT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FT(e)}function WT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function BT(e,t,n){return BT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=VT(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},BT(e,t,n||e)}function VT(e){return VT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},VT(e)}function UT(e,t){return UT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},UT(e,t)}ce.getSingleton().register("beforeHideColumns"),ce.getSingleton().register("afterHideColumns"),ce.getSingleton().register("beforeUnhideColumns"),ce.getSingleton().register("afterUnhideColumns");var zT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==FT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,VT(t).call(this,e))).settings={},n.hiddenColumns=[],n.lastSelectedColumn=-1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&UT(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenColumns}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.hot.hasColHeaders()?this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})):this.addHook("afterRenderer",(function(t,n,r){return e.onAfterGetColHeader(r,t)})),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("beforeSetRangeStartOnly",(function(t){return e.onBeforeSetRangeStart(t)})),this.addHook("beforeSetRangeEnd",(function(t){return e.onBeforeSetRangeEnd(t)})),this.addHook("hiddenColumn",(function(t){return e.isHidden(t)})),this.addHook("beforeStretchingColumnWidth",(function(t,n){return e.onBeforeStretchingColumnWidth(t,n)})),this.addHook("afterCreateCol",(function(t,n){return e.onAfterCreateCol(t,n)})),this.addHook("afterRemoveCol",(function(t,n){return e.onAfterRemoveCol(t,n)})),this.addHook("init",(function(){return e.onInit()})),this.hot.view&&this.onInit(),BT(VT(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),BT(VT(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.settings={},this.hiddenColumns=[],this.lastSelectedColumn=-1,this.hot.render(),BT(VT(t.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showColumns",value:function(e){var t=this.hiddenColumns,n=this.isColumnDataValid(e),r=t;n&&(r=this.hiddenColumns.filter((function(t){return!1===e.includes(t)}))),!1!==this.hot.runHooks("beforeUnhideColumns",t,r,n)&&(n&&(this.hiddenColumns=r),this.hot.runHooks("afterUnhideColumns",t,r,n,n&&r.length<t.length))}},{key:"showColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}},{key:"hideColumns",value:function(e){var t=this.hiddenColumns,n=this.isColumnDataValid(e),r=t;n&&(r=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",t,r,n)&&(n&&(this.hiddenColumns=r),this.hot.runHooks("afterHideColumns",t,r,n,n&&r.length>t.length))}},{key:"hideColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideColumns(t)}},{key:"isHidden",value:function(e){var t=e;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(t=this.hot.toPhysicalColumn(e)),this.hiddenColumns.includes(t)}},{key:"isColumnDataValid",value:function(e){var t=this;return e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t.hot.countCols()}))}},{key:"resetCellsMeta",value:function(){P(this.hot.getCellsMeta(),(function(e){e&&(e.skipColumnOnPaste=!1,null!==e.baseRenderer&&(e.renderer=e.baseRenderer,e.baseRenderer=null))}))}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=e;return this.isHidden(t)&&(n=0),n}},{key:"onModifyColWidth",value:function(e,t){return this.isHidden(t)?.1:this.settings.indicators&&(this.isHidden(t+1)||this.isHidden(t-1))?e+(this.hot.hasColHeaders()?15:0):void 0}},{key:"onAfterGetCellMeta",value:function(e,t,n){var r=this.hot.runHooks("unmodifyCol",t);if(!1===this.settings.copyPasteEnabled&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(r)?(n.renderer!==GT&&(n.baseRenderer=n.renderer),n.renderer=GT):null!==n.baseRenderer&&(n.renderer=n.baseRenderer,n.baseRenderer=null),this.isHidden(n.visualCol-1)){var o=!0,i=n.visualCol-1;n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");do{if(!this.isHidden(i)){o=!1;break}i-=1}while(i>=0);o&&-1===n.className.indexOf("firstVisibleColumn")&&(n.className+=" firstVisibleColumn")}else if(n.className){var a=n.className.split(" ");if(a.length){var s=a.indexOf("afterHiddenColumn");s>-1&&a.splice(s,1);var l=a.indexOf("firstVisibleColumn");l>-1&&a.splice(l,1),n.className=a.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this,n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return P(e,(function(e){var n=!0,o=0;Ra(e.startCol,e.endCol,(function(i){t.isHidden(i)?(n||r(e.startRow,e.endRow,o,i-1),n=!0):(n&&(o=i),i===e.endCol&&r(e.startRow,e.endRow,o,i),n=!1)}))})),n}},{key:"onAfterGetColHeader",value:function(e,t){if(!this.isHidden(e)){var n=!0,r=e-1;do{if(!this.isHidden(r)){n=!1;break}r-=1}while(r>=0);n&&wt(t,"firstVisibleColumn"),this.settings.indicators&&(this.isHidden(e-1)&&wt(t,"afterHiddenColumn"),this.isHidden(e+1)&&e>-1&&wt(t,"beforeHiddenColumn"))}}},{key:"onBeforeSetRangeStart",value:function(e){var t=this;e.col>0||(e.col=0,e.col=function e(n){var r=n,o=t.hot.toPhysicalColumn(r);return t.isHidden(o,!0)&&(r=e(r+=1)),r}(e.col))}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this,n=this.hot.countCols();e.col=function r(o){var i=o,a=t.hot.toPhysicalColumn(i);return t.isHidden(a,!0)&&(t.lastSelectedColumn>i||e.col===n-1?i>0?i=r(i-=1):Ra(0,t.lastSelectedColumn,(function(e){if(!t.isHidden(e))return i=e,!1})):i=r(i+=1)),i}(e.col),this.lastSelectedColumn=e.col}},{key:"onAfterContextMenuDefaultOptions",value:function(e){var t;e.items.push({name:Mm},(t=this,{key:"hidden_columns_hide",name:function(){var e,t,n=this.getSelectedLast(),r=0;if(Array.isArray(n)){var o=(t=4,function(e){if(Array.isArray(e))return e}(e=n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}());o[1]-o[3]!=0&&(r=1)}return this.getTranslatedPhrase(Rc,r)},callback:function(){var e=this.getSelectedRangeLast(),n=e.from,r=e.to;Ra(Math.min(n.col,r.col),Math.max(n.col,r.col),(function(e){return t.hideColumn(e)})),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!this.selection.isSelectedByColumnHeader()}}),function(e){var t=[],n=[];return{key:"hidden_columns_show",name:function(){var r,o,i=this.getSelectedLast(),a=0;if(Array.isArray(i)){var s=(o=4,function(e){if(Array.isArray(e))return e}(r=i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[1],u=s[3];if(l>u){var c=[u,l];l=c[0],u=c[1]}var h=0;l===u?h=t.length+n.length:Ra(l,u,(function(t){e.isHidden(t)&&(h+=1)})),a=h<=1?0:1}return this.getTranslatedPhrase(Lc,a)},callback:function(){var r=this.getSelectedRangeLast(),o=r.from,i=r.to,a=Math.min(o.col,i.col),s=Math.max(o.col,i.col);a===s?(t.length===a&&(e.showColumns(t),t.length=0),n.length===this.countSourceCols()-(a+1)&&(e.showColumns(n),n.length=0)):Ra(a,s,(function(t){return e.showColumn(t)})),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){if(!e.hiddenColumns.length||!this.selection.isSelectedByColumnHeader())return!0;t.length=0,n.length=0;var r=this.getSelectedRangeLast(),o=r.from,i=r.to,a=Math.min(o.col,i.col),s=Math.max(o.col,i.col),l=!1;if(a===s){var u=this.countSourceCols();Ra(0,u,(function(r){if(t.length+n.length===e.hiddenColumns.length)return!1;r<a&&e.isHidden(r)?t.push(r):e.isHidden(r)&&n.push(r)})),u-=1,(t.length===a&&a>0||n.length===u-a&&a<u)&&(l=!0)}else Ra(a,s,(function(t){if(e.isHidden(t))return l=!0,!1}));return!l}}}(this))}},{key:"onAfterCreateCol",value:function(e,t){var n=[];P(this.hiddenColumns,(function(r){var o=r;o>=e&&(o+=t),n.push(o)})),this.hiddenColumns=n}},{key:"onAfterRemoveCol",value:function(e,t){var n=[];P(this.hiddenColumns,(function(r){var o=r;o>=e&&(o-=t),n.push(o)})),this.hiddenColumns=n}},{key:"onInit",value:function(){var e=this,t=this.hot.getSettings().hiddenColumns;"object"===FT(t)&&(this.settings=t,void 0===t.copyPasteEnabled&&(t.copyPasteEnabled=!0),Array.isArray(t.columns)&&this.hideColumns(t.columns),t.copyPasteEnabled||this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})))}},{key:"destroy",value:function(){BT(VT(t.prototype),"destroy",this).call(this)}}],r&&WT(n.prototype,r),t}(Rf);function GT(e,t){t.textContent=""}gu("hiddenColumns",zT);const qT=zT;function XT(e){return XT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XT(e)}function KT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function JT(e,t,n){return JT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$T(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},JT(e,t,n||e)}function $T(e){return $T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$T(e)}function QT(e,t){return QT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QT(e,t)}ce.getSingleton().register("beforeHideRows"),ce.getSingleton().register("afterHideRows"),ce.getSingleton().register("beforeUnhideRows"),ce.getSingleton().register("afterUnhideRows");var ZT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==XT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,$T(t).call(this,e))).settings={},n.hiddenRows=[],n.lastSelectedRow=-1,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QT(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.hot.hasRowHeaders()?this.addHook("afterGetRowHeader",(function(t,n){return e.onAfterGetRowHeader(t,n)})):this.addHook("afterRenderer",(function(t,n){return e.onAfterGetRowHeader(n,t)})),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.addHook("beforeSetRangeStartOnly",(function(t){return e.onBeforeSetRangeStartOnly(t)})),this.addHook("beforeSetRangeStart",(function(t){return e.onBeforeSetRangeStart(t)})),this.addHook("beforeSetRangeEnd",(function(t){return e.onBeforeSetRangeEnd(t)})),this.addHook("hiddenRow",(function(t){return e.isHidden(t)})),this.addHook("afterCreateRow",(function(t,n){return e.onAfterCreateRow(t,n)})),this.addHook("afterRemoveRow",(function(t,n){return e.onAfterRemoveRow(t,n)})),this.addHook("init",(function(){return e.onInit()})),this.hot.view&&this.onInit(),JT($T(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onInit(),JT($T(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.settings={},this.hiddenRows=[],this.lastSelectedRow=-1,JT($T(t.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showRows",value:function(e){var t=this,n=this.hiddenRows,r=this.isRowDataValid(e),o=N(e,(function(e){return t.hot.toPhysicalRow(e)})),i=n;r&&(i=this.hiddenRows.filter((function(e){return!1===o.includes(e)}))),!1!==this.hot.runHooks("beforeUnhideRows",n,i,r)&&(r&&(this.hiddenRows=i),this.hot.runHooks("afterUnhideRows",n,i,r,r&&i.length<n.length))}},{key:"showRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showRows(t)}},{key:"hideRows",value:function(e){var t=this,n=this.hiddenRows,r=this.isRowDataValid(e),o=N(e,(function(e){return t.hot.toPhysicalRow(e)})),i=n;r&&(i=Array.from(new Set(n.concat(o)))),!1!==this.hot.runHooks("beforeHideRows",n,i,r)&&(r&&(this.hiddenRows=i),this.hot.runHooks("afterHideRows",n,i,r,r&&i.length>n.length))}},{key:"hideRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideRows(t)}},{key:"isHidden",value:function(e){var t=e;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(t=this.hot.toPhysicalRow(e)),this.hiddenRows.includes(t)}},{key:"isRowDataValid",value:function(e){var t=this;return e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t.hot.countRows()}))}},{key:"resetCellsMeta",value:function(){P(this.hot.getCellsMeta(),(function(e){e&&(e.skipRowOnPaste=!1)}))}},{key:"onAfterGetCellMeta",value:function(e,t,n){var r=this.hot.runHooks("unmodifyRow",e);if(!1===this.settings.copyPasteEnabled&&this.isHidden(r)?n.skipRowOnPaste=!0:n.skipRowOnPaste=!1,this.isHidden(r-1)){var o=!0,i=r-1;n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");do{if(!this.isHidden(i)){o=!1;break}i-=1}while(i>=0);o&&-1===n.className.indexOf("firstVisibleRow")&&(n.className+=" firstVisibleRow")}else if(n.className){var a=n.className.split(" ");if(a.length){var s=a.indexOf("afterHiddenRow");s>-1&&a.splice(s,1);var l=a.indexOf("firstVisibleRow");l>-1&&a.splice(l,1),n.className=a.join(" ")}}}},{key:"onAfterGetRowHeader",value:function(e,t){var n=t.parentNode;n&&(this.isHidden(e)?wt(n,"hide"):bt(n,"hide"));var r=!0,o=e-1;do{if(!this.isHidden(o)){r=!1;break}o-=1}while(o>=0);r&&wt(t,"firstVisibleRow"),this.settings.indicators&&this.hot.hasRowHeaders()&&(this.isHidden(e-1)&&wt(t,"afterHiddenRow"),this.isHidden(e+1)&&wt(t,"beforeHiddenRow"))}},{key:"onModifyRowHeight",value:function(e,t){return this.isHidden(t)?.1:e}},{key:"onModifyCopyableRange",value:function(e){var t=this,n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return P(e,(function(e){var n=!0,o=0;Ra(e.startRow,e.endRow,(function(i){t.isHidden(i)?(n||r(o,i-1,e.startCol,e.endCol),n=!0):(n&&(o=i),i===e.endRow&&r(o,i,e.startCol,e.endCol),n=!1)}))})),n}},{key:"onBeforeSetRangeStart",value:function(e){var t=this,n=this.hot.getSelectedLast()||!1,r=this.hot.countRows()-1;e.row=function e(o){var i=0,a=o;return n&&(i=a>n[0]?1:-1,t.lastSelectedRow=n[0]),r<a||a<0?t.lastSelectedRow:(t.isHidden(a)&&(a=e(a+i)),a)}(e.row)}},{key:"onBeforeSetRangeStartOnly",value:function(e){var t=this;e.row>0||(e.row=0,e.row=function e(n){var r=n;return t.isHidden(r)&&(r=e(r+=1)),r}(e.row))}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this,n=this.hot.countRows();e.row=function r(o){var i=o;return t.isHidden(i)&&(t.lastSelectedRow>i||e.row===n-1?i>0?i=r(i-=1):Ra(0,t.lastSelectedRow,(function(e){if(!t.isHidden(e))return i=e,!1})):i=r(i+=1)),i}(e.row),this.lastSelectedRow=e.row}},{key:"onAfterContextMenuDefaultOptions",value:function(e){var t;e.items.push({name:"---------"},(t=this,{key:"hidden_rows_hide",name:function(){var e,t,n=this.getSelectedLast(),r=0;if(Array.isArray(n)){var o=(t=3,function(e){if(Array.isArray(e))return e}(e=n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}());o[0]-o[2]!=0&&(r=1)}return this.getTranslatedPhrase(Dc,r)},callback:function(){var e=this.getSelectedRangeLast(),n=e.from,r=e.to;Ra(Math.min(n.row,r.row),Math.max(n.row,r.row),(function(e){return t.hideRow(e)})),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!this.selection.isSelectedByRowHeader()}}),function(e){var t=[],n=[];return{key:"hidden_rows_show",name:function(){var r,o,i=this.getSelectedLast(),a=0;if(Array.isArray(i)){var s=(o=3,function(e){if(Array.isArray(e))return e}(r=i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],u=s[2];if(l>u){var c=[u,l];l=c[0],u=c[1]}var h=0;l===u?h=t.length+n.length:Ra(l,u,(function(t){e.isHidden(t)&&(h+=1)})),a=h<=1?0:1}return this.getTranslatedPhrase(Ac,a)},callback:function(){var r=this.getSelectedRangeLast(),o=r.from,i=r.to,a=Math.min(o.row,i.row),s=Math.max(o.row,i.row);a===s?(t.length===a&&(e.showRows(t),t.length=0),n.length===this.countSourceRows()-(a+1)&&(e.showRows(n),n.length=0)):Ra(a,s,(function(t){return e.showRow(t)})),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){if(!e.hiddenRows.length||!this.selection.isSelectedByRowHeader())return!0;t.length=0,n.length=0;var r=this.getSelectedRangeLast(),o=r.from,i=r.to,a=Math.min(o.row,i.row),s=Math.max(o.row,i.row),l=!1;if(a===s){var u=this.countSourceRows();Ra(0,u,(function(r){if(t.length+n.length===e.hiddenRows.length)return!1;r<a?e.isHidden(r)&&t.push(r):e.isHidden(r)&&n.push(r)})),u-=1,(t.length===a&&a>0||n.length===u-a&&a<u)&&(l=!0)}else Ra(a,s,(function(t){if(e.isHidden(t))return l=!0,!1}));return!l}}}(this))}},{key:"onAfterCreateRow",value:function(e,t){var n=[];P(this.hiddenRows,(function(r){var o=r;o>=e&&(o+=t),n.push(o)})),this.hiddenRows=n}},{key:"onAfterRemoveRow",value:function(e,t){var n=[];P(this.hiddenRows,(function(r){var o=r;o>=e&&(o-=t),n.push(o)})),this.hiddenRows=n}},{key:"onInit",value:function(){var e=this,t=this.hot.getSettings().hiddenRows;"object"===XT(t)&&(this.settings=t,void 0===t.copyPasteEnabled&&(t.copyPasteEnabled=!0),Array.isArray(t.rows)&&this.hideRows(t.rows),t.copyPasteEnabled||this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})))}},{key:"destroy",value:function(){JT($T(t.prototype),"destroy",this).call(this)}}],r&&KT(n.prototype,r),t}(Rf);gu("hiddenRows",ZT);const eE=ZT;function tE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nE=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.trimRows=t}var t,n;return t=e,(n=[{key:"createMap",value:function(e){var t=this,n=0,r=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,Ra(r-1,(function(e){t.trimRows.isTrimmed(e)?n+=1:t._arrayMap[e-n]=e}))}},{key:"destroy",value:function(){this._arrayMap=null}}])&&tE(t.prototype,n),e}();J(nE,Nd);const rE=nE;function oE(e){return oE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oE(e)}function iE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sE(e,t,n){return sE="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=lE(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},sE(e,t,n||e)}function lE(e){return lE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lE(e)}function uE(e,t){return uE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uE(e,t)}var cE=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==oE(t)&&"function"!=typeof t?aE(e):t}(this,lE(t).call(this,e))).trimmedRows=[],n.removedRows=[],n.rowsMapper=new rE(aE(n)),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uE(e,t)}(t,e),n=t,r=[{key:"isEnabled",value:function(){return!!this.hot.getSettings().trimRows}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().trimRows;Array.isArray(n)&&(this.trimmedRows=n),this.rowsMapper.createMap(this.hot.countSourceRows()),this.addHook("modifyRow",(function(t,n){return e.onModifyRow(t,n)})),this.addHook("unmodifyRow",(function(t,n){return e.onUnmodifyRow(t,n)})),this.addHook("beforeCreateRow",(function(t,n,r){return e.onBeforeCreateRow(t,n,r)})),this.addHook("afterCreateRow",(function(t,n){return e.onAfterCreateRow(t,n)})),this.addHook("beforeRemoveRow",(function(t,n){return e.onBeforeRemoveRow(t,n)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow()})),this.addHook("afterLoadData",(function(t){return e.onAfterLoadData(t)})),sE(lE(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().trimRows;Array.isArray(e)&&(this.disablePlugin(),this.enablePlugin()),sE(lE(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.trimmedRows=[],this.removedRows.length=0,this.rowsMapper.clearMap(),sE(lE(t.prototype),"disablePlugin",this).call(this)}},{key:"trimRows",value:function(e){var t=this.trimmedRows,n=this.isValidConfig(e),r=t;n&&(r=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",t,r,n)&&(n&&(this.trimmedRows=r,this.hot.runHooks("skipLengthCache",100),this.rowsMapper.createMap(this.hot.countSourceRows())),this.hot.runHooks("afterTrimRow",t,r,n,n&&r.length>t.length))}},{key:"trimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trimRows(t)}},{key:"untrimRows",value:function(e){var t=this.trimmedRows,n=this.isValidConfig(e),r=t;n&&(r=this.trimmedRows.filter((function(t){return!1===e.includes(t)}))),!1!==this.hot.runHooks("beforeUntrimRow",t,r,n)&&(n&&(this.trimmedRows=r,this.hot.runHooks("skipLengthCache",100),this.rowsMapper.createMap(this.hot.countSourceRows())),this.hot.runHooks("afterUntrimRow",t,r,n,n&&r.length<t.length))}},{key:"untrimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.untrimRows(t)}},{key:"isTrimmed",value:function(e){return this.trimmedRows.includes(e)}},{key:"untrimAll",value:function(){this.untrimRows([].concat(this.trimmedRows))}},{key:"isValidConfig",value:function(e){var t=this;return e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t.hot.countSourceRows()}))}},{key:"onModifyRow",value:function(e,t){var n=e;return t!==this.pluginName&&(n=this.rowsMapper.getValueByIndex(n)),n}},{key:"onUnmodifyRow",value:function(e,t){var n=e;return t!==this.pluginName&&(n=this.rowsMapper.getIndexByValue(n)),n}},{key:"onBeforeCreateRow",value:function(e,t,n){if(this.isEnabled()&&this.trimmedRows.length>0&&"auto"===n)return!1}},{key:"onAfterCreateRow",value:function(e,t){var n=this;this.rowsMapper.shiftItems(e,t),this.trimmedRows=N(this.trimmedRows,(function(r){return r>=n.rowsMapper.getValueByIndex(e)?r+t:r}))}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&Ra(e,e+t-1,(function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))}))}},{key:"onAfterRemoveRow",value:function(){var e=this;this.rowsMapper.unshiftItems(this.removedRows),this.trimmedRows=N(this.trimmedRows,(function(t){return t-e.removedRows.filter((function(e){return e<t})).length}))}},{key:"onAfterLoadData",value:function(e){e||this.rowsMapper.createMap(this.hot.countSourceRows())}},{key:"destroy",value:function(){this.rowsMapper.destroy(),sE(lE(t.prototype),"destroy",this).call(this)}}],r&&iE(n.prototype,r),t}(Rf);gu("trimRows",cE);const hE=cE;function fE(e,t){var n=new Mf(e,t||{},Pu);return n.init(),n}!function(e){var t="undefined"!=typeof window&&window.jQuery;t&&(t.fn.handsontable=function(t){var n,r=this.first(),o=r.data("handsontable");if("string"!=typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(r[0],i),r.data("handsontable",o),o.init()),r}if(o){if(void 0===o[t])throw new Error("Handsontable do not provide action: ".concat(t));for(var a,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];n=(a=o[t]).call.apply(a,[o].concat(l)),"destroy"===t&&r.removeData()}return n})}(fE),fE.Core=function(e){return new Mf(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pu)},fE.DefaultSettings=Fu,fE.EventManager=Jr,fE._getListenersCounter=function(){return qr},fE.packageName="handsontable",fE.buildDate="23/10/2019 14:08:03",fE.version="7.2.2",fE.hooks=ce.getSingleton(),fE.__GhostTable=Cf;var dE=[r,i,y,m,a,l,u,d,o,p,h,f,v],mE=[s,c];fE.helper={},fE.dom={},P(dE,(function(e){P(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(fE.helper[t]=e[t])}))})),P(mE,(function(e){P(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(fE.dom[t]=e[t])}))})),fE.cellTypes={},P(jl(),(function(e){fE.cellTypes[e]=Fl(e)})),fE.cellTypes.registerCellType=Wl,fE.cellTypes.getCellType=Fl,fE.editors={},P(Ks(),(function(e){fE.editors["".concat($r(e),"Editor")]=Qs(e)})),fE.editors.registerEditor=Zs,fE.editors.getEditor=Qs,fE.renderers={},P(ul(),(function(e){var t=cl(e);"base"===e&&(fE.renderers.cellDecorator=t),fE.renderers["".concat($r(e),"Renderer")]=t})),fE.renderers.registerRenderer=al,fE.renderers.getRenderer=cl,fE.validators={},P(gl(),(function(e){fE.validators["".concat($r(e),"Validator")]=wl(e)})),fE.validators.registerValidator=pl,fE.validators.getValidator=wl,fE.plugins={},P(Object.getOwnPropertyNames(C),(function(e){var t=C[e];"Base"===e?fE.plugins["".concat(e,"Plugin")]=t:fE.plugins[e]=t})),fE.plugins.registerPlugin=gu,fE.languages={},fE.languages.dictionaryKeys=g,fE.languages.getLanguageDictionary=kh,fE.languages.getLanguagesDictionaries=function(){return _h()},fE.languages.registerLanguageDictionary=Mh,fE.languages.getTranslatedPhrase=function(){return Oh.apply(void 0,arguments)};const pE=fE},12824:(e,t,n)=>{var r=n(51605),o=n(55159),i=n(92074),a=n(65335),s=n(82014).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},13811:(e,t,n)=>{"use strict";var r,o=n(30200),i=n(30281),a=n(92760),s=n(82014),l=n(92327),u=n(76784),c=n(65335),h=n(40111),f=n(99206).enforce,d=n(8369),m=!o.ActiveXObject&&"ActiveXObject"in o,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},y=l("WeakMap",p,u);if(d&&m){r=u.getConstructor(p,"WeakMap",!0),s.enable();var v=y.prototype,g=i(v.delete),w=i(v.has),b=i(v.get),_=i(v.set);a(v,{delete:function(e){if(c(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),g(this,e)||t.frozen.delete(e)}return g(this,e)},has:function(e){if(c(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),w(this,e)||t.frozen.has(e)}return w(this,e)},get:function(e){if(c(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),w(this,e)?b(this,e):t.frozen.get(e)}return b(this,e)},set:function(e,t){if(c(e)&&!h(e)){var n=f(this);n.frozen||(n.frozen=new r),w(this,e)?_(this,e,t):n.frozen.set(e,t)}else _(this,e,t);return this}})}},13838:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},13938:(e,t,n)=>{"use strict";n(92327)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5959))},14569:(e,t,n)=>{var r=n(82072);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},14602:(e,t,n)=>{var r=n(30200),o=n(5549),i=n(22975),a=n(18665),s=n(97712),l=n(31602),u=l("iterator"),c=l("toStringTag"),h=a.values,f=function(e,t){if(e){if(e[u]!==h)try{s(e,u,h)}catch(t){e[u]=h}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in o)f(r[d]&&r[d].prototype,d);f(i,"DOMTokenList")},14913:(e,t,n)=>{"use strict";var r=n(51605),o=n(18679),i=n(1466),a=n(65335),s=n(6539),l=n(23493),u=n(5476),c=n(52057),h=n(31602),f=n(45634),d=n(29609),m=f("slice"),p=h("species"),y=Array,v=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var n,r,h,f=u(this),m=l(f),g=s(e,m),w=s(void 0===t?m:t,m);if(o(f)&&(n=f.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[p]))&&(n=void 0),n===y||void 0===n))return d(f,g,w);for(r=new(void 0===n?y:n)(v(w-g,0)),h=0;g<w;g++,h++)g in f&&c(r,h,f[g]);return r.length=h,r}})},15195:(e,t,n)=>{var r=n(51605),o=n(51027);r({target:"Array",stat:!0,forced:!n(97499)((function(e){Array.from(e)}))},{from:o})},15816:(e,t,n)=>{var r=n(56492),o=n(30281),i=n(64789),a=n(18916),s=n(73938),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},15826:(e,t,n)=>{e=n.nmd(e);var r=void 0,o=function(t){return r||(r=new Promise((function(r,o){var i,a=void 0!==t?t:{},s=a.onAbort;a.onAbort=function(e){o(new Error(e)),s&&s(e)},a.postRun=a.postRun||[],a.postRun.push((function(){r(a)})),e=void 0,i||(i=void 0!==a?a:{}),i.onRuntimeInitialized=function(){function e(e,t){this.Ra=e,this.db=t,this.Qa=1,this.lb=[]}function t(e,t){if(this.db=t,t=X(e)+1,this.eb=Yt(t),null===this.eb)throw Error("Unable to allocate memory for the SQL string");q(e,j,this.eb,t),this.jb=this.eb,this.$a=this.pb=null}function n(e){if(this.filename="dbfile_"+(4294967295*Math.random()>>>0),null!=e){var t=this.filename,n=t?ve("//"+t):"/";if(n=Ze(n,4095&(void 0!==(t=yt(!0,!0))?t:438)|32768,0),e){if("string"==typeof e){for(var o=Array(e.length),i=0,s=e.length;i<s;++i)o[i]=e.charCodeAt(i);e=o}st(n,146|t),mt(o=ct(n,"w"),e,0,e.length,0,void 0),ht(o),st(n,t)}}this.handleError(a(this.filename,r)),this.db=O(r,"i32"),oe(this.db),this.fb={},this.Xa={}}var r=zt(4),o=i.cwrap,a=o("sqlite3_open","number",["string","number"]),s=o("sqlite3_close_v2","number",["number"]),l=o("sqlite3_exec","number",["number","string","number","number","number"]),u=o("sqlite3_changes","number",["number"]),c=o("sqlite3_prepare_v2","number",["number","string","number","number","number"]),h=o("sqlite3_sql","string",["number"]),f=o("sqlite3_normalized_sql","string",["number"]),d=o("sqlite3_prepare_v2","number",["number","number","number","number","number"]),m=o("sqlite3_bind_text","number",["number","number","number","number","number"]),p=o("sqlite3_bind_blob","number",["number","number","number","number","number"]),y=o("sqlite3_bind_double","number",["number","number","number"]),v=o("sqlite3_bind_int","number",["number","number","number"]),g=o("sqlite3_bind_parameter_index","number",["number","string"]),w=o("sqlite3_step","number",["number"]),b=o("sqlite3_errmsg","string",["number"]),_=o("sqlite3_column_count","number",["number"]),k=o("sqlite3_data_count","number",["number"]),R=o("sqlite3_column_double","number",["number","number"]),D=o("sqlite3_column_text","string",["number","number"]),A=o("sqlite3_column_blob","number",["number","number"]),H=o("sqlite3_column_bytes","number",["number","number"]),N=o("sqlite3_column_type","number",["number","number"]),P=o("sqlite3_column_name","string",["number","number"]),Y=o("sqlite3_reset","number",["number"]),F=o("sqlite3_clear_bindings","number",["number"]),W=o("sqlite3_finalize","number",["number"]),B=o("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),V=o("sqlite3_value_type","number",["number"]),U=o("sqlite3_value_bytes","number",["number"]),K=o("sqlite3_value_text","string",["number"]),J=o("sqlite3_value_blob","number",["number"]),$=o("sqlite3_value_double","number",["number"]),Q=o("sqlite3_result_double","",["number","number"]),Z=o("sqlite3_result_null","",["number"]),ee=o("sqlite3_result_text","",["number","string","number","number"]),te=o("sqlite3_result_blob","",["number","number","number","number"]),ne=o("sqlite3_result_int","",["number","number"]),re=o("sqlite3_result_error","",["number","string","number"]),oe=o("RegisterExtensionFunctions","number",["number"]);e.prototype.bind=function(e){if(!this.Ra)throw"Statement closed";return this.reset(),Array.isArray(e)?this.Bb(e):null==e||"object"!=typeof e||this.Cb(e)},e.prototype.step=function(){if(!this.Ra)throw"Statement closed";this.Qa=1;var e=w(this.Ra);switch(e){case 100:return!0;case 101:return!1;default:throw this.db.handleError(e)}},e.prototype.Ib=function(e){return null==e&&(e=this.Qa,this.Qa+=1),R(this.Ra,e)},e.prototype.Jb=function(e){return null==e&&(e=this.Qa,this.Qa+=1),D(this.Ra,e)},e.prototype.getBlob=function(e){null==e&&(e=this.Qa,this.Qa+=1);var t=H(this.Ra,e);e=A(this.Ra,e);for(var n=new Uint8Array(t),r=0;r<t;r+=1)n[r]=I[e+r];return n},e.prototype.get=function(e){null!=e&&this.bind(e)&&this.step(),e=[];for(var t=k(this.Ra),n=0;n<t;n+=1)switch(N(this.Ra,n)){case 1:case 2:e.push(this.Ib(n));break;case 3:e.push(this.Jb(n));break;case 4:e.push(this.getBlob(n));break;default:e.push(null)}return e},e.prototype.getColumnNames=function(){for(var e=[],t=_(this.Ra),n=0;n<t;n+=1)e.push(P(this.Ra,n));return e},e.prototype.getAsObject=function(e){e=this.get(e);for(var t=this.getColumnNames(),n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n},e.prototype.getSQL=function(){return h(this.Ra)},e.prototype.getNormalizedSQL=function(){return f(this.Ra)},e.prototype.run=function(e){return null!=e&&this.bind(e),this.step(),this.reset()},e.prototype.Fb=function(e,t){null==t&&(t=this.Qa,this.Qa+=1);var n=x(e=At(e));this.lb.push(n),this.db.handleError(m(this.Ra,t,n,e.length-1,0))},e.prototype.Ab=function(e,t){null==t&&(t=this.Qa,this.Qa+=1);var n=x(e);this.lb.push(n),this.db.handleError(p(this.Ra,t,n,e.length,0))},e.prototype.Eb=function(e,t){null==t&&(t=this.Qa,this.Qa+=1),this.db.handleError((e===(0|e)?v:y)(this.Ra,t,e))},e.prototype.Db=function(e){null==e&&(e=this.Qa,this.Qa+=1),p(this.Ra,e,0,0,0)},e.prototype.tb=function(e,t){switch(null==t&&(t=this.Qa,this.Qa+=1),typeof e){case"string":return void this.Fb(e,t);case"number":case"boolean":return void this.Eb(e+0,t);case"object":if(null===e)return void this.Db(t);if(null!=e.length)return void this.Ab(e,t)}throw"Wrong API use : tried to bind a value of an unknown type ("+e+")."},e.prototype.Cb=function(e){var t=this;return Object.keys(e).forEach((function(n){var r=g(t.Ra,n);0!==r&&t.tb(e[n],r)})),!0},e.prototype.Bb=function(e){for(var t=0;t<e.length;t+=1)this.tb(e[t],t+1);return!0},e.prototype.reset=function(){return 0===F(this.Ra)&&0===Y(this.Ra)},e.prototype.freemem=function(){for(var e;void 0!==(e=this.lb.pop());)It(e)},e.prototype.free=function(){var e=0===W(this.Ra);return delete this.db.fb[this.Ra],this.Ra=0,e},t.prototype.next=function(){if(null===this.eb)return{done:!0};if(null!==this.$a&&(this.$a.free(),this.$a=null),!this.db.db)throw this.nb(),Error("Database closed");var t=Vt(),n=zt(4);E(r),E(n);try{this.db.handleError(d(this.db.db,this.jb,-1,r,n)),this.jb=O(n,"i32");var o=O(r,"i32");return 0===o?(this.nb(),{done:!0}):(this.$a=new e(o,this.db),this.db.fb[o]=this.$a,{value:this.$a,done:!1})}catch(e){throw this.pb=G(this.jb),this.nb(),e}finally{Ut(t)}},t.prototype.nb=function(){It(this.eb),this.eb=null},t.prototype.getRemainingSQL=function(){return null!==this.pb?this.pb:G(this.jb)},"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(t.prototype[Symbol.iterator]=function(){return this}),n.prototype.run=function(e,t){if(!this.db)throw"Database closed";if(t){e=this.prepare(e,t);try{e.step()}finally{e.free()}}else this.handleError(l(this.db,e,0,0,r));return this},n.prototype.exec=function(t,n){if(!this.db)throw"Database closed";var o=Vt(),i=null;try{var a=X(t)+1,s=zt(a);q(t,I,s,a);var l=s,u=zt(4);for(t=[];0!==O(l,"i8");){E(r),E(u),this.handleError(d(this.db,l,-1,r,u));var c=O(r,"i32");if(l=O(u,"i32"),0!==c){for(a=null,i=new e(c,this),null!=n&&i.bind(n);i.step();)null===a&&(a={columns:i.getColumnNames(),values:[]},t.push(a)),a.values.push(i.get());i.free()}}return t}catch(e){throw i&&i.free(),e}finally{Ut(o)}},n.prototype.each=function(e,t,n,r){"function"==typeof t&&(r=n,n=t,t=void 0),e=this.prepare(e,t);try{for(;e.step();)n(e.getAsObject())}finally{e.free()}if("function"==typeof r)return r()},n.prototype.prepare=function(t,n){if(E(r),this.handleError(c(this.db,t,-1,r,0)),0===(t=O(r,"i32")))throw"Nothing to prepare";var o=new e(t,this);return null!=n&&o.bind(n),this.fb[t]=o},n.prototype.iterateStatements=function(e){return new t(e,this)},n.prototype.export=function(){Object.values(this.fb).forEach((function(e){e.free()})),Object.values(this.Xa).forEach(T),this.Xa={},this.handleError(s(this.db));var e=function(e){var t={encoding:"binary"};if((t=t||{}).flags=t.flags||"r",t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw Error('Invalid encoding type "'+t.encoding+'"');var n,r=ct(e,t.flags);e=it(e).size;var o=new Uint8Array(e);return dt(r,o,0,e,0),"utf8"===t.encoding?n=z(o,0):"binary"===t.encoding&&(n=o),ht(r),n}(this.filename);return this.handleError(a(this.filename,r)),this.db=O(r,"i32"),e},n.prototype.close=function(){null!==this.db&&(Object.values(this.fb).forEach((function(e){e.free()})),Object.values(this.Xa).forEach(T),this.Xa={},this.handleError(s(this.db)),rt("/"+this.filename),this.db=null)},n.prototype.handleError=function(e){if(0===e)return null;throw e=b(this.db),Error(e)},n.prototype.getRowsModified=function(){return u(this.db)},n.prototype.create_function=function(e,t){Object.prototype.hasOwnProperty.call(this.Xa,e)&&(C(this.Xa[e]),delete this.Xa[e]);var n=function(e){var t=L;if(!M){M=new WeakMap;for(var n=0;n<t.length;n++){var r=t.get(n);r&&M.set(r,n)}}if(M.has(e))e=M.get(e);else{if(S.length)n=S.pop();else{n=t.length;try{t.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}}try{t.set(n,e)}catch(a){if(!(a instanceof TypeError))throw a;if("function"==typeof WebAssembly.Function){var o={i:"i32",j:"i64",f:"f32",d:"f64"},i={parameters:[],results:[]};for(r=1;4>r;++r)i.parameters.push(o["viii"[r]]);r=new WebAssembly.Function(i,e)}else{for(i={i:127,j:126,f:125,d:124},(o=[1,0,1,96]).push(3),r=0;3>r;++r)o.push(i["iii"[r]]);o.push(0),o[1]=o.length-2,r=new Uint8Array([0,97,115,109,1,0,0,0].concat(o,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),r=new WebAssembly.Module(r),r=new WebAssembly.Instance(r,{e:{f:e}}).exports.f}t.set(n,r)}M.set(e,n),e=n}return e}((function(e,n,r){for(var o,i=[],a=0;a<n;a+=1){var s=O(r+4*a,"i32"),l=V(s);if(1===l||2===l)s=$(s);else if(3===l)s=K(s);else if(4===l){s=U(l=s),l=J(l);for(var u=new Uint8Array(s),c=0;c<s;c+=1)u[c]=I[l+c];s=u}else s=null;i.push(s)}try{o=t.apply(null,i)}catch(t){return void re(e,t,-1)}switch(typeof o){case"boolean":ne(e,o?1:0);break;case"number":Q(e,o);break;case"string":ee(e,o,-1,-1);break;case"object":null===o?Z(e):null!=o.length?(n=x(o),te(e,n,o.length,-1),It(n)):re(e,"Wrong API use : tried to return a value of an unknown type ("+o+").",-1);break;default:Z(e)}}));return this.Xa[e]=n,this.handleError(B(this.db,e,t.length,1,0,n,0,0,0)),this},i.Database=n};var l,u={};for(l in i)i.hasOwnProperty(l)&&(u[l]=i[l]);var c,h,f,d,m="./this.program";c="object"==typeof window,h="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,d=!c&&!f&&!h;var p,y,v,g,w="";f?(w=h?n(39234).dirname(w)+"/":"//",p=function(e,t){return v||(v=n(46490)),g||(g=n(39234)),e=g.normalize(e),v.readFileSync(e,t?null:"utf8")},y=function(e){return(e=p(e,!0)).buffer||(e=new Uint8Array(e)),A(e.buffer),e},1<process.argv.length&&(m=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),e.exports=i,i.inspect=function(){return"[Emscripten Module object]"}):d?("undefined"!=typeof read&&(p=function(e){return read(e)}),y=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(A("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(c||h)&&(h?w=self.location.href:document.currentScript&&(w=document.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",p=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},h&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var b=i.print||console.log.bind(console),_=i.printErr||console.warn.bind(console);for(l in u)u.hasOwnProperty(l)&&(i[l]=u[l]);u=null,i.thisProgram&&(m=i.thisProgram);var M,k,S=[];function C(e){M.delete(L.get(e)),S.push(e)}function T(e){C(e)}function E(e){var t="i32";switch("*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":I[0|e]=0;break;case"i16":F[e>>1]=0;break;case"i32":W[e>>2]=0;break;case"i64":ce=[0,(ue=0,1<=+Math.abs(ue)?0<ue?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],W[e>>2]=ce[0],W[e+4>>2]=ce[1];break;case"float":B[e>>2]=0;break;case"double":V[e>>3]=0;break;default:ae("invalid type for setValue: "+t)}}function O(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return I[0|e];case"i16":return F[e>>1];case"i32":case"i64":return W[e>>2];case"float":return B[e>>2];case"double":return V[e>>3];default:ae("invalid type for getValue: "+t)}return null}i.wasmBinary&&(k=i.wasmBinary),i.noExitRuntime&&i.noExitRuntime,"object"!=typeof WebAssembly&&ae("no native wasm support detected");var R,L,D=!1;function A(e,t){e||ae("Assertion failed: "+t)}function H(e){var t=i["_"+e];return A(t,"Cannot call unknown function "+e+", make sure it is exported"),t}var N=0,P=1;function x(e){var t=N==P?zt(e.length):Yt(e.length);return e.subarray||e.slice?j.set(e,t):j.set(new Uint8Array(e),t),t}var Y,I,j,F,W,B,V,U="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function z(e,t,n){var r=t+n;for(n=t;e[n]&&!(n>=r);)++n;if(16<n-t&&e.subarray&&U)return U.decode(e.subarray(t,n));for(r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192==(224&o))r+=String.fromCharCode((31&o)<<6|i);else{var a=63&e[t++];65536>(o=224==(240&o)?(15&o)<<12|i<<6|a:(7&o)<<18|i<<12|a<<6|63&e[t++])?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else r+=String.fromCharCode(o)}return r}function G(e,t){return e?z(j,e,t):""}function q(e,t,n,r){if(!(0<r))return 0;var o=n;r=n+r-1;for(var i=0;i<e.length;++i){var a=e.charCodeAt(i);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),127>=a){if(n>=r)break;t[n++]=a}else{if(2047>=a){if(n+1>=r)break;t[n++]=192|a>>6}else{if(65535>=a){if(n+2>=r)break;t[n++]=224|a>>12}else{if(n+3>=r)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63}t[n++]=128|a>>6&63}t[n++]=128|63&a}}return t[n]=0,n-o}function X(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);55296<=r&&57343>=r&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),127>=r?++t:t=2047>=r?t+2:65535>=r?t+3:t+4}return t}function K(e){var t=X(e)+1,n=Yt(t);return n&&q(e,I,n,t),n}function J(e){Y=e,i.HEAP8=I=new Int8Array(e),i.HEAP16=F=new Int16Array(e),i.HEAP32=W=new Int32Array(e),i.HEAPU8=j=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAPU32=new Uint32Array(e),i.HEAPF32=B=new Float32Array(e),i.HEAPF64=V=new Float64Array(e)}var $=i.INITIAL_MEMORY||16777216;(R=i.wasmMemory?i.wasmMemory:new WebAssembly.Memory({initial:$/65536,maximum:32768}))&&(Y=R.buffer),$=Y.byteLength,J(Y);var Q=[],Z=[],ee=[],te=[];function ne(){var e=i.preRun.shift();Q.unshift(e)}var re=0,oe=null,ie=null;function ae(e){throw i.onAbort&&i.onAbort(e),_(e),D=!0,new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info.")}function se(e){var t=fe;return String.prototype.startsWith?t.startsWith(e):0===t.indexOf(e)}function le(){return se("data:application/octet-stream;base64,")}i.preloadedImages={},i.preloadedAudios={};var ue,ce,he,fe="sql-wasm.wasm";if(!le()){var de=fe;fe=i.locateFile?i.locateFile(de,w):w+de}function me(){try{if(k)return new Uint8Array(k);if(y)return y(fe);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}function pe(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t(i);else{var n=t.Hb;"number"==typeof n?void 0===t.mb?L.get(n)():L.get(n)(t.mb):n(void 0===t.mb?null:t.mb)}}}function ye(e,t){for(var n=0,r=e.length-1;0<=r;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift("..");return e}function ve(e){var t="/"===e.charAt(0),n="/"===e.substr(-1);return(e=ye(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function ge(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function we(e){if("/"===e)return"/";var t=(e=(e=ve(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)}function be(e){W[xt()>>2]=e}function _e(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){if("string"!=typeof(t=0<=n?arguments[n]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=ye(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."}var Me=[];function ke(e,t){Me[e]={input:[],output:[],cb:t},$e(e,Se)}var Se={open:function(e){var t=Me[e.node.rdev];if(!t)throw new Pe(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.cb.flush(e.tty)},flush:function(e){e.tty.cb.flush(e.tty)},read:function(e,t,n,r){if(!e.tty||!e.tty.cb.xb)throw new Pe(60);for(var o=0,i=0;i<r;i++){try{var a=e.tty.cb.xb(e.tty)}catch(e){throw new Pe(29)}if(void 0===a&&0===o)throw new Pe(6);if(null==a)break;o++,t[n+i]=a}return o&&(e.node.timestamp=Date.now()),o},write:function(e,t,n,r){if(!e.tty||!e.tty.cb.qb)throw new Pe(60);try{for(var o=0;o<r;o++)e.tty.cb.qb(e.tty,t[n+o])}catch(e){throw new Pe(29)}return r&&(e.node.timestamp=Date.now()),o}},Ce={xb:function(e){if(!e.input.length){var t=null;if(f){var n=Buffer.zb?Buffer.zb(256):new Buffer(256),r=0;try{r=v.readSync(process.stdin.fd,n,0,256,null)}catch(e){if(-1==e.toString().indexOf("EOF"))throw e;r=0}t=0<r?n.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;e.input=At(t,!0)}return e.input.shift()},qb:function(e,t){null===t||10===t?(b(z(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&0<e.output.length&&(b(z(e.output,0)),e.output=[])}},Te={qb:function(e,t){null===t||10===t?(_(z(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&0<e.output.length&&(_(z(e.output,0)),e.output=[])}},Ee={Va:null,Wa:function(){return Ee.createNode(null,"/",16895,0)},createNode:function(e,t,n,r){if(24576==(61440&n)||4096==(61440&n))throw new Pe(63);return Ee.Va||(Ee.Va={dir:{node:{Ua:Ee.Na.Ua,Ta:Ee.Na.Ta,lookup:Ee.Na.lookup,gb:Ee.Na.gb,rename:Ee.Na.rename,unlink:Ee.Na.unlink,rmdir:Ee.Na.rmdir,readdir:Ee.Na.readdir,symlink:Ee.Na.symlink},stream:{Za:Ee.Oa.Za}},file:{node:{Ua:Ee.Na.Ua,Ta:Ee.Na.Ta},stream:{Za:Ee.Oa.Za,read:Ee.Oa.read,write:Ee.Oa.write,sb:Ee.Oa.sb,hb:Ee.Oa.hb,ib:Ee.Oa.ib}},link:{node:{Ua:Ee.Na.Ua,Ta:Ee.Na.Ta,readlink:Ee.Na.readlink},stream:{}},ub:{node:{Ua:Ee.Na.Ua,Ta:Ee.Na.Ta},stream:Je}}),Ve((n=Be(e,t,n,r)).mode)?(n.Na=Ee.Va.dir.node,n.Oa=Ee.Va.dir.stream,n.Ma={}):32768==(61440&n.mode)?(n.Na=Ee.Va.file.node,n.Oa=Ee.Va.file.stream,n.Sa=0,n.Ma=null):40960==(61440&n.mode)?(n.Na=Ee.Va.link.node,n.Oa=Ee.Va.link.stream):8192==(61440&n.mode)&&(n.Na=Ee.Va.ub.node,n.Oa=Ee.Va.ub.stream),n.timestamp=Date.now(),e&&(e.Ma[t]=n),n},Sb:function(e){if(e.Ma&&e.Ma.subarray){for(var t=[],n=0;n<e.Sa;++n)t.push(e.Ma[n]);return t}return e.Ma},Tb:function(e){return e.Ma?e.Ma.subarray?e.Ma.subarray(0,e.Sa):new Uint8Array(e.Ma):new Uint8Array(0)},vb:function(e,t){var n=e.Ma?e.Ma.length:0;n>=t||(t=Math.max(t,n*(1048576>n?2:1.125)>>>0),0!=n&&(t=Math.max(t,256)),n=e.Ma,e.Ma=new Uint8Array(t),0<e.Sa&&e.Ma.set(n.subarray(0,e.Sa),0))},Pb:function(e,t){if(e.Sa!=t)if(0==t)e.Ma=null,e.Sa=0;else{if(!e.Ma||e.Ma.subarray){var n=e.Ma;e.Ma=new Uint8Array(t),n&&e.Ma.set(n.subarray(0,Math.min(t,e.Sa)))}else if(e.Ma||(e.Ma=[]),e.Ma.length>t)e.Ma.length=t;else for(;e.Ma.length<t;)e.Ma.push(0);e.Sa=t}},Na:{Ua:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,Ve(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.Sa:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.Gb=4096,t.blocks=Math.ceil(t.size/t.Gb),t},Ta:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&Ee.Pb(e,t.size)},lookup:function(){throw xe[44]},gb:function(e,t,n,r){return Ee.createNode(e,t,n,r)},rename:function(e,t,n){if(Ve(e.mode)){try{var r=We(t,n)}catch(e){}if(r)for(var o in r.Ma)throw new Pe(55)}delete e.parent.Ma[e.name],e.name=n,t.Ma[n]=e,e.parent=t},unlink:function(e,t){delete e.Ma[t]},rmdir:function(e,t){var n,r=We(e,t);for(n in r.Ma)throw new Pe(55);delete e.Ma[t]},readdir:function(e){var t,n=[".",".."];for(t in e.Ma)e.Ma.hasOwnProperty(t)&&n.push(t);return n},symlink:function(e,t,n){return(e=Ee.createNode(e,t,41471,0)).link=n,e},readlink:function(e){if(40960!=(61440&e.mode))throw new Pe(28);return e.link}},Oa:{read:function(e,t,n,r,o){var i=e.node.Ma;if(o>=e.node.Sa)return 0;if(8<(e=Math.min(e.node.Sa-o,r))&&i.subarray)t.set(i.subarray(o,o+e),n);else for(r=0;r<e;r++)t[n+r]=i[o+r];return e},write:function(e,t,n,r,o,i){if(t.buffer===I.buffer&&(i=!1),!r)return 0;if((e=e.node).timestamp=Date.now(),t.subarray&&(!e.Ma||e.Ma.subarray)){if(i)return e.Ma=t.subarray(n,n+r),e.Sa=r;if(0===e.Sa&&0===o)return e.Ma=t.slice(n,n+r),e.Sa=r;if(o+r<=e.Sa)return e.Ma.set(t.subarray(n,n+r),o),r}if(Ee.vb(e,o+r),e.Ma.subarray&&t.subarray)e.Ma.set(t.subarray(n,n+r),o);else for(i=0;i<r;i++)e.Ma[o+i]=t[n+i];return e.Sa=Math.max(e.Sa,o+r),r},Za:function(e,t,n){if(1===n?t+=e.position:2===n&&32768==(61440&e.node.mode)&&(t+=e.node.Sa),0>t)throw new Pe(28);return t},sb:function(e,t,n){Ee.vb(e.node,t+n),e.node.Sa=Math.max(e.node.Sa,t+n)},hb:function(e,t,n,r,o,i){if(A(0===t),32768!=(61440&e.node.mode))throw new Pe(43);if(e=e.node.Ma,2&i||e.buffer!==Y){for((0<r||r+n<e.length)&&(e=e.subarray?e.subarray(r,r+n):Array.prototype.slice.call(e,r,r+n)),r=!0,i=16384*Math.ceil(n/16384),t=Yt(i);n<i;)I[t+n++]=0;if(!(n=t))throw new Pe(48);I.set(e,n)}else r=!1,n=e.byteOffset;return{Ob:n,kb:r}},ib:function(e,t,n,r,o){if(32768!=(61440&e.node.mode))throw new Pe(43);return 2&o||Ee.Oa.write(e,t,0,r,n,!1),0}}},Oe=null,Re={},Le=[],De=1,Ae=null,He=!0,Ne={},Pe=null,xe={};function Ye(e,t){if(t=t||{},!(e=_e("/",e)))return{path:"",node:null};var n,r={wb:!0,rb:0};for(n in r)void 0===t[n]&&(t[n]=r[n]);if(8<t.rb)throw new Pe(32);e=ye(e.split("/").filter((function(e){return!!e})),!1);var o=Oe;for(r="/",n=0;n<e.length;n++){var i=n===e.length-1;if(i&&t.parent)break;if(o=We(o,e[n]),r=ve(r+"/"+e[n]),o.ab&&(!i||i&&t.wb)&&(o=o.ab.root),!i||t.Ya)for(i=0;40960==(61440&o.mode);)if(o=ot(r),o=Ye(r=_e(ge(r),o),{rb:t.rb}).node,40<i++)throw new Pe(32)}return{path:r,node:o}}function Ie(e){for(var t;;){if(e===e.parent)return e=e.Wa.yb,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function je(e,t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r)|0;return(e+n>>>0)%Ae.length}function Fe(e){var t=je(e.parent.id,e.name);if(Ae[t]===e)Ae[t]=e.bb;else for(t=Ae[t];t;){if(t.bb===e){t.bb=e.bb;break}t=t.bb}}function We(e,t){var n;if(n=(n=Ge(e,"x"))?n:e.Na.lookup?0:2)throw new Pe(n,e);for(n=Ae[je(e.id,t)];n;n=n.bb){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return e.Na.lookup(e,t)}function Be(e,t,n,r){return t=je((e=new Dt(e,t,n,r)).parent.id,e.name),e.bb=Ae[t],Ae[t]=e}function Ve(e){return 16384==(61440&e)}var Ue={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function ze(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function Ge(e,t){return He||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:2}function qe(e,t){try{return We(e,t),20}catch(e){}return Ge(e,"wx")}function Xe(e,t,n){try{var r=We(e,t)}catch(e){return e.Pa}if(e=Ge(e,"wx"))return e;if(n){if(!Ve(r.mode))return 54;if(r===r.parent||"/"===Ie(r))return 10}else if(Ve(r.mode))return 31;return 0}var Ke,Je={open:function(e){e.Oa=Re[e.node.rdev].Oa,e.Oa.open&&e.Oa.open(e)},Za:function(){throw new Pe(70)}};function $e(e,t){Re[e]={Oa:t}}function Qe(e,t){var n="/"===t,r=!t;if(n&&Oe)throw new Pe(10);if(!n&&!r){var o=Ye(t,{wb:!1});if(t=o.path,(o=o.node).ab)throw new Pe(10);if(!Ve(o.mode))throw new Pe(54)}t={type:e,Ub:{},yb:t,Mb:[]},(e=e.Wa(t)).Wa=t,t.root=e,n?Oe=e:o&&(o.ab=t,o.Wa&&o.Wa.Mb.push(t))}function Ze(e,t,n){var r=Ye(e,{parent:!0}).node;if(!(e=we(e))||"."===e||".."===e)throw new Pe(28);var o=qe(r,e);if(o)throw new Pe(o);if(!r.Na.gb)throw new Pe(63);return r.Na.gb(r,e,t,n)}function et(e,t){Ze(e,1023&(void 0!==t?t:511)|16384,0)}function tt(e,t,n){void 0===n&&(n=t,t=438),Ze(e,8192|t,n)}function nt(e,t){if(!_e(e))throw new Pe(44);var n=Ye(t,{parent:!0}).node;if(!n)throw new Pe(44);var r=qe(n,t=we(t));if(r)throw new Pe(r);if(!n.Na.symlink)throw new Pe(63);n.Na.symlink(n,t,e)}function rt(e){var t=Ye(e,{parent:!0}).node,n=we(e),r=We(t,n),o=Xe(t,n,!1);if(o)throw new Pe(o);if(!t.Na.unlink)throw new Pe(63);if(r.ab)throw new Pe(10);try{Ne.willDeletePath&&Ne.willDeletePath(e)}catch(t){_("FS.trackingDelegate['willDeletePath']('"+e+"') threw an exception: "+t.message)}t.Na.unlink(t,n),Fe(r);try{Ne.onDeletePath&&Ne.onDeletePath(e)}catch(t){_("FS.trackingDelegate['onDeletePath']('"+e+"') threw an exception: "+t.message)}}function ot(e){if(!(e=Ye(e).node))throw new Pe(44);if(!e.Na.readlink)throw new Pe(28);return _e(Ie(e.parent),e.Na.readlink(e))}function it(e,t){if(!(e=Ye(e,{Ya:!t}).node))throw new Pe(44);if(!e.Na.Ua)throw new Pe(63);return e.Na.Ua(e)}function at(e){return it(e,!0)}function st(e,t){var n;if(!(n="string"==typeof e?Ye(e,{Ya:!0}).node:e).Na.Ta)throw new Pe(63);n.Na.Ta(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})}function lt(e){var t;if(!(t="string"==typeof e?Ye(e,{Ya:!0}).node:e).Na.Ta)throw new Pe(63);t.Na.Ta(t,{timestamp:Date.now()})}function ut(e,t){if(0>t)throw new Pe(28);var n;if(!(n="string"==typeof e?Ye(e,{Ya:!0}).node:e).Na.Ta)throw new Pe(63);if(Ve(n.mode))throw new Pe(31);if(32768!=(61440&n.mode))throw new Pe(28);if(e=Ge(n,"w"))throw new Pe(e);n.Na.Ta(n,{size:t,timestamp:Date.now()})}function ct(e,t,n,r){if(""===e)throw new Pe(44);if("string"==typeof t){var o=Ue[t];if(void 0===o)throw Error("Unknown file open mode: "+t);t=o}if(n=64&t?4095&(void 0===n?438:n)|32768:0,"object"==typeof e)var a=e;else{e=ve(e);try{a=Ye(e,{Ya:!(131072&t)}).node}catch(e){}}if(o=!1,64&t)if(a){if(128&t)throw new Pe(20)}else a=Ze(e,n,0),o=!0;if(!a)throw new Pe(44);if(8192==(61440&a.mode)&&(t&=-513),65536&t&&!Ve(a.mode))throw new Pe(54);if(!o&&(n=a?40960==(61440&a.mode)?32:Ve(a.mode)&&("r"!==ze(t)||512&t)?31:Ge(a,ze(t)):44))throw new Pe(n);512&t&&ut(a,0),t&=-131713,(r=function(e,t){wt||((wt=function(){}).prototype={});var n,r=new wt;for(n in e)r[n]=e[n];return e=r,t=function(e){for(e=e||0;e<=4096;e++)if(!Le[e])return e;throw new Pe(33)}(t),e.fd=t,Le[t]=e}({node:a,path:Ie(a),flags:t,seekable:!0,position:0,Oa:a.Oa,Rb:[],error:!1},r)).Oa.open&&r.Oa.open(r),!i.logReadFiles||1&t||(bt||(bt={}),e in bt||(bt[e]=1,_("FS.trackingDelegate error on read file: "+e)));try{Ne.onOpenFile&&(a=0,1!=(2097155&t)&&(a|=1),!!(2097155&t)&&(a|=2),Ne.onOpenFile(e,a))}catch(t){_("FS.trackingDelegate['onOpenFile']('"+e+"', flags) threw an exception: "+t.message)}return r}function ht(e){if(null===e.fd)throw new Pe(8);e.ob&&(e.ob=null);try{e.Oa.close&&e.Oa.close(e)}catch(e){throw e}finally{Le[e.fd]=null}e.fd=null}function ft(e,t,n){if(null===e.fd)throw new Pe(8);if(!e.seekable||!e.Oa.Za)throw new Pe(70);if(0!=n&&1!=n&&2!=n)throw new Pe(28);e.position=e.Oa.Za(e,t,n),e.Rb=[]}function dt(e,t,n,r,o){if(0>r||0>o)throw new Pe(28);if(null===e.fd)throw new Pe(8);if(1==(2097155&e.flags))throw new Pe(8);if(Ve(e.node.mode))throw new Pe(31);if(!e.Oa.read)throw new Pe(28);var i=void 0!==o;if(i){if(!e.seekable)throw new Pe(70)}else o=e.position;return t=e.Oa.read(e,t,n,r,o),i||(e.position+=t),t}function mt(e,t,n,r,o,i){if(0>r||0>o)throw new Pe(28);if(null===e.fd)throw new Pe(8);if(!(2097155&e.flags))throw new Pe(8);if(Ve(e.node.mode))throw new Pe(31);if(!e.Oa.write)throw new Pe(28);e.seekable&&1024&e.flags&&ft(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new Pe(70)}else o=e.position;t=e.Oa.write(e,t,n,r,o,i),a||(e.position+=t);try{e.path&&Ne.onWriteToFile&&Ne.onWriteToFile(e.path)}catch(t){_("FS.trackingDelegate['onWriteToFile']('"+e.path+"') threw an exception: "+t.message)}return t}function pt(){Pe||((Pe=function(e,t){this.node=t,this.Qb=function(e){this.Pa=e},this.Qb(e),this.message="FS error"}).prototype=Error(),Pe.prototype.constructor=Pe,[44].forEach((function(e){xe[e]=new Pe(e),xe[e].stack="<generic error, no stack>"})))}function yt(e,t){var n=0;return e&&(n|=365),t&&(n|=146),n}function vt(e,t,n){e=ve("/dev/"+e);var r=yt(!!t,!!n);gt||(gt=64);var o=gt++<<8;$e(o,{open:function(e){e.seekable=!1},close:function(){n&&n.buffer&&n.buffer.length&&n(10)},read:function(e,n,r,o){for(var i=0,a=0;a<o;a++){try{var s=t()}catch(e){throw new Pe(29)}if(void 0===s&&0===i)throw new Pe(6);if(null==s)break;i++,n[r+a]=s}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,r,o){for(var i=0;i<o;i++)try{n(t[r+i])}catch(e){throw new Pe(29)}return o&&(e.node.timestamp=Date.now()),i}}),tt(e,r,o)}var gt,wt,bt,_t={};function Mt(e,t,n){try{var r=e(t)}catch(e){if(e&&e.node&&ve(t)!==ve(Ie(e.node)))return-54;throw e}return W[n>>2]=r.dev,W[n+4>>2]=0,W[n+8>>2]=r.ino,W[n+12>>2]=r.mode,W[n+16>>2]=r.nlink,W[n+20>>2]=r.uid,W[n+24>>2]=r.gid,W[n+28>>2]=r.rdev,W[n+32>>2]=0,ce=[r.size>>>0,(ue=r.size,1<=+Math.abs(ue)?0<ue?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],W[n+40>>2]=ce[0],W[n+44>>2]=ce[1],W[n+48>>2]=4096,W[n+52>>2]=r.blocks,W[n+56>>2]=r.atime.getTime()/1e3|0,W[n+60>>2]=0,W[n+64>>2]=r.mtime.getTime()/1e3|0,W[n+68>>2]=0,W[n+72>>2]=r.ctime.getTime()/1e3|0,W[n+76>>2]=0,ce=[r.ino>>>0,(ue=r.ino,1<=+Math.abs(ue)?0<ue?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],W[n+80>>2]=ce[0],W[n+84>>2]=ce[1],0}var kt=void 0;function St(){return W[(kt+=4)-4>>2]}function Ct(e){if(!(e=Le[e]))throw new Pe(8);return e}var Tt,Et,Ot={};function Rt(){if(!Tt){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"};for(e in Ot)t[e]=Ot[e];var n=[];for(e in t)n.push(e+"="+t[e]);Tt=n}return Tt}function Lt(e){for(var t=Et();Et()-t<e/1e3;);}function Dt(e,t,n,r){e||(e=this),this.parent=e,this.Wa=e.Wa,this.ab=null,this.id=De++,this.name=t,this.mode=n,this.Na={},this.Oa={},this.rdev=r}function At(e,t){var n=Array(X(e)+1);return e=q(e,n,0,n.length),t&&(n.length=e),n}Et=f?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()},i._usleep=Lt,Object.defineProperties(Dt.prototype,{read:{get:function(){return!(365&~this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return!(146&~this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),pt(),Ae=Array(4096),Qe(Ee,"/"),et("/tmp"),et("/home"),et("/home/web_user"),function(){et("/dev"),$e(259,{read:function(){return 0},write:function(e,t,n,r){return r}}),tt("/dev/null",259),ke(1280,Ce),ke(1536,Te),tt("/dev/tty",1280),tt("/dev/tty1",1536);var e=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}if(f)try{var t=n(67920);return function(){return t.randomBytes(1)[0]}}catch(e){}return function(){ae("randomDevice")}}();vt("random",e),vt("urandom",e),et("/dev/shm"),et("/dev/shm/tmp")}(),et("/proc"),et("/proc/self"),et("/proc/self/fd"),Qe({Wa:function(){var e=Be("/proc/self","fd",16895,73);return e.Na={lookup:function(e,t){var n=Le[+t];if(!n)throw new Pe(8);return(e={parent:null,Wa:{yb:"fake"},Na:{readlink:function(){return n.path}}}).parent=e}},e}},"/proc/self/fd"),Z.push({Hb:function(){Nt()}});var Ht={b:function(e,t,n,r){ae("Assertion failed: "+G(e)+", at: "+[t?G(t):"unknown filename",n,r?G(r):"unknown function"])},q:function(e,t){!function(){function e(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}if(!he){he=!0,W[Bt()>>2]=60*(new Date).getTimezoneOffset();var t=(new Date).getFullYear(),n=new Date(t,0,1);t=new Date(t,6,1),W[Wt()>>2]=Number(n.getTimezoneOffset()!=t.getTimezoneOffset());var r=e(n),o=e(t);r=K(r),o=K(o),t.getTimezoneOffset()<n.getTimezoneOffset()?(W[Ft()>>2]=r,W[Ft()+4>>2]=o):(W[Ft()>>2]=o,W[Ft()+4>>2]=r)}}(),e=new Date(1e3*W[e>>2]),W[t>>2]=e.getSeconds(),W[t+4>>2]=e.getMinutes(),W[t+8>>2]=e.getHours(),W[t+12>>2]=e.getDate(),W[t+16>>2]=e.getMonth(),W[t+20>>2]=e.getFullYear()-1900,W[t+24>>2]=e.getDay();var n=new Date(e.getFullYear(),0,1);W[t+28>>2]=(e.getTime()-n.getTime())/864e5|0,W[t+36>>2]=-60*e.getTimezoneOffset();var r=new Date(e.getFullYear(),6,1).getTimezoneOffset();return e=0|(r!=(n=n.getTimezoneOffset())&&e.getTimezoneOffset()==Math.min(n,r)),W[t+32>>2]=e,e=W[Ft()+(e?4:0)>>2],W[t+40>>2]=e,t},z:function(e,t){try{var n;if(e=G(e),-8&t)var r=-28;else(n=Ye(e,{Ya:!0}).node)?(e="",4&t&&(e+="r"),2&t&&(e+="w"),1&t&&(e+="x"),r=e&&Ge(n,e)?-2:0):r=-44;return r}catch(e){return e instanceof Pe||ae(e),-e.Pa}},i:function(e,t){try{return st(e=G(e),t),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},t:function(e){try{return lt(e=G(e)),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},j:function(e,t){try{var n=Le[e];if(!n)throw new Pe(8);return st(n.node,t),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},u:function(e){try{var t=Le[e];if(!t)throw new Pe(8);return lt(t.node),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},c:function(e,t,n){kt=n;try{var r=Ct(e);switch(t){case 0:var o=St();return 0>o?-28:ct(r.path,r.flags,0,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return r.flags;case 4:return o=St(),r.flags|=o,0;case 12:return o=St(),F[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return be(28),-1}}catch(e){return e instanceof Pe||ae(e),-e.Pa}},K:function(e,t){try{return Mt(it,Ct(e).path,t)}catch(e){return e instanceof Pe||ae(e),-e.Pa}},v:function(e,t,n){try{var r=Le[e];if(!r)throw new Pe(8);if(!(2097155&r.flags))throw new Pe(28);return ut(r.node,n),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},w:function(e,t){try{return 0===t?-28:t<X("/")+1?-68:(q("/",j,e,t),e)}catch(e){return e instanceof Pe||ae(e),-e.Pa}},s:function(){return 0},e:function(){return 42},J:function(e,t){try{return Mt(at,e=G(e),t)}catch(e){return e instanceof Pe||ae(e),-e.Pa}},I:function(e,t){try{return"/"===(e=ve(e=G(e)))[e.length-1]&&(e=e.substr(0,e.length-1)),et(e,t),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},G:function(e,t,n,r,o,i){try{e:{i<<=12;var a=!1;if(16&r&&0!=e%16384)var s=-28;else{if(32&r){var l=Gt(16384,t);if(!l){s=-48;break e}Pt(l,0,t),a=!0}else{var u=Le[o];if(!u){s=-8;break e}var c=i;if(2&n&&!(2&r)&&2!=(2097155&u.flags))throw new Pe(2);if(1==(2097155&u.flags))throw new Pe(2);if(!u.Oa.hb)throw new Pe(43);var h=u.Oa.hb(u,e,t,c,n,r);l=h.Ob,a=h.kb}_t[l]={Lb:l,Kb:t,kb:a,fd:o,Nb:n,flags:r,offset:i},s=l}}return s}catch(e){return e instanceof Pe||ae(e),-e.Pa}},H:function(e,t){try{if(-1==(0|e)||0===t)var n=-28;else{var r=_t[e];if(r&&t===r.Kb){var o=Le[r.fd];if(2&r.Nb){var i=r.flags,a=r.offset,s=j.slice(e,e+t);o&&o.Oa.ib&&o.Oa.ib(o,s,a,t,i)}_t[e]=null,r.kb&&It(r.Lb)}n=0}return n}catch(e){return e instanceof Pe||ae(e),-e.Pa}},k:function(e,t,n){kt=n;try{return ct(G(e),t,St()).fd}catch(e){return e instanceof Pe||ae(e),-e.Pa}},D:function(e,t,n){try{return dt(Ct(e),I,t,n)}catch(e){return e instanceof Pe||ae(e),-e.Pa}},C:function(e,t,n){try{if(e=G(e),0>=n)var r=-28;else{var o=ot(e),i=Math.min(n,X(o)),a=I[t+i];q(o,j,t,n+1),I[t+i]=a,r=i}return r}catch(e){return e instanceof Pe||ae(e),-e.Pa}},E:function(e){try{var t=Ye(e=G(e),{parent:!0}).node,n=we(e),r=We(t,n),o=Xe(t,n,!0);if(o)throw new Pe(o);if(!t.Na.rmdir)throw new Pe(63);if(r.ab)throw new Pe(10);try{Ne.willDeletePath&&Ne.willDeletePath(e)}catch(t){_("FS.trackingDelegate['willDeletePath']('"+e+"') threw an exception: "+t.message)}t.Na.rmdir(t,n),Fe(r);try{Ne.onDeletePath&&Ne.onDeletePath(e)}catch(t){_("FS.trackingDelegate['onDeletePath']('"+e+"') threw an exception: "+t.message)}return 0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},g:function(e,t){try{return Mt(it,e=G(e),t)}catch(e){return e instanceof Pe||ae(e),-e.Pa}},y:function(e){try{return rt(e=G(e)),0}catch(e){return e instanceof Pe||ae(e),-e.Pa}},m:function(e,t,n){j.copyWithin(e,t,t+n)},d:function(e){e>>>=0;var t=j.length;if(2147483648<e)return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296),0<(r=Math.max(16777216,e,r))%65536&&(r+=65536-r%65536);e:{try{R.grow(Math.min(2147483648,r)-Y.byteLength+65535>>>16),J(R.buffer);var o=1;break e}catch(e){}o=void 0}if(o)return!0}return!1},o:function(e,t){var n=0;return Rt().forEach((function(r,o){var i=t+n;for(o=W[e+4*o>>2]=i,i=0;i<r.length;++i)I[0|o++]=r.charCodeAt(i);I[0|o]=0,n+=r.length+1})),0},p:function(e,t){var n=Rt();W[e>>2]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),W[t>>2]=r,0},f:function(e){try{return ht(Ct(e)),0}catch(e){return e instanceof Pe||ae(e),e.Pa}},n:function(e,t){try{var n=Ct(e);return I[0|t]=n.tty?2:Ve(n.mode)?3:40960==(61440&n.mode)?7:4,0}catch(e){return e instanceof Pe||ae(e),e.Pa}},l:function(e,t,n,r,o){try{var i=Ct(e);return-9007199254740992>=(e=4294967296*n+(t>>>0))||9007199254740992<=e?-61:(ft(i,e,r),ce=[i.position>>>0,(ue=i.position,1<=+Math.abs(ue)?0<ue?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],W[o>>2]=ce[0],W[o+4>>2]=ce[1],i.ob&&0===e&&0===r&&(i.ob=null),0)}catch(e){return e instanceof Pe||ae(e),e.Pa}},x:function(e){try{var t=Ct(e);return t.Oa&&t.Oa.fsync?-t.Oa.fsync(t):0}catch(e){return e instanceof Pe||ae(e),e.Pa}},F:function(e,t,n,r){try{e:{for(var o=Ct(e),i=e=0;i<n;i++){var a=mt(o,I,W[t+8*i>>2],W[t+(8*i+4)>>2],void 0);if(0>a){var s=-1;break e}e+=a}s=e}return W[r>>2]=s,0}catch(e){return e instanceof Pe||ae(e),e.Pa}},h:function(e){var t=Date.now();return W[e>>2]=t/1e3|0,W[e+4>>2]=t%1e3*1e3|0,0},a:R,A:function(e,t){if(0===e)return be(28),-1;var n=W[e>>2];return 0>(e=W[e+4>>2])||999999999<e||0>n?(be(28),-1):(0!==t&&(W[t>>2]=0,W[t+4>>2]=0),Lt(1e6*n+e/1e3))},B:function(e){switch(e){case 30:case 75:return 16384;case 85:return 131072;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:case 79:return 200809;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return be(28),-1},L:function(e){var t=Date.now()/1e3|0;return e&&(W[e>>2]=t),t},r:function(e,t){if(t){var n=1e3*W[t+8>>2];n+=W[t+12>>2]/1e3}else n=Date.now();e=G(e);try{t=n;var r=Ye(e,{Ya:!0}).node;return r.Na.Ta(r,{timestamp:Math.max(t,n)}),0}catch(t){if(!((e=t)instanceof Pe)){e+=" : ";e:{if(!(r=Error()).stack){try{throw Error()}catch(e){r=e}if(!r.stack){r="(no stack trace available)";break e}}r=r.stack.toString()}throw i.extraStackTrace&&(r+="\n"+i.extraStackTrace()),r=function(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){return e==e?e:e+" ["+e+"]"}))}(r),e+r}return be(e.Pa),-1}}};!function(){function e(e){i.asm=e.exports,L=i.asm.M,re--,i.monitorRunDependencies&&i.monitorRunDependencies(re),0==re&&(null!==oe&&(clearInterval(oe),oe=null),ie&&(e=ie,ie=null,e()))}function t(t){e(t.instance)}function n(e){return(k||!c&&!h||"function"!=typeof fetch||se("file://")?Promise.resolve().then(me):fetch(fe,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+fe+"'";return e.arrayBuffer()})).catch((function(){return me()}))).then((function(e){return WebAssembly.instantiate(e,r)})).then(e,(function(e){_("failed to asynchronously prepare wasm: "+e),ae(e)}))}var r={a:Ht};if(re++,i.monitorRunDependencies&&i.monitorRunDependencies(re),i.instantiateWasm)try{return i.instantiateWasm(r,e)}catch(e){return _("Module.instantiateWasm callback failed with error: "+e),!1}!function(){if(k||"function"!=typeof WebAssembly.instantiateStreaming||le()||se("file://")||"function"!=typeof fetch)return n(t);fetch(fe,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(e){return _("wasm streaming compile failed: "+e),_("falling back to ArrayBuffer instantiation"),n(t)}))}))}()}();var Nt=i.___wasm_call_ctors=function(){return(Nt=i.___wasm_call_ctors=i.asm.N).apply(null,arguments)},Pt=i._memset=function(){return(Pt=i._memset=i.asm.O).apply(null,arguments)};i._sqlite3_free=function(){return(i._sqlite3_free=i.asm.P).apply(null,arguments)};var xt=i.___errno_location=function(){return(xt=i.___errno_location=i.asm.Q).apply(null,arguments)};i._sqlite3_finalize=function(){return(i._sqlite3_finalize=i.asm.R).apply(null,arguments)},i._sqlite3_reset=function(){return(i._sqlite3_reset=i.asm.S).apply(null,arguments)},i._sqlite3_clear_bindings=function(){return(i._sqlite3_clear_bindings=i.asm.T).apply(null,arguments)},i._sqlite3_value_blob=function(){return(i._sqlite3_value_blob=i.asm.U).apply(null,arguments)},i._sqlite3_value_text=function(){return(i._sqlite3_value_text=i.asm.V).apply(null,arguments)},i._sqlite3_value_bytes=function(){return(i._sqlite3_value_bytes=i.asm.W).apply(null,arguments)},i._sqlite3_value_double=function(){return(i._sqlite3_value_double=i.asm.X).apply(null,arguments)},i._sqlite3_value_int=function(){return(i._sqlite3_value_int=i.asm.Y).apply(null,arguments)},i._sqlite3_value_type=function(){return(i._sqlite3_value_type=i.asm.Z).apply(null,arguments)},i._sqlite3_result_blob=function(){return(i._sqlite3_result_blob=i.asm._).apply(null,arguments)},i._sqlite3_result_double=function(){return(i._sqlite3_result_double=i.asm.$).apply(null,arguments)},i._sqlite3_result_error=function(){return(i._sqlite3_result_error=i.asm.aa).apply(null,arguments)},i._sqlite3_result_int=function(){return(i._sqlite3_result_int=i.asm.ba).apply(null,arguments)},i._sqlite3_result_int64=function(){return(i._sqlite3_result_int64=i.asm.ca).apply(null,arguments)},i._sqlite3_result_null=function(){return(i._sqlite3_result_null=i.asm.da).apply(null,arguments)},i._sqlite3_result_text=function(){return(i._sqlite3_result_text=i.asm.ea).apply(null,arguments)},i._sqlite3_step=function(){return(i._sqlite3_step=i.asm.fa).apply(null,arguments)},i._sqlite3_column_count=function(){return(i._sqlite3_column_count=i.asm.ga).apply(null,arguments)},i._sqlite3_data_count=function(){return(i._sqlite3_data_count=i.asm.ha).apply(null,arguments)},i._sqlite3_column_blob=function(){return(i._sqlite3_column_blob=i.asm.ia).apply(null,arguments)},i._sqlite3_column_bytes=function(){return(i._sqlite3_column_bytes=i.asm.ja).apply(null,arguments)},i._sqlite3_column_double=function(){return(i._sqlite3_column_double=i.asm.ka).apply(null,arguments)},i._sqlite3_column_text=function(){return(i._sqlite3_column_text=i.asm.la).apply(null,arguments)},i._sqlite3_column_type=function(){return(i._sqlite3_column_type=i.asm.ma).apply(null,arguments)},i._sqlite3_column_name=function(){return(i._sqlite3_column_name=i.asm.na).apply(null,arguments)},i._sqlite3_bind_blob=function(){return(i._sqlite3_bind_blob=i.asm.oa).apply(null,arguments)},i._sqlite3_bind_double=function(){return(i._sqlite3_bind_double=i.asm.pa).apply(null,arguments)},i._sqlite3_bind_int=function(){return(i._sqlite3_bind_int=i.asm.qa).apply(null,arguments)},i._sqlite3_bind_text=function(){return(i._sqlite3_bind_text=i.asm.ra).apply(null,arguments)},i._sqlite3_bind_parameter_index=function(){return(i._sqlite3_bind_parameter_index=i.asm.sa).apply(null,arguments)},i._sqlite3_sql=function(){return(i._sqlite3_sql=i.asm.ta).apply(null,arguments)},i._sqlite3_normalized_sql=function(){return(i._sqlite3_normalized_sql=i.asm.ua).apply(null,arguments)},i._sqlite3_errmsg=function(){return(i._sqlite3_errmsg=i.asm.va).apply(null,arguments)},i._sqlite3_exec=function(){return(i._sqlite3_exec=i.asm.wa).apply(null,arguments)},i._sqlite3_prepare_v2=function(){return(i._sqlite3_prepare_v2=i.asm.xa).apply(null,arguments)},i._sqlite3_changes=function(){return(i._sqlite3_changes=i.asm.ya).apply(null,arguments)},i._sqlite3_close_v2=function(){return(i._sqlite3_close_v2=i.asm.za).apply(null,arguments)},i._sqlite3_create_function_v2=function(){return(i._sqlite3_create_function_v2=i.asm.Aa).apply(null,arguments)},i._sqlite3_open=function(){return(i._sqlite3_open=i.asm.Ba).apply(null,arguments)};var Yt=i._malloc=function(){return(Yt=i._malloc=i.asm.Ca).apply(null,arguments)},It=i._free=function(){return(It=i._free=i.asm.Da).apply(null,arguments)};i._RegisterExtensionFunctions=function(){return(i._RegisterExtensionFunctions=i.asm.Ea).apply(null,arguments)};var jt,Ft=i.__get_tzname=function(){return(Ft=i.__get_tzname=i.asm.Fa).apply(null,arguments)},Wt=i.__get_daylight=function(){return(Wt=i.__get_daylight=i.asm.Ga).apply(null,arguments)},Bt=i.__get_timezone=function(){return(Bt=i.__get_timezone=i.asm.Ha).apply(null,arguments)},Vt=i.stackSave=function(){return(Vt=i.stackSave=i.asm.Ia).apply(null,arguments)},Ut=i.stackRestore=function(){return(Ut=i.stackRestore=i.asm.Ja).apply(null,arguments)},zt=i.stackAlloc=function(){return(zt=i.stackAlloc=i.asm.Ka).apply(null,arguments)},Gt=i._memalign=function(){return(Gt=i._memalign=i.asm.La).apply(null,arguments)};function qt(){function e(){if(!jt&&(jt=!0,i.calledRun=!0,!D)){if(i.noFSInit||Ke||(Ke=!0,pt(),i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?vt("stdin",i.stdin):nt("/dev/tty","/dev/stdin"),i.stdout?vt("stdout",null,i.stdout):nt("/dev/tty","/dev/stdout"),i.stderr?vt("stderr",null,i.stderr):nt("/dev/tty1","/dev/stderr"),ct("/dev/stdin","r"),ct("/dev/stdout","w"),ct("/dev/stderr","w")),pe(Z),He=!1,pe(ee),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();te.unshift(e)}pe(te)}}if(!(0<re)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)ne();pe(Q),0<re||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.cwrap=function(e,t,n,r){var o=(n=n||[]).every((function(e){return"number"===e}));return"string"!==t&&o&&!r?H(e):function(){return function(e,t,n,r){var o,i={string:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2);t=zt(n),q(e,j,t,n)}return t},array:function(e){var t=zt(e.length);return I.set(e,t),t}},a=H(e),s=[];if(e=0,r)for(var l=0;l<r.length;l++){var u=i[n[l]];u?(0===e&&(e=Vt()),s[l]=u(r[l])):s[l]=r[l]}return o=n=a.apply(null,s),n="string"===t?G(o):"boolean"===t?!!o:o,0!==e&&Ut(e),n}(e,t,n,arguments)}},i.UTF8ToString=G,i.stackSave=Vt,i.stackRestore=Ut,i.stackAlloc=zt,ie=function e(){jt||qt(),jt||(ie=e)},i.run=qt,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return qt(),a})),r)};e.exports=o,e.exports.default=o},15867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(95093))},16347:(e,t,n)=>{var r=n(30281),o=n(36490),i=n(5476),a=n(58186).indexOf,s=n(67708),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},16618:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(95093))},16844:(e,t,n)=>{"use strict";var r=n(73938);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},17160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(95093))},17538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(95093))},18287:(e,t,n)=>{"use strict";var r=n(49306).IteratorPrototype,o=n(53105),i=n(66843),a=n(75282),s=n(52228),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},18569:(e,t,n)=>{var r=n(30281),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},18636:(e,t,n)=>{"use strict";var r=n(51605),o=n(91344).find,i=n(40298),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},18665:(e,t,n)=>{"use strict";var r=n(5476),o=n(40298),i=n(52228),a=n(99206),s=n(43610).f,l=n(56409),u=n(48296),c=n(6926),h=n(65077),f="Array Iterator",d=a.set,m=a.getterFor(f);e.exports=l(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&h&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},18679:(e,t,n)=>{var r=n(18569);e.exports=Array.isArray||function(e){return"Array"==r(e)}},18772:(e,t,n)=>{n(62776),n(40538)},18827:(e,t,n)=>{var r=n(30200),o=n(99070),i=n(78420),a=n(47061),s=n(29609),l=n(56589),u=/MSIE .\./.test(a),c=r.Function,h=function(e){return u?function(t,n){var r=l(arguments.length,1)>2,a=i(t)?t:c(t),u=r?s(arguments,2):void 0;return e(r?function(){o(a,this,u)}:a,n)}:e};e.exports={setTimeout:h(r.setTimeout),setInterval:h(r.setInterval)}},18916:(e,t)=>{t.f=Object.getOwnPropertySymbols},19693:(e,t,n)=>{"use strict";var r=n(51605),o=n(30281),i=n(58186).indexOf,a=n(92349),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:l||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},19708:(e,t,n)=>{var r=n(51605),o=n(30200),i=n(74922).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},19830:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},19877:(e,t,n)=>{var r=n(30281),o=n(71229),i=n(95362),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var l=i(o(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(i(r),a,"&quot;")+'"'),u+">"+l+"</"+t+">"}},20779:(e,t,n)=>{"use strict";n(87136);var r=n(30281),o=n(7485),i=n(70054),a=n(92074),s=n(31602),l=n(97712),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,h){var f=s(e),d=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),m=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!m||n){var p=r(/./[f]),y=t(f,""[e],(function(e,t,n,o,a){var s=r(e),l=t.exec;return l===i||l===c.exec?d&&!a?{done:!0,value:p(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,y[0]),o(c,f,y[1])}h&&l(c[f],"sham",!0)}},20838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},21135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},22085:(e,t,n)=>{var r=n(92074);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},22274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},22975:(e,t,n)=>{var r=n(23262)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},23172:(e,t,n)=>{var r=n(65077),o=n(30281),i=n(91641),a=n(5476),s=o(n(9304).f),l=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,h=0,f=[];c>h;)n=u[h++],r&&!s(o,n)||l(f,e?[n,o[n]]:o[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},23262:(e,t,n)=>{var r=n(30200),o=n(65335),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},23444:(e,t,n)=>{var r=n(73938),o=n(57849),i=n(88406),a=n(31602)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},23493:(e,t,n)=>{var r=n(33747);e.exports=function(e){return r(e.length)}},23827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(95093))},24457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(95093))},24496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(95093))},24601:(e,t,n)=>{var r=n(78420),o=n(13838),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},24881:(e,t,n)=>{"use strict";var r=n(13838),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},25177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},25904:(e,t,n)=>{var r=n(50002),o=n(50665),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},26100:(e,t,n)=>{var r=n(29720),o=n(36490),i=n(30802),a=n(43610).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},26111:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return r+(1===e?"dan":"dana");case"MM":return r+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return r+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},26435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(95093))},27088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},27367:e=>{e.exports=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.fontSize=u(e).fontSize,o.style.fontFamily=u(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)};function u(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(n,a,u){!function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()}(n,a,u)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}}},27373:(e,t,n)=>{"use strict";n(92327)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(76784))},27806:(e,t,n)=>{"use strict";var r=n(92612),o=n(6539),i=n(23493);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},27896:(e,t,n)=>{"use strict";var r=n(51605),o=n(30200),i=n(72368),a=n(30281),s=n(6926),l=n(65077),u=n(82072),c=n(92074),h=n(36490),f=n(47658),d=n(73938),m=n(5476),p=n(86032),y=n(95362),v=n(66843),g=n(53105),w=n(91641),b=n(64789),_=n(56509),M=n(18916),k=n(97632),S=n(43610),C=n(65318),T=n(9304),E=n(7485),O=n(50002),R=n(25904),L=n(67708),D=n(50665),A=n(31602),H=n(30802),N=n(26100),P=n(28237),x=n(75282),Y=n(99206),I=n(91344).forEach,j=R("hidden"),F="Symbol",W="prototype",B=Y.set,V=Y.getterFor(F),U=Object[W],z=o.Symbol,G=z&&z[W],q=o.TypeError,X=o.QObject,K=k.f,J=S.f,$=_.f,Q=T.f,Z=a([].push),ee=O("symbols"),te=O("op-symbols"),ne=O("wks"),re=!X||!X[W]||!X[W].findChild,oe=l&&c((function(){return 7!=g(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(U,t);r&&delete U[t],J(e,t,n),r&&e!==U&&J(U,t,r)}:J,ie=function(e,t){var n=ee[e]=g(G);return B(n,{type:F,tag:e,description:t}),l||(n.description=t),n},ae=function(e,t,n){e===U&&ae(te,t,n),d(e);var r=p(t);return d(n),h(ee,r)?(n.enumerable?(h(e,j)&&e[j][r]&&(e[j][r]=!1),n=g(n,{enumerable:v(0,!1)})):(h(e,j)||J(e,j,v(1,{})),e[j][r]=!0),oe(e,r,n)):J(e,r,n)},se=function(e,t){d(e);var n=m(t),r=w(n).concat(he(n));return I(r,(function(t){l&&!i(le,n,t)||ae(e,t,n[t])})),e},le=function(e){var t=p(e),n=i(Q,this,t);return!(this===U&&h(ee,t)&&!h(te,t))&&(!(n||!h(this,t)||!h(ee,t)||h(this,j)&&this[j][t])||n)},ue=function(e,t){var n=m(e),r=p(t);if(n!==U||!h(ee,r)||h(te,r)){var o=K(n,r);return!o||!h(ee,r)||h(n,j)&&n[j][r]||(o.enumerable=!0),o}},ce=function(e){var t=$(m(e)),n=[];return I(t,(function(e){h(ee,e)||h(L,e)||Z(n,e)})),n},he=function(e){var t=e===U,n=$(t?te:m(e)),r=[];return I(n,(function(e){!h(ee,e)||t&&!h(U,e)||Z(r,ee[e])})),r};u||(E(G=(z=function(){if(f(G,this))throw q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=D(e),n=function(e){this===U&&i(n,te,e),h(this,j)&&h(this[j],t)&&(this[j][t]=!1),oe(this,t,v(1,e))};return l&&re&&oe(U,t,{configurable:!0,set:n}),ie(t,e)})[W],"toString",(function(){return V(this).tag})),E(z,"withoutSetter",(function(e){return ie(D(e),e)})),T.f=le,S.f=ae,C.f=se,k.f=ue,b.f=_.f=ce,M.f=he,H.f=function(e){return ie(A(e),e)},l&&(J(G,"description",{configurable:!0,get:function(){return V(this).description}}),s||E(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),I(w(ne),(function(e){N(e)})),r({target:F,stat:!0,forced:!u},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?g(e):se(g(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ce}),P(),x(z,F),L[j]=!0},28121:(e,t,n)=>{var r=n(92074),o=n(30200).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},28237:(e,t,n)=>{var r=n(72368),o=n(56492),i=n(31602),a=n(7485);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},28298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},28646:e=>{e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){!function(e){"use strict";function n(e){var t=0|e;return e>0||e===t?t:t-1}function r(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=b-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function o(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=o.length)<(u=i.length)?l:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function i(e,t,n){return(e=c(e))>=t&&e<=n}function a(e){return"[object Array]"==Object.prototype.toString.call(e)}function s(e,t,n){for(var r,o,i=[0],a=0,s=e.length;a<s;){for(o=i.length;o--;i[o]*=t);for(i[r=0]+=g.indexOf(e.charAt(a++));r<i.length;r++)i[r]>n-1&&(null==i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function l(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function u(e,t){var n,r;if(t<0){for(r="0.";++t;r+="0");e=r+e}else if(++t>(n=e.length)){for(r="0",t-=n;--t;r+="0");e+=r}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}function c(e){return(e=parseFloat(e))<0?d(e):m(e)}var h,f=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=Math.ceil,m=Math.floor,p=" not a boolean or binary digit",y="rounding mode",v="number type has more than 15 significant digits",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",w=1e14,b=14,_=9007199254740991,M=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],k=1e7,S=1e9;(h=function e(t){function h(e,t){var n,r,o,i,a,s,l=this;if(!(l instanceof h))return V&&L(26,"constructor call without new",e),new h(e,t);if(null!=t&&U(t,2,64,N,"base")){if(s=e+"",10==(t|=0))return D(l=new h(e instanceof h?e:s),Y+l.e+1,I);if((i="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(n="["+g.slice(0,t)+"]+")+"(?:\\."+n+")?$",t<37?"i":"").test(s))return H(l,s,i,t);i?(l.s=1/e<0?(s=s.slice(1),-1):1,V&&s.replace(/^0\.0*|\./,"").length>15&&L(N,v,e),i=!1):l.s=45===s.charCodeAt(0)?(s=s.slice(1),-1):1,s=C(s,10,t,l.s)}else{if(e instanceof h)return l.s=e.s,l.e=e.e,l.c=(e=e.c)?e.slice():e,void(N=0);if((i="number"==typeof e)&&0*e==0){if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(r=0,o=e;o>=10;o/=10,r++);return l.e=r,l.c=[e],void(N=0)}s=e+""}else{if(!f.test(s=e+""))return H(l,s,i);l.s=45===s.charCodeAt(0)?(s=s.slice(1),-1):1}}for((r=s.indexOf("."))>-1&&(s=s.replace(".","")),(o=s.search(/e/i))>0?(r<0&&(r=o),r+=+s.slice(o+1),s=s.substring(0,o)):r<0&&(r=s.length),o=0;48===s.charCodeAt(o);o++);for(a=s.length;48===s.charCodeAt(--a););if(s=s.slice(o,a+1))if(a=s.length,i&&V&&a>15&&(e>_||e!==m(e))&&L(N,v,l.s*e),(r=r-o-1)>B)l.c=l.e=null;else if(r<W)l.c=[l.e=0];else{if(l.e=r,l.c=[],o=(r+1)%b,r<0&&(o+=b),o<a){for(o&&l.c.push(+s.slice(0,o)),a-=b;o<a;)l.c.push(+s.slice(o,o+=b));s=s.slice(o),o=b-s.length}else o-=a;for(;o--;s+="0");l.c.push(+s)}else l.c=[l.e=0];N=0}function C(e,t,n,o){var i,a,l,c,f,d,m,p=e.indexOf("."),y=Y,v=I;for(n<37&&(e=e.toLowerCase()),p>=0&&(l=q,q=0,e=e.replace(".",""),f=(m=new h(n)).pow(e.length-p),q=l,m.c=s(u(r(f.c),f.e),10,t),m.e=m.c.length),a=l=(d=s(e,n,t)).length;0==d[--l];d.pop());if(!d[0])return"0";if(p<0?--a:(f.c=d,f.e=a,f.s=o,d=(f=A(f,m,y,v,t)).c,c=f.r,a=f.e),p=d[i=a+y+1],l=t/2,c=c||i<0||null!=d[i+1],c=v<4?(null!=p||c)&&(0==v||v==(f.s<0?3:2)):p>l||p==l&&(4==v||c||6==v&&1&d[i-1]||v==(f.s<0?8:7)),i<1||!d[0])e=c?u("1",-y):"0";else{if(d.length=i,c)for(--t;++d[--i]>t;)d[i]=0,i||(++a,d=[1].concat(d));for(l=d.length;!d[--l];);for(p=0,e="";p<=l;e+=g.charAt(d[p++]));e=u(e,a)}return e}function T(e,t,n,o){var i,a,s,c,f;if(n=null!=n&&U(n,0,8,o,y)?0|n:I,!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)f=r(e.c),f=19==o||24==o&&s<=j?l(f,s):u(f,s);else if(a=(e=D(new h(e),t,n)).e,c=(f=r(e.c)).length,19==o||24==o&&(t<=a||a<=j)){for(;c<t;f+="0",c++);f=l(f,a)}else if(t-=s,f=u(f,a),a+1>c){if(--t>0)for(f+=".";t--;f+="0");}else if((t+=a-c)>0)for(a+1==c&&(f+=".");t--;f+="0");return e.s<0&&i?"-"+f:f}function E(e,t){var n,r,o=0;for(a(e[0])&&(e=e[0]),n=new h(e[0]);++o<e.length;){if(!(r=new h(e[o])).s){n=r;break}t.call(n,r)&&(n=r)}return n}function O(e,t,n,r,o){return(e<t||e>n||e!=c(e))&&L(r,(o||"decimal places")+(e<t||e>n?" out of range":" not an integer"),e),!0}function R(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*b-1)>B?e.c=e.e=null:n<W?e.c=[e.e=0]:(e.e=n,e.c=t),e}function L(e,t,n){var r=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+n);throw r.name="BigNumber Error",N=0,r}function D(e,t,n,r){var o,i,a,s,l,u,c,h=e.c,f=M;if(h){e:{for(o=1,s=h[0];s>=10;s/=10,o++);if((i=t-o)<0)i+=b,a=t,c=(l=h[u=0])/f[o-a-1]%10|0;else if((u=d((i+1)/b))>=h.length){if(!r)break e;for(;h.length<=u;h.push(0));l=c=0,o=1,a=(i%=b)-b+1}else{for(l=s=h[u],o=1;s>=10;s/=10,o++);c=(a=(i%=b)-b+o)<0?0:l/f[o-a-1]%10|0}if(r=r||t<0||null!=h[u+1]||(a<0?l:l%f[o-a-1]),r=n<4?(c||r)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(i>0?a>0?l/f[o-a]:0:h[u-1])%10&1||n==(e.s<0?8:7)),t<1||!h[0])return h.length=0,r?(t-=e.e+1,h[0]=f[(b-t%b)%b],e.e=-t||0):h[0]=e.e=0,e;if(0==i?(h.length=u,s=1,u--):(h.length=u+1,s=f[b-i],h[u]=a>0?m(l/f[o-a]%f[a])*s:0),r)for(;;){if(0==u){for(i=1,a=h[0];a>=10;a/=10,i++);for(a=h[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,h[0]==w&&(h[0]=1));break}if(h[u]+=s,h[u]!=w)break;h[u--]=0,s=1}for(i=h.length;0===h[--i];h.pop());}e.e>B?e.c=e.e=null:e.e<W&&(e.c=[e.e=0])}return e}var A,H,N=0,P=h.prototype,x=new h(1),Y=20,I=4,j=-7,F=21,W=-1e7,B=1e7,V=!0,U=O,z=!1,G=1,q=0,X={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};return h.another=e,h.ROUND_UP=0,h.ROUND_DOWN=1,h.ROUND_CEIL=2,h.ROUND_FLOOR=3,h.ROUND_HALF_UP=4,h.ROUND_HALF_DOWN=5,h.ROUND_HALF_EVEN=6,h.ROUND_HALF_CEIL=7,h.ROUND_HALF_FLOOR=8,h.EUCLID=9,h.config=h.set=function(){var e,t,n=0,r={},o=arguments,s=o[0],l=s&&"object"==typeof s?function(){if(s.hasOwnProperty(t))return null!=(e=s[t])}:function(){if(o.length>n)return null!=(e=o[n++])};return l(t="DECIMAL_PLACES")&&U(e,0,S,2,t)&&(Y=0|e),r[t]=Y,l(t="ROUNDING_MODE")&&U(e,0,8,2,t)&&(I=0|e),r[t]=I,l(t="EXPONENTIAL_AT")&&(a(e)?U(e[0],-S,0,2,t)&&U(e[1],0,S,2,t)&&(j=0|e[0],F=0|e[1]):U(e,-S,S,2,t)&&(j=-(F=0|(e<0?-e:e)))),r[t]=[j,F],l(t="RANGE")&&(a(e)?U(e[0],-S,-1,2,t)&&U(e[1],1,S,2,t)&&(W=0|e[0],B=0|e[1]):U(e,-S,S,2,t)&&(0|e?W=-(B=0|(e<0?-e:e)):V&&L(2,t+" cannot be zero",e))),r[t]=[W,B],l(t="ERRORS")&&(e===!!e||1===e||0===e?(N=0,U=(V=!!e)?O:i):V&&L(2,t+p,e)),r[t]=V,l(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?z=!0:V?L(2,"crypto unavailable",e?void 0:crypto):z=!1:z=!1:V&&L(2,t+p,e)),r[t]=z,l(t="MODULO_MODE")&&U(e,0,9,2,t)&&(G=0|e),r[t]=G,l(t="POW_PRECISION")&&U(e,0,S,2,t)&&(q=0|e),r[t]=q,l(t="FORMAT")&&("object"==typeof e?X=e:V&&L(2,t+" not an object",e)),r[t]=X,r},h.max=function(){return E(arguments,P.lt)},h.min=function(){return E(arguments,P.gt)},h.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return m(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,r,o,i,a,s=0,l=[],u=new h(x);if(t=null!=t&&U(t,0,S,14)?0|t:Y,i=d(t/b),z)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*n[s]+(n[s+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[s]=r[0],n[s+1]=r[1]):(l.push(a%1e14),s+=2);s=i/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&n[s])+1099511627776*n[s+1]+4294967296*n[s+2]+16777216*n[s+3]+(n[s+4]<<16)+(n[s+5]<<8)+n[s+6])>=9e15?crypto.randomBytes(7).copy(n,s):(l.push(a%1e14),s+=7);s=i/7}else z=!1,V&&L(14,"crypto unavailable",crypto);if(!z)for(;s<i;)(a=e())<9e15&&(l[s++]=a%1e14);for(i=l[--s],t%=b,i&&t&&(a=M[b-t],l[s]=m(i/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[o=0];else{for(o=-1;0===l[0];l.splice(0,1),o-=b);for(s=1,a=l[0];a>=10;a/=10,s++);s<b&&(o-=b-s)}return u.e=o,u.c=l,u}}(),A=function(){function e(e,t,n){var r,o,i,a,s=0,l=e.length,u=t%k,c=t/k|0;for(e=e.slice();l--;)s=((o=u*(i=e[l]%k)+(r=c*i+(a=e[l]/k|0)*u)%k*k+s)/n|0)+(r/k|0)+c*a,e[l]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(o,i,a,s,l){var u,c,f,d,p,y,v,g,_,M,k,S,C,T,E,O,R,L=o.s==i.s?1:-1,A=o.c,H=i.c;if(!(A&&A[0]&&H&&H[0]))return new h(o.s&&i.s&&(A?!H||A[0]!=H[0]:H)?A&&0==A[0]||!H?0*L:L/0:NaN);for(_=(g=new h(L)).c=[],L=a+(c=o.e-i.e)+1,l||(l=w,c=n(o.e/b)-n(i.e/b),L=L/b|0),f=0;H[f]==(A[f]||0);f++);if(H[f]>(A[f]||0)&&c--,L<0)_.push(1),d=!0;else{for(T=A.length,O=H.length,f=0,L+=2,(p=m(l/(H[0]+1)))>1&&(H=e(H,p,l),A=e(A,p,l),O=H.length,T=A.length),C=O,k=(M=A.slice(0,O)).length;k<O;M[k++]=0);R=H.slice(),R=[0].concat(R),E=H[0],H[1]>=l/2&&E++;do{if(p=0,(u=t(H,M,O,k))<0){if(S=M[0],O!=k&&(S=S*l+(M[1]||0)),(p=m(S/E))>1)for(p>=l&&(p=l-1),v=(y=e(H,p,l)).length,k=M.length;1==t(y,M,v,k);)p--,r(y,O<v?R:H,v,l),v=y.length,u=1;else 0==p&&(u=p=1),v=(y=H.slice()).length;if(v<k&&(y=[0].concat(y)),r(M,y,k,l),k=M.length,-1==u)for(;t(H,M,O,k)<1;)p++,r(M,O<k?R:H,k,l),k=M.length}else 0===u&&(p++,M=[0]);_[f++]=p,M[0]?M[k++]=A[C]||0:(M=[A[C]],k=1)}while((C++<T||null!=M[0])&&L--);d=null!=M[0],_[0]||_.splice(0,1)}if(l==w){for(f=1,L=_[0];L>=10;L/=10,f++);D(g,a+(g.e=f+c*b-1)+1,s,d)}else g.e=c,g.r=+d;return g}}(),H=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,a,s,l){var u,c=s?a:a.replace(o,"");if(r.test(c))i.s=isNaN(c)?null:c<0?-1:1;else{if(!s&&(c=c.replace(e,(function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=u?e:t})),l&&(u=l,c=c.replace(t,"$1").replace(n,"0.$1")),a!=c))return new h(c,u);V&&L(N,"not a"+(l?" base "+l:"")+" number",a),i.s=null}i.c=i.e=null,N=0}}(),P.absoluteValue=P.abs=function(){var e=new h(this);return e.s<0&&(e.s=1),e},P.ceil=function(){return D(new h(this),this.e+1,2)},P.comparedTo=P.cmp=function(e,t){return N=1,o(this,new h(e,t))},P.decimalPlaces=P.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=((t=r.length-1)-n(this.e/b))*b,t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},P.dividedBy=P.div=function(e,t){return N=3,A(this,new h(e,t),Y,I)},P.dividedToIntegerBy=P.divToInt=function(e,t){return N=4,A(this,new h(e,t),0,1)},P.equals=P.eq=function(e,t){return N=5,0===o(this,new h(e,t))},P.floor=function(){return D(new h(this),this.e+1,3)},P.greaterThan=P.gt=function(e,t){return N=6,o(this,new h(e,t))>0},P.greaterThanOrEqualTo=P.gte=function(e,t){return N=7,1===(t=o(this,new h(e,t)))||0===t},P.isFinite=function(){return!!this.c},P.isInteger=P.isInt=function(){return!!this.c&&n(this.e/b)>this.c.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.lessThan=P.lt=function(e,t){return N=8,o(this,new h(e,t))<0},P.lessThanOrEqualTo=P.lte=function(e,t){return N=9,-1===(t=o(this,new h(e,t)))||0===t},P.minus=P.sub=function(e,t){var r,o,i,a,s=this,l=s.s;if(N=10,t=(e=new h(e,t)).s,!l||!t)return new h(NaN);if(l!=t)return e.s=-t,s.plus(e);var u=s.e/b,c=e.e/b,f=s.c,d=e.c;if(!u||!c){if(!f||!d)return f?(e.s=-t,e):new h(d?s:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-t,e):new h(f[0]?s:3==I?-0:0)}if(u=n(u),c=n(c),f=f.slice(),l=u-c){for((a=l<0)?(l=-l,i=f):(c=u,i=d),i.reverse(),t=l;t--;i.push(0));i.reverse()}else for(o=(a=(l=f.length)<(t=d.length))?l:t,l=t=0;t<o;t++)if(f[t]!=d[t]){a=f[t]<d[t];break}if(a&&(i=f,f=d,d=i,e.s=-e.s),(t=(o=d.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=w-1;o>l;){if(f[--o]<d[o]){for(r=o;r&&!f[--r];f[r]=t);--f[r],f[o]+=w}f[o]-=d[o]}for(;0==f[0];f.splice(0,1),--c);return f[0]?R(e,f,c):(e.s=3==I?-1:1,e.c=[e.e=0],e)},P.modulo=P.mod=function(e,t){var n,r,o=this;return N=11,e=new h(e,t),!o.c||!e.s||e.c&&!e.c[0]?new h(NaN):!e.c||o.c&&!o.c[0]?new h(o):(9==G?(r=e.s,e.s=1,n=A(o,e,0,3),e.s=r,n.s*=r):n=A(o,e,0,G),o.minus(n.times(e)))},P.negated=P.neg=function(){var e=new h(this);return e.s=-e.s||null,e},P.plus=P.add=function(e,t){var r,o=this,i=o.s;if(N=12,t=(e=new h(e,t)).s,!i||!t)return new h(NaN);if(i!=t)return e.s=-t,o.minus(e);var a=o.e/b,s=e.e/b,l=o.c,u=e.c;if(!a||!s){if(!l||!u)return new h(i/0);if(!l[0]||!u[0])return u[0]?e:new h(l[0]?o:0*i)}if(a=n(a),s=n(s),l=l.slice(),i=a-s){for(i>0?(s=a,r=u):(i=-i,r=l),r.reverse();i--;r.push(0));r.reverse()}for((i=l.length)-(t=u.length)<0&&(r=u,u=l,l=r,t=i),i=0;t;)i=(l[--t]=l[t]+u[t]+i)/w|0,l[t]=w===l[t]?0:l[t]%w;return i&&(l=[i].concat(l),++s),R(e,l,s)},P.precision=P.sd=function(e){var t,n,r=this,o=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(V&&L(13,"argument"+p,e),e!=!!e&&(e=null)),!o)return null;if(t=(n=o.length-1)*b+1,n=o[n]){for(;n%10==0;n/=10,t--);for(n=o[0];n>=10;n/=10,t++);}return e&&r.e+1>t&&(t=r.e+1),t},P.round=function(e,t){var n=new h(this);return(null==e||U(e,0,S,15))&&D(n,~~e+this.e+1,null!=t&&U(t,0,8,15,y)?0|t:I),n},P.shift=function(e){var t=this;return U(e,-_,_,16,"argument")?t.times("1e"+c(e)):new h(t.c&&t.c[0]&&(e<-_||e>_)?t.s*(e<0?0:1/0):t)},P.squareRoot=P.sqrt=function(){var e,t,o,i,a,s=this,l=s.c,u=s.s,c=s.e,f=Y+4,d=new h("0.5");if(1!==u||!l||!l[0])return new h(!u||u<0&&(!l||l[0])?NaN:l?s:1/0);if(0==(u=Math.sqrt(+s))||u==1/0?(((t=r(l)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=n((c+1)/2)-(c<0||c%2),o=new h(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):o=new h(u+""),o.c[0])for((u=(c=o.e)+f)<3&&(u=0);;)if(a=o,o=d.times(a.plus(A(s,a,f,1))),r(a.c).slice(0,u)===(t=r(o.c)).slice(0,u)){if(o.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(o,o.e+Y+2,1),e=!o.times(o).eq(s));break}if(!i&&(D(a,a.e+Y+2,0),a.times(a).eq(s))){o=a;break}f+=4,u+=4,i=1}return D(o,o.e+Y+1,I,e)},P.times=P.mul=function(e,t){var r,o,i,a,s,l,u,c,f,d,m,p,y,v,g,_=this,M=_.c,S=(N=17,e=new h(e,t)).c;if(!(M&&S&&M[0]&&S[0]))return!_.s||!e.s||M&&!M[0]&&!S||S&&!S[0]&&!M?e.c=e.e=e.s=null:(e.s*=_.s,M&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(o=n(_.e/b)+n(e.e/b),e.s*=_.s,(u=M.length)<(d=S.length)&&(y=M,M=S,S=y,i=u,u=d,d=i),i=u+d,y=[];i--;y.push(0));for(v=w,g=k,i=d;--i>=0;){for(r=0,m=S[i]%g,p=S[i]/g|0,a=i+(s=u);a>i;)r=((c=m*(c=M[--s]%g)+(l=p*c+(f=M[s]/g|0)*m)%g*g+y[a]+r)/v|0)+(l/g|0)+p*f,y[a--]=c%v;y[a]=r}return r?++o:y.splice(0,1),R(e,y,o)},P.toDigits=function(e,t){var n=new h(this);return e=null!=e&&U(e,1,S,18,"precision")?0|e:null,t=null!=t&&U(t,0,8,18,y)?0|t:I,e?D(n,e,t):n},P.toExponential=function(e,t){return T(this,null!=e&&U(e,0,S,19)?1+~~e:null,t,19)},P.toFixed=function(e,t){return T(this,null!=e&&U(e,0,S,20)?~~e+this.e+1:null,t,20)},P.toFormat=function(e,t){var n=T(this,null!=e&&U(e,0,S,21)?~~e+this.e+1:null,t,21);if(this.c){var r,o=n.split("."),i=+X.groupSize,a=+X.secondaryGroupSize,s=X.groupSeparator,l=o[0],u=o[1],c=this.s<0,h=c?l.slice(1):l,f=h.length;if(a&&(r=i,i=a,a=r,f-=r),i>0&&f>0){for(r=f%i||i,l=h.substr(0,r);r<f;r+=i)l+=s+h.substr(r,i);a>0&&(l+=s+h.slice(r)),c&&(l="-"+l)}n=u?l+X.decimalSeparator+((a=+X.fractionGroupSize)?u.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+X.fractionGroupSeparator):u):l}return n},P.toFraction=function(e){var t,n,o,i,a,s,l,u,c,f=V,d=this,m=d.c,p=new h(x),y=n=new h(x),v=l=new h(x);if(null!=e&&(V=!1,s=new h(e),V=f,(f=s.isInt())&&!s.lt(x)||(V&&L(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&s.c&&D(s,s.e+1,1).gte(x)?s:null)),!m)return d.toString();for(c=r(m),i=p.e=c.length-d.e-1,p.c[0]=M[(a=i%b)<0?b+a:a],e=!e||s.cmp(p)>0?i>0?p:y:s,a=B,B=1/0,s=new h(c),l.c[0]=0;u=A(s,p,0,1),1!=(o=n.plus(u.times(v))).cmp(e);)n=v,v=o,y=l.plus(u.times(o=y)),l=o,p=s.minus(u.times(o=p)),s=o;return o=A(e.minus(n),v,0,1),l=l.plus(o.times(y)),n=n.plus(o.times(v)),l.s=y.s=d.s,t=A(y,v,i*=2,I).minus(d).abs().cmp(A(l,n,i,I).minus(d).abs())<1?[y.toString(),v.toString()]:[l.toString(),n.toString()],B=a,t},P.toNumber=function(){return+this},P.toPower=P.pow=function(e,t){var n,r,o,i=m(e<0?-e:+e),a=this;if(null!=t&&(N=23,t=new h(t)),!U(e,-_,_,23,"exponent")&&(!isFinite(e)||i>_&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return n=Math.pow(+a,e),new h(t?n%t:n);for(t?e>1&&a.gt(x)&&a.isInt()&&t.gt(x)&&t.isInt()?a=a.mod(t):(o=t,t=null):q&&(n=d(q/b+2)),r=new h(x);;){if(i%2){if(!(r=r.times(a)).c)break;n?r.c.length>n&&(r.c.length=n):t&&(r=r.mod(t))}if(!(i=m(i/2)))break;a=a.times(a),n?a.c&&a.c.length>n&&(a.c.length=n):t&&(a=a.mod(t))}return t?r:(e<0&&(r=x.div(r)),o?r.mod(o):n?D(r,q,I):r)},P.toPrecision=function(e,t){return T(this,null!=e&&U(e,1,S,24,"precision")?0|e:null,t,24)},P.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(t=r(n.c),t=null!=e&&U(e,2,64,25,"base")?C(u(t,i),0|e,10,o):i<=j||i>=F?l(t,i):u(t,i),o<0&&n.c[0]&&(t="-"+t)),t},P.truncated=P.trunc=function(){return D(new h(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var e,t=this,n=t.e;return null===n?t.toString():(e=r(t.c),e=n<=j||n>=F?l(e,n):u(e,n),t.s<0?"-"+e:e)},P.isBigNumber=!0,null!=t&&h.config(t),h}()).default=h.BigNumber=h,void 0!==t&&t.exports?t.exports=h:(e||(e="undefined"!=typeof self?self:Function("return this")()),e.BigNumber=h)}(this)},{}],2:[function(e,t,n){"use strict";t.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("string"==typeof t&&(t=w.parseFormat(t)),!g.validateFormat(t))return"ERROR: invalid format";var r=t.prefix||"",o=t.postfix||"",i=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){var r=n.currentCurrency(),o=Object.assign({},M,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,l=t.currencyPosition||r.position,u=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===l&&(i=a+u+a);var c=m({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===l&&(c=e._value<0&&"sign"===o.negative?"-"+a+u+c.slice(1):u+a+c),l&&"postfix"!==l||(c=c+(a=s?"":a)+u),c}(e,t=p(t,v.currentCurrencyDefaultFormat()),v);case"percent":return function(e,t,n,r){var o=t.prefixSymbol,i=m({instance:r(100*e._value),providedFormat:t,state:n}),a=Object.assign({},M,t);return o?"%"+(a.spaceSeparated?" ":"")+i:i+(a.spaceSeparated?" ":"")+"%"}(e,t=p(t,v.currentPercentageDefaultFormat()),v,n);case"byte":return function(e,t,n,r){var o=t.base||"binary",i=_[o],a=s(e._value,i.suffixes,i.scale),l=a.value,u=a.suffix;return m({instance:r(l),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()})+(n.currentAbbreviations().spaced?" ":"")+u}(e,t=p(t,v.currentByteDefaultFormat()),v,n);case"time":return t=p(t,v.currentTimeDefaultFormat()),function(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),r=Math.round(e._value-60*t*60-60*n);return t+":"+(n<10?"0":"")+n+":"+(r<10?"0":"")+r}(e);case"ordinal":return function(e,t,n){var r=n.currentOrdinal(),o=Object.assign({},M,t),i=m({instance:e,providedFormat:t,state:n}),a=r(e._value);return i+(o.spaceSeparated?" ":"")+a}(e,t=p(t,v.currentOrdinalDefaultFormat()),v);default:return m({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return function(e,t){return e+t}(i=function(e,t){return t+e}(i,r),o)}function o(e){var t=_.decimal;return s(e._value,t.suffixes,t.scale).suffix}function i(e){var t=_.binary;return s(e._value,t.suffixes,t.scale).suffix}function a(e){var t=_.general;return s(e._value,t.suffixes,t.scale).suffix}function s(e,t,n){var r=t[0],o=Math.abs(e);if(o>=n){for(var i=1;i<t.length;++i){var a=Math.pow(n,i),s=Math.pow(n,i+1);if(o>=a&&o<s){r=t[i],e/=a;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function l(e){var t=e.value,n=e.characteristicPrecision,r=void 0===n?0:n,o=t.toExponential().split("e"),i=y(o,2),a=i[0],s=i[1],l=+a;return r?(1<r&&(l*=Math.pow(10,r-1),s=(s=+s-(r-1))>=0?"+"+s:s),{value:l,abbreviation:"e"+s}):{value:l,abbreviation:"e"+s}}function u(e){for(var t="",n=0;n<e;n++)t+="0";return t}function c(e,t){return-1!==e.toString().indexOf("e")?function(e,t){var n=e.toString(),r=n.split("e"),o=y(r,2),i=o[0],a=o[1],s=i.split("."),l=y(s,2),c=l[0],h=l[1],f=void 0===h?"":h;if(+a>0)n=c+f+u(a-f.length);else{var d=".";d=+c<0?"-0"+d:"0"+d;var m=(u(-a-1)+Math.abs(c)+f).substr(0,t);m.length<t&&(m+=u(t-m.length)),n=d+m}return+a>0&&t>0&&(n+="."+u(t)),n}(e,t):(Math.round(+(e+"e+"+t))/Math.pow(10,t)).toFixed(t)}function h(e,t,n,r,o){if(-1===r)return e;var i=c(t,r),a=i.toString().split("."),s=y(a,2),l=s[0],u=s[1],h=void 0===u?"":u;if(h.match(/^0+$/)&&(n||o))return l;var f=h.match(/0+$/);return o&&f?l+"."+h.toString().slice(0,f.index):i.toString()}function f(e,t,n,r){var o=e,i=o.toString().split("."),a=y(i,2),s=a[0],l=a[1];if(s.match(/^-?0$/)&&n)return l?s.replace("0","")+"."+l:s.replace("0","");if(s.length<r)for(var u=r-s.length,c=0;c<u;c++)o="0"+o;return o.toString()}function d(e,t,n,r,o){var i=r.currentDelimiters(),a=i.thousands;o=o||i.decimal;var s=i.thousandsSize||3,l=e.toString(),u=l.split(".")[0],c=l.split(".")[1];return n&&(t<0&&(u=u.slice(1)),function(e,t){for(var n=[],r=0,o=e;o>0;o--)r===t&&(n.unshift(o),r=0),r++;return n}(u.length,s).forEach((function(e,t){u=u.slice(0,e+t)+a+u.slice(e+t)})),t<0&&(u="-"+u)),c?u+o+c:u}function m(e){var t=e.instance,n=e.providedFormat,r=e.state,o=void 0===r?v:r,i=e.decimalSeparator,a=e.defaults,s=void 0===a?o.currentDefaults():a,u=t._value;if(0===u&&o.hasZeroFormat())return o.getZeroFormat();if(!isFinite(u))return u.toString();var c=Object.assign({},M,s,n),m=c.totalLength,p=m?0:c.characteristic,y=c.optionalCharacteristic,g=c.forceAverage,w=!!m||!!g||c.average,b=m?-1:w&&void 0===n.mantissa?0:c.mantissa,_=!m&&(void 0===n.optionalMantissa?-1===b:c.optionalMantissa),k=c.trimMantissa,S=c.thousandSeparated,C=c.spaceSeparated,T=c.negative,E=c.forceSign,O=c.exponential,R="";if(w){var L=function(e){var t=e.value,n=e.forceAverage,r=e.abbreviations,o=e.spaceSeparated,i=void 0!==o&&o,a=e.totalLength,s=void 0===a?0:a,l="",u=Math.abs(t),c=-1;if(u>=Math.pow(10,12)&&!n||"trillion"===n?(l=r.trillion,t/=Math.pow(10,12)):u<Math.pow(10,12)&&u>=Math.pow(10,9)&&!n||"billion"===n?(l=r.billion,t/=Math.pow(10,9)):u<Math.pow(10,9)&&u>=Math.pow(10,6)&&!n||"million"===n?(l=r.million,t/=Math.pow(10,6)):(u<Math.pow(10,6)&&u>=Math.pow(10,3)&&!n||"thousand"===n)&&(l=r.thousand,t/=Math.pow(10,3)),l&&(l=(i?" ":"")+l),s){var h=t.toString().split(".")[0];c=Math.max(s-h.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:u,forceAverage:g,abbreviations:o.currentAbbreviations(),spaceSeparated:C,totalLength:m});u=L.value,R+=L.abbreviation,m&&(b=L.mantissaPrecision)}if(O){var D=l({value:u,characteristicPrecision:p});u=D.value,R=D.abbreviation+R}var A=h(u.toString(),u,_,b,k);return A=d(A=f(A,0,y,p),u,S,o,i),(w||O)&&(A=function(e,t){return e+t}(A,R)),(E||u<0)&&(A=function(e,t,n){return 0===t?e:0==+e?e.replace("-",""):t>0?"+"+e:"sign"===n?e:"("+e.replace("-","")+")"}(A,u,T)),A}function p(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}var y=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},v=e("./globalState"),g=e("./validating"),w=e("./parsing"),b=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],_={general:{scale:1024,suffixes:b,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:b,marker:"d"}},M={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};t.exports=function(e){return{format:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return a.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return o.apply(void 0,n.concat([e]))},formatOrDefault:p}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,n){"use strict";function r(e){u=e}function o(){return c[u]}var i=e("./en-US"),a=e("./validating"),s=e("./parsing"),l={},u=void 0,c={},h=null,f={};l.languages=function(){return Object.assign({},c)},l.currentLanguage=function(){return u},l.currentCurrency=function(){return o().currency},l.currentAbbreviations=function(){return o().abbreviations},l.currentDelimiters=function(){return o().delimiters},l.currentOrdinal=function(){return o().ordinal},l.currentDefaults=function(){return Object.assign({},o().defaults,f)},l.currentOrdinalDefaultFormat=function(){return Object.assign({},l.currentDefaults(),o().ordinalFormat)},l.currentByteDefaultFormat=function(){return Object.assign({},l.currentDefaults(),o().byteFormat)},l.currentPercentageDefaultFormat=function(){return Object.assign({},l.currentDefaults(),o().percentageFormat)},l.currentCurrencyDefaultFormat=function(){return Object.assign({},l.currentDefaults(),o().currencyFormat)},l.currentTimeDefaultFormat=function(){return Object.assign({},l.currentDefaults(),o().timeFormat)},l.setDefaults=function(e){e=s.parseFormat(e),a.validateFormat(e)&&(f=e)},l.getZeroFormat=function(){return h},l.setZeroFormat=function(e){return h="string"==typeof e?e:null},l.hasZeroFormat=function(){return null!==h},l.languageData=function(e){if(e){if(c[e])return c[e];throw new Error('Unknown tag "'+e+'"')}return o()},l.registerLanguage=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a.validateLanguage(e))throw new Error("Invalid language data");c[e.languageTag]=e,t&&r(e.languageTag)},l.setLanguage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.languageTag;if(!c[e]){var n=e.split("-")[0],o=Object.keys(c).find((function(e){return e.split("-")[0]===n}));return c[o]?void r(o):void r(t)}r(e)},l.registerLanguage(i),u=i.languageTag,t.exports=l},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";function r(t,n){t.forEach((function(t){var r=void 0;try{r=e("../languages/"+t)}catch(e){console.error('Unable to load "'+t+'". No matching language file found.')}r&&n.registerLanguage(r)}))}t.exports=function(e){return{loadLanguagesInNode:function(t){return r(t,e)}}}},{}],6:[function(e,t,n){"use strict";function r(e,t,n){var r=new o(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new o(i),e._value=r.minus(i).toNumber(),e}var o=e("bignumber.js");t.exports=function(e){return{add:function(t,n){return function(e,t,n){var r=new o(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new o(i),e._value=r.add(i).toNumber(),e}(t,n,e)},subtract:function(t,n){return r(t,n,e)},multiply:function(t,n){return function(e,t,n){var r=new o(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new o(i),e._value=r.times(i).toNumber(),e}(t,n,e)},divide:function(t,n){return function(e,t,n){var r=new o(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new o(i),e._value=r.dividedBy(i).toNumber(),e}(t,n,e)},set:function(t,n){return function(e,t,n){var r=t;return n.isNumbro(t)&&(r=t._value),e._value=r,e}(t,n,e)},difference:function(t,n){return function(e,t,n){var o=n(e._value);return r(o,t,n),Math.abs(o._value)}(t,n,e)}}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function r(e){var t=e;return o.isNumbro(e)?t=e._value:"string"==typeof e?t=o.unformat(e):isNaN(e)&&(t=NaN),t}function o(e){return new d(r(e))}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("./globalState"),s=e("./validating"),l=e("./loading")(o),u=e("./unformatting"),c=e("./formatting")(o),h=e("./manipulating")(o),f=e("./parsing"),d=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._value=t}return i(e,[{key:"clone",value:function(){return o(this._value)}},{key:"format",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=f.parseFormat(e)),(e=c.formatOrDefault(e,a.currentCurrencyDefaultFormat())).output="currency",c.format(this,e)}},{key:"formatTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",c.format(this,e)}},{key:"binaryByteUnits",value:function(){return c.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return c.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return c.getByteUnit(this)}},{key:"difference",value:function(e){return h.difference(this,e)}},{key:"add",value:function(e){return h.add(this,e)}},{key:"subtract",value:function(e){return h.subtract(this,e)}},{key:"multiply",value:function(e){return h.multiply(this,e)}},{key:"divide",value:function(e){return h.divide(this,e)}},{key:"set",value:function(e){return h.set(this,r(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}]),e}();o.version="2.1.1",o.isNumbro=function(e){return e instanceof d},o.language=a.currentLanguage,o.registerLanguage=a.registerLanguage,o.setLanguage=a.setLanguage,o.languages=a.languages,o.languageData=a.languageData,o.zeroFormat=a.setZeroFormat,o.defaultFormat=a.currentDefaults,o.setDefaults=a.setDefaults,o.defaultCurrencyFormat=a.currentCurrencyDefaultFormat,o.validate=s.validate,o.loadLanguagesInNode=l.loadLanguagesInNode,o.unformat=u.unformat,t.exports=o},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,n){"use strict";t.exports={parseFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",void(t.base="general")):-1!==e.indexOf("b")?(t.output="byte",void(t.base="binary")):-1!==e.indexOf("d")?(t.output="byte",void(t.base="decimal")):void(-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time");t.output="percent"}else t.output="currency"}(e=function(e,t){var n=e.match(/{([^}]*)}$/);return n?(t.postfix=n[1],e.slice(0,-n[0].length)):e}(e=function(e,t){var n=e.match(/^{([^}]*)}/);return n?(t.prefix=n[1],e.slice(n[0].length)):e}(e,t),t),t),function(e,t){var n=e.match(/[1-9]+[0-9]*/);n&&(t.totalLength=+n[0])}(e,t),function(e,t){var n=e.split(".")[0].match(/0+/);n&&(t.characteristic=n[0].length)}(e,t),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,t),function(e,t){-1!==e.indexOf("a")&&(t.average=!0)}(e,t),function(e,t){-1!==e.indexOf("K")?t.forceAverage="thousand":-1!==e.indexOf("M")?t.forceAverage="million":-1!==e.indexOf("B")?t.forceAverage="billion":-1!==e.indexOf("T")&&(t.forceAverage="trillion")}(e,t),function(e,t){var n=e.split(".")[1];if(n){var r=n.match(/0+/);r&&(t.mantissa=r[0].length)}}(e,t),function(e,t){e.match(/\[\.]/)?t.optionalMantissa=!0:e.match(/\./)&&(t.optionalMantissa=!1)}(e,t),function(e,t){-1!==e.indexOf(",")&&(t.thousandSeparated=!0)}(e,t),function(e,t){-1!==e.indexOf(" ")&&(t.spaceSeparated=!0)}(e,t),function(e,t){e.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),e.match(/^\+?-/)&&(t.negative="sign")}(e,t),function(e,t){e.match(/^\+/)&&(t.forceSign=!0)}(e,t),t)}}},{}],9:[function(e,t,n){"use strict";function r(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments[3],a=arguments[4],l=arguments[5],u=arguments[6];if(!isNaN(+e))return+e;var c="",h=e.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(h!==e)return-1*o(h,t,n,i,a,l,u);for(var f=0;f<s.length;f++){var d=s[f];if((c=e.replace(d.key,""))!==e)return o(c,t,n,i,a,l,u)*d.factor}if((c=e.replace("%",""))!==e)return o(c,t,n,i,a,l,u)/100;var m=parseFloat(e);if(!isNaN(m)){var p=i(m);if(p&&"."!==p&&(c=e.replace(new RegExp(r(p)+"$"),""))!==e)return o(c,t,n,i,a,l,u);var y={};Object.keys(l).forEach((function(e){y[l[e]]=e}));for(var v=Object.keys(y).sort().reverse(),g=v.length,w=0;w<g;w++){var b=v[w],_=y[b];if((c=e.replace(b,""))!==e){var M=void 0;switch(_){case"thousand":M=Math.pow(10,3);break;case"million":M=Math.pow(10,6);break;case"billion":M=Math.pow(10,9);break;case"trillion":M=Math.pow(10,12)}return o(c,t,n,i,a,l,u)*M}}}}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=e.replace(n,"");return(o=o.replace(new RegExp("([0-9])"+r(t.thousands)+"([0-9])","g"),"$1$2")).replace(t.decimal,".")}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6];if(""!==e)return isNaN(+e)?e===a?0:o(i(e,t,n),t,n,r,a,s,l):+e}var s=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];t.exports={unformat:function(t,n){var r=e("./globalState"),o=r.currentDelimiters(),i=r.currentCurrency().symbol,s=r.currentOrdinal(),l=r.getZeroFormat(),u=r.currentAbbreviations(),c=void 0;if("string"==typeof t)c=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var n=e.split(":");if(3!==n.length)return!1;var r=+n[0],o=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(o)&&!isNaN(i)}(t,o)?function(e){var t=e.split(":"),n=+t[0],r=+t[1];return+t[2]+60*r+3600*n}(t):a(t,o,i,s,l,u,n);else{if("number"!=typeof t)return;c=t}if(void 0!==c)return c}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function r(e){return!!s.unformat(e)}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Object.keys(e).map((function(r){if(!t[r])return console.error(n+" Invalid key: "+r),!1;var i=e[r],s=t[r];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!o(i,u,"[Validate "+r+"]",!0))return!1}else if((void 0===i?"undefined":a(i))!==s.type)return console.error(n+" "+r+' type mismatched: "'+s.type+'" expected, "'+(void 0===i?"undefined":a(i))+'" provided'),!1;if(s.restrictions&&s.restrictions.length)for(var l=s.restrictions.length,c=0;c<l;c++){var h=s.restrictions[c],f=h.restriction,d=h.message;if(!f(i,e))return console.error(n+" "+r+" invalid value: "+d),!1}return s.restriction&&!s.restriction(i,e)?(console.error(n+" "+r+" invalid value: "+s.message),!1):s.validValues&&-1===s.validValues.indexOf(i)?(console.error(n+" "+r+" invalid value: must be among "+JSON.stringify(s.validValues)+', "'+i+'" provided'),!1):!(s.children&&!o(i,s.children,"[Validate "+r+"]"))}));return r||i.push.apply(i,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(t).map((function(r){var o=t[r];if("string"==typeof o&&(o={type:o}),o.mandatory){var i=o.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[r])return console.error(n+' Missing mandatory key "'+r+'"'),!1}return!0})))),i.reduce((function(e,t){return e&&t}),!0)}function i(e){return o(e,u,"[Validate format]")}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=e("./unformatting"),l=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,u={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(e,t){return"byte"===t.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(e){return"byte"===e.output}},characteristic:{type:"number",restriction:function(e){return e>=0},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(e){return e>=0},message:"value must be positive"},{restriction:function(e,t){return!t.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(e){return e>=0},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(e,t){return"percent"===t.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},c={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(l)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",ordinal:{type:"function",mandatory:!0},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};t.exports={validate:function(e,t){var n=r(e),o=i(t);return n&&o},validateFormat:i,validateInput:r,validateLanguage:function(e){return o(e,c,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7)},28861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sext_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Sex_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutus %d",h:"horas ida",hh:"horas %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},28890:(e,t,n)=>{var r=n(56492);e.exports=r("document","documentElement")},28959:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(95093))},29231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},29609:(e,t,n)=>{var r=n(30281);e.exports=r([].slice)},29720:(e,t,n)=>{var r=n(30200);e.exports=r},29849:function(e,t,n){!function(e){"use strict";var t={1:"",2:"੨",3:"੩",4:"",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:""},n={"":"1","੨":"2","੩":"3","":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(95093))},29979:(e,t,n)=>{"use strict";var r=n(77804).charAt,o=n(95362),i=n(99206),a=n(56409),s=n(48296),l="String Iterator",u=i.set,c=i.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:o(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},30200:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},30281:(e,t,n)=>{var r=n(38823),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},30290:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},30306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},30802:(e,t,n)=>{var r=n(31602);t.f=r},30959:(e,t,n)=>{var r=n(51605),o=n(56492),i=n(99070),a=n(72368),s=n(30281),l=n(92074),u=n(18679),c=n(78420),h=n(65335),f=n(32328),d=n(29609),m=n(82072),p=o("JSON","stringify"),y=s(/./.exec),v=s("".charAt),g=s("".charCodeAt),w=s("".replace),b=s(1..toString),_=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,S=!m||l((function(){var e=o("Symbol")();return"[null]"!=p([e])||"{}"!=p({a:e})||"{}"!=p(Object(e))})),C=l((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),T=function(e,t){var n=d(arguments),r=t;if((h(t)||void 0!==e)&&!f(e))return u(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!f(t))return t}),n[1]=t,i(p,null,n)},E=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return y(M,e)&&!y(k,o)||y(k,e)&&!y(M,r)?"\\u"+b(g(e,0),16):e};p&&r({target:"JSON",stat:!0,arity:3,forced:S||C},{stringify:function(e,t,n){var r=d(arguments),o=i(S?T:p,null,r);return C&&"string"==typeof o?w(o,_,E):o}})},31036:(e,t,n)=>{var r=n(92074),o=n(30200).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},31052:function(e,t,n){!function(e){"use strict";var t="pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var i=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),o>0&&(i+=(""!==i?" ":"")+t[o]),""===i?"pagh":i}(e);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera jar wa_tera jar cha_tera jar wej_tera jar loS_tera jar vagh_tera jar jav_tera jar Soch_tera jar chorgh_tera jar Hut_tera jar wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH cha".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa tup",mm:n,h:"wa rep",hh:n,d:"wa jaj",dd:n,M:"wa jar",MM:n,y:"wa DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},31545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(95093))},31602:(e,t,n)=>{var r=n(30200),o=n(50002),i=n(36490),a=n(50665),s=n(82072),l=n(5225),u=o("wks"),c=r.Symbol,h=c&&c.for,f=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(c,e)?u[e]=c[e]:u[e]=l&&h?h(t):f(t)}return u[e]}},32328:(e,t,n)=>{var r=n(56492),o=n(78420),i=n(47658),a=n(5225),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},32934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(95093))},32982:(e,t,n)=>{var r=n(51605),o=n(27806),i=n(40298);r({target:"Array",proto:!0},{fill:o}),i("fill")},33478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},33747:(e,t,n)=>{var r=n(79328),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},34606:(e,t,n)=>{var r=n(51605),o=n(56492),i=n(99070),a=n(38891),s=n(57849),l=n(73938),u=n(65335),c=n(53105),h=n(92074),f=o("Reflect","construct"),d=Object.prototype,m=[].push,p=h((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),y=!h((function(){f((function(){}))})),v=p||y;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(y&&!p)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(m,r,t),new(i(a,e,r))}var o=n.prototype,h=c(u(o)?o:d),v=i(e,h,t);return u(v)?v:h}})},34867:(e,t,n)=>{"use strict";var r=n(51605),o=n(30281),i=n(79328),a=n(7809),s=n(10140),l=n(92074),u=RangeError,c=String,h=Math.floor,f=o(s),d=o("".slice),m=o(1..toFixed),p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)},y=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=h(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=h(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!l((function(){m({})}))},{toFixed:function(e){var t,n,r,o,s=a(this),l=i(e),h=[0,0,0,0,0,0],m="",w="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(m="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*p(2,69,1))-69)<0?s*p(2,-t,1):s/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(y(h,0,n),r=l;r>=7;)y(h,1e7,0),r-=7;for(y(h,p(10,r,1),0),r=t-1;r>=23;)v(h,1<<23),r-=23;v(h,1<<r),y(h,1,1),v(h,2),w=g(h)}else y(h,0,n),y(h,1<<-t,0),w=g(h)+f("0",l);return l>0?m+((o=w.length)<=l?"0."+f("0",l-o)+w:d(w,0,o-l)+"."+d(w,o-l)):m+w}})},35231:(e,t,n)=>{"use strict";var r=n(51605),o=n(30281),i=n(24601),a=n(92612),s=n(23493),l=n(24881),u=n(95362),c=n(92074),h=n(68039),f=n(92349),d=n(3727),m=n(77413),p=n(6845),y=n(79965),v=[],g=o(v.sort),w=o(v.push),b=c((function(){v.sort(void 0)})),_=c((function(){v.sort(null)})),M=f("sort"),k=!c((function(){if(p)return p<70;if(!(d&&d>3)){if(m)return!0;if(y)return y<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:b||!_||!M||!k},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(k)return void 0===e?g(t):g(t,e);var n,r,o=[],c=s(t);for(r=0;r<c;r++)r in t&&w(o,t[r]);for(h(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)l(t,r++);return t}})},35245:(e,t,n)=>{var r=n(51605),o=n(36490),i=n(32328),a=n(13838),s=n(50002),l=n(14569),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},36490:(e,t,n)=>{var r=n(30281),o=n(92612),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},37071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},37892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},38823:(e,t,n)=>{var r=n(92074);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},38891:(e,t,n)=>{"use strict";var r=n(30281),o=n(24601),i=n(65335),a=n(36490),s=n(29609),l=n(38823),u=Function,c=r([].concat),h=r([].join),f={};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),l=function(){var n=c(r,s(arguments));return this instanceof l?function(e,t,n){if(!a(f,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";f[t]=u("C,a","return new C("+h(r,",")+")")}return f[t](e,n)}(t,n.length,n):t.apply(e,n)};return i(n)&&(l.prototype=n),l}},39686:(e,t,n)=>{var r=n(30281),o=n(73938),i=n(7473);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},40111:(e,t,n)=>{var r=n(92074),o=n(65335),i=n(18569),a=n(22085),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},40173:(e,t,n)=>{"use strict";var r=n(99070),o=n(72368),i=n(30281),a=n(20779),s=n(92074),l=n(73938),u=n(78420),c=n(88406),h=n(79328),f=n(33747),d=n(95362),m=n(71229),p=n(67234),y=n(46457),v=n(94433),g=n(66793),w=n(31602)("replace"),b=Math.max,_=Math.min,M=i([].concat),k=i([].push),S=i("".indexOf),C=i("".slice),T="$0"==="a".replace(/./,"$0"),E=!!/./[w]&&""===/./[w]("a","$0");a("replace",(function(e,t,n){var i=E?"$":"$0";return[function(e,n){var r=m(this),i=c(e)?void 0:y(e,w);return i?o(i,e,r,n):o(t,d(r),e,n)},function(e,o){var a=l(this),s=d(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var c=n(t,a,s,o);if(c.done)return c.value}var m=u(o);m||(o=d(o));var y=a.global;if(y){var w=a.unicode;a.lastIndex=0}for(var T=[];;){var E=g(a,s);if(null===E)break;if(k(T,E),!y)break;""===d(E[0])&&(a.lastIndex=p(s,f(a.lastIndex),w))}for(var O,R="",L=0,D=0;D<T.length;D++){for(var A=d((E=T[D])[0]),H=b(_(h(E.index),s.length),0),N=[],P=1;P<E.length;P++)k(N,void 0===(O=E[P])?O:String(O));var x=E.groups;if(m){var Y=M([A],N,H,s);void 0!==x&&k(Y,x);var I=d(r(o,void 0,Y))}else I=v(A,s,H,N,x,o);H>=L&&(R+=C(s,L,H)+I,L=H+A.length)}return R+C(s,L)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!T||E)},40298:(e,t,n)=>{var r=n(31602),o=n(53105),i=n(43610).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},40538:(e,t,n)=>{var r=n(51605),o=n(30200),i=n(18827).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},40590:(e,t,n)=>{"use strict";var r=n(51605),o=n(65077),i=n(30200),a=n(30281),s=n(36490),l=n(78420),u=n(47658),c=n(95362),h=n(43610).f,f=n(84361),d=i.Symbol,m=d&&d.prototype;if(o&&l(d)&&(!("description"in m)||void 0!==d().description)){var p={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(m,this)?new d(e):void 0===e?d():d(e);return""===e&&(p[t]=!0),t};f(y,d),y.prototype=m,m.constructor=y;var v="Symbol(test)"==String(d("test")),g=a(m.valueOf),w=a(m.toString),b=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),M=a("".slice);h(m,"description",{configurable:!0,get:function(){var e=g(this);if(s(p,e))return"";var t=w(e),n=v?M(t,7,-1):_(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:y})}},40748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(95093))},41011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(95093))},41332:(e,t,n)=>{var r=n(73938),o=n(69868);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},41412:(e,t,n)=>{var r=n(51605),o=n(92074),i=n(92612),a=n(97970),s=n(7168);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},41488:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(95093))},41794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(95093))},41848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},42353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,i,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},43129:(e,t,n)=>{var r={};r[n(31602)("toStringTag")]="z",e.exports="[object z]"===String(r)},43148:(e,t,n)=>{"use strict";var r=n(51605),o=n(30281),i=n(92588),a=n(71229),s=n(95362),l=n(44177),u=o("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},43610:(e,t,n)=>{var r=n(65077),o=n(87694),i=n(94491),a=n(73938),s=n(86032),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},43784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},43861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(95093))},44177:(e,t,n)=>{var r=n(31602)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},44429:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return r+(1===e?"dan":"dana");case"MM":return r+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return r+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},45214:(e,t,n)=>{var r=n(30281),o=n(33747),i=n(95362),a=n(10140),s=n(71229),l=r(a),u=r("".slice),c=Math.ceil,h=function(e){return function(t,n,r){var a,h,f=i(s(t)),d=o(n),m=f.length,p=void 0===r?" ":i(r);return d<=m||""==p?f:((h=l(p,c((a=d-m)/p.length))).length>a&&(h=u(h,0,a)),e?f+h:h+f)}};e.exports={start:h(!1),end:h(!0)}},45634:(e,t,n)=>{var r=n(92074),o=n(31602),i=n(6845),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},45708:(e,t,n)=>{n(13938)},45719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},45766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function i(e,t,i,a){var s=e+" ";return 1===e?s+n(0,t,i[0],a):t?s+(r(e)?o(i)[1]:o(i)[0]):a?s+o(i)[1]:s+(r(e)?o(i)[1]:o(i)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(95093))},46457:(e,t,n)=>{var r=n(24601),o=n(88406);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},46637:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+(1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return o+(1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return o+(1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return o+(1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+(1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return o+(1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},46885:(e,t,n)=>{var r=n(30281),o=n(24601),i=n(38823),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},47061:(e,t,n)=>{var r=n(56492);e.exports=r("navigator","userAgent")||""},47658:(e,t,n)=>{var r=n(30281);e.exports=r({}.isPrototypeOf)},47746:(e,t,n)=>{"use strict";var r=n(51605),o=n(58186).includes,i=n(92074),a=n(40298);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},47777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},48218:(e,t,n)=>{var r=n(92074),o=n(78420),i=n(36490),a=n(65077),s=n(12071).CONFIGURABLE,l=n(69965),u=n(99206),c=u.enforce,h=u.get,f=Object.defineProperty,d=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),m=String(String).split("String"),p=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),d&&n&&i(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=p((function(){return o(this)&&h(this).source||l(this)}),"toString")},48296:e=>{e.exports=function(e,t){return{value:e,done:t}}},48303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(95093))},48664:(e,t,n)=>{var r=n(30281),o=n(92074),i=n(18569),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},48825:(e,t,n)=>{"use strict";var r=n(51605),o=n(45214).start;r({target:"String",proto:!0,forced:n(97046)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},49306:(e,t,n)=>{"use strict";var r,o,i,a=n(92074),s=n(78420),l=n(65335),u=n(53105),c=n(97970),h=n(7485),f=n(31602),d=n(6926),m=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):p=!0),!l(r)||a((function(){var e={};return r[m].call(e)!==e}))?r={}:d&&(r=u(r)),s(r[m])||h(r,m,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},49310:(e,t,n)=>{var r=n(30200),o=n(59430),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},50002:(e,t,n)=>{var r=n(6926),o=n(49310);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},50304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},50665:(e,t,n)=>{var r=n(30281),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},50785:(e,t,n)=>{"use strict";var r=n(72368),o=n(20779),i=n(73938),a=n(88406),s=n(71229),l=n(54741),u=n(95362),c=n(46457),h=n(66793);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=h(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},50874:(e,t,n)=>{var r=n(72368),o=n(65335),i=n(32328),a=n(46457),s=n(69751),l=n(31602),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},51027:(e,t,n)=>{"use strict";var r=n(46885),o=n(72368),i=n(92612),a=n(41332),s=n(99034),l=n(1466),u=n(23493),c=n(52057),h=n(79526),f=n(51898),d=Array;e.exports=function(e){var t=i(e),n=l(this),m=arguments.length,p=m>1?arguments[1]:void 0,y=void 0!==p;y&&(p=r(p,m>2?arguments[2]:void 0));var v,g,w,b,_,M,k=f(t),S=0;if(!k||this===d&&s(k))for(v=u(t),g=n?new this(v):d(v);v>S;S++)M=y?p(t[S],S):t[S],c(g,S,M);else for(_=(b=h(t,k)).next,g=n?new this:[];!(w=o(_,b)).done;S++)M=y?a(b,p,[w.value,S],!0):w.value,c(g,S,M);return g.length=S,g}},51403:(e,t)=>{!function(){"use strict";function e(e){return e.split('"').length-1}t.parse=function(t){var n,r,o,i,a,s,l,u=[],c=0;for((o=t.replace(/\r\n|\r/g,"\n").split("\n")).length>1&&""===o[o.length-1]&&o.pop(),n=0,r=o.length;n<r;n+=1){for(o[n]=o[n].split("\t"),i=0,a=o[n].length;i<a;i+=1)u[c]||(u[c]=[]),s&&0===i?(l=u[c].length-1,u[c][l]=u[c][l]+"\n"+o[n][0],s&&1&e(o[n][0])&&(s=!1,u[c][l]=u[c][l].substring(0,u[c][l].length-1).replace(/""/g,'"'))):i===a-1&&0===o[n][i].indexOf('"')&&1&e(o[n][i])?(u[c].push(o[n][i].substring(1).replace(/""/g,'"')),s=!0):(u[c].push(o[n][i].replace(/""/g,'"')),s=!1);s||(c+=1)}return u},t.stringify=function(e){var t,n,r,o,i,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(a+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?a+='"'+i.replace(/"/g,'""')+'"':a+=i:a+=null==i?"":i;t!==n-1&&(a+="\n")}return a}}(window)},51605:(e,t,n)=>{var r=n(30200),o=n(97632).f,i=n(97712),a=n(7485),s=n(59430),l=n(84361),u=n(84977);e.exports=function(e,t){var n,c,h,f,d,m=e.target,p=e.global,y=e.stat;if(n=p?r:y?r[m]||s(m,{}):(r[m]||{}).prototype)for(c in t){if(f=t[c],h=e.dontCallGetSet?(d=o(n,c))&&d.value:n[c],!u(p?c:m+(y?".":"#")+c,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),a(n,c,f,e)}}},51898:(e,t,n)=>{var r=n(83062),o=n(46457),i=n(88406),a=n(52228),s=n(31602)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},52057:(e,t,n)=>{"use strict";var r=n(86032),o=n(43610),i=n(66843);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},52228:e=>{e.exports={}},52477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},52648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(95093))},52929:(e,t,n)=>{var r=n(46885),o=n(72368),i=n(73938),a=n(13838),s=n(99034),l=n(23493),u=n(47658),c=n(79526),h=n(51898),f=n(69868),d=TypeError,m=function(e,t){this.stopped=e,this.result=t},p=m.prototype;e.exports=function(e,t,n){var y,v,g,w,b,_,M,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),O=r(t,k),R=function(e){return y&&f(y,"normal",e),new m(!0,e)},L=function(e){return S?(i(e),E?O(e[0],e[1],R):O(e[0],e[1])):E?O(e,R):O(e)};if(C)y=e.iterator;else if(T)y=e;else{if(!(v=h(e)))throw d(a(e)+" is not iterable");if(s(v)){for(g=0,w=l(e);w>g;g++)if((b=L(e[g]))&&u(p,b))return b;return new m(!1)}y=c(e,v)}for(_=C?e.next:y.next;!(M=o(_,y)).done;){try{b=L(M.value)}catch(e){f(y,"throw",e)}if("object"==typeof b&&b&&u(p,b))return b}return new m(!1)}},53105:(e,t,n)=>{var r,o=n(73938),i=n(65318),a=n(30290),s=n(67708),l=n(28890),u=n(23262),c=n(25904),h="prototype",f="script",d=c("IE_PROTO"),m=function(){},p=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?y(r):(t=u("iframe"),n="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):y(r);for(var o=a.length;o--;)delete v[h][a[o]];return v()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[h]=o(e),n=new m,m[h]=null,n[d]=e):n=v(),void 0===t?n:i.f(n,t)}},53656:(e,t,n)=>{"use strict";n(92327)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5959))},53872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},54566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54691:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(95093))},54697:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54741:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},54903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(95093))},54989:(e,t,n)=>{"use strict";var r,o=n(51605),i=n(30281),a=n(97632).f,s=n(33747),l=n(95362),u=n(92588),c=n(71229),h=n(44177),f=n(6926),d=i("".startsWith),m=i("".slice),p=Math.min,y=h("startsWith");o({target:"String",proto:!0,forced:!(!f&&!y&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||y)},{startsWith:function(e){var t=l(c(this));u(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return d?d(t,r,n):m(t,n,n+r.length)===r}})},55073:e=>{e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},55159:(e,t,n)=>{var r=n(92074);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},55802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(95093))},56e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(95093))},56195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},56409:(e,t,n)=>{"use strict";var r=n(51605),o=n(72368),i=n(6926),a=n(12071),s=n(78420),l=n(18287),u=n(97970),c=n(39686),h=n(75282),f=n(97712),d=n(7485),m=n(31602),p=n(52228),y=n(49306),v=a.PROPER,g=a.CONFIGURABLE,w=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,_=m("iterator"),M="keys",k="values",S="entries",C=function(){return this};e.exports=function(e,t,n,a,m,y,T){l(n,t,a);var E,O,R,L=function(e){if(e===m&&P)return P;if(!b&&e in H)return H[e];switch(e){case M:case k:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",A=!1,H=e.prototype,N=H[_]||H["@@iterator"]||m&&H[m],P=!b&&N||L(m),x="Array"==t&&H.entries||N;if(x&&(E=u(x.call(new e)))!==Object.prototype&&E.next&&(i||u(E)===w||(c?c(E,w):s(E[_])||d(E,_,C)),h(E,D,!0,!0),i&&(p[D]=C)),v&&m==k&&N&&N.name!==k&&(!i&&g?f(H,"name",k):(A=!0,P=function(){return o(N,this)})),m)if(O={values:L(k),keys:y?P:L(M),entries:L(S)},T)for(R in O)(b||A||!(R in H))&&d(H,R,O[R]);else r({target:t,proto:!0,forced:b||A},O);return i&&!T||H[_]===P||d(H,_,P,{name:m}),p[t]=P,O}},56464:function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var i=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?i+(r(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?i+(r(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?i+(r(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?i+(r(e)?"dny":"dní"):i+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?i+(r(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?i+(r(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},56492:(e,t,n)=>{var r=n(30200),o=n(78420);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},56509:(e,t,n)=>{var r=n(18569),o=n(5476),i=n(64789).f,a=n(76056),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},56527:(e,t,n)=>{var r=n(43610).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},56575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(95093))},56589:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},57242:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},57609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(95093))},57777:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},57849:(e,t,n)=>{var r=n(1466),o=n(13838),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},58076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},58186:(e,t,n)=>{var r=n(5476),o=n(6539),i=n(23493),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},58379:(e,t,n)=>{var r=n(30200),o=n(5549),i=n(22975),a=n(10516),s=n(97712),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},58649:(e,t,n)=>{"use strict";var r=n(99070),o=n(72368),i=n(30281),a=n(20779),s=n(73938),l=n(88406),u=n(62449),c=n(71229),h=n(23444),f=n(67234),d=n(33747),m=n(95362),p=n(46457),y=n(76056),v=n(66793),g=n(70054),w=n(12192),b=n(92074),_=w.UNSUPPORTED_Y,M=4294967295,k=Math.min,S=[].push,C=i(/./.exec),T=i(S),E=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=m(c(this)),a=void 0===n?M:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,h,f=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,d+"g");(s=o(g,v,i))&&!((l=v.lastIndex)>p&&(T(f,E(i,p,s.index)),s.length>1&&s.index<i.length&&r(S,f,y(s,1)),h=s[0].length,p=l,f.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return p===i.length?!h&&C(v,"")||T(f,""):T(f,E(i,p)),f.length>a?y(f,0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:p(t,e);return a?o(a,t,r,n):o(i,m(r),t,n)},function(e,r){var o=s(this),a=m(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=h(o,RegExp),c=o.unicode,p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(_?"g":"y"),y=new u(_?"^(?:"+o.source+")":o,p),g=void 0===r?M:r>>>0;if(0===g)return[];if(0===a.length)return null===v(y,a)?[a]:[];for(var w=0,b=0,S=[];b<a.length;){y.lastIndex=_?0:b;var C,O=v(y,_?E(a,b):a);if(null===O||(C=k(d(y.lastIndex+(_?b:0)),a.length))===w)b=f(a,b,c);else{if(T(S,E(a,w,b)),S.length===g)return S;for(var R=1;R<=O.length-1;R++)if(T(S,O[R]),S.length===g)return S;b=w=C}}return T(S,E(a,w)),S}]}),!!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_)},58676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(95093))},59430:(e,t,n)=>{var r=n(30200),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},59581:(e,t,n)=>{"use strict";var r=n(51605),o=n(91344).map;r({target:"Array",proto:!0,forced:!n(45634)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},60708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(95093))},61290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(95093))},61509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,a){var s=r(t),l=o[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},61857:(e,t,n)=>{var r=n(51605),o=n(30200),i=n(74922).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},62050:(e,t,n)=>{var r=n(47061);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},62449:(e,t,n)=>{var r=n(65335),o=n(18569),i=n(31602)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},62776:(e,t,n)=>{var r=n(51605),o=n(30200),i=n(18827).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},62998:(e,t,n)=>{var r=n(93892);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},63164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(95093))},63534:(e,t,n)=>{n(27896),n(3883),n(35245),n(30959),n(91074)},64051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},64216:(e,t,n)=>{n(26100)("iterator")},64226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(95093))},64789:(e,t,n)=>{var r=n(16347),o=n(30290).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},65077:(e,t,n)=>{var r=n(92074);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},65190:(e,t,n)=>{var r=n(47658),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},65318:(e,t,n)=>{var r=n(65077),o=n(94491),i=n(43610),a=n(73938),s=n(5476),l=n(91641);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},65335:(e,t,n)=>{var r=n(78420),o="object"==typeof document&&document.all,i=void 0===o&&void 0!==o;e.exports=i?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},66060:(e,t,n)=>{var r=n(36490);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},66584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},66793:(e,t,n)=>{var r=n(72368),o=n(73938),i=n(78420),a=n(18569),s=n(70054),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return r(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},66843:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},67234:(e,t,n)=>{"use strict";var r=n(77804).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},67500:(e,t,n)=>{"use strict";var r,o=n(51605),i=n(30281),a=n(97632).f,s=n(33747),l=n(95362),u=n(92588),c=n(71229),h=n(44177),f=n(6926),d=i("".endsWith),m=i("".slice),p=Math.min,y=h("endsWith");o({target:"String",proto:!0,forced:!(!f&&!y&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||y)},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:p(s(n),r),i=l(e);return d?d(t,i,o):m(t,o-i.length,o)===i}})},67579:(e,t,n)=>{var r=n(51605),o=n(92074),i=n(56509).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},67708:e=>{e.exports={}},68039:(e,t,n)=>{var r=n(76056),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},68329:(e,t,n)=>{"use strict";var r=n(51605),o=n(69163).trim;r({target:"String",proto:!0,forced:n(89233)("trim")},{trim:function(){return o(this)}})},68763:(e,t,n)=>{"use strict";var r=n(51605),o=n(92612),i=n(6539),a=n(79328),s=n(23493),l=n(6648),u=n(57242),c=n(62998),h=n(52057),f=n(24881),d=n(45634)("splice"),m=Math.max,p=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,r,d,y,v,g,w=o(this),b=s(w),_=i(e,b),M=arguments.length;for(0===M?n=r=0:1===M?(n=0,r=b-_):(n=M-2,r=p(m(a(t),0),b-_)),u(b+n-r),d=c(w,r),y=0;y<r;y++)(v=_+y)in w&&h(d,y,w[v]);if(d.length=r,n<r){for(y=_;y<b-r;y++)g=y+n,(v=y+r)in w?w[g]=w[v]:f(w,g);for(y=b;y>b-r+n;y--)f(w,y-1)}else if(n>r)for(y=b-r;y>_;y--)g=y+n-1,(v=y+r-1)in w?w[g]=w[v]:f(w,g);for(y=0;y<n;y++)w[y+_]=arguments[y+2];return l(w,b-r+n),d}})},69163:(e,t,n)=>{var r=n(30281),o=n(71229),i=n(95362),a=n(55073),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),h=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},69218:(e,t,n)=>{var r=n(51605),o=n(81688);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},69532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},69751:(e,t,n)=>{var r=n(72368),o=n(78420),i=n(65335),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},69868:(e,t,n)=>{var r=n(72368),o=n(73938),i=n(46457);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},69965:(e,t,n)=>{var r=n(30281),o=n(78420),i=n(49310),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},70054:(e,t,n)=>{"use strict";var r,o,i=n(72368),a=n(30281),s=n(95362),l=n(16844),u=n(12192),c=n(50002),h=n(53105),f=n(99206).get,d=n(31036),m=n(28121),p=c("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,v=y,g=a("".charAt),w=a("".indexOf),b=a("".replace),_=a("".slice),M=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),k=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(M||S||k||d||m)&&(v=function(e){var t,n,r,o,a,u,c,d=this,m=f(d),C=s(e),T=m.raw;if(T)return T.lastIndex=d.lastIndex,t=i(v,T,C),d.lastIndex=T.lastIndex,t;var E=m.groups,O=k&&d.sticky,R=i(l,d),L=d.source,D=0,A=C;if(O&&(R=b(R,"y",""),-1===w(R,"g")&&(R+="g"),A=_(C,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==g(C,d.lastIndex-1))&&(L="(?: "+L+")",A=" "+A,D++),n=new RegExp("^(?:"+L+")",R)),S&&(n=new RegExp("^"+L+"$(?!\\s)",R)),M&&(r=d.lastIndex),o=i(y,O?n:d,A),O?o?(o.input=_(o.input,D),o[0]=_(o[0],D),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:M&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(p,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&E)for(o.groups=u=h(null),a=0;a<E.length;a++)u[(c=E[a])[0]]=o[c[1]];return o}),e.exports=v},70217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},70863:(e,t,n)=>{n(27373)},71229:(e,t,n)=>{var r=n(88406),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},72264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},72368:(e,t,n)=>{var r=n(38823),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},72475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(95093))},73386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},73635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(95093))},73739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(95093))},73938:(e,t,n)=>{var r=n(65335),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},74063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},74922:(e,t,n)=>{var r,o,i,a,s=n(30200),l=n(99070),u=n(46885),c=n(78420),h=n(36490),f=n(92074),d=n(28890),m=n(29609),p=n(23262),y=n(56589),v=n(62050),g=n(75223),w=s.setImmediate,b=s.clearImmediate,_=s.process,M=s.Dispatch,k=s.Function,S=s.MessageChannel,C=s.String,T=0,E={},O="onreadystatechange";try{r=s.location}catch(e){}var R=function(e){if(h(E,e)){var t=E[e];delete E[e],t()}},L=function(e){return function(){R(e)}},D=function(e){R(e.data)},A=function(e){s.postMessage(C(e),r.protocol+"//"+r.host)};w&&b||(w=function(e){y(arguments.length,1);var t=c(e)?e:k(e),n=m(arguments,1);return E[++T]=function(){l(t,void 0,n)},o(T),T},b=function(e){delete E[e]},g?o=function(e){_.nextTick(L(e))}:M&&M.now?o=function(e){M.now(L(e))}:S&&!v?(a=(i=new S).port2,i.port1.onmessage=D,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(A)?(o=A,s.addEventListener("message",D,!1)):o=O in p("script")?function(e){d.appendChild(p("script"))[O]=function(){d.removeChild(this),R(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:w,clear:b}},75223:(e,t,n)=>{var r=n(18569),o=n(30200);e.exports="process"==r(o.process)},75282:(e,t,n)=>{var r=n(43610).f,o=n(36490),i=n(31602)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},75417:(e,t,n)=>{n(61857),n(19708)},76056:(e,t,n)=>{var r=n(6539),o=n(23493),i=n(52057),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=o(e),u=r(t,l),c=r(void 0===n?l:n,l),h=a(s(c-u,0)),f=0;u<c;u++,f++)i(h,f,e[u]);return h.length=f,h}},76784:(e,t,n)=>{"use strict";var r=n(30281),o=n(92760),i=n(82014).getWeakData,a=n(65190),s=n(73938),l=n(88406),u=n(65335),c=n(52929),h=n(91344),f=n(36490),d=n(99206),m=d.set,p=d.getterFor,y=h.find,v=h.findIndex,g=r([].splice),w=0,b=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},M=function(e,t){return y(e.entries,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=M(this,e);if(t)return t[1]},has:function(e){return!!M(this,e)},set:function(e,t){var n=M(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var h=e((function(e,o){a(e,d),m(e,{type:t,id:w++,frozen:void 0}),l(o)||c(o,e[r],{that:e,AS_ENTRIES:n})})),d=h.prototype,y=p(t),v=function(e,t,n){var r=y(e),o=i(s(t),!0);return!0===o?b(r).set(t,n):o[r.id]=n,e};return o(d,{delete:function(e){var t=y(this);if(!u(e))return!1;var n=i(e);return!0===n?b(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=y(this);if(!u(e))return!1;var n=i(e);return!0===n?b(t).has(e):n&&f(n,t.id)}}),o(d,n?{get:function(e){var t=y(this);if(u(e)){var n=i(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),h}}},77075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},77249:(e,t,n)=>{"use strict";var r=n(51605),o=n(19877);r({target:"String",proto:!0,forced:n(88478)("link")},{link:function(e){return o(this,"a","href",e)}})},77329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},77413:(e,t,n)=>{var r=n(47061);e.exports=/MSIE|Trident/.test(r)},77804:(e,t,n)=>{var r=n(30281),o=n(79328),i=n(95362),a=n(71229),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,h=i(a(t)),f=o(n),d=h.length;return f<0||f>=d?e?"":void 0:(r=l(h,f))<55296||r>56319||f+1===d||(c=l(h,f+1))<56320||c>57343?e?s(h,f):r:e?u(h,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},77853:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},78420:e=>{e.exports=function(e){return"function"==typeof e}},78474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},78636:(e,t,n)=>{"use strict";var r=n(72368),o=n(20779),i=n(73938),a=n(88406),s=n(33747),l=n(95362),u=n(71229),c=n(46457),h=n(67234),f=n(66793);o("match",(function(e,t,n){return[function(t){var n=u(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return f(r,o);var u=r.unicode;r.lastIndex=0;for(var c,d=[],m=0;null!==(c=f(r,o));){var p=l(c[0]);d[m]=p,""===p&&(r.lastIndex=h(o,s(r.lastIndex),u)),m++}return 0===m?null:d}]}))},78717:function(e,t){var n,r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=Error;!function(e){var t=function(e){if(u(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);for(var r in t=[],e)e.hasOwnProperty(r)&&t.push(r);return t};function n(e,r){switch(typeof e){case"undefined":case"boolean":case"string":case"number":return e===r;case"object":if(null===e)return null===r;if(u(e)){if(!u(r)||e.length!==r.length)return!1;for(var o=0,i=e.length;o<i;o++)if(!n(e[o],r[o]))return!1;return!0}var a=t(r).length;if(t(e).length!==a)return!1;for(o=0;o<a;o++)if(!n(e[o],r[o]))return!1;return!0;default:return!1}}var i={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var r={op:"_get",path:this.from};return v(n,[r]),v(n,[{op:"remove",path:this.from}]),v(n,[{op:"add",path:this.path,value:r.value}]),!0},copy:function(e,t,n){var r={op:"_get",path:this.from};return v(n,[r]),v(n,[{op:"add",path:this.path,value:r.value}]),!0},test:function(e,t){return n(e[t],this.value)},_get:function(e,t){this.value=e[t]}},a={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:i.move,copy:i.copy,test:i.test,_get:i._get},s={add:function(e){for(var t in s.remove.call(this,e),this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&i.remove.call(this,e,t);return!0},replace:function(e){return v(e,[{op:"remove",path:this.path}]),v(e,[{op:"add",path:this.path,value:this.value}]),!0},move:i.move,copy:i.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}};function l(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}var u,c=[],h=function(e){this.observers=[],this.obj=e},f=function(e,t){this.callback=e,this.observer=t};function d(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function m(e){for(var t,n=0,r=c.length;n<r;n++)if(c[n].obj===e.object){t=c[n];break}p(t.value,e.object,e.patches,""),e.patches.length&&v(t.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function p(e,n,r,o){for(var i=t(n),a=t(e),s=!1,u=a.length-1;u>=0;u--){var c=e[f=a[u]];if(n.hasOwnProperty(f)){var h=n[f];"object"==typeof c&&null!=c&&"object"==typeof h&&null!=h?p(c,h,r,o+"/"+l(f)):c!=h&&r.push({op:"replace",path:o+"/"+l(f),value:d(h)})}else r.push({op:"remove",path:o+"/"+l(f)}),s=!0}if(s||i.length!=a.length)for(u=0;u<i.length;u++){var f=i[u];e.hasOwnProperty(f)||r.push({op:"add",path:o+"/"+l(f),value:d(n[f])})}}function y(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function v(e,t,n){for(var r,o,l=!1,c=0,h=t.length;c<h;){r=t[c],c++;for(var f=(r.path||"").split("/"),d=e,m=1,p=f.length,v=void 0;;){if(o=f[m],n&&void 0===v&&(void 0===d[o]?v=f.slice(0,m).join("/"):m==p-1&&(v=r.path),void 0!==v&&this.validator(r,c-1,e,v)),m++,void 0===o&&m>=p){l=s[r.op].call(r,d,o,e);break}if(u(d)){if("-"===o)o=d.length;else{if(n&&!y(o))throw new g("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c-1,r.path,r);o=parseInt(o,10)}if(m>=p){if(n&&"add"===r.op&&o>d.length)throw new g("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c-1,r.path,r);l=a[r.op].call(r,d,o,e);break}}else if(o&&-1!=o.indexOf("~")&&(o=o.replace(/~1/g,"/").replace(/~0/g,"~")),m>=p){l=i[r.op].call(r,d,o,e);break}d=d[o]}}return l}e.unobserve=function(e,t){t.unobserve()},e.observe=function(e,t){var n,r=function(e){for(var t=0,n=c.length;t<n;t++)if(c[t].obj===e)return c[t]}(e);if(r?n=function(e,t){for(var n=0,r=e.observers.length;n<r;n++)if(e.observers[n].callback===t)return e.observers[n].observer}(r,t):(r=new h(e),c.push(r)),n)return n;if(n={},r.value=d(e),t){n.callback=t,n.next=null;var i=this.intervals||[100,1e3,1e4,6e4];if(void 0===i.push)throw new o("jsonpatch.intervals must be an array");var a=0,s=function(){m(n)},l=function(){clearTimeout(n.next),n.next=setTimeout((function(){s(),a=0,n.next=setTimeout(u,i[a++])}),0)},u=function(){s(),a==i.length&&(a=i.length-1),n.next=setTimeout(u,i[a++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",l),window.addEventListener("mouseup",l),window.addEventListener("keydown",l)):(document.documentElement.attachEvent("onmousedown",l),document.documentElement.attachEvent("onmouseup",l),document.documentElement.attachEvent("onkeydown",l))),n.next=setTimeout(u,i[a++])}return n.patches=[],n.object=e,n.unobserve=function(){m(n),clearTimeout(n.next),function(e,t){for(var n=0,r=e.observers.length;n<r;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}(r,n),0===r.observers.length&&c.splice(c.indexOf(r),1),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",l),window.removeEventListener("mouseup",l),window.removeEventListener("keydown",l)):(document.documentElement.detachEvent("onmousedown",l),document.documentElement.detachEvent("onmouseup",l),document.documentElement.detachEvent("onkeydown",l)))},r.observers.push(new f(t,n)),n},e.generate=m,u=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=v,e.compare=function(e,t){var n=[];return p(e,t,n,""),n};var g=function(e){function t(t,n,r,o,i){e.call(this,t),this.message=t,this.name=n,this.index=r,this.operation=o,this.tree=i}return r(t,e),t}(o);function w(e){if(void 0===e)return!0;if("array"==typeof e||"object"==typeof e)for(var t in e)if(w(e[t]))return!0;return!1}e.JsonPatchError=g,e.Error=g,e.validator=function(t,n,r,o){if("object"!=typeof t||null===t||u(t))throw new g("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,r);if(!i[t.op])throw new g("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,r);if("string"!=typeof t.path)throw new g("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,r);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new g("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,r);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new g("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,r);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&w(t.value))throw new g("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,r);if(r)if("add"==t.op){var a=t.path.split("/").length,s=o.split("/").length;if(a!==s+1&&a!==s)throw new g("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,r)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==o)throw new g("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,r)}else if("move"===t.op||"copy"===t.op){var l={op:"_get",path:t.from,value:void 0},c=e.validate([l],r);if(c&&"OPERATION_PATH_UNRESOLVABLE"===c.name)throw new g("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,r)}},e.validate=function(e,t){try{if(!u(e))throw new g("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),v.call(this,t,e,!0);else for(var n=0;n<e.length;n++)this.validator(e[n],n)}catch(e){if(e instanceof g)return e;throw e}}}(n||(n={})),t.apply=n.apply,t.observe=n.observe,t.unobserve=n.unobserve,t.generate=n.generate,t.compare=n.compare,t.validate=n.validate,t.validator=n.validator,t.JsonPatchError=n.JsonPatchError,t.Error=n.Error},78823:function(e,t,n){!function(){"use strict";var t;try{t=n(95093)}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){n?e.addEventListener(t,r,!!o):e.attachEvent("on"+t,r)},a=function(e,t,r,o){n?e.removeEventListener(t,r,!!o):e.detachEvent("on"+t,r)},s=function(e,t,n){var o;r.createEvent?((o=r.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=y(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=y(o,n),e.fireEvent("on"+t,o))},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},u=function(e){return/Array/.test(Object.prototype.toString.call(e))},c=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},h=function(e){var t=e.getDay();return 0===t||6===t},f=function(e){return e%4==0&&e%100!=0||e%400==0},d=function(e,t){return[31,f(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},m=function(e){c(e)&&e.setHours(0,0,0,0)},p=function(e,t){return e.getTime()===t.getTime()},y=function(e,t,n){var r,o;for(r in t)(o=void 0!==e[r])&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?c(t[r])?n&&(e[r]=new Date(t[r].getTime())):u(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=y({},t[r],n):!n&&o||(e[r]=t[r]);return e},v=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},g={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},w=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},b=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},_=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},M=function(e,t,n,r,o,i){var a,s,l,c,h,f=e._o,d=n===f.minYear,m=n===f.maxYear,p='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',y=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(d&&a<f.minMonth||m&&a>f.maxMonth?'disabled="disabled"':"")+">"+f.i18n.months[a]+"</option>");for(c='<div class="pika-label">'+f.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",u(f.yearRange)?(a=f.yearRange[0],s=f.yearRange[1]+1):(a=n-f.yearRange,s=1+n+f.yearRange),l=[];a<s&&a<=f.maxYear;a++)a>=f.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return h='<div class="pika-label">'+n+f.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",f.showMonthAfterYear?p+=h+c:p+=c+h,d&&(0===r||f.minMonth>=r)&&(y=!1),m&&(11===r||f.maxMonth<=r)&&(v=!1),0===t&&(p+='<button class="pika-prev'+(y?"":" is-disabled")+'" type="button">'+f.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(p+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+f.i18n.nextMonth+"</button>"),p+"</div>"},k=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+w(e,t)+'">'+w(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+("<tbody>"+t.join("")+"</tbody></table>")},S=function(a){var s=this,u=s.config(a);s._onMouseDown=function(e){if(s._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?s.prevMonth():l(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&o((function(){s.hide(),u.field&&u.field.blur()}),100))),l(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?s.gotoMonth(t.value):l(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:u.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var r;n.firedBy!==s&&(r=t?(r=e(u.field.value,u.format,u.formatStrict))&&r.isValid()?r.toDate():null:new Date(Date.parse(u.field.value)),c(r)&&s.setDate(r),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=r.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=o((function(){s.hide()}),50)),s._c=!1},s._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,r=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",s._onChange)));do{if(l(r,"pika-single")||r===u.trigger)return}while(r=r.parentNode);s._v&&t!==u.trigger&&r!==u.trigger&&s.hide()}},s.el=r.createElement("div"),s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),i(s.el,"mousedown",s._onMouseDown,!0),i(s.el,"touchend",s._onMouseDown,!0),i(s.el,"change",s._onChange),i(r,"keydown",s._onKeyChange),u.field&&(u.container?u.container.appendChild(s.el):u.bound?r.body.appendChild(s.el):u.field.parentNode.insertBefore(s.el,u.field.nextSibling),i(u.field,"change",s._onInputChange),u.defaultDate||(t&&u.field.value?u.defaultDate=e(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var h=u.defaultDate;c(h)?u.setDefaultDate?s.setDate(h,!0):s.gotoDate(h):s.gotoDate(new Date),u.bound?(this.hide(),s.el.className+=" is-bound",i(u.trigger,"click",s._onInputClick),i(u.trigger,"focus",s._onInputFocus),i(u.trigger,"blur",s._onInputBlur)):this.show()};return S.prototype={config:function(e){this._o||(this._o=y({},g,!0));var t=y(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,c(t.minDate)||(t.minDate=!1),c(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),u(t.yearRange)){var r=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r,t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||g.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return c(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return c(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),c(e)){var n=this._o.minDate,r=this._o.maxDate;c(n)&&e<n?e=n:c(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(c(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o<n.getTime()||r.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,r){var o,i=this.getDate(),a=24*parseInt(r)*60*60*1e3;"add"===n?o=new Date(i.valueOf()+a):"subtract"===n&&(o=new Date(i.valueOf()-a)),t&&("add"===n?o=e(i).add(r,"days").toDate():"subtract"===n&&(o=e(i).subtract(r,"days").toDate())),this.setDate(o)},adjustCalendars:function(){this.calendars[0]=v(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=v({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(m(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=g.minDate,this._o.minYear=g.minYear,this._o.minMonth=g.minMonth,this._o.startRange=g.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(m(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=g.maxDate,this._o.maxYear=g.maxYear,this._o.maxMonth=g.maxMonth,this._o.endRange=g.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,r=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+M(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,o,i,a,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,o=this.el.offsetHeight,i=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)l=(c=e.getBoundingClientRect()).left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>i||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+o>a+s||this._o.position.indexOf("top")>-1&&u-o-e.offsetHeight>0)&&(u=u-o-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var r,o,i,a,s=this._o,l=new Date,u=d(e,t),f=new Date(e,t,1).getDay(),y=[],v=[];m(l),s.firstDay>0&&(f-=s.firstDay)<0&&(f+=7);for(var g=0===t?11:t-1,w=11===t?0:t+1,M=0===t?e-1:e,S=11===t?e+1:e,C=d(M,g),T=u+f,E=T;E>7;)E-=7;T+=7-E;for(var O=0,R=0;O<T;O++){var L=new Date(e,t,O-f+1),D=!!c(this._d)&&p(L,this._d),A=p(L,l),H=O<f||O>=u+f,N=O-f+1,P=t,x=e,Y=s.startRange&&p(s.startRange,L),I=s.endRange&&p(s.endRange,L),j=s.startRange&&s.endRange&&s.startRange<L&&L<s.endRange;H&&(O<f?(N=C+N,P=g,x=M):(N-=u,P=w,x=S));var F={day:N,month:P,year:x,isSelected:D,isToday:A,isDisabled:s.minDate&&L<s.minDate||s.maxDate&&L>s.maxDate||s.disableWeekends&&h(L)||s.disableDayFn&&s.disableDayFn(L),isEmpty:H,isStartRange:Y,isEndRange:I,isInRange:j,showDaysInNextAndPreviousMonths:s.showDaysInNextAndPreviousMonths};v.push(b(F)),7==++R&&(s.showWeekNumber&&v.unshift((r=O-f,o=t,i=e,a=void 0,a=new Date(i,0,1),'<td class="pika-week">'+Math.ceil(((new Date(i,o,r)-a)/864e5+a.getDay()+1)/7)+"</td>")),y.push(_(v,s.isRTL)),v=[],R=0)}return k(s,y,n)},isVisible:function(){return this._v},show:function(){var e,t,n;this.isVisible()||(e=this.el,t="is-hidden",e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,""),this._v=!0,this.draw(),this._o.bound&&(i(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e,t,n=this._v;!1!==n&&(this._o.bound&&a(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",e=this.el,l(e,t="is-hidden")||(e.className=""===e.className?t:e.className+" "+t),this._v=!1,void 0!==n&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},S}(t)}()},79073:(e,t,n)=>{var r=n(65077),o=n(30200),i=n(30281),a=n(84977),s=n(93054),l=n(97712),u=n(64789).f,c=n(47658),h=n(62449),f=n(95362),d=n(10353),m=n(12192),p=n(56527),y=n(7485),v=n(92074),g=n(36490),w=n(99206).enforce,b=n(93524),_=n(31602),M=n(31036),k=n(28121),S=_("match"),C=o.RegExp,T=C.prototype,E=o.SyntaxError,O=i(T.exec),R=i("".charAt),L=i("".replace),D=i("".indexOf),A=i("".slice),H=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,P=/a/g,x=new C(N)!==N,Y=m.MISSED_STICKY,I=m.UNSUPPORTED_Y;if(a("RegExp",r&&(!x||Y||M||k||v((function(){return P[S]=!1,C(N)!=N||C(P)==P||"/a/i"!=C(N,"i")}))))){for(var j=function(e,t){var n,r,o,i,a,u,m=c(T,this),p=h(e),y=void 0===t,v=[],b=e;if(!m&&p&&y&&e.constructor===j)return e;if((p||c(T,e))&&(e=e.source,y&&(t=d(b))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),b=e,M&&"dotAll"in N&&(r=!!t&&D(t,"s")>-1)&&(t=L(t,/s/g,"")),n=t,Y&&"sticky"in N&&(o=!!t&&D(t,"y")>-1)&&I&&(t=L(t,/y/g,"")),k&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=R(e,r)))t+=R(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:O(H,A(e,r+1))&&(r+=2,l=!0),o+=t,u++;continue;case">"===t&&l:if(""===c||g(a,c))throw new E("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],l=!1,c="";continue}l?c+=t:o+=t}return[o,i]}(e),e=i[0],v=i[1]),a=s(C(e,t),m?this:T,j),(r||o||v.length)&&(u=w(a),r&&(u.dotAll=!0,u.raw=j(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=R(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+R(e,++r);return o}(e),n)),o&&(u.sticky=!0),v.length&&(u.groups=v)),e!==b)try{l(a,"source",""===b?"(?:)":b)}catch(e){}return a},F=u(C),W=0;F.length>W;)p(j,C,F[W++]);T.constructor=j,j.prototype=T,y(o,"RegExp",j,{constructor:!0})}b("RegExp")},79328:(e,t,n)=>{var r=n(19830);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},79402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},79526:(e,t,n)=>{var r=n(72368),o=n(24601),i=n(73938),a=n(13838),s=n(51898),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw l(a(e)+" is not iterable")}},79680:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},79834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},79846:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},79965:(e,t,n)=>{var r=n(47061).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},80115:(e,t,n)=>{"use strict";var r=n(51605),o=n(92074),i=n(18679),a=n(65335),s=n(92612),l=n(23493),u=n(57242),c=n(52057),h=n(62998),f=n(45634),d=n(31602),m=n(6845),p=d("isConcatSpreadable"),y=m>=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),v=f("concat"),g=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!y||!v},{concat:function(e){var t,n,r,o,i,a=s(this),f=h(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(g(i=-1===t?a:arguments[t]))for(o=l(i),u(d+o),n=0;n<o;n++,d++)n in i&&c(f,d,i[n]);else u(d+1),c(f,d++,i);return f.length=d,f}})},80475:(e,t,n)=>{"use strict";var r=n(51605),o=n(30281),i=n(48664),a=n(5476),s=n(92349),l=o([].join),u=i!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return l(a(this),void 0===e?",":e)}})},81688:(e,t,n)=>{"use strict";var r=n(65077),o=n(30281),i=n(72368),a=n(92074),s=n(91641),l=n(18916),u=n(9304),c=n(92612),h=n(48664),f=Object.assign,d=Object.defineProperty,m=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,f=l.f,d=u.f;o>a;)for(var p,y=h(arguments[a++]),v=f?m(s(y),f(y)):s(y),g=v.length,w=0;g>w;)p=v[w++],r&&!i(d,y,p)||(n[p]=y[p]);return n}:f},81765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(95093))},82014:(e,t,n)=>{var r=n(51605),o=n(30281),i=n(67708),a=n(65335),s=n(36490),l=n(43610).f,u=n(64789),c=n(56509),h=n(40111),f=n(50665),d=n(55159),m=!1,p=f("meta"),y=0,v=function(e){l(e,p,{value:{objectID:"O"+y++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},m=!0;var e=u.f,t=o([].splice),n={};n[p]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===p){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,p)){if(!h(e))return"F";if(!t)return"E";v(e)}return e[p].objectID},getWeakData:function(e,t){if(!s(e,p)){if(!h(e))return!0;if(!t)return!1;v(e)}return e[p].weakData},onFreeze:function(e){return d&&m&&h(e)&&!s(e,p)&&v(e),e}};i[p]=!0},82072:(e,t,n)=>{var r=n(6845),o=n(92074);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},82218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(95093))},82271:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(95093))},82682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},83062:(e,t,n)=>{var r=n(43129),o=n(78420),i=n(18569),a=n(31602)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},83496:(e,t,n)=>{var r=n(65335),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},84361:(e,t,n)=>{var r=n(36490),o=n(15816),i=n(97632),a=n(43610);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var h=s[c];r(e,h)||n&&r(n,h)||l(e,h,u(t,h))}}},84451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:""},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(95093))},84977:(e,t,n)=>{var r=n(92074),o=n(78420),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},85096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},dayOfMonthOrdinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},85498:function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},86032:(e,t,n)=>{var r=n(50874),o=n(32328);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},86169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(95093))},86794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},87136:(e,t,n)=>{"use strict";var r=n(51605),o=n(70054);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},87694:(e,t,n)=>{var r=n(65077),o=n(92074),i=n(23262);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},88383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},88406:e=>{e.exports=function(e){return null==e}},88478:(e,t,n)=>{var r=n(92074);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},89233:(e,t,n)=>{var r=n(12071).PROPER,o=n(92074),i=n(55073);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||r&&i[e].name!==e}))}},89374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var i=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||o?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||o?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||o?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(o?"daga":"dögum"):n?i+"dagur":i+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(o?"mánuði":"mánuðum"):n?i+"mánuður":i+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?i+(n||o?"ár":"árum"):i+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},89722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(95093))},89756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},90345:(e,t,n)=>{var r=n(51605),o=n(23172).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},90527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,i){var a="";switch(o){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":return i?"sekunnin":"sekuntia";case"m":return i?"minuutin":"minuutti";case"mm":a=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":a=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":a=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":a=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":a=i?"vuoden":"vuotta"}return function(e,r){return e<10?r?n[e]:t[e]:e}(e,i)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},90609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},91074:(e,t,n)=>{var r=n(51605),o=n(82072),i=n(92074),a=n(18916),s=n(92612);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},91344:(e,t,n)=>{var r=n(46885),o=n(30281),i=n(48664),a=n(92612),s=n(23493),l=n(62998),u=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,h=6==e,f=7==e,d=5==e||h;return function(m,p,y,v){for(var g,w,b=a(m),_=i(b),M=r(p,y),k=s(_),S=0,C=v||l,T=t?C(m,k):n||f?C(m,0):void 0;k>S;S++)if((d||S in _)&&(w=M(g=_[S],S,b),e))if(t)T[S]=w;else if(w)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:u(T,g)}else switch(e){case 4:return!1;case 7:u(T,g)}return h?-1:o||c?c:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},91641:(e,t,n)=>{var r=n(16347),o=n(30290);e.exports=Object.keys||function(e){return r(e,o)}},92074:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},92157:(e,t,n)=>{"use strict";var r=n(51605),o=n(91344).findIndex,i=n(40298),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},92297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},92327:(e,t,n)=>{"use strict";var r=n(51605),o=n(30200),i=n(30281),a=n(84977),s=n(7485),l=n(82014),u=n(52929),c=n(65190),h=n(78420),f=n(88406),d=n(65335),m=n(92074),p=n(97499),y=n(75282),v=n(93054);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),b=g?"set":"add",_=o[e],M=_&&_.prototype,k=_,S={},C=function(e){var t=i(M[e]);s(M,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(w&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return w&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(w&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!h(_)||!(w||M.forEach&&!m((function(){(new _).entries().next()})))))k=n.getConstructor(t,e,g,b),l.enable();else if(a(e,!0)){var T=new k,E=T[b](w?{}:-0,1)!=T,O=m((function(){T.has(1)})),R=p((function(e){new _(e)})),L=!w&&m((function(){for(var e=new _,t=5;t--;)e[b](t,t);return!e.has(-0)}));R||((k=t((function(e,t){c(e,M);var n=v(new _,e,k);return f(t)||u(t,n[b],{that:n,AS_ENTRIES:g}),n}))).prototype=M,M.constructor=k),(O||L)&&(C("delete"),C("has"),g&&C("get")),(L||E)&&C(b),w&&M.clear&&delete M.clear}return S[e]=k,r({global:!0,constructor:!0,forced:k!=_},S),y(k,e),w||n.setStrong(k,e,g),k}},92349:(e,t,n)=>{"use strict";var r=n(92074);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},92572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},92588:(e,t,n)=>{var r=n(62449),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},92612:(e,t,n)=>{var r=n(71229),o=Object;e.exports=function(e){return o(r(e))}},92760:(e,t,n)=>{var r=n(7485);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},93054:(e,t,n)=>{var r=n(78420),o=n(65335),i=n(39686);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},93383:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(95093))},93524:(e,t,n)=>{"use strict";var r=n(56492),o=n(43610),i=n(31602),a=n(65077),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},93601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},93892:(e,t,n)=>{var r=n(18679),o=n(1466),i=n(65335),a=n(31602)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},94009:(e,t,n)=>{"use strict";var r=n(65077),o=n(30200),i=n(30281),a=n(84977),s=n(7485),l=n(36490),u=n(93054),c=n(47658),h=n(32328),f=n(50874),d=n(92074),m=n(64789).f,p=n(97632).f,y=n(43610).f,v=n(7809),g=n(69163).trim,w="Number",b=o[w],_=b.prototype,M=o.TypeError,k=i("".slice),S=i("".charCodeAt);if(a(w,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var C,T=function(e){var t=arguments.length<1?0:b(function(e){var t=f(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,o,i,a,s,l,u=f(e,"number");if(h(u))throw M("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=g(u),43===(t=S(u,0))||45===t){if(88===(n=S(u,2))||120===n)return NaN}else if(48===t){switch(S(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=k(u,2)).length,s=0;s<a;s++)if((l=S(i,s))<48||l>o)return NaN;return parseInt(i,r)}return+u}(t)}(e)),n=this;return c(_,n)&&d((function(){v(n)}))?u(Object(t),n,T):t},E=r?m(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;E.length>O;O++)l(b,C=E[O])&&!l(T,C)&&y(T,C,p(b,C));T.prototype=_,_.constructor=T,s(o,w,T,{constructor:!0})}},94418:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(r(e)?"godziny":"godzin");case"MM":return o+(r(e)?"miesiące":"miesięcy");case"yy":return o+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},94433:(e,t,n)=>{var r=n(30281),o=n(92612),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,f){var d=n+e.length,m=r.length,p=c;return void 0!==h&&(h=o(h),p=u),s(f,p,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,d);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>m){var f=i(c/10);return 0===f?o:f<=m?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},94491:(e,t,n)=>{var r=n(65077),o=n(92074);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},94972:(e,t,n)=>{"use strict";var r=n(43129),o=n(83062);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},95050:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:""},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(95093))},95058:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){t.nil=new Error("#NULL!"),t.div0=new Error("#DIV/0!"),t.value=new Error("#VALUE!"),t.ref=new Error("#REF!"),t.name=new Error("#NAME?"),t.num=new Error("#NUM!"),t.na=new Error("#N/A"),t.error=new Error("#ERROR!"),t.data=new Error("#GETTING_DATA")},function(e,t,n){var r=n(0);t.flattenShallow=function(e){return e&&e.reduce?e.reduce((function(e,t){var n=Array.isArray(e),r=Array.isArray(t);return n&&r?e.concat(t):n?(e.push(t),e):r?[e].concat(t):[e,t]})):e},t.isFlat=function(e){if(!e)return!1;for(var t=0;t<e.length;++t)if(Array.isArray(e[t]))return!1;return!0},t.flatten=function(){for(var e=t.argsToArray.apply(null,arguments);!t.isFlat(e);)e=t.flattenShallow(e);return e},t.argsToArray=function(e){var n=[];return t.arrayEach(e,(function(e){n.push(e)})),n},t.numbers=function(){return this.flatten.apply(null,arguments).filter((function(e){return"number"==typeof e}))},t.cleanFloat=function(e){var t=1e14;return Math.round(e*t)/t},t.parseBool=function(e){if("boolean"==typeof e)return e;if(e instanceof Error)return e;if("number"==typeof e)return 0!==e;if("string"==typeof e){var t=e.toUpperCase();if("TRUE"===t)return!0;if("FALSE"===t)return!1}return e instanceof Date&&!isNaN(e)||r.value},t.parseNumber=function(e){return void 0===e||""===e||isNaN(e)?r.value:parseFloat(e)},t.parseNumberArray=function(e){var n,o;if(!e||0===(n=e.length))return r.value;for(;n--;){if((o=t.parseNumber(e[n]))===r.value)return o;e[n]=o}return e},t.parseMatrix=function(e){var n;if(!e||0===e.length)return r.value;for(var o=0;o<e.length;o++)if(n=t.parseNumberArray(e[o]),e[o]=n,n instanceof Error)return n;return e};var o=new Date(Date.UTC(1900,0,1));t.parseDate=function(e){if(!isNaN(e)){if(e instanceof Date)return new Date(e);var t=parseInt(e,10);return t<0?r.num:t<=60?new Date(o.getTime()+864e5*(t-1)):new Date(o.getTime()+864e5*(t-2))}return"string"!=typeof e||(e=new Date(e),isNaN(e))?r.value:e},t.parseDateArray=function(e){for(var t,n=e.length;n--;){if((t=this.parseDate(e[n]))===r.value)return t;e[n]=t}return e},t.anyIsError=function(){for(var e=arguments.length;e--;)if(arguments[e]instanceof Error)return!0;return!1},t.arrayValuesToNumbers=function(e){for(var t,n=e.length;n--;)if("number"!=typeof(t=e[n]))if(!0!==t)if(!1!==t){if("string"==typeof t){var r=this.parseNumber(t);r instanceof Error?e[n]=0:e[n]=r}}else e[n]=0;else e[n]=1;return e},t.rest=function(e,t){return t=t||1,e&&"function"==typeof e.slice?e.slice(t):e},t.initial=function(e,t){return t=t||1,e&&"function"==typeof e.slice?e.slice(0,e.length-t):e},t.arrayEach=function(e,t){for(var n=-1,r=e.length;++n<r&&!1!==t(e[n],n,e););return e},t.transpose=function(e){return e?e[0].map((function(t,n){return e.map((function(e){return e[n]}))})):r.value}},function(e,t,n){"use strict";var r;t.__esModule=!0,t.default=function(e){var t=void 0;return e=(e+"").replace(/#|!|\?/g,""),f[e]&&(t=f[e]),t||null},t.isValidStrict=function(e){var t=!1;for(var n in f)if(Object.prototype.hasOwnProperty.call(f,n)&&f[n]===e){t=!0;break}return t};var o=t.ERROR="ERROR",i=t.ERROR_DIV_ZERO="DIV/0",a=t.ERROR_NAME="NAME",s=t.ERROR_NOT_AVAILABLE="N/A",l=t.ERROR_NULL="NULL",u=t.ERROR_NUM="NUM",c=t.ERROR_REF="REF",h=t.ERROR_VALUE="VALUE",f=((r={})[o]="#ERROR!",r[i]="#DIV/0!",r[a]="#NAME?",r[s]="#N/A",r[l]="#NULL!",r[u]="#NUM!",r[c]="#REF!",r[h]="#VALUE!",r)},function(e,t,n){"use strict";function r(e){var t=void 0;return"number"==typeof e?t=e:"string"==typeof e&&(t=e.indexOf(".")>-1?parseFloat(e):parseInt(e,10)),t}t.__esModule=!0,t.toNumber=r,t.invertNumber=function(e){return-1*r(e)}},function(e,t,n){var r=n(1),o=n(0),i=n(5),a=n(8),s=n(7);t.ABS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.abs(e)},t.ACOS=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.acos(e);return isNaN(t)&&(t=o.num),t},t.ACOSH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log(e+Math.sqrt(e*e-1));return isNaN(t)&&(t=o.num),t},t.ACOT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(1/e)},t.ACOTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=.5*Math.log((e+1)/(e-1));return isNaN(t)&&(t=o.num),t},t.AGGREGATE=function(e,n,a,s){if(e=r.parseNumber(e),n=r.parseNumber(e),r.anyIsError(e,n))return o.value;switch(e){case 1:return i.AVERAGE(a);case 2:return i.COUNT(a);case 3:return i.COUNTA(a);case 4:return i.MAX(a);case 5:return i.MIN(a);case 6:return t.PRODUCT(a);case 7:return i.STDEV.S(a);case 8:return i.STDEV.P(a);case 9:return t.SUM(a);case 10:return i.VAR.S(a);case 11:return i.VAR.P(a);case 12:return i.MEDIAN(a);case 13:return i.MODE.SNGL(a);case 14:return i.LARGE(a,s);case 15:return i.SMALL(a,s);case 16:return i.PERCENTILE.INC(a,s);case 17:return i.QUARTILE.INC(a,s);case 18:return i.PERCENTILE.EXC(a,s);case 19:return i.QUARTILE.EXC(a,s)}},t.ARABIC=function(e){if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e))return o.value;var t=0;return e.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,(function(e){t+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[e]})),t},t.ASIN=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.asin(e);return isNaN(t)&&(t=o.num),t},t.ASINH=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e+Math.sqrt(e*e+1))},t.ATAN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(e)},t.ATAN2=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:Math.atan2(e,t)},t.ATANH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log((1+e)/(1-e))/2;return isNaN(t)&&(t=o.num),t},t.BASE=function(e,t,n){if(n=n||0,e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(e,t,n))return o.value;n=void 0===n?0:n;var i=e.toString(t);return new Array(Math.max(n+1-i.length,0)).join("0")+i},t.CEILING=function(e,n,i){if(n=void 0===n?1:Math.abs(n),i=i||0,e=r.parseNumber(e),n=r.parseNumber(n),i=r.parseNumber(i),r.anyIsError(e,n,i))return o.value;if(0===n)return 0;var a=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.ceil(e/n)*n,a):0===i?-t.ROUND(Math.floor(Math.abs(e)/n)*n,a):-t.ROUND(Math.ceil(Math.abs(e)/n)*n,a)},t.CEILING.MATH=t.CEILING,t.CEILING.PRECISE=t.CEILING,t.COMBIN=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?o.value:t.FACT(e)/(t.FACT(n)*t.FACT(e-n))},t.COMBINA=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?o.value:0===e&&0===n?1:t.COMBIN(e+n-1,e-1)},t.COS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.cos(e)},t.COSH=function(e){return(e=r.parseNumber(e))instanceof Error?e:(Math.exp(e)+Math.exp(-e))/2},t.COT=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.tan(e)},t.COTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t+1)/(t-1)},t.CSC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.sin(e)},t.CSCH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)-Math.exp(-e))},t.DECIMAL=function(e,t){return arguments.length<1?o.value:parseInt(e,t)},t.DEGREES=function(e){return(e=r.parseNumber(e))instanceof Error?e:180*e/Math.PI},t.EVEN=function(e){return(e=r.parseNumber(e))instanceof Error?e:t.CEILING(e,-2,-1)},t.EXP=function(e){return arguments.length<1?o.na:"number"!=typeof e||arguments.length>1?o.error:e=Math.exp(e)};var l=[];t.FACT=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return 0===n||1===n?1:(l[n]>0||(l[n]=t.FACT(n-1)*n),l[n])},t.FACTDOUBLE=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return n<=0?1:n*t.FACTDOUBLE(n-2)},t.FLOOR=function(e,n){if(e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n))return o.value;if(0===n)return 0;if(!(e>0&&n>0||e<0&&n<0))return o.num;n=Math.abs(n);var i=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,i):-t.ROUND(Math.ceil(Math.abs(e)/n),i)},t.FLOOR.MATH=function(e,n,i){if(n=void 0===n?1:n,i=void 0===i?0:i,e=r.parseNumber(e),n=r.parseNumber(n),i=r.parseNumber(i),r.anyIsError(e,n,i))return o.value;if(0===n)return 0;n=n?Math.abs(n):1;var a=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,a):0===i||void 0===i?-t.ROUND(Math.ceil(Math.abs(e)/n)*n,a):-t.ROUND(Math.floor(Math.abs(e)/n)*n,a)},t.FLOOR.PRECISE=t.FLOOR.MATH,t.GCD=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,n=e[0],o=n<0?-n:n,i=1;i<t;i++){for(var a=e[i],s=a<0?-a:a;o&&s;)o>s?o%=s:s%=o;o+=s}return o},t.INT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.floor(e)},t.ISO={CEILING:t.CEILING},t.LCM=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t,n,o,i,a=1;void 0!==(o=e.pop());)for(;o>1;){if(o%2){for(t=3,n=Math.floor(Math.sqrt(o));t<=n&&o%t;t+=2);i=t<=n?t:o}else i=2;for(o/=i,a*=i,t=e.length;t;e[--t]%i==0&&1==(e[t]/=i)&&e.splice(t,1));}return a},t.LN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)},t.LN10=function(){return Math.log(10)},t.LN2=function(){return Math.log(2)},t.LOG10E=function(){return Math.LOG10E},t.LOG2E=function(){return Math.LOG2E},t.LOG=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(t=void 0===t?10:t,Math.log(e)/Math.log(t))},t.LOG10=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)/Math.log(10)},t.MOD=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return o.value;if(0===t)return o.div0;var n=Math.abs(e%t);return t>0?n:-n},t.MROUND=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e*t<0?o.num:Math.round(e/t)*t},t.MULTINOMIAL=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var n=0,o=1,i=0;i<e.length;i++)n+=e[i],o*=t.FACT(e[i]);return t.FACT(n)/o},t.ODD=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.ceil(Math.abs(e));return t=1&t?t:t+1,e>0?t:-t},t.PI=function(){return Math.PI},t.E=function(){return Math.E},t.POWER=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return o.value;var n=Math.pow(e,t);return isNaN(n)?o.num:n},t.PRODUCT=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=1,n=0;n<e.length;n++)t*=e[n];return t},t.QUOTIENT=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:parseInt(e/t,10)},t.RADIANS=function(e){return(e=r.parseNumber(e))instanceof Error?e:e*Math.PI/180},t.RAND=function(){return Math.random()},t.RANDBETWEEN=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e+Math.ceil((t-e+1)*Math.random())-1},t.ROMAN=function(e){if((e=r.parseNumber(e))instanceof Error)return e;for(var t=String(e).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],o="",i=3;i--;)o=(n[+t.pop()+10*i]||"")+o;return new Array(+t.join("")+1).join("M")+o},t.ROUND=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:Math.round(e*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDDOWN=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(e>0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDUP=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(e>0?1:-1)*Math.ceil(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.SEC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.cos(e)},t.SECH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)+Math.exp(-e))},t.SERIESSUM=function(e,t,n,i){if(e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),i=r.parseNumberArray(i),r.anyIsError(e,t,n,i))return o.value;for(var a=i[0]*Math.pow(e,t),s=1;s<i.length;s++)a+=i[s]*Math.pow(e,t+s*n);return a},t.SIGN=function(e){return(e=r.parseNumber(e))instanceof Error?e:e<0?-1:0===e?0:1},t.SIN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.sin(e)},t.SINH=function(e){return(e=r.parseNumber(e))instanceof Error?e:(Math.exp(e)-Math.exp(-e))/2},t.SQRT=function(e){return(e=r.parseNumber(e))instanceof Error?e:e<0?o.num:Math.sqrt(e)},t.SQRTPI=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.sqrt(e*Math.PI)},t.SQRT1_2=function(){return 1/Math.sqrt(2)},t.SQRT2=function(){return Math.sqrt(2)},t.SUBTOTAL=function(e,n){if((e=r.parseNumber(e))instanceof Error)return e;switch(e){case 1:case 101:return i.AVERAGE(n);case 2:case 102:return i.COUNT(n);case 3:case 103:return i.COUNTA(n);case 4:case 104:return i.MAX(n);case 5:case 105:return i.MIN(n);case 6:case 106:return t.PRODUCT(n);case 7:case 107:return i.STDEV.S(n);case 8:case 108:return i.STDEV.P(n);case 9:case 109:return t.SUM(n);case 10:case 110:return i.VAR.S(n);case 11:case 111:return i.VAR.P(n)}},t.ADD=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e+t)},t.MINUS=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e-t)},t.DIVIDE=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:0===t?o.div0:e/t)},t.MULTIPLY=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e*t)},t.GTE=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.error:e>=t)},t.LT=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.error:e<t)},t.LTE=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.error:e<=t)},t.EQ=function(e,t){return 2!==arguments.length?o.na:e===t},t.NE=function(e,t){return 2!==arguments.length?o.na:e!==t},t.POW=function(e,n){return 2!==arguments.length?o.na:(e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?o.error:t.POWER(e,n))},t.SUM=function(){var e=0;return r.arrayEach(r.argsToArray(arguments),(function(n){if("number"==typeof n)e+=n;else if("string"==typeof n){var r=parseFloat(n);!isNaN(r)&&(e+=r)}else Array.isArray(n)&&(e+=t.SUM.apply(null,n))})),e},t.SUMIF=function(e,t){if((e=r.parseNumberArray(r.flatten(e)))instanceof Error)return e;for(var n=0,o=void 0===t||"*"===t,i=o?null:s.parse(t+""),a=0;a<e.length;a++){var l=e[a];if(o)n+=l;else{var u=[s.createToken(l,s.TOKEN_TYPE_LITERAL)].concat(i);n+=s.compute(u)?l:0}}return n},t.SUMIFS=function(){var e=r.argsToArray(arguments),t=r.parseNumberArray(r.flatten(e.shift()));if(t instanceof Error)return t;for(var n=e,o=t.length,i=n.length,a=0,l=0;l<o;l++){for(var u=t[l],c=!1,h=0;h<i;h++){var f=n[h],d=!1;if(void 0===f||"*"===f)d=!0;else{var m=s.parse(f+""),p=[s.createToken(u,s.TOKEN_TYPE_LITERAL)].concat(m);d=s.compute(p)}if(!d){c=!1;break}c=!0}c&&(a+=u)}return a},t.SUMPRODUCT=function(){if(!arguments||0===arguments.length)return o.value;for(var e,t,n,i,a=arguments.length+1,s=0,l=0;l<arguments[0].length;l++)if(arguments[0][l]instanceof Array)for(var u=0;u<arguments[0][l].length;u++){for(e=1,t=1;t<a;t++){if((i=r.parseNumber(arguments[t-1][l][u]))instanceof Error)return i;e*=i}s+=e}else{for(e=1,t=1;t<a;t++){if((n=r.parseNumber(arguments[t-1][l]))instanceof Error)return n;e*=n}s+=e}return s},t.SUMSQ=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=0,n=e.length,o=0;o<n;o++)t+=a.ISNUMBER(e[o])?e[o]*e[o]:0;return t},t.SUMX2MY2=function(e,t){if(e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t)),r.anyIsError(e,t))return o.value;for(var n=0,i=0;i<e.length;i++)n+=e[i]*e[i]-t[i]*t[i];return n},t.SUMX2PY2=function(e,t){if(e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t)),r.anyIsError(e,t))return o.value;var n=0;e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t));for(var i=0;i<e.length;i++)n+=e[i]*e[i]+t[i]*t[i];return n},t.SUMXMY2=function(e,t){if(e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t)),r.anyIsError(e,t))return o.value;var n=0;e=r.flatten(e),t=r.flatten(t);for(var i=0;i<e.length;i++)n+=Math.pow(e[i]-t[i],2);return n},t.TAN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.tan(e)},t.TANH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t-1)/(t+1)},t.TRUNC=function(e,t){return t=void 0===t?0:t,e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(e>0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,n){var r=n(4),o=n(6),i=n(10),a=n(1),s=n(7),l=n(0),u=n(11);t.AVEDEV=function(){var e=a.parseNumberArray(a.flatten(arguments));return e instanceof Error?e:i.sum(i(e).subtract(i.mean(e)).abs()[0])/e.length},t.AVERAGE=function(){for(var e,t=a.numbers(a.flatten(arguments)),n=t.length,r=0,o=0,i=0;i<n;i++)r+=t[i],o+=1;return e=r/o,isNaN(e)&&(e=l.num),e},t.AVERAGEA=function(){for(var e,t=a.flatten(arguments),n=t.length,r=0,o=0,i=0;i<n;i++){var s=t[i];"number"==typeof s&&(r+=s),!0===s&&r++,null!==s&&o++}return e=r/o,isNaN(e)&&(e=l.num),e},t.AVERAGEIF=function(e,t,n){if(arguments.length<=1)return l.na;if(n=n||e,e=a.flatten(e),(n=a.parseNumberArray(a.flatten(n)))instanceof Error)return n;for(var r=0,o=0,i=void 0===t||"*"===t,u=i?null:s.parse(t+""),c=0;c<e.length;c++){var h=e[c];if(i)o+=n[c],r++;else{var f=[s.createToken(h,s.TOKEN_TYPE_LITERAL)].concat(u);s.compute(f)&&(o+=n[c],r++)}}return o/r},t.AVERAGEIFS=function(){for(var e=a.argsToArray(arguments),t=(e.length-1)/2,n=a.flatten(e[0]),r=0,o=0,i=0;i<n.length;i++){for(var l=!1,u=0;u<t;u++){var c=e[2*u+1][i],h=e[2*u+2],f=!1;if(void 0===h||"*"===h)f=!0;else{var d=s.parse(h+""),m=[s.createToken(c,s.TOKEN_TYPE_LITERAL)].concat(d);f=s.compute(m)}if(!f){l=!1;break}l=!0}l&&(o+=n[i],r++)}var p=o/r;return isNaN(p)?0:p},t.BETA={},t.BETA.DIST=function(e,t,n,r,o,s){return arguments.length<4?l.value:(o=void 0===o?0:o,s=void 0===s?1:s,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),o=a.parseNumber(o),s=a.parseNumber(s),a.anyIsError(e,t,n,o,s)?l.value:(e=(e-o)/(s-o),r?i.beta.cdf(e,t,n):i.beta.pdf(e,t,n)))},t.BETA.INV=function(e,t,n,r,o){return r=void 0===r?0:r,o=void 0===o?1:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,t,n,r,o)?l.value:i.beta.inv(e,t,n)*(o-r)+r},t.BINOM={},t.BINOM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),r=a.parseNumber(r),a.anyIsError(e,t,n,r)?l.value:r?i.binomial.cdf(e,t,n):i.binomial.pdf(e,t,n)},t.BINOM.DIST.RANGE=function(e,t,n,o){if(o=void 0===o?n:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),o=a.parseNumber(o),a.anyIsError(e,t,n,o))return l.value;for(var i=0,s=n;s<=o;s++)i+=r.COMBIN(e,s)*Math.pow(t,s)*Math.pow(1-t,e-s);return i},t.BINOM.INV=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n))return l.value;for(var r=0;r<=e;){if(i.binomial.cdf(r,e,t)>=n)return r;r++}},t.CHISQ={},t.CHISQ.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.chisquare.cdf(e,t):i.chisquare.pdf(e,t)},t.CHISQ.DIST.RT=function(e,t){return!e|!t?l.na:e<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:1-i.chisquare.cdf(e,t)},t.CHISQ.INV=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:i.chisquare.inv(e,t)},t.CHISQ.INV.RT=function(e,t){return!e|!t?l.na:e<0||e>1||t<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:i.chisquare.inv(1-e,t)},t.CHISQ.TEST=function(e,t){if(2!==arguments.length)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.value;if(e.length!==t.length)return l.value;if(e[0]&&t[0]&&e[0].length!==t[0].length)return l.value;var n,r,o,i=e.length;for(r=0;r<i;r++)e[r]instanceof Array||(n=e[r],e[r]=[],e[r].push(n)),t[r]instanceof Array||(n=t[r],t[r]=[],t[r].push(n));var a=e[0].length,s=1===a?i-1:(i-1)*(a-1),u=0,c=Math.PI;for(r=0;r<i;r++)for(o=0;o<a;o++)u+=Math.pow(e[r][o]-t[r][o],2)/t[r][o];return Math.round(1e6*function(e,t){var n=Math.exp(-.5*e);t%2==1&&(n*=Math.sqrt(2*e/c));for(var r=t;r>=2;)n=n*e/r,r-=2;for(var o=n,i=t;o>1e-10*n;)n+=o=o*e/(i+=2);return 1-n}(u,s))/1e6},t.COLUMN=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?i.col(e,t):void 0:l.value},t.COLUMNS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:i.cols(e):l.value},t.CONFIDENCE={},t.CONFIDENCE.NORM=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.normalci(1,e,t,n)[1]-1},t.CONFIDENCE.T=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.tci(1,e,t,n)[1]-1},t.CORREL=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t)?l.value:i.corrcoeff(e,t)},t.COUNT=function(){return a.numbers(a.flatten(arguments)).length},t.COUNTA=function(){var e=a.flatten(arguments);return e.length-t.COUNTBLANK(e)},t.COUNTIN=function(e,t){var n=0;e=a.flatten(e);for(var r=0;r<e.length;r++)e[r]===t&&n++;return n},t.COUNTBLANK=function(){for(var e,t=a.flatten(arguments),n=0,r=0;r<t.length;r++)null!==(e=t[r])&&""!==e||n++;return n},t.COUNTIF=function(e,t){if(e=a.flatten(e),void 0===t||"*"===t)return e.length;for(var n=0,r=s.parse(t+""),o=0;o<e.length;o++){var i=e[o],l=[s.createToken(i,s.TOKEN_TYPE_LITERAL)].concat(r);s.compute(l)&&n++}return n},t.COUNTIFS=function(){for(var e=a.argsToArray(arguments),t=new Array(a.flatten(e[0]).length),n=0;n<t.length;n++)t[n]=!0;for(n=0;n<e.length;n+=2){var r=a.flatten(e[n]),o=e[n+1];if(void 0!==o&&"*"!==o)for(var i=s.parse(o+""),l=0;l<r.length;l++){var u=r[l],c=[s.createToken(u,s.TOKEN_TYPE_LITERAL)].concat(i);t[l]=t[l]&&s.compute(c)}}var h=0;for(n=0;n<t.length;n++)t[n]&&h++;return h},t.COUNTUNIQUE=function(){return u.UNIQUE.apply(null,a.flatten(arguments)).length},t.COVARIANCE={},t.COVARIANCE.P=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(e),r=i.mean(t),o=0,s=e.length,u=0;u<s;u++)o+=(e[u]-n)*(t[u]-r);return o/s},t.COVARIANCE.S=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t)?l.value:i.covariance(e,t)},t.DEVSQ=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},t.EXPON={},t.EXPON.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.exponential.cdf(e,t):i.exponential.pdf(e,t)},t.F={},t.F.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?i.centralF.cdf(e,t,n):i.centralF.pdf(e,t,n)},t.F.DIST.RT=function(e,t,n){return 3!==arguments.length?l.na:e<0||t<1||n<1?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:1-i.centralF.cdf(e,t,n)},t.F.INV=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:e<=0||e>1?l.num:i.centralF.inv(e,t,n)},t.F.INV.RT=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<1||t>Math.pow(10,10)||n<1||n>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:i.centralF.inv(1-e,t,n)},t.F.TEST=function(e,t){if(!e||!t)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.na;if(e.length<2||t.length<2)return l.div0;var n=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},o=r.SUM(e)/e.length,i=r.SUM(t)/t.length;return n(e,o)/(e.length-1)/(n(t,i)/(t.length-1))},t.FISHER=function(e){return(e=a.parseNumber(e))instanceof Error?e:Math.log((1+e)/(1-e))/2},t.FISHERINV=function(e){if((e=a.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t-1)/(t+1)},t.FORECAST=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,t,n))return l.value;for(var r=i.mean(n),o=i.mean(t),s=n.length,u=0,c=0,h=0;h<s;h++)u+=(n[h]-r)*(t[h]-o),c+=Math.pow(n[h]-r,2);var f=u/c;return o-f*r+f*e},t.FREQUENCY=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=e.length,r=t.length,o=[],i=0;i<=r;i++){o[i]=0;for(var s=0;s<n;s++)0===i?e[s]<=t[0]&&(o[0]+=1):i<r?e[s]>t[i-1]&&e[s]<=t[i]&&(o[i]+=1):i===r&&e[s]>t[r-1]&&(o[r]+=1)}return o},t.GAMMA=function(e){return(e=a.parseNumber(e))instanceof Error?e:0===e||parseInt(e,10)===e&&e<0?l.num:i.gammafn(e)},t.GAMMA.DIST=function(e,t,n,r){return 4!==arguments.length?l.na:e<0||t<=0||n<=0||"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:r?i.gamma.cdf(e,t,n,!0):i.gamma.pdf(e,t,n,!1)},t.GAMMA.INV=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<=0||n<=0?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:i.gamma.inv(e,t,n)},t.GAMMALN=function(e){return(e=a.parseNumber(e))instanceof Error?e:i.gammaln(e)},t.GAMMALN.PRECISE=function(e){return 1!==arguments.length?l.na:e<=0?l.num:"number"!=typeof e?l.value:i.gammaln(e)},t.GAUSS=function(e){return(e=a.parseNumber(e))instanceof Error?e:i.normal.cdf(e,0,1)-.5},t.GEOMEAN=function(){var e=a.parseNumberArray(a.flatten(arguments));return e instanceof Error?e:i.geomean(e)},t.GROWTH=function(e,t,n,r){if((e=a.parseNumberArray(e))instanceof Error)return e;var o;if(void 0===t)for(t=[],o=1;o<=e.length;o++)t.push(o);if(void 0===n)for(n=[],o=1;o<=e.length;o++)n.push(o);if(t=a.parseNumberArray(t),n=a.parseNumberArray(n),a.anyIsError(t,n))return l.value;void 0===r&&(r=!0);var i,s,u=e.length,c=0,h=0,f=0,d=0;for(o=0;o<u;o++){var m=t[o],p=Math.log(e[o]);c+=m,h+=p,f+=m*p,d+=m*m}c/=u,h/=u,f/=u,d/=u,r?s=h-(i=(f-c*h)/(d-c*c))*c:(i=f/d,s=0);var y=[];for(o=0;o<n.length;o++)y.push(Math.exp(s+i*n[o]));return y},t.HARMEAN=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,n=0,r=0;r<t;r++)n+=1/e[r];return t/n},t.HYPGEOM={},t.HYPGEOM.DIST=function(e,t,n,o,i){if(e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),o=a.parseNumber(o),a.anyIsError(e,t,n,o))return l.value;function s(e,t,n,o){return r.COMBIN(n,e)*r.COMBIN(o-n,t-e)/r.COMBIN(o,t)}return i?function(e,t,n,r){for(var o=0,i=0;i<=e;i++)o+=s(i,t,n,r);return o}(e,t,n,o):s(e,t,n,o)},t.INTERCEPT=function(e,n){return e=a.parseNumberArray(e),n=a.parseNumberArray(n),a.anyIsError(e,n)?l.value:e.length!==n.length?l.na:t.FORECAST(0,e,n)},t.KURT=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=e.length,r=0,o=0;o<n;o++)r+=Math.pow(e[o]-t,4);return n*(n+1)/((n-1)*(n-2)*(n-3))*(r/=Math.pow(i.stdev(e,!0),4))-3*(n-1)*(n-1)/((n-2)*(n-3))},t.LARGE=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t)?e:e.sort((function(e,t){return t-e}))[t-1]},t.LINEST=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(e),r=i.mean(t),o=t.length,s=0,u=0,c=0;c<o;c++)s+=(t[c]-r)*(e[c]-n),u+=Math.pow(t[c]-r,2);var h=s/u;return[h,n-h*r]},t.LOGEST=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,n))return l.value;for(var r=0;r<e.length;r++)e[r]=Math.log(e[r]);var o=t.LINEST(e,n);return o[0]=Math.round(1e6*Math.exp(o[0]))/1e6,o[1]=Math.round(1e6*Math.exp(o[1]))/1e6,o},t.LOGNORM={},t.LOGNORM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?i.lognormal.cdf(e,t,n):i.lognormal.pdf(e,t,n)},t.LOGNORM.INV=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.lognormal.inv(e,t,n)},t.MAX=function(){var e=a.numbers(a.flatten(arguments));return 0===e.length?0:Math.max.apply(Math,e)},t.MAXA=function(){var e=a.arrayValuesToNumbers(a.flatten(arguments));return 0===e.length?0:Math.max.apply(Math,e)},t.MEDIAN=function(){var e=a.arrayValuesToNumbers(a.flatten(arguments)),t=i.median(e);return isNaN(t)&&(t=l.num),t},t.MIN=function(){var e=a.numbers(a.flatten(arguments));return 0===e.length?0:Math.min.apply(Math,e)},t.MINA=function(){var e=a.arrayValuesToNumbers(a.flatten(arguments));return 0===e.length?0:Math.min.apply(Math,e)},t.MODE={},t.MODE.MULT=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t,n=e.length,r={},o=[],i=0,s=0;s<n;s++)r[t=e[s]]=r[t]?r[t]+1:1,r[t]>i&&(i=r[t],o=[]),r[t]===i&&(o[o.length]=t);return o},t.MODE.SNGL=function(){var e=a.parseNumberArray(a.flatten(arguments));return e instanceof Error?e:t.MODE.MULT(e).sort((function(e,t){return e-t}))[0]},t.NEGBINOM={},t.NEGBINOM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?i.negbin.cdf(e,t,n):i.negbin.pdf(e,t,n)},t.NORM={},t.NORM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:n<=0?l.num:r?i.normal.cdf(e,t,n):i.normal.pdf(e,t,n)},t.NORM.INV=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.normal.inv(e,t,n)},t.NORM.S={},t.NORM.S.DIST=function(e,t){return(e=a.parseNumber(e))instanceof Error?l.value:t?i.normal.cdf(e,0,1):i.normal.pdf(e,0,1)},t.NORM.S.INV=function(e){return(e=a.parseNumber(e))instanceof Error?l.value:i.normal.inv(e,0,1)},t.PEARSON=function(e,t){if(t=a.parseNumberArray(a.flatten(t)),e=a.parseNumberArray(a.flatten(e)),a.anyIsError(t,e))return l.value;for(var n=i.mean(e),r=i.mean(t),o=e.length,s=0,u=0,c=0,h=0;h<o;h++)s+=(e[h]-n)*(t[h]-r),u+=Math.pow(e[h]-n,2),c+=Math.pow(t[h]-r,2);return s/Math.sqrt(u*c)},t.PERCENTILE={},t.PERCENTILE.EXC=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return l.value;var n=(e=e.sort((function(e,t){return e-t}))).length;if(t<1/(n+1)||t>1-1/(n+1))return l.num;var r=t*(n+1)-1,o=Math.floor(r);return a.cleanFloat(r===o?e[r]:e[o]+(r-o)*(e[o+1]-e[o]))},t.PERCENTILE.INC=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return l.value;var n=t*((e=e.sort((function(e,t){return e-t}))).length-1),r=Math.floor(n);return a.cleanFloat(n===r?e[n]:e[r]+(n-r)*(e[r+1]-e[r]))},t.PERCENTRANK={},t.PERCENTRANK.EXC=function(e,t,n){if(n=void 0===n?3:n,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n))return l.value;e=e.sort((function(e,t){return e-t}));for(var r=u.UNIQUE.apply(null,e),o=e.length,i=r.length,s=Math.pow(10,n),c=0,h=!1,f=0;!h&&f<i;)t===r[f]?(c=(e.indexOf(r[f])+1)/(o+1),h=!0):t>=r[f]&&(t<r[f+1]||f===i-1)&&(c=(e.indexOf(r[f])+1+(t-r[f])/(r[f+1]-r[f]))/(o+1),h=!0),f++;return Math.floor(c*s)/s},t.PERCENTRANK.INC=function(e,t,n){if(n=void 0===n?3:n,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n))return l.value;e=e.sort((function(e,t){return e-t}));for(var r=u.UNIQUE.apply(null,e),o=e.length,i=r.length,s=Math.pow(10,n),c=0,h=!1,f=0;!h&&f<i;)t===r[f]?(c=e.indexOf(r[f])/(o-1),h=!0):t>=r[f]&&(t<r[f+1]||f===i-1)&&(c=(e.indexOf(r[f])+(t-r[f])/(r[f+1]-r[f]))/(o-1),h=!0),f++;return Math.floor(c*s)/s},t.PERMUT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:r.FACT(e)/r.FACT(e-t)},t.PERMUTATIONA=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:Math.pow(e,t)},t.PHI=function(e){return(e=a.parseNumber(e))instanceof Error?l.value:Math.exp(-.5*e*e)/2.5066282746310002},t.POISSON={},t.POISSON.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.poisson.cdf(e,t):i.poisson.pdf(e,t)},t.PROB=function(e,t,n,r){if(void 0===n)return 0;if(r=void 0===r?n:r,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),n=a.parseNumber(n),r=a.parseNumber(r),a.anyIsError(e,t,n,r))return l.value;if(n===r)return e.indexOf(n)>=0?t[e.indexOf(n)]:0;for(var o=e.sort((function(e,t){return e-t})),i=o.length,s=0,u=0;u<i;u++)o[u]>=n&&o[u]<=r&&(s+=t[e.indexOf(o[u])]);return s},t.QUARTILE={},t.QUARTILE.EXC=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),a.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.EXC(e,.25);case 2:return t.PERCENTILE.EXC(e,.5);case 3:return t.PERCENTILE.EXC(e,.75);default:return l.num}},t.QUARTILE.INC=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),a.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.INC(e,.25);case 2:return t.PERCENTILE.INC(e,.5);case 3:return t.PERCENTILE.INC(e,.75);default:return l.num}},t.RANK={},t.RANK.AVG=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e},o=(t=(t=a.flatten(t)).sort(r)).length,i=0,s=0;s<o;s++)t[s]===e&&i++;return i>1?(2*t.indexOf(e)+i+1)/2:t.indexOf(e)+1},t.RANK.EQ=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e};return(t=t.sort(r)).indexOf(e)+1},t.ROW=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?i.row(e,t):void 0:l.value},t.ROWS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:i.rows(e):l.value},t.RSQ=function(e,n){return e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,n)?l.value:Math.pow(t.PEARSON(e,n),2)},t.SKEW=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=e.length,r=0,o=0;o<n;o++)r+=Math.pow(e[o]-t,3);return n*r/((n-1)*(n-2)*Math.pow(i.stdev(e,!0),3))},t.SKEW.P=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=e.length,r=0,o=0,s=0;s<n;s++)o+=Math.pow(e[s]-t,3),r+=Math.pow(e[s]-t,2);return r/=n,(o/=n)/Math.pow(r,1.5)},t.SLOPE=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(t),r=i.mean(e),o=t.length,s=0,u=0,c=0;c<o;c++)s+=(t[c]-n)*(e[c]-r),u+=Math.pow(t[c]-n,2);return s/u},t.SMALL=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t)?e:e.sort((function(e,t){return e-t}))[t-1]},t.STANDARDIZE=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:(e-t)/n},t.STDEV={},t.STDEV.P=function(){var e=t.VAR.P.apply(this,arguments),n=Math.sqrt(e);return isNaN(n)&&(n=l.num),n},t.STDEV.S=function(){var e=t.VAR.S.apply(this,arguments);return Math.sqrt(e)},t.STDEVA=function(){var e=t.VARA.apply(this,arguments);return Math.sqrt(e)},t.STDEVPA=function(){var e=t.VARPA.apply(this,arguments),n=Math.sqrt(e);return isNaN(n)&&(n=l.num),n},t.STEYX=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(t),r=i.mean(e),o=t.length,s=0,u=0,c=0,h=0;h<o;h++)s+=Math.pow(e[h]-r,2),u+=(t[h]-n)*(e[h]-r),c+=Math.pow(t[h]-n,2);return Math.sqrt((s-u*u/c)/(o-2))},t.TRANSPOSE=function(e){return e?i.transpose(e):l.na},t.T=o.T,t.T.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.studentt.cdf(e,t):i.studentt.pdf(e,t)},t.T.DIST["2T"]=function(e,t){return 2!==arguments.length?l.na:e<0||t<1?l.num:"number"!=typeof e||"number"!=typeof t?l.value:2*(1-i.studentt.cdf(e,t))},t.T.DIST.RT=function(e,t){return 2!==arguments.length?l.na:e<0||t<1?l.num:"number"!=typeof e||"number"!=typeof t?l.value:1-i.studentt.cdf(e,t)},t.T.INV=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:i.studentt.inv(e,t)},t.T.INV["2T"]=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),e<=0||e>1||t<1?l.num:a.anyIsError(e,t)?l.value:Math.abs(i.studentt.inv(e/2,t))},t.T.TEST=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,n))return l.value;var r,o=i.mean(e),s=i.mean(n),u=0,c=0;for(r=0;r<e.length;r++)u+=Math.pow(e[r]-o,2);for(r=0;r<n.length;r++)c+=Math.pow(n[r]-s,2);u/=e.length-1,c/=n.length-1;var h=Math.abs(o-s)/Math.sqrt(u/e.length+c/n.length);return t.T.DIST["2T"](h,e.length+n.length-2)},t.TREND=function(e,n,r){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),r=a.parseNumberArray(a.flatten(r)),a.anyIsError(e,n,r))return l.value;var o=t.LINEST(e,n),i=o[0],s=o[1],u=[];return r.forEach((function(e){u.push(i*e+s)})),u},t.TRIMMEAN=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return l.value;var n=r.FLOOR(e.length*t,2)/2;return i.mean(a.initial(a.rest(e.sort((function(e,t){return e-t})),n),n))},t.VAR={},t.VAR.P=function(){for(var e,n=a.numbers(a.flatten(arguments)),r=n.length,o=0,i=t.AVERAGE(n),s=0;s<r;s++)o+=Math.pow(n[s]-i,2);return e=o/r,isNaN(e)&&(e=l.num),e},t.VAR.S=function(){for(var e=a.numbers(a.flatten(arguments)),n=e.length,r=0,o=t.AVERAGE(e),i=0;i<n;i++)r+=Math.pow(e[i]-o,2);return r/(n-1)},t.VARA=function(){for(var e=a.flatten(arguments),n=e.length,r=0,o=0,i=t.AVERAGEA(e),s=0;s<n;s++){var l=e[s];r+="number"==typeof l?Math.pow(l-i,2):!0===l?Math.pow(1-i,2):Math.pow(0-i,2),null!==l&&o++}return r/(o-1)},t.VARPA=function(){for(var e,n=a.flatten(arguments),r=n.length,o=0,i=0,s=t.AVERAGEA(n),u=0;u<r;u++){var c=n[u];o+="number"==typeof c?Math.pow(c-s,2):!0===c?Math.pow(1-s,2):Math.pow(0-s,2),null!==c&&i++}return e=o/i,isNaN(e)&&(e=l.num),e},t.WEIBULL={},t.WEIBULL.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?1-Math.exp(-Math.pow(e/n,t)):Math.pow(e,t-1)*Math.exp(-Math.pow(e/n,t))*t/Math.pow(n,t)},t.Z={},t.Z.TEST=function(e,n,r){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),a.anyIsError(e,n))return l.value;r=r||t.STDEV.S(e);var o=e.length;return 1-t.NORM.S.DIST((t.AVERAGE(e)-n)/(r/Math.sqrt(o)),!0)}},function(e,t,n){var r=n(1),o=n(0);t.ASC=function(){throw new Error("ASC is not implemented")},t.BAHTTEXT=function(){throw new Error("BAHTTEXT is not implemented")},t.CHAR=function(e){return(e=r.parseNumber(e))instanceof Error?e:String.fromCharCode(e)},t.CLEAN=function(e){return(e=e||"").replace(/[\0-\x1F]/g,"")},t.CODE=function(e){var t=(e=e||"").charCodeAt(0);return isNaN(t)&&(t=o.na),t},t.CONCATENATE=function(){for(var e=r.flatten(arguments),t=0;(t=e.indexOf(!0))>-1;)e[t]="TRUE";for(var n=0;(n=e.indexOf(!1))>-1;)e[n]="FALSE";return e.join("")},t.DBCS=function(){throw new Error("DBCS is not implemented")},t.DOLLAR=function(){throw new Error("DOLLAR is not implemented")},t.EXACT=function(e,t){return 2!==arguments.length?o.na:e===t},t.FIND=function(e,t,n){return arguments.length<2?o.na:(n=void 0===n?0:n,t?t.indexOf(e,n-1)+1:null)},t.FIXED=function(){throw new Error("FIXED is not implemented")},t.HTML2TEXT=function(e){var t="";return e&&(e instanceof Array?e.forEach((function(e){""!==t&&(t+="\n"),t+=e.replace(/<(?:.|\n)*?>/gm,"")})):t=e.replace(/<(?:.|\n)*?>/gm,"")),t},t.LEFT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error||"string"!=typeof e?o.value:e?e.substring(0,t):null},t.LEN=function(e){return 0===arguments.length?o.error:"string"==typeof e?e?e.length:0:e.length?e.length:o.value},t.LOWER=function(e){return"string"!=typeof e?o.value:e?e.toLowerCase():e},t.MID=function(e,t,n){if(t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e)return n;var o=t-1,i=o+n;return e.substring(o,i)},t.NUMBERVALUE=function(e,t,n){return t=void 0===t?".":t,n=void 0===n?",":n,Number(e.replace(t,".").replace(n,""))},t.PRONETIC=function(){throw new Error("PRONETIC is not implemented")},t.PROPER=function(e){return void 0===e||0===e.length?o.value:(!0===e&&(e="TRUE"),!1===e&&(e="FALSE"),isNaN(e)&&"number"==typeof e?o.value:("number"==typeof e&&(e=""+e),e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))))},t.REGEXEXTRACT=function(e,t){if(arguments.length<2)return o.na;var n=e.match(new RegExp(t));return n?n[n.length>1?n.length-1:0]:null},t.REGEXMATCH=function(e,t,n){if(arguments.length<2)return o.na;var r=e.match(new RegExp(t));return n?r:!!r},t.REGEXREPLACE=function(e,t,n){return arguments.length<3?o.na:e.replace(new RegExp(t),n)},t.REPLACE=function(e,t,n,i){return t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e||"string"!=typeof i?o.value:e.substr(0,t-1)+i+e.substr(t-1+n)},t.REPT=function(e,t){return(t=r.parseNumber(t))instanceof Error?t:new Array(t+1).join(e)},t.RIGHT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error?t:e?e.substring(e.length-t):o.na},t.SEARCH=function(e,t,n){var r;return"string"!=typeof e||"string"!=typeof t?o.value:(n=void 0===n?0:n,0===(r=t.toLowerCase().indexOf(e.toLowerCase(),n-1)+1)?o.value:r)},t.SPLIT=function(e,t){return e.split(t)},t.SUBSTITUTE=function(e,t,n,r){if(arguments.length<2)return o.na;if(!(e&&t&&n))return e;if(void 0===r)return e.replace(new RegExp(t,"g"),n);for(var i=0,a=0;e.indexOf(t,i)>0;)if(i=e.indexOf(t,i+1),++a===r)return e.substring(0,i)+n+e.substring(i+t.length)},t.T=function(e){return"string"==typeof e?e:""},t.TEXT=function(){throw new Error("TEXT is not implemented")},t.TRIM=function(e){return"string"!=typeof e?o.value:e.replace(/ +/g," ").trim()},t.UNICHAR=t.CHAR,t.UNICODE=t.CODE,t.UPPER=function(e){return"string"!=typeof e?o.value:e.toUpperCase()},t.VALUE=function(){throw new Error("VALUE is not implemented")}},function(e,t){var n=[">",">=","<","<=","=","<>"],r="operator",o="literal",i=[r,o];function a(e,t){if(-1===i.indexOf(t))throw new Error("Unsupported token type: "+t);return{value:e,type:t}}t.TOKEN_TYPE_OPERATOR=r,t.TOKEN_TYPE_LITERAL=o,t.parse=function(e){return function(e){for(var t,i="",s=[],l=0;l<e.length;l++){var u=e[l];0===l&&n.indexOf(u)>=0?s.push(a(u,r)):i+=u}return i.length>0&&s.push(a(("string"!=typeof(t=i)||/^\d+(\.\d+)?$/.test(t)&&(t=-1===t.indexOf(".")?parseInt(t,10):parseFloat(t)),t),o)),s.length>0&&s[0].type!==r&&s.unshift(a("=",r)),s}(function(e){for(var t=e.length,n=[],r=0,o="",i="";r<t;){var a=e.charAt(r);switch(a){case">":case"<":case"=":i+=a,o.length>0&&(n.push(o),o="");break;default:i.length>0&&(n.push(i),i=""),o+=a}r++}return o.length>0&&n.push(o),i.length>0&&n.push(i),n}(e))},t.createToken=a,t.compute=function(e){for(var t,n=[],i=0;i<e.length;i++){var a=e[i];switch(a.type){case r:t=a.value;break;case o:n.push(a.value)}}return function(e,t){var n=!1;switch(t){case">":n=e[0]>e[1];break;case">=":n=e[0]>=e[1];break;case"<":n=e[0]<e[1];break;case"<=":n=e[0]<=e[1];break;case"=":n=e[0]==e[1];break;case"<>":n=e[0]!=e[1]}return n}(n,t)}},function(e,t,n){var r=n(0);t.CELL=function(){throw new Error("CELL is not implemented")},t.ERROR={},t.ERROR.TYPE=function(e){switch(e){case r.nil:return 1;case r.div0:return 2;case r.value:return 3;case r.ref:return 4;case r.name:return 5;case r.num:return 6;case r.na:return 7;case r.data:return 8}return r.na},t.INFO=function(){throw new Error("INFO is not implemented")},t.ISBLANK=function(e){return null===e},t.ISBINARY=function(e){return/^[01]{1,10}$/.test(e)},t.ISERR=function(e){return[r.value,r.ref,r.div0,r.num,r.name,r.nil].indexOf(e)>=0||"number"==typeof e&&(isNaN(e)||!isFinite(e))},t.ISERROR=function(e){return t.ISERR(e)||e===r.na},t.ISEVEN=function(e){return!(1&Math.floor(Math.abs(e)))},t.ISFORMULA=function(){throw new Error("ISFORMULA is not implemented")},t.ISLOGICAL=function(e){return!0===e||!1===e},t.ISNA=function(e){return e===r.na},t.ISNONTEXT=function(e){return"string"!=typeof e},t.ISNUMBER=function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)},t.ISODD=function(e){return!!(1&Math.floor(Math.abs(e)))},t.ISREF=function(){throw new Error("ISREF is not implemented")},t.ISTEXT=function(e){return"string"==typeof e},t.N=function(e){return this.ISNUMBER(e)?e:e instanceof Date?e.getTime():!0===e?1:!1===e?0:this.ISERROR(e)?e:0},t.NA=function(){return r.na},t.SHEET=function(){throw new Error("SHEET is not implemented")},t.SHEETS=function(){throw new Error("SHEETS is not implemented")},t.TYPE=function(e){return this.ISNUMBER(e)?1:this.ISTEXT(e)?2:this.ISLOGICAL(e)?4:this.ISERROR(e)?16:Array.isArray(e)?64:void 0}},function(e,t,n){var r=n(0),o=n(1),i=new Date(Date.UTC(1900,0,1)),a=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],s=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],l=[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],void 0,void 0,void 0,[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6]];function u(e){return 1===new Date(e,1,29).getMonth()}function c(e,t){return Math.ceil((t-e)/1e3/60/60/24)}function h(e){var t=e>-22038912e5?2:1;return Math.ceil((e-i)/864e5)+t}t.DATE=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?r.value:e<0||t<0||n<0?r.num:new Date(e,t-1,n)},t.DATEVALUE=function(e){var t,n=2;return"string"!=typeof e?r.value:(t=Date.parse(e),isNaN(t)?r.value:(t<=-22038912e5&&(n=1),Math.ceil((t-i)/864e5)+n))},t.DAY=function(e){var t=o.parseDate(e);return t instanceof Error?t:t.getDate()},t.DAYS=function(e,t){return e=o.parseDate(e),t=o.parseDate(t),e instanceof Error?e:t instanceof Error?t:h(e)-h(t)},t.DAYS360=function(e,t,n){if(n=o.parseBool(n),e=o.parseDate(e),t=o.parseDate(t),e instanceof Error)return e;if(t instanceof Error)return t;if(n instanceof Error)return n;var r,i,a=e.getMonth(),s=t.getMonth();if(n)r=31===e.getDate()?30:e.getDate(),i=31===t.getDate()?30:t.getDate();else{var l=new Date(e.getFullYear(),a+1,0).getDate(),u=new Date(t.getFullYear(),s+1,0).getDate();r=e.getDate()===l?30:e.getDate(),t.getDate()===u?r<30?(s++,i=1):i=30:i=t.getDate()}return 360*(t.getFullYear()-e.getFullYear())+30*(s-a)+(i-r)},t.EDATE=function(e,t){return(e=o.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),e.setMonth(e.getMonth()+t),h(e))},t.EOMONTH=function(e,t){return(e=o.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),h(new Date(e.getFullYear(),e.getMonth()+t+1,0)))},t.HOUR=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getHours()},t.INTERVAL=function(e){if("number"!=typeof e&&"string"!=typeof e)return r.value;e=parseInt(e,10);var t=Math.floor(e/94608e4);e%=94608e4;var n=Math.floor(e/2592e3);e%=2592e3;var o=Math.floor(e/86400);e%=86400;var i=Math.floor(e/3600);e%=3600;var a=Math.floor(e/60),s=e%=60;return"P"+(t=t>0?t+"Y":"")+(n=n>0?n+"M":"")+(o=o>0?o+"D":"")+"T"+(i=i>0?i+"H":"")+(a=a>0?a+"M":"")+(s>0?s+"S":"")},t.ISOWEEKNUM=function(e){if((e=o.parseDate(e))instanceof Error)return e;e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+1)/7)},t.MINUTE=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getMinutes()},t.MONTH=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getMonth()+1},t.NETWORKDAYS=function(e,t,n){return this.NETWORKDAYS.INTL(e,t,1,n)},t.NETWORKDAYS.INTL=function(e,t,n,i){if((e=o.parseDate(e))instanceof Error)return e;if((t=o.parseDate(t))instanceof Error)return t;if(!((n=void 0===n?l[1]:l[n])instanceof Array))return r.value;void 0===i?i=[]:i instanceof Array||(i=[i]);for(var a=0;a<i.length;a++){var s=o.parseDate(i[a]);if(s instanceof Error)return s;i[a]=s}var u=(t-e)/864e5+1,c=u,h=e;for(a=0;a<u;a++){var f=(new Date).getTimezoneOffset()>0?h.getUTCDay():h.getDay(),d=!1;f!==n[0]&&f!==n[1]||(d=!0);for(var m=0;m<i.length;m++){var p=i[m];if(p.getDate()===h.getDate()&&p.getMonth()===h.getMonth()&&p.getFullYear()===h.getFullYear()){d=!0;break}}d&&c--,h.setDate(h.getDate()+1)}return c},t.NOW=function(){return new Date},t.SECOND=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getSeconds()},t.TIME=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?r.value:e<0||t<0||n<0?r.num:(3600*e+60*t+n)/86400},t.TIMEVALUE=function(e){return(e=o.parseDate(e))instanceof Error?e:(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400},t.TODAY=function(){return new Date},t.WEEKDAY=function(e,t){if((e=o.parseDate(e))instanceof Error)return e;void 0===t&&(t=1);var n=e.getDay();return s[t][n]},t.WEEKNUM=function(e,t){if((e=o.parseDate(e))instanceof Error)return e;if(void 0===t&&(t=1),21===t)return this.ISOWEEKNUM(e);var n=a[t],r=new Date(e.getFullYear(),0,1),i=r.getDay()<n?1:0;return r-=24*Math.abs(r.getDay()-n)*60*60*1e3,Math.floor((e-r)/864e5/7+1)+i},t.WORKDAY=function(e,t,n){return this.WORKDAY.INTL(e,t,1,n)},t.WORKDAY.INTL=function(e,t,n,i){if((e=o.parseDate(e))instanceof Error)return e;if((t=o.parseNumber(t))instanceof Error)return t;if(t<0)return r.num;if(!((n=void 0===n?l[1]:l[n])instanceof Array))return r.value;void 0===i?i=[]:i instanceof Array||(i=[i]);for(var a=0;a<i.length;a++){var s=o.parseDate(i[a]);if(s instanceof Error)return s;i[a]=s}for(var u=0;u<t;){e.setDate(e.getDate()+1);var c=e.getDay();if(c!==n[0]&&c!==n[1]){for(var h=0;h<i.length;h++){var f=i[h];if(f.getDate()===e.getDate()&&f.getMonth()===e.getMonth()&&f.getFullYear()===e.getFullYear()){u--;break}}u++}}return e},t.YEAR=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getFullYear()},t.YEARFRAC=function(e,t,n){if((e=o.parseDate(e))instanceof Error)return e;if((t=o.parseDate(t))instanceof Error)return t;n=n||0;var r=e.getDate(),i=e.getMonth()+1,a=e.getFullYear(),s=t.getDate(),l=t.getMonth()+1,h=t.getFullYear();switch(n){case 0:return 31===r&&31===s?(r=30,s=30):31===r?r=30:30===r&&31===s&&(s=30),(s+30*l+360*h-(r+30*i+360*a))/360;case 1:var f=365;if(a===h||a+1===h&&(i>l||i===l&&r>=s))return(a===h&&u(a)||function(e,t){var n=e.getFullYear(),r=new Date(n,2,1);if(u(n)&&e<r&&t>=r)return!0;var o=t.getFullYear(),i=new Date(o,2,1);return u(o)&&t>=i&&e<i}(e,t)||1===l&&29===s)&&(f=366),c(e,t)/f;var d=h-a+1,m=(new Date(h+1,0,1)-new Date(a,0,1))/1e3/60/60/24/d;return c(e,t)/m;case 2:return c(e,t)/360;case 3:return c(e,t)/365;case 4:return(s+30*l+360*h-(r+30*i+360*a))/360}}},function(e,t,n){var r;e.exports=(r=function(e,t){var n=Array.prototype.concat,r=Array.prototype.slice,o=Object.prototype.toString;function i(t,n){var r=t>n?t:n;return e.pow(10,17-~~(e.log(r>0?r:-r)*e.LOG10E))}var a=Array.isArray||function(e){return"[object Array]"===o.call(e)};function s(e){return"[object Function]"===o.call(e)}function l(e){return"number"==typeof e&&e-e==0}function u(){return new u._init(arguments)}function c(){return 0}function h(){return 1}function f(e,t){return e===t?1:0}u.fn=u.prototype,u._init=function(e){if(a(e[0]))if(a(e[0][0])){s(e[1])&&(e[0]=u.map(e[0],e[1]));for(var t=0;t<e[0].length;t++)this[t]=e[0][t];this.length=e[0].length}else this[0]=s(e[1])?u.map(e[0],e[1]):e[0],this.length=1;else if(l(e[0]))this[0]=u.seq.apply(null,e),this.length=1;else{if(e[0]instanceof u)return u(e[0].toArray());this[0]=[],this.length=1}return this},u._init.prototype=u.prototype,u._init.constructor=u,u.utils={calcRdx:i,isArray:a,isFunction:s,isNumber:l,toVector:function(e){return n.apply([],e)}},u._random_fn=e.random,u.setRandom=function(e){if("function"!=typeof e)throw new TypeError("fn is not a function");u._random_fn=e},u.extend=function(e){var t,n;if(1===arguments.length){for(n in e)u[n]=e[n];return this}for(t=1;t<arguments.length;t++)for(n in arguments[t])e[n]=arguments[t][n];return e},u.rows=function(e){return e.length||1},u.cols=function(e){return e[0].length||1},u.dimensions=function(e){return{rows:u.rows(e),cols:u.cols(e)}},u.row=function(e,t){return a(t)?t.map((function(t){return u.row(e,t)})):e[t]},u.rowa=function(e,t){return u.row(e,t)},u.col=function(e,t){if(a(t)){var n=u.arange(e.length).map((function(){return new Array(t.length)}));return t.forEach((function(t,r){u.arange(e.length).forEach((function(o){n[o][r]=e[o][t]}))})),n}for(var r=new Array(e.length),o=0;o<e.length;o++)r[o]=[e[o][t]];return r},u.cola=function(e,t){return u.col(e,t).map((function(e){return e[0]}))},u.diag=function(e){for(var t=u.rows(e),n=new Array(t),r=0;r<t;r++)n[r]=[e[r][r]];return n},u.antidiag=function(e){for(var t=u.rows(e)-1,n=new Array(t),r=0;t>=0;t--,r++)n[r]=[e[r][t]];return n},u.transpose=function(e){var t,n,r,o,i,s=[];for(a(e[0])||(e=[e]),n=e.length,r=e[0].length,i=0;i<r;i++){for(t=new Array(n),o=0;o<n;o++)t[o]=e[o][i];s.push(t)}return 1===s.length?s[0]:s},u.map=function(e,t,n){var r,o,i,s,l;for(a(e[0])||(e=[e]),o=e.length,i=e[0].length,s=n?e:new Array(o),r=0;r<o;r++)for(s[r]||(s[r]=new Array(i)),l=0;l<i;l++)s[r][l]=t(e[r][l],r,l);return 1===s.length?s[0]:s},u.cumreduce=function(e,t,n){var r,o,i,s,l;for(a(e[0])||(e=[e]),o=e.length,i=e[0].length,s=n?e:new Array(o),r=0;r<o;r++)for(s[r]||(s[r]=new Array(i)),i>0&&(s[r][0]=e[r][0]),l=1;l<i;l++)s[r][l]=t(s[r][l-1],e[r][l]);return 1===s.length?s[0]:s},u.alter=function(e,t){return u.map(e,t,!0)},u.create=function(e,t,n){var r,o,i=new Array(e);for(s(t)&&(n=t,t=e),r=0;r<e;r++)for(i[r]=new Array(t),o=0;o<t;o++)i[r][o]=n(r,o);return i},u.zeros=function(e,t){return l(t)||(t=e),u.create(e,t,c)},u.ones=function(e,t){return l(t)||(t=e),u.create(e,t,h)},u.rand=function(e,t){return l(t)||(t=e),u.create(e,t,u._random_fn)},u.identity=function(e,t){return l(t)||(t=e),u.create(e,t,f)},u.symmetric=function(e){var t,n,r=e.length;if(e.length!==e[0].length)return!1;for(t=0;t<r;t++)for(n=0;n<r;n++)if(e[n][t]!==e[t][n])return!1;return!0},u.clear=function(e){return u.alter(e,c)},u.seq=function(e,t,n,r){s(r)||(r=!1);var o,a=[],l=i(e,t),u=(t*l-e*l)/((n-1)*l),c=e;for(o=0;c<=t&&o<n;c=(e*l+u*l*++o)/l)a.push(r?r(c,o):c);return a},u.arange=function(e,n,r){var o,i=[];if(r=r||1,n===t&&(n=e,e=0),e===n||0===r)return[];if(e<n&&r<0)return[];if(e>n&&r>0)return[];if(r>0)for(o=e;o<n;o+=r)i.push(o);else for(o=e;o>n;o+=r)i.push(o);return i},u.slice=function(){function e(e,n,r,o){var i,a=[],s=e.length;if(n===t&&r===t&&o===t)return u.copy(e);if(o=o||1,(n=(n=n||0)>=0?n:s+n)===(r=(r=r||e.length)>=0?r:s+r)||0===o)return[];if(n<r&&o<0)return[];if(n>r&&o>0)return[];if(o>0)for(i=n;i<r;i+=o)a.push(e[i]);else for(i=n;i>r;i+=o)a.push(e[i]);return a}return function(t,n){var r,o;return l((n=n||{}).row)?l(n.col)?t[n.row][n.col]:e(u.rowa(t,n.row),(r=n.col||{}).start,r.end,r.step):l(n.col)?e(u.cola(t,n.col),(o=n.row||{}).start,o.end,o.step):(o=n.row||{},r=n.col||{},e(t,o.start,o.end,o.step).map((function(t){return e(t,r.start,r.end,r.step)})))}}(),u.sliceAssign=function(n,r,o){var i,a;if(l(r.row)){if(l(r.col))return n[r.row][r.col]=o;r.col=r.col||{},r.col.start=r.col.start||0,r.col.end=r.col.end||n[0].length,r.col.step=r.col.step||1,i=u.arange(r.col.start,e.min(n.length,r.col.end),r.col.step);var s=r.row;return i.forEach((function(e,t){n[s][e]=o[t]})),n}if(l(r.col)){r.row=r.row||{},r.row.start=r.row.start||0,r.row.end=r.row.end||n.length,r.row.step=r.row.step||1,a=u.arange(r.row.start,e.min(n[0].length,r.row.end),r.row.step);var c=r.col;return a.forEach((function(e,t){n[e][c]=o[t]})),n}return o[0].length===t&&(o=[o]),r.row.start=r.row.start||0,r.row.end=r.row.end||n.length,r.row.step=r.row.step||1,r.col.start=r.col.start||0,r.col.end=r.col.end||n[0].length,r.col.step=r.col.step||1,a=u.arange(r.row.start,e.min(n.length,r.row.end),r.row.step),i=u.arange(r.col.start,e.min(n[0].length,r.col.end),r.col.step),a.forEach((function(e,t){i.forEach((function(r,i){n[e][r]=o[t][i]}))})),n},u.diagonal=function(e){var t=u.zeros(e.length,e.length);return e.forEach((function(e,n){t[n][n]=e})),t},u.copy=function(e){return e.map((function(e){return l(e)?e:e.map((function(e){return e}))}))};var d=u.prototype;return d.length=0,d.push=Array.prototype.push,d.sort=Array.prototype.sort,d.splice=Array.prototype.splice,d.slice=Array.prototype.slice,d.toArray=function(){return this.length>1?r.call(this):r.call(this)[0]},d.map=function(e,t){return u(u.map(this,e,t))},d.cumreduce=function(e,t){return u(u.cumreduce(this,e,t))},d.alter=function(e){return u.alter(this,e),this},function(e){for(var t=0;t<e.length;t++)!function(e){d[e]=function(t){var n,r=this;return t?(setTimeout((function(){t.call(r,d[e].call(r))})),this):(n=u[e](this),a(n)?u(n):n)}}(e[t])}("transpose clear symmetric rows cols dimensions diag antidiag".split(" ")),function(e){for(var t=0;t<e.length;t++)!function(e){d[e]=function(t,n){var r=this;return n?(setTimeout((function(){n.call(r,d[e].call(r,t))})),this):u(u[e](this,t))}}(e[t])}("row col".split(" ")),function(e){for(var t=0;t<e.length;t++)!function(e){d[e]=function(){return u(u[e].apply(null,arguments))}}(e[t])}("create zeros ones rand identity".split(" ")),u}(Math),function(e,t){var n=e.utils.isFunction;function r(e,t){return e-t}function o(e,n,r){return t.max(n,t.min(e,r))}e.sum=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.sumsqrd=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n]*e[n];return t},e.sumsqerr=function(t){for(var n,r=e.mean(t),o=0,i=t.length;--i>=0;)o+=(n=t[i]-r)*n;return o},e.sumrow=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.product=function(e){for(var t=1,n=e.length;--n>=0;)t*=e[n];return t},e.min=function(e){for(var t=e[0],n=0;++n<e.length;)e[n]<t&&(t=e[n]);return t},e.max=function(e){for(var t=e[0],n=0;++n<e.length;)e[n]>t&&(t=e[n]);return t},e.unique=function(e){for(var t={},n=[],r=0;r<e.length;r++)t[e[r]]||(t[e[r]]=!0,n.push(e[r]));return n},e.mean=function(t){return e.sum(t)/t.length},e.meansqerr=function(t){return e.sumsqerr(t)/t.length},e.geomean=function(n){return t.pow(e.product(n),1/n.length)},e.median=function(e){var t=e.length,n=e.slice().sort(r);return 1&t?n[t/2|0]:(n[t/2-1]+n[t/2])/2},e.cumsum=function(t){return e.cumreduce(t,(function(e,t){return e+t}))},e.cumprod=function(t){return e.cumreduce(t,(function(e,t){return e*t}))},e.diff=function(e){var t,n=[],r=e.length;for(t=1;t<r;t++)n.push(e[t]-e[t-1]);return n},e.rank=function(e){for(var t,n=e.length,o=e.slice().sort(r),i=new Array(n),a=0;a<n;a++){var s=o.indexOf(e[a]),l=o.lastIndexOf(e[a]);t=s===l?s:(s+l)/2,i[a]=t+1}return i},e.mode=function(e){var t,n=e.length,o=e.slice().sort(r),i=1,a=0,s=0,l=[];for(t=0;t<n;t++)o[t]===o[t+1]?i++:(i>a?(l=[o[t]],a=i,s=0):i===a&&(l.push(o[t]),s++),i=1);return 0===s?l[0]:l},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,n){return e.sumsqerr(t)/(t.length-(n?1:0))},e.pooledvariance=function(t){return t.reduce((function(t,n){return t+e.sumsqerr(n)}),0)/(t.reduce((function(e,t){return e+t.length}),0)-t.length)},e.deviation=function(t){for(var n=e.mean(t),r=t.length,o=new Array(r),i=0;i<r;i++)o[i]=t[i]-n;return o},e.stdev=function(n,r){return t.sqrt(e.variance(n,r))},e.pooledstdev=function(n){return t.sqrt(e.pooledvariance(n))},e.meandev=function(n){for(var r=e.mean(n),o=[],i=n.length-1;i>=0;i--)o.push(t.abs(n[i]-r));return e.mean(o)},e.meddev=function(n){for(var r=e.median(n),o=[],i=n.length-1;i>=0;i--)o.push(t.abs(n[i]-r));return e.median(o)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var n=e.length,o=e.slice().sort(r);return[o[t.round(n/4)-1],o[t.round(n/2)-1],o[t.round(3*n/4)-1]]},e.quantiles=function(e,n,i,a){var s,l,u,c,h,f=e.slice().sort(r),d=[n.length],m=e.length;for(void 0===i&&(i=3/8),void 0===a&&(a=3/8),s=0;s<n.length;s++)u=m*(l=n[s])+(i+l*(1-i-a)),c=t.floor(o(u,1,m-1)),h=o(u-c,0,1),d[s]=(1-h)*f[c-1]+h*f[c];return d},e.percentile=function(e,t,n){var o=e.slice().sort(r),i=t*(o.length+(n?1:-1))+(n?0:1),a=parseInt(i),s=i-a;return a+1<o.length?o[a-1]+s*(o[a]-o[a-1]):o[a-1]},e.percentileOfScore=function(e,t,n){var r,o,i=0,a=e.length,s=!1;for("strict"===n&&(s=!0),o=0;o<a;o++)r=e[o],(s&&r<t||!s&&r<=t)&&i++;return i/a},e.histogram=function(n,r){r=r||4;var o,i=e.min(n),a=(e.max(n)-i)/r,s=n.length,l=[];for(o=0;o<r;o++)l[o]=0;for(o=0;o<s;o++)l[t.min(t.floor((n[o]-i)/a),r-1)]+=1;return l},e.covariance=function(t,n){var r,o=e.mean(t),i=e.mean(n),a=t.length,s=new Array(a);for(r=0;r<a;r++)s[r]=(t[r]-o)*(n[r]-i);return e.sum(s)/(a-1)},e.corrcoeff=function(t,n){return e.covariance(t,n)/e.stdev(t,1)/e.stdev(n,1)},e.spearmancoeff=function(t,n){return t=e.rank(t),n=e.rank(n),e.corrcoeff(t,n)},e.stanMoment=function(n,r){for(var o=e.mean(n),i=e.stdev(n),a=n.length,s=0,l=0;l<a;l++)s+=t.pow((n[l]-o)/i,r);return s/n.length},e.skewness=function(t){return e.stanMoment(t,3)},e.kurtosis=function(t){return e.stanMoment(t,4)-3};var i=e.prototype;!function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(r,o){var a=[],s=0,l=this;if(n(r)&&(o=r,r=!1),o)return setTimeout((function(){o.call(l,i[t].call(l,r))})),this;if(this.length>1){for(l=!0===r?this:this.transpose();s<l.length;s++)a[s]=e[t](l[s]);return a}return e[t](this[0],r)}}(t[r])}("cumsum cumprod".split(" ")),function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(r,o){var a=[],s=0,l=this;if(n(r)&&(o=r,r=!1),o)return setTimeout((function(){o.call(l,i[t].call(l,r))})),this;if(this.length>1){for("sumrow"!==t&&(l=!0===r?this:this.transpose());s<l.length;s++)a[s]=e[t](l[s]);return!0===r?e[t](e.utils.toVector(a)):a}return e[t](this[0],r)}}(t[r])}("sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" ")),function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(){var r,o=[],a=0,s=this,l=Array.prototype.slice.call(arguments);if(n(l[l.length-1])){r=l[l.length-1];var u=l.slice(0,l.length-1);return setTimeout((function(){r.call(s,i[t].apply(s,u))})),this}r=void 0;var c=function(n){return e[t].apply(s,[n].concat(l))};if(this.length>1){for(s=s.transpose();a<s.length;a++)o[a]=c(s[a]);return o}return c(this[0])}}(t[r])}("quantiles percentileOfScore".split(" "))}(r,Math),function(e,t){e.gammaln=function(e){var n,r,o,i=0,a=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],s=1.000000000190015;for(o=(r=n=e)+5.5,o-=(n+.5)*t.log(o);i<6;i++)s+=a[i]/++r;return t.log(2.5066282746310007*s/n)-o},e.loggam=function(e){var n,r,o,i,a,s,l,u=[.08333333333333333,-.002777777777777778,.0007936507936507937,-.0005952380952380952,.0008417508417508418,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059];if(n=e,l=0,1==e||2==e)return 0;for(e<=7&&(n=e+(l=t.floor(7-e))),r=1/(n*n),o=2*t.PI,a=u[9],s=8;s>=0;s--)a*=r,a+=u[s];if(i=a/n+.5*t.log(o)+(n-.5)*t.log(n)-n,e<=7)for(s=1;s<=l;s++)i-=t.log(n-1),n-=1;return i},e.gammafn=function(e){var n,r,o,i,a=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],s=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],l=!1,u=0,c=0,h=0,f=e;if(f<=0){if(!(i=f%1+36e-17))return 1/0;l=(1&f?-1:1)*t.PI/t.sin(t.PI*i),f=1-f}for(o=f,r=f<1?f++:(f-=u=(0|f)-1)-1,n=0;n<8;++n)h=(h+a[n])*r,c=c*r+s[n];if(i=h/c+1,o<f)i/=o;else if(o>f)for(n=0;n<u;++n)i*=f,f++;return l&&(i=l/i),i},e.gammap=function(t,n){return e.lowRegGamma(t,n)*e.gammafn(t)},e.lowRegGamma=function(n,r){var o,i=e.gammaln(n),a=n,s=1/n,l=s,u=r+1-n,c=1/1e-30,h=1/u,f=h,d=1,m=-~(8.5*t.log(n>=1?n:1/n)+.4*n+17);if(r<0||n<=0)return NaN;if(r<n+1){for(;d<=m;d++)s+=l*=r/++a;return s*t.exp(-r+n*t.log(r)-i)}for(;d<=m;d++)f*=(h=1/(h=(o=-d*(d-n))*h+(u+=2)))*(c=u+o/c);return 1-f*t.exp(-r+n*t.log(r)-i)},e.factorialln=function(t){return t<0?NaN:e.gammaln(t+1)},e.factorial=function(t){return t<0?NaN:e.gammafn(t+1)},e.combination=function(n,r){return n>170||r>170?t.exp(e.combinationln(n,r)):e.factorial(n)/e.factorial(r)/e.factorial(n-r)},e.combinationln=function(t,n){return e.factorialln(t)-e.factorialln(n)-e.factorialln(t-n)},e.permutation=function(t,n){return e.factorial(t)/e.factorial(t-n)},e.betafn=function(n,r){if(!(n<=0||r<=0))return n+r>170?t.exp(e.betaln(n,r)):e.gammafn(n)*e.gammafn(r)/e.gammafn(n+r)},e.betaln=function(t,n){return e.gammaln(t)+e.gammaln(n)-e.gammaln(t+n)},e.betacf=function(e,n,r){var o,i,a,s,l=1e-30,u=1,c=n+r,h=n+1,f=n-1,d=1,m=1-c*e/h;for(t.abs(m)<l&&(m=l),s=m=1/m;u<=100&&(m=1+(i=u*(r-u)*e/((f+(o=2*u))*(n+o)))*m,t.abs(m)<l&&(m=l),d=1+i/d,t.abs(d)<l&&(d=l),s*=(m=1/m)*d,m=1+(i=-(n+u)*(c+u)*e/((n+o)*(h+o)))*m,t.abs(m)<l&&(m=l),d=1+i/d,t.abs(d)<l&&(d=l),s*=a=(m=1/m)*d,!(t.abs(a-1)<3e-7));u++);return s},e.gammapinv=function(n,r){var o,i,a,s,l,u,c=0,h=r-1,f=e.gammaln(r);if(n>=1)return t.max(100,r+100*t.sqrt(r));if(n<=0)return 0;for(r>1?(l=t.log(h),u=t.exp(h*(l-1)-f),s=n<.5?n:1-n,o=(2.30753+.27061*(i=t.sqrt(-2*t.log(s))))/(1+i*(.99229+.04481*i))-i,n<.5&&(o=-o),o=t.max(.001,r*t.pow(1-1/(9*r)-o/(3*t.sqrt(r)),3))):o=n<(i=1-r*(.253+.12*r))?t.pow(n/i,1/r):1-t.log(1-(n-i)/(1-i));c<12;c++){if(o<=0)return 0;if((o-=i=(a=(e.lowRegGamma(r,o)-n)/(i=r>1?u*t.exp(-(o-h)+h*(t.log(o)-l)):t.exp(-o+h*t.log(o)-f)))/(1-.5*t.min(1,a*((r-1)/o-1))))<=0&&(o=.5*(o+i)),t.abs(i)<1e-8*o)break}return o},e.erf=function(e){var n,r,o,i,a=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],s=a.length-1,l=!1,u=0,c=0;for(e<0&&(e=-e,l=!0),r=4*(n=2/(2+e))-2;s>0;s--)o=u,u=r*u-c+a[s],c=o;return i=n*t.exp(-e*e+.5*(a[0]+r*u)-c),l?i-1:1-i},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(n){var r,o,i,a,s=0;if(n>=2)return-100;if(n<=0)return 100;for(a=n<1?n:2-n,r=-.70711*((2.30753+.27061*(i=t.sqrt(-2*t.log(a/2))))/(1+i*(.99229+.04481*i))-i);s<2;s++)r+=(o=e.erfc(r)-a)/(1.1283791670955126*t.exp(-r*r)-r*o);return n<1?r:-r},e.ibetainv=function(n,r,o){var i,a,s,l,u,c,h,f,d,m,p=r-1,y=o-1,v=0;if(n<=0)return 0;if(n>=1)return 1;for(r>=1&&o>=1?(s=n<.5?n:1-n,c=(2.30753+.27061*(l=t.sqrt(-2*t.log(s))))/(1+l*(.99229+.04481*l))-l,n<.5&&(c=-c),h=(c*c-3)/6,f=2/(1/(2*r-1)+1/(2*o-1)),d=c*t.sqrt(h+f)/f-(1/(2*o-1)-1/(2*r-1))*(h+5/6-2/(3*f)),c=r/(r+o*t.exp(2*d))):(i=t.log(r/(r+o)),a=t.log(o/(r+o)),c=n<(l=t.exp(r*i)/r)/(d=l+(u=t.exp(o*a)/o))?t.pow(r*d*n,1/r):1-t.pow(o*d*(1-n),1/o)),m=-e.gammaln(r)-e.gammaln(o)+e.gammaln(r+o);v<10;v++){if(0===c||1===c)return c;if((c-=l=(u=(e.ibeta(c,r,o)-n)/(l=t.exp(p*t.log(c)+y*t.log(1-c)+m)))/(1-.5*t.min(1,u*(p/c-y/(1-c)))))<=0&&(c=.5*(c+l)),c>=1&&(c=.5*(c+l+1)),t.abs(l)<1e-8*c&&v>0)break}return c},e.ibeta=function(n,r,o){var i=0===n||1===n?0:t.exp(e.gammaln(r+o)-e.gammaln(r)-e.gammaln(o)+r*t.log(n)+o*t.log(1-n));return!(n<0||n>1)&&(n<(r+1)/(r+o+2)?i*e.betacf(n,r,o)/r:1-i*e.betacf(1-n,o,r)/o)},e.randn=function(n,r){var o,i,a,s,l;if(r||(r=n),n)return e.create(n,r,(function(){return e.randn()}));do{o=e._random_fn(),i=1.7156*(e._random_fn()-.5),l=(a=o-.449871)*a+(s=t.abs(i)+.386595)*(.196*s-.25472*a)}while(l>.27597&&(l>.27846||i*i>-4*t.log(o)*o*o));return i/o},e.randg=function(n,r,o){var i,a,s,l,u,c,h=n;if(o||(o=r),n||(n=1),r)return(c=e.zeros(r,o)).alter((function(){return e.randg(n)})),c;n<1&&(n+=1),i=n-1/3,a=1/t.sqrt(9*i);do{do{l=1+a*(u=e.randn())}while(l<=0);l*=l*l,s=e._random_fn()}while(s>1-.331*t.pow(u,4)&&t.log(s)>.5*u*u+i*(1-l+t.log(l)));if(n==h)return i*l;do{s=e._random_fn()}while(0===s);return t.pow(s,1/h)*i*l},function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(){return e(e.map(this,(function(n){return e[t](n)})))}}(t[n])}("gammaln gammafn factorial factorialln".split(" ")),function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(){return e(e[t].apply(null,arguments))}}(t[n])}("randn".split(" "))}(r,Math),function(e,t){function n(e,n,r,o){for(var i,a=0,s=1,l=1,u=1,c=0,h=0;t.abs((l-h)/l)>o;)h=l,s=u+(i=-(n+c)*(n+r+c)*e/(n+2*c)/(n+2*c+1))*s,l=(a=l+i*a)+(i=(c+=1)*(r-c)*e/(n+2*c-1)/(n+2*c))*l,a/=u=s+i*u,s/=u,l/=u,u=1;return l/n}function r(n,r,o){var i=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],a=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],s=.5*n;if(s>=8)return 1;var l,u=2*e.normal.cdf(s,0,1,1,0)-1;u=u>=t.exp(-50/o)?t.pow(u,o):0;for(var c=s,h=(8-s)/(l=n>3?2:3),f=c+h,d=0,m=o-1,p=1;p<=l;p++){for(var y=0,v=.5*(f+c),g=.5*(f-c),w=1;w<=12;w++){var b,_=v+g*(6<w?i[(b=12-w+1)-1]:-i[(b=w)-1]),M=_*_;if(M>60)break;var k=2*e.normal.cdf(_,0,1,1,0)*.5-2*e.normal.cdf(_,n,1,1,0)*.5;k>=t.exp(-30/m)&&(y+=k=a[b-1]*t.exp(-.5*M)*t.pow(k,m))}d+=y*=2*g*o/t.sqrt(2*t.PI),c=f,f+=h}return(u+=d)<=t.exp(-30/r)?0:(u=t.pow(u,r))>=1?1:u}!function(t){for(var n=0;n<t.length;n++)!function(t){e[t]=function(e,t,n){return this instanceof arguments.callee?(this._a=e,this._b=t,this._c=n,this):new arguments.callee(e,t,n)},e.fn[t]=function(n,r,o){var i=e[t](n,r,o);return i.data=this,i},e[t].prototype.sample=function(n){var r=this._a,o=this._b,i=this._c;return n?e.alter(n,(function(){return e[t].sample(r,o,i)})):e[t].sample(r,o,i)},function(n){for(var r=0;r<n.length;r++)!function(n){e[t].prototype[n]=function(r){var o=this._a,i=this._b,a=this._c;return r||0===r||(r=this.data),"number"!=typeof r?e.fn.map.call(r,(function(r){return e[t][n](r,o,i,a)})):e[t][n](r,o,i,a)}}(n[r])}("pdf cdf inv".split(" ")),function(n){for(var r=0;r<n.length;r++)!function(n){e[t].prototype[n]=function(){return e[t][n](this._a,this._b,this._c)}}(n[r])}("mean median mode variance".split(" "))}(t[n])}("beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" ")),e.extend(e.beta,{pdf:function(n,r,o){return n>1||n<0?0:1==r&&1==o?1:r<512&&o<512?t.pow(n,r-1)*t.pow(1-n,o-1)/e.betafn(r,o):t.exp((r-1)*t.log(n)+(o-1)*t.log(1-n)-e.betaln(r,o))},cdf:function(t,n,r){return t>1||t<0?1*(t>1):e.ibeta(t,n,r)},inv:function(t,n,r){return e.ibetainv(t,n,r)},mean:function(e,t){return e/(e+t)},median:function(t,n){return e.ibetainv(.5,t,n)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,n){var r=e.randg(t);return r/(r+e.randg(n))},variance:function(e,n){return e*n/(t.pow(e+n,2)*(e+n+1))}}),e.extend(e.centralF,{pdf:function(n,r,o){var i;return n<0?0:r<=2?0===n&&r<2?1/0:0===n&&2===r?1:1/e.betafn(r/2,o/2)*t.pow(r/o,r/2)*t.pow(n,r/2-1)*t.pow(1+r/o*n,-(r+o)/2):(i=r*n/(o+n*r),r*(o/(o+n*r))/2*e.binomial.pdf((r-2)/2,(r+o-2)/2,i))},cdf:function(t,n,r){return t<0?0:e.ibeta(n*t/(n*t+r),n/2,r/2)},inv:function(t,n,r){return r/(n*(1/e.ibetainv(t,n/2,r/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,n){return 2*e.randg(t/2)/t/(2*e.randg(n/2)/n)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,n,r){return r<0?0:r/(t.pow(e-n,2)+t.pow(r,2))/t.PI},cdf:function(e,n,r){return t.atan((e-n)/r)/t.PI+.5},inv:function(e,n,r){return n+r*t.tan(t.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(n,r){return e.randn()*t.sqrt(1/(2*e.randg(.5)))*r+n}}),e.extend(e.chisquare,{pdf:function(n,r){return n<0?0:0===n&&2===r?.5:t.exp((r/2-1)*t.log(n)-n/2-r/2*t.log(2)-e.gammaln(r/2))},cdf:function(t,n){return t<0?0:e.lowRegGamma(n/2,t/2)},inv:function(t,n){return 2*e.gammapinv(t,.5*n)},mean:function(e){return e},median:function(e){return e*t.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,n){return e<0?0:n*t.exp(-n*e)},cdf:function(e,n){return e<0?0:1-t.exp(-n*e)},inv:function(e,n){return-t.log(1-e)/n},mean:function(e){return 1/e},median:function(e){return 1/e*t.log(2)},mode:function(){return 0},sample:function(n){return-1/n*t.log(e._random_fn())},variance:function(e){return t.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(n,r,o){return n<0?0:0===n&&1===r?1/o:t.exp((r-1)*t.log(n)-n/o-e.gammaln(r)-r*t.log(o))},cdf:function(t,n,r){return t<0?0:e.lowRegGamma(n,t/r)},inv:function(t,n,r){return e.gammapinv(t,n)*r},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,n){return e.randg(t)*n},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(n,r,o){return n<=0?0:t.exp(-(r+1)*t.log(n)-o/n-e.gammaln(r)+r*t.log(o))},cdf:function(t,n,r){return t<=0?0:1-e.lowRegGamma(n,r/t)},inv:function(t,n,r){return r/e.gammapinv(1-t,n)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,n){return n/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,n,r){return 0===e&&1===n?r:1===e&&1===r?n:t.exp(t.log(n)+t.log(r)+(n-1)*t.log(e)+(r-1)*t.log(1-t.pow(e,n)))},cdf:function(e,n,r){return e<0?0:e>1?1:1-t.pow(1-t.pow(e,n),r)},inv:function(e,n,r){return t.pow(1-t.pow(1-e,1/r),1/n)},mean:function(t,n){return n*e.gammafn(1+1/t)*e.gammafn(n)/e.gammafn(1+1/t+n)},median:function(e,n){return t.pow(1-t.pow(2,-1/n),1/e)},mode:function(e,n){if(e>=1&&n>=1&&1!==e&&1!==n)return t.pow((e-1)/(e*n-1),1/e)},variance:function(){throw new Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,n,r){return e<=0?0:t.exp(-t.log(e)-.5*t.log(2*t.PI)-t.log(r)-t.pow(t.log(e)-n,2)/(2*r*r))},cdf:function(n,r,o){return n<0?0:.5+.5*e.erf((t.log(n)-r)/t.sqrt(2*o*o))},inv:function(n,r,o){return t.exp(-1.4142135623730951*o*e.erfcinv(2*n)+r)},mean:function(e,n){return t.exp(e+n*n/2)},median:function(e){return t.exp(e)},mode:function(e,n){return t.exp(e-n*n)},sample:function(n,r){return t.exp(e.randn()*r+n)},variance:function(e,n){return(t.exp(n*n)-1)*t.exp(2*e+n*n)}}),e.extend(e.noncentralt,{pdf:function(n,r,o){return t.abs(o)<1e-14?e.studentt.pdf(n,r):t.abs(n)<1e-14?t.exp(e.gammaln((r+1)/2)-o*o/2-.5*t.log(t.PI*r)-e.gammaln(r/2)):r/n*(e.noncentralt.cdf(n*t.sqrt(1+2/r),r+2,o)-e.noncentralt.cdf(n,r,o))},cdf:function(n,r,o){var i=1e-14;if(t.abs(o)<i)return e.studentt.cdf(n,r);var a=!1;n<0&&(a=!0,o=-o);for(var s=e.normal.cdf(-o,0,1),l=i+1,u=l,c=n*n/(n*n+r),h=0,f=t.exp(-o*o/2),d=t.exp(-o*o/2-.5*t.log(2)-e.gammaln(1.5))*o;h<200||u>i||l>i;)u=l,h>0&&(f*=o*o/(2*h),d*=o*o/(2*(h+.5))),s+=.5*(l=f*e.beta.cdf(c,h+.5,r/2)+d*e.beta.cdf(c,h+1,r/2)),h++;return a?1-s:s}}),e.extend(e.normal,{pdf:function(e,n,r){return t.exp(-.5*t.log(2*t.PI)-t.log(r)-t.pow(e-n,2)/(2*r*r))},cdf:function(n,r,o){return.5*(1+e.erf((n-r)/t.sqrt(2*o*o)))},inv:function(t,n,r){return-1.4142135623730951*r*e.erfcinv(2*t)+n},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,n){return e.randn()*n+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,n,r){return e<n?0:r*t.pow(n,r)/t.pow(e,r+1)},cdf:function(e,n,r){return e<n?0:1-t.pow(n/e,r)},inv:function(e,n,r){return n/t.pow(1-e,1/r)},mean:function(e,n){if(!(n<=1))return n*t.pow(e,n)/(n-1)},median:function(e,n){return e*(n*t.SQRT2)},mode:function(e){return e},variance:function(e,n){if(!(n<=2))return e*e*n/(t.pow(n-1,2)*(n-2))}}),e.extend(e.studentt,{pdf:function(n,r){return r=r>1e100?1e100:r,1/(t.sqrt(r)*e.betafn(.5,r/2))*t.pow(1+n*n/r,-(r+1)/2)},cdf:function(n,r){var o=r/2;return e.ibeta((n+t.sqrt(n*n+r))/(2*t.sqrt(n*n+r)),o,o)},inv:function(n,r){var o=e.ibetainv(2*t.min(n,1-n),.5*r,.5);return o=t.sqrt(r*(1-o)/o),n>.5?o:-o},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(n){return e.randn()*t.sqrt(n/(2*e.randg(n/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,n,r){return e<0||n<0||r<0?0:r/n*t.pow(e/n,r-1)*t.exp(-t.pow(e/n,r))},cdf:function(e,n,r){return e<0?0:1-t.exp(-t.pow(e/n,r))},inv:function(e,n,r){return n*t.pow(-t.log(1-e),1/r)},mean:function(t,n){return t*e.gammafn(1+1/n)},median:function(e,n){return e*t.pow(t.log(2),1/n)},mode:function(e,n){return n<=1?0:e*t.pow((n-1)/n,1/n)},sample:function(n,r){return n*t.pow(-t.log(e._random_fn()),1/r)},variance:function(n,r){return n*n*e.gammafn(1+2/r)-t.pow(e.weibull.mean(n,r),2)}}),e.extend(e.uniform,{pdf:function(e,t,n){return e<t||e>n?0:1/(n-t)},cdf:function(e,t,n){return e<t?0:e<n?(e-t)/(n-t):1},inv:function(e,t,n){return t+e*(n-t)},mean:function(e,t){return.5*(e+t)},median:function(t,n){return e.mean(t,n)},mode:function(){throw new Error("mode is not yet implemented")},sample:function(t,n){return t/2+n/2+(n/2-t/2)*(2*e._random_fn()-1)},variance:function(e,n){return t.pow(n-e,2)/12}}),e.extend(e.binomial,{pdf:function(n,r,o){return 0===o||1===o?r*o===n?1:0:e.combination(r,n)*t.pow(o,n)*t.pow(1-o,r-n)},cdf:function(r,o,i){var a,s=1e-10;if(r<0)return 0;if(r>=o)return 1;if(i<0||i>1||o<=0)return NaN;var l=i,u=(r=t.floor(r))+1,c=o-r,h=u+c,f=t.exp(e.gammaln(h)-e.gammaln(c)-e.gammaln(u)+u*t.log(l)+c*t.log(1-l));return a=l<(u+1)/(h+2)?f*n(l,u,c,s):1-f*n(1-l,c,u,s),t.round(1/s*(1-a))/(1/s)}}),e.extend(e.negbin,{pdf:function(n,r,o){return n===n>>>0&&(n<0?0:e.combination(n+r-1,r-1)*t.pow(1-o,n)*t.pow(o,r))},cdf:function(t,n,r){var o=0,i=0;if(t<0)return 0;for(;i<=t;i++)o+=e.negbin.pdf(i,n,r);return o}}),e.extend(e.hypgeom,{pdf:function(n,r,o,i){if(n!=n|0)return!1;if(n<0||n<o-(r-i))return 0;if(n>i||n>o)return 0;if(2*o>r)return 2*i>r?e.hypgeom.pdf(r-o-i+n,r,r-o,r-i):e.hypgeom.pdf(i-n,r,r-o,i);if(2*i>r)return e.hypgeom.pdf(o-n,r,o,r-i);if(o<i)return e.hypgeom.pdf(n,r,i,o);for(var a=1,s=0,l=0;l<n;l++){for(;a>1&&s<i;)a*=1-o/(r-s),s++;a*=(i-l)*(o-l)/((l+1)*(r-o-i+l+1))}for(;s<i;s++)a*=1-o/(r-s);return t.min(1,t.max(0,a))},cdf:function(n,r,o,i){if(n<0||n<o-(r-i))return 0;if(n>=i||n>=o)return 1;if(2*o>r)return 2*i>r?e.hypgeom.cdf(r-o-i+n,r,r-o,r-i):1-e.hypgeom.cdf(i-n-1,r,r-o,i);if(2*i>r)return 1-e.hypgeom.cdf(o-n-1,r,o,r-i);if(o<i)return e.hypgeom.cdf(n,r,i,o);for(var a=1,s=1,l=0,u=0;u<n;u++){for(;a>1&&l<i;){var c=1-o/(r-l);s*=c,a*=c,l++}a+=s*=(i-u)*(o-u)/((u+1)*(r-o-i+u+1))}for(;l<i;l++)a*=1-o/(r-l);return t.min(1,t.max(0,a))}}),e.extend(e.poisson,{pdf:function(n,r){return r<0||n%1!=0||n<0?0:t.pow(r,n)*t.exp(-r)/e.factorial(n)},cdf:function(t,n){var r=[],o=0;if(t<0)return 0;for(;o<=t;o++)r.push(e.poisson.pdf(o,n));return e.sum(r)},mean:function(e){return e},variance:function(e){return e},sampleSmall:function(n){var r=1,o=0,i=t.exp(-n);do{o++,r*=e._random_fn()}while(r>i);return o-1},sampleLarge:function(n){var r,o,i,a,s,l,u,c,h,f,d=n;for(a=t.sqrt(d),s=t.log(d),l=.02483*(u=.931+2.53*a)-.059,c=1.1239+1.1328/(u-3.4),h=.9277-3.6224/(u-2);;){if(o=t.random()-.5,i=t.random(),f=.5-t.abs(o),r=t.floor((2*l/f+u)*o+d+.43),f>=.07&&i<=h)return r;if(!(r<0||f<.013&&i>f)&&t.log(i)+t.log(c)-t.log(l/(f*f)+u)<=r*s-d-e.loggam(r+1))return r}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,n,r){return n<=t||r<t||r>n?NaN:e<t||e>n?0:e<r?2*(e-t)/((n-t)*(r-t)):e===r?2/(n-t):2*(n-e)/((n-t)*(n-r))},cdf:function(e,n,r,o){return r<=n||o<n||o>r?NaN:e<=n?0:e>=r?1:e<=o?t.pow(e-n,2)/((r-n)*(o-n)):1-t.pow(r-e,2)/((r-n)*(r-o))},inv:function(e,n,r,o){return r<=n||o<n||o>r?NaN:e<=(o-n)/(r-n)?n+(r-n)*t.sqrt(e*((o-n)/(r-n))):n+(r-n)*(1-t.sqrt((1-e)*(1-(o-n)/(r-n))))},mean:function(e,t,n){return(e+t+n)/3},median:function(e,n,r){return r<=(e+n)/2?n-t.sqrt((n-e)*(n-r))/t.sqrt(2):r>(e+n)/2?e+t.sqrt((n-e)*(r-e))/t.sqrt(2):void 0},mode:function(e,t,n){return n},sample:function(n,r,o){var i=e._random_fn();return i<(o-n)/(r-n)?n+t.sqrt(i*(r-n)*(o-n)):r-t.sqrt((1-i)*(r-n)*(r-o))},variance:function(e,t,n){return(e*e+t*t+n*n-e*t-e*n-t*n)/18}}),e.extend(e.arcsine,{pdf:function(e,n,r){return r<=n?NaN:e<=n||e>=r?0:2/t.PI*t.pow(t.pow(r-n,2)-t.pow(2*e-n-r,2),-.5)},cdf:function(e,n,r){return e<n?0:e<r?2/t.PI*t.asin(t.sqrt((e-n)/(r-n))):1},inv:function(e,n,r){return n+(.5-.5*t.cos(t.PI*e))*(r-n)},mean:function(e,t){return t<=e?NaN:(e+t)/2},median:function(e,t){return t<=e?NaN:(e+t)/2},mode:function(){throw new Error("mode is not yet implemented")},sample:function(n,r){return(n+r)/2+(r-n)/2*t.sin(2*t.PI*e.uniform.sample(0,1))},variance:function(e,n){return n<=e?NaN:t.pow(n-e,2)/8}}),e.extend(e.laplace,{pdf:function(e,n,r){return r<=0?0:t.exp(-t.abs(e-n)/r)/(2*r)},cdf:function(e,n,r){return r<=0?0:e<n?.5*t.exp((e-n)/r):1-.5*t.exp(-(e-n)/r)},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},variance:function(e,t){return 2*t*t},sample:function(n,r){var o,i=e._random_fn()-.5;return n-r*((o=i)/t.abs(o))*t.log(1-2*t.abs(i))}}),e.extend(e.tukey,{cdf:function(n,o,i){var a=o,s=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],l=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(n<=0)return 0;if(i<2||a<2)return NaN;if(!Number.isFinite(n))return 1;if(i>25e3)return r(n,1,a);var u,c=.5*i,h=c*t.log(i)-i*t.log(2)-e.gammaln(c),f=c-1,d=.25*i;u=i<=100?1:i<=800?.5:i<=5e3?.25:.125,h+=t.log(u);for(var m=0,p=1;p<=50;p++){for(var y=0,v=(2*p-1)*u,g=1;g<=16;g++){var w,b;8<g?(w=g-8-1,b=h+f*t.log(v+s[w]*u)-(s[w]*u+v)*d):(w=g-1,b=h+f*t.log(v-s[w]*u)+(s[w]*u-v)*d),b>=-30&&(y+=r(8<g?n*t.sqrt(.5*(s[w]*u+v)):n*t.sqrt(.5*(-s[w]*u+v)),1,a)*l[w]*t.exp(b))}if(p*u>=1&&y<=1e-14)break;m+=y}if(y>1e-14)throw new Error("tukey.cdf failed to converge");return m>1&&(m=1),m},inv:function(n,r,o){if(o<2||r<2)return NaN;if(n<0||n>1)return NaN;if(0===n)return 0;if(1===n)return 1/0;var i,a=function(e,n,r){var o=.5-.5*e,i=t.sqrt(t.log(1/(o*o))),a=i+((((-453642210148e-16*i-.204231210125)*i-.342242088547)*i-1)*i+.322232421088)/((((.0038560700634*i+.10353775285)*i+.531103462366)*i+.588581570495)*i+.099348462606);r<120&&(a+=(a*a*a+a)/r/4);var s=.8832-.2368*a;return r<120&&(s+=-1.214/r+1.208*a/r),a*(s*t.log(n-1)+1.4142)}(n,r,o),s=e.tukey.cdf(a,r,o)-n;i=s>0?t.max(0,a-1):a+1;for(var l,u=e.tukey.cdf(i,r,o)-n,c=1;c<50;c++)if(l=i-u*(i-a)/(u-s),s=u,a=i,l<0&&(l=0,u=-n),u=e.tukey.cdf(l,r,o)-n,i=l,t.abs(i-a)<1e-4)return l;throw new Error("tukey.inv failed to converge")}})}(r,Math),function(e,t){var n,r,o=Array.prototype.push,i=e.utils.isArray;function a(t){return i(t)||t instanceof e}e.extend({add:function(t,n){return a(n)?(a(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e+n[t][r]}))):e.map(t,(function(e){return e+n}))},subtract:function(t,n){return a(n)?(a(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e-n[t][r]||0}))):e.map(t,(function(e){return e-n}))},divide:function(t,n){return a(n)?(a(n[0])||(n=[n]),e.multiply(t,e.inv(n))):e.map(t,(function(e){return e/n}))},multiply:function(t,n){var r,o,i,s,l,u,c,h;if(void 0===t.length&&void 0===n.length)return t*n;if(l=t.length,u=t[0].length,c=e.zeros(l,i=a(n)?n[0].length:u),h=0,a(n)){for(;h<i;h++)for(r=0;r<l;r++){for(s=0,o=0;o<u;o++)s+=t[r][o]*n[o][h];c[r][h]=s}return 1===l&&1===h?c[0][0]:c}return e.map(t,(function(e){return e*n}))},outer:function(t,n){return e.multiply(t.map((function(e){return[e]})),[n])},dot:function(t,n){a(t[0])||(t=[t]),a(n[0])||(n=[n]);for(var r,o,i=1===t[0].length&&1!==t.length?e.transpose(t):t,s=1===n[0].length&&1!==n.length?e.transpose(n):n,l=[],u=0,c=i.length,h=i[0].length;u<c;u++){for(l[u]=[],r=0,o=0;o<h;o++)r+=i[u][o]*s[u][o];l[u]=r}return 1===l.length?l[0]:l},pow:function(n,r){return e.map(n,(function(e){return t.pow(e,r)}))},exp:function(n){return e.map(n,(function(e){return t.exp(e)}))},log:function(n){return e.map(n,(function(e){return t.log(e)}))},abs:function(n){return e.map(n,(function(e){return t.abs(e)}))},norm:function(e,n){var r=0,o=0;for(isNaN(n)&&(n=2),a(e[0])&&(e=e[0]);o<e.length;o++)r+=t.pow(t.abs(e[o]),n);return t.pow(r,1/n)},angle:function(n,r){return t.acos(e.dot(n,r)/(e.norm(n)*e.norm(r)))},aug:function(e,t){var n,r=[];for(n=0;n<e.length;n++)r.push(e[n].slice());for(n=0;n<r.length;n++)o.apply(r[n],t[n]);return r},inv:function(t){for(var n,r=t.length,o=t[0].length,i=e.identity(r,o),a=e.gauss_jordan(t,i),s=[],l=0;l<r;l++)for(s[l]=[],n=o;n<a[0].length;n++)s[l][n-o]=a[l][n];return s},det:function(e){var t,n=e.length,r=2*n,o=new Array(r),i=n-1,a=r-1,s=i-n+1,l=a,u=0,c=0;if(2===n)return e[0][0]*e[1][1]-e[0][1]*e[1][0];for(;u<r;u++)o[u]=1;for(u=0;u<n;u++){for(t=0;t<n;t++)o[s<0?s+n:s]*=e[u][t],o[l<n?l+n:l]*=e[u][t],s++,l--;s=--i-n+1,l=--a}for(u=0;u<n;u++)c+=o[u];for(;u<r;u++)c-=o[u];return c},gauss_elimination:function(n,r){var o,i,a,s,l=0,u=0,c=n.length,h=n[0].length,f=1,d=0,m=[];for(o=(n=e.aug(n,r))[0].length,l=0;l<c;l++){for(i=n[l][l],u=l,s=l+1;s<h;s++)i<t.abs(n[s][l])&&(i=n[s][l],u=s);if(u!=l)for(s=0;s<o;s++)a=n[l][s],n[l][s]=n[u][s],n[u][s]=a;for(u=l+1;u<c;u++)for(f=n[u][l]/n[l][l],s=l;s<o;s++)n[u][s]=n[u][s]-f*n[l][s]}for(l=c-1;l>=0;l--){for(d=0,u=l+1;u<=c-1;u++)d+=m[u]*n[l][u];m[l]=(n[l][o-1]-d)/n[l][l]}return m},gauss_jordan:function(n,r){var o,i,a,s=e.aug(n,r),l=s.length,u=s[0].length,c=0;for(i=0;i<l;i++){var h=i;for(a=i+1;a<l;a++)t.abs(s[a][i])>t.abs(s[h][i])&&(h=a);var f=s[i];for(s[i]=s[h],s[h]=f,a=i+1;a<l;a++)for(c=s[a][i]/s[i][i],o=i;o<u;o++)s[a][o]-=s[i][o]*c}for(i=l-1;i>=0;i--){for(c=s[i][i],a=0;a<i;a++)for(o=u-1;o>i-1;o--)s[a][o]-=s[i][o]*s[a][i]/c;for(s[i][i]/=c,o=l;o<u;o++)s[i][o]/=c}return s},triaUpSolve:function(t,n){var r,o=t[0].length,i=e.zeros(1,o)[0],a=!1;return null!=n[0].length&&(n=n.map((function(e){return e[0]})),a=!0),e.arange(o-1,-1,-1).forEach((function(a){r=e.arange(a+1,o).map((function(e){return i[e]*t[a][e]})),i[a]=(n[a]-e.sum(r))/t[a][a]})),a?i.map((function(e){return[e]})):i},triaLowSolve:function(t,n){var r,o=t[0].length,i=e.zeros(1,o)[0],a=!1;return null!=n[0].length&&(n=n.map((function(e){return e[0]})),a=!0),e.arange(o).forEach((function(o){r=e.arange(o).map((function(e){return t[o][e]*i[e]})),i[o]=(n[o]-e.sum(r))/t[o][o]})),a?i.map((function(e){return[e]})):i},lu:function(t){var n,r=t.length,o=e.identity(r),i=e.zeros(t.length,t[0].length);return e.arange(r).forEach((function(e){i[0][e]=t[0][e]})),e.arange(1,r).forEach((function(a){e.arange(a).forEach((function(r){n=e.arange(r).map((function(e){return o[a][e]*i[e][r]})),o[a][r]=(t[a][r]-e.sum(n))/i[r][r]})),e.arange(a,r).forEach((function(r){n=e.arange(a).map((function(e){return o[a][e]*i[e][r]})),i[a][r]=t[n.length][r]-e.sum(n)}))})),[o,i]},cholesky:function(n){var r,o=n.length,i=e.zeros(n.length,n[0].length);return e.arange(o).forEach((function(a){r=e.arange(a).map((function(e){return t.pow(i[a][e],2)})),i[a][a]=t.sqrt(n[a][a]-e.sum(r)),e.arange(a+1,o).forEach((function(t){r=e.arange(a).map((function(e){return i[a][e]*i[t][e]})),i[t][a]=(n[a][t]-e.sum(r))/i[a][a]}))})),i},gauss_jacobi:function(n,r,o,i){for(var a,s,l,u,c=0,h=0,f=n.length,d=[],m=[],p=[];c<f;c++)for(d[c]=[],m[c]=[],p[c]=[],h=0;h<f;h++)c>h?(d[c][h]=n[c][h],m[c][h]=p[c][h]=0):c<h?(m[c][h]=n[c][h],d[c][h]=p[c][h]=0):(p[c][h]=n[c][h],d[c][h]=m[c][h]=0);for(l=e.multiply(e.multiply(e.inv(p),e.add(d,m)),-1),s=e.multiply(e.inv(p),r),a=o,u=e.add(e.multiply(l,o),s),c=2;t.abs(e.norm(e.subtract(u,a)))>i;)a=u,u=e.add(e.multiply(l,a),s),c++;return u},gauss_seidel:function(n,r,o,i){for(var a,s,l,u,c,h=0,f=n.length,d=[],m=[],p=[];h<f;h++)for(d[h]=[],m[h]=[],p[h]=[],a=0;a<f;a++)h>a?(d[h][a]=n[h][a],m[h][a]=p[h][a]=0):h<a?(m[h][a]=n[h][a],d[h][a]=p[h][a]=0):(p[h][a]=n[h][a],d[h][a]=m[h][a]=0);for(u=e.multiply(e.multiply(e.inv(e.add(p,d)),m),-1),l=e.multiply(e.inv(e.add(p,d)),r),s=o,c=e.add(e.multiply(u,o),l),h=2;t.abs(e.norm(e.subtract(c,s)))>i;)s=c,c=e.add(e.multiply(u,s),l),h+=1;return c},SOR:function(n,r,o,i,a){for(var s,l,u,c,h,f=0,d=n.length,m=[],p=[],y=[];f<d;f++)for(m[f]=[],p[f]=[],y[f]=[],s=0;s<d;s++)f>s?(m[f][s]=n[f][s],p[f][s]=y[f][s]=0):f<s?(p[f][s]=n[f][s],m[f][s]=y[f][s]=0):(y[f][s]=n[f][s],m[f][s]=p[f][s]=0);for(c=e.multiply(e.inv(e.add(y,e.multiply(m,a))),e.subtract(e.multiply(y,1-a),e.multiply(p,a))),u=e.multiply(e.multiply(e.inv(e.add(y,e.multiply(m,a))),r),a),l=o,h=e.add(e.multiply(c,o),u),f=2;t.abs(e.norm(e.subtract(h,l)))>i;)l=h,h=e.add(e.multiply(c,l),u),f++;return h},householder:function(n){for(var r,o,i,a,s=n.length,l=n[0].length,u=0,c=[],h=[];u<s-1;u++){for(r=0,a=u+1;a<l;a++)r+=n[a][u]*n[a][u];for(r=(n[u+1][u]>0?-1:1)*t.sqrt(r),o=t.sqrt((r*r-n[u+1][u]*r)/2),(c=e.zeros(s,1))[u+1][0]=(n[u+1][u]-r)/(2*o),i=u+2;i<s;i++)c[i][0]=n[i][u]/(2*o);h=e.subtract(e.identity(s,l),e.multiply(e.multiply(c,e.transpose(c)),2)),n=e.multiply(h,e.multiply(n,h))}return n},QR:(n=e.sum,r=e.arange,function(o){var i,a,s,l=o.length,u=o[0].length,c=e.zeros(u,u);for(o=e.copy(o),a=0;a<u;a++){for(c[a][a]=t.sqrt(n(r(l).map((function(e){return o[e][a]*o[e][a]})))),i=0;i<l;i++)o[i][a]=o[i][a]/c[a][a];for(s=a+1;s<u;s++)for(c[a][s]=n(r(l).map((function(e){return o[e][a]*o[e][s]}))),i=0;i<l;i++)o[i][s]=o[i][s]-o[i][a]*c[a][s]}return[o,c]}),lstsq:function(t,n){var r=!1;void 0===n[0].length&&(n=n.map((function(e){return[e]})),r=!0);var o=e.QR(t),i=o[0],a=o[1],s=t[0].length,l=e.slice(i,{col:{end:s}}),u=function(t){var n=(t=e.copy(t)).length,r=e.identity(n);return e.arange(n-1,-1,-1).forEach((function(n){e.sliceAssign(r,{row:n},e.divide(e.slice(r,{row:n}),t[n][n])),e.sliceAssign(t,{row:n},e.divide(e.slice(t,{row:n}),t[n][n])),e.arange(n).forEach((function(o){var i=e.multiply(t[o][n],-1),a=e.slice(t,{row:o}),s=e.multiply(e.slice(t,{row:n}),i);e.sliceAssign(t,{row:o},e.add(a,s));var l=e.slice(r,{row:o}),u=e.multiply(e.slice(r,{row:n}),i);e.sliceAssign(r,{row:o},e.add(l,u))}))})),r}(e.slice(a,{row:{end:s}})),c=e.transpose(l);void 0===c[0].length&&(c=[c]);var h=e.multiply(e.multiply(u,c),n);return void 0===h.length&&(h=[[h]]),r?h.map((function(e){return e[0]})):h},jacobi:function(n){for(var r,o,i,a,s,l,u,c=1,h=n.length,f=e.identity(h,h),d=[];1===c;){for(s=n[0][1],i=0,a=1,r=0;r<h;r++)for(o=0;o<h;o++)r!=o&&s<t.abs(n[r][o])&&(s=t.abs(n[r][o]),i=r,a=o);for(l=n[i][i]===n[a][a]?n[i][a]>0?t.PI/4:-t.PI/4:t.atan(2*n[i][a]/(n[i][i]-n[a][a]))/2,(u=e.identity(h,h))[i][i]=t.cos(l),u[i][a]=-t.sin(l),u[a][i]=t.sin(l),u[a][a]=t.cos(l),f=e.multiply(f,u),n=e.multiply(e.multiply(e.inv(u),n),u),c=0,r=1;r<h;r++)for(o=1;o<h;o++)r!=o&&t.abs(n[r][o])>.001&&(c=1)}for(r=0;r<h;r++)d.push(n[r][r]);return[f,d]},rungekutta:function(e,t,n,r,o,i){var a,s,l;if(2===i)for(;r<=n;)o+=((a=t*e(r,o))+(s=t*e(r+t,o+a)))/2,r+=t;if(4===i)for(;r<=n;)o+=((a=t*e(r,o))+2*(s=t*e(r+t/2,o+a/2))+2*(l=t*e(r+t/2,o+s/2))+t*e(r+t,o+l))/6,r+=t;return o},romberg:function(e,n,r,o){for(var i,a,s,l,u,c=0,h=(r-n)/2,f=[],d=[],m=[];c<o/2;){for(u=e(n),s=n,l=0;s<=r;s+=h,l++)f[l]=s;for(i=f.length,s=1;s<i-1;s++)u+=(s%2!=0?4:2)*e(f[s]);u=h/3*(u+e(r)),m[c]=u,h/=2,c++}for(a=m.length,i=1;1!==a;){for(s=0;s<a-1;s++)d[s]=(t.pow(4,i)*m[s+1]-m[s])/(t.pow(4,i)-1);a=d.length,m=d,d=[],i++}return m},richardson:function(e,n,r,o){function i(e,t){for(var n,r=0,o=e.length;r<o;r++)e[r]===t&&(n=r);return n}for(var a,s,l,u,c,h=t.abs(r-e[i(e,r)+1]),f=0,d=[],m=[];o>=h;)a=i(e,r+o),s=i(e,r),d[f]=(n[a]-2*n[s]+n[2*s-a])/(o*o),o/=2,f++;for(u=d.length,l=1;1!=u;){for(c=0;c<u-1;c++)m[c]=(t.pow(4,l)*d[c+1]-d[c])/(t.pow(4,l)-1);u=m.length,d=m,m=[],l++}return d},simpson:function(e,t,n,r){for(var o,i=(n-t)/r,a=e(t),s=[],l=t,u=0,c=1;l<=n;l+=i,u++)s[u]=l;for(o=s.length;c<o-1;c++)a+=(c%2!=0?4:2)*e(s[c]);return i/3*(a+e(n))},hermite:function(e,t,n,r){for(var o,i=e.length,a=0,s=0,l=[],u=[],c=[],h=[];s<i;s++){for(l[s]=1,o=0;o<i;o++)s!=o&&(l[s]*=(r-e[o])/(e[s]-e[o]));for(u[s]=0,o=0;o<i;o++)s!=o&&(u[s]+=1/(e[s]-e[o]));c[s]=(1-2*(r-e[s])*u[s])*(l[s]*l[s]),h[s]=(r-e[s])*(l[s]*l[s]),a+=c[s]*t[s]+h[s]*n[s]}return a},lagrange:function(e,t,n){for(var r,o,i=0,a=0,s=e.length;a<s;a++){for(o=t[a],r=0;r<s;r++)a!=r&&(o*=(n-e[r])/(e[a]-e[r]));i+=o}return i},cubic_spline:function(t,n,r){for(var o,i,a=t.length,s=0,l=[],u=[],c=[],h=[],f=[],d=[];s<a-1;s++)h[s]=t[s+1]-t[s];for(c[0]=0,s=1;s<a-1;s++)c[s]=3/h[s]*(n[s+1]-n[s])-3/h[s-1]*(n[s]-n[s-1]);for(s=1;s<a-1;s++)l[s]=[],u[s]=[],l[s][s-1]=h[s-1],l[s][s]=2*(h[s-1]+h[s]),l[s][s+1]=h[s],u[s][0]=c[s];for(i=e.multiply(e.inv(l),u),o=0;o<a-1;o++)f[o]=(n[o+1]-n[o])/h[o]-h[o]*(i[o+1][0]+2*i[o][0])/3,d[o]=(i[o+1][0]-i[o][0])/(3*h[o]);for(o=0;o<a&&!(t[o]>r);o++);return n[o-=1]+(r-t[o])*f[o]+e.sq(r-t[o])*i[o]+(r-t[o])*e.sq(r-t[o])*d[o]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(t){var n,r,o,i,a,s=t.length,l=t[0].length,u=0,c=[],h=[],f=[],d=[],m=[],p=[],y=[];for(u=0;u<s;u++)c[u]=e.sum(t[u])/l;for(u=0;u<l;u++)for(m[u]=[],n=0;n<s;n++)m[u][n]=t[n][u]-c[n];for(m=e.transpose(m),u=0;u<s;u++)for(p[u]=[],n=0;n<s;n++)p[u][n]=e.dot([m[u]],[m[n]])/(l-1);for(a=(o=e.jacobi(p))[0],h=o[1],y=e.transpose(a),u=0;u<h.length;u++)for(n=u;n<h.length;n++)h[u]<h[n]&&(r=h[u],h[u]=h[n],h[n]=r,f=y[u],y[u]=y[n],y[n]=f);for(i=e.transpose(m),u=0;u<s;u++)for(d[u]=[],n=0;n<i.length;n++)d[u][n]=e.dot([y[u]],[i[n]]);return[t,h,y,d]}}),function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(n,r){var o=this;return r?(setTimeout((function(){r.call(o,e.fn[t].call(o,n))}),15),this):"number"==typeof e[t](this,n)?e[t](this,n):e(e[t](this,n))}}(t[n])}("add divide multiply subtract dot pow exp log abs norm angle".split(" "))}(r,Math),function(e,t){var n=[].slice,r=e.utils.isNumber,o=e.utils.isArray;function i(e,n,r,o){if(e>1||r>1||e<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var i=(e*n+r*o)/(n+o);return(e-r)/t.sqrt(i*(1-i)*(1/n+1/o))}e.extend({zscore:function(){var t=n.call(arguments);return r(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var r,i=n.call(arguments);return o(i[1])?(r=e.zscore(i[0],i[1],i[3]),1===i[2]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):i.length>2?(r=e.zscore(i[0],i[1],i[2]),1===i[3]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):(r=i[0],1===i[1]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(n,r,o){var i=t.abs(this.zscore(n,o));return 1===r?e.normal.cdf(-i,0,1):2*e.normal.cdf(-i,0,1)}}),e.extend({tscore:function(){var r=n.call(arguments);return 4===r.length?(r[0]-r[1])/(r[2]/t.sqrt(r[3])):(r[0]-e.mean(r[1]))/(e.stdev(r[1],!0)/t.sqrt(r[1].length))},ttest:function(){var o,i=n.call(arguments);return 5===i.length?(o=t.abs(e.tscore(i[0],i[1],i[2],i[3])),1===i[4]?e.studentt.cdf(-o,i[3]-1):2*e.studentt.cdf(-o,i[3]-1)):r(i[1])?(o=t.abs(i[0]),1==i[2]?e.studentt.cdf(-o,i[1]-1):2*e.studentt.cdf(-o,i[1]-1)):(o=t.abs(e.tscore(i[0],i[1])),1==i[2]?e.studentt.cdf(-o,i[1].length-1):2*e.studentt.cdf(-o,i[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/t.sqrt(this.cols()))},ttest:function(n,r){return 1===r?1-e.studentt.cdf(t.abs(this.tscore(n)),this.cols()-1):2*e.studentt.cdf(-t.abs(this.tscore(n)),this.cols()-1)}}),e.extend({anovafscore:function(){var r,o,i,a,s,l,u,c,h=n.call(arguments);if(1===h.length){for(s=new Array(h[0].length),u=0;u<h[0].length;u++)s[u]=h[0][u];h=s}for(o=new Array,u=0;u<h.length;u++)o=o.concat(h[u]);for(i=e.mean(o),r=0,u=0;u<h.length;u++)r+=h[u].length*t.pow(e.mean(h[u])-i,2);for(r/=h.length-1,l=0,u=0;u<h.length;u++)for(a=e.mean(h[u]),c=0;c<h[u].length;c++)l+=t.pow(h[u][c]-a,2);return r/(l/(o.length-h.length))},anovaftest:function(){var t,o,i,a,s=n.call(arguments);if(r(s[0]))return 1-e.centralF.cdf(s[0],s[1],s[2]);var l=e.anovafscore(s);for(t=s.length-1,i=0,a=0;a<s.length;a++)i+=s[a].length;return o=i-t-1,1-e.centralF.cdf(l,t,o)},ftest:function(t,n,r){return 1-e.centralF.cdf(t,n,r)}}),e.extend(e.fn,{anovafscore:function(){return e.anovafscore(this.toArray())},anovaftes:function(){var t,n=0;for(t=0;t<this.length;t++)n+=this[t].length;return e.ftest(this.anovafscore(),this.length-1,n-this.length)}}),e.extend({qscore:function(){var o,i,a,s,l,u=n.call(arguments);return r(u[0])?(o=u[0],i=u[1],a=u[2],s=u[3],l=u[4]):(o=e.mean(u[0]),i=e.mean(u[1]),a=u[0].length,s=u[1].length,l=u[2]),t.abs(o-i)/(l*t.sqrt((1/a+1/s)/2))},qtest:function(){var t,r=n.call(arguments);3===r.length?(t=r[0],r=r.slice(1)):7===r.length?(t=e.qscore(r[0],r[1],r[2],r[3],r[4]),r=r.slice(5)):(t=e.qscore(r[0],r[1],r[2]),r=r.slice(3));var o=r[0],i=r[1];return 1-e.tukey.cdf(t,i,o-i)},tukeyhsd:function(t){for(var n=e.pooledstdev(t),r=t.map((function(t){return e.mean(t)})),o=t.reduce((function(e,t){return e+t.length}),0),i=[],a=0;a<t.length;++a)for(var s=a+1;s<t.length;++s){var l=e.qtest(r[a],r[s],t[a].length,t[s].length,n,o,t.length);i.push([[a,s],l])}return i}}),e.extend({normalci:function(){var r,o=n.call(arguments),i=new Array(2);return r=4===o.length?t.abs(e.normal.inv(o[1]/2,0,1)*o[2]/t.sqrt(o[3])):t.abs(e.normal.inv(o[1]/2,0,1)*e.stdev(o[2])/t.sqrt(o[2].length)),i[0]=o[0]-r,i[1]=o[0]+r,i},tci:function(){var r,o=n.call(arguments),i=new Array(2);return r=4===o.length?t.abs(e.studentt.inv(o[1]/2,o[3]-1)*o[2]/t.sqrt(o[3])):t.abs(e.studentt.inv(o[1]/2,o[2].length-1)*e.stdev(o[2],!0)/t.sqrt(o[2].length)),i[0]=o[0]-r,i[1]=o[0]+r,i},significant:function(e,t){return e<t}}),e.extend(e.fn,{normalci:function(t,n){return e.normalci(t,n,this.toArray())},tci:function(t,n){return e.tci(t,n,this.toArray())}}),e.extend(e.fn,{oneSidedDifferenceOfProportions:function(t,n,r,o){var a=i(t,n,r,o);return e.ztest(a,1)},twoSidedDifferenceOfProportions:function(t,n,r,o){var a=i(t,n,r,o);return e.ztest(a,2)}})}(r,Math),r.models=function(){function e(e,t){var n=e.length,o=t[0].length-1,i=n-o-1,a=r.lstsq(t,e),s=r.multiply(t,a.map((function(e){return[e]}))).map((function(e){return e[0]})),l=r.subtract(e,s),u=r.mean(e),c=r.sum(s.map((function(e){return Math.pow(e-u,2)}))),h=r.sum(e.map((function(e,t){return Math.pow(e-s[t],2)}))),f=c+h;return{exog:t,endog:e,nobs:n,df_model:o,df_resid:i,coef:a,predict:s,resid:l,ybar:u,SST:f,SSE:c,SSR:h,R2:c/f}}function t(t){var n,o,i=(n=t.exog,o=n[0].length,r.arange(o).map((function(t){var i=r.arange(o).filter((function(e){return e!==t}));return e(r.col(n,t).map((function(e){return e[0]})),r.col(n,i))}))),a=Math.sqrt(t.SSR/t.df_resid),s=i.map((function(e){var t=e.SST,n=e.R2;return a/Math.sqrt(t*(1-n))})),l=t.coef.map((function(e,t){return(e-0)/s[t]})),u=l.map((function(e){var n=r.studentt.cdf(e,t.df_resid);return 2*(n>.5?1-n:n)})),c=r.studentt.inv(.975,t.df_resid),h=t.coef.map((function(e,t){var n=c*s[t];return[e-n,e+n]}));return{se:s,t:l,p:u,sigmaHat:a,interval95:h}}return{ols:function(n,o){var i=e(n,o),a=t(i),s=function(e){var t,n,o,i=e.R2/e.df_model/((1-e.R2)/e.df_resid);return{F_statistic:i,pvalue:1-(t=i,n=e.df_model,o=e.df_resid,r.beta.cdf(t/(o/n+t),n/2,o/2))}}(i),l=1-(1-i.R2)*((i.nobs-1)/i.df_resid);return i.t=a,i.f=s,i.adjust_R2=l,i}}}(),r.extend({buildxmatrix:function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;t++){e[t]=[1].concat(arguments[t])}return r(e)},builddxmatrix:function(){for(var e=new Array(arguments[0].length),t=0;t<arguments[0].length;t++){e[t]=[1].concat(arguments[0][t])}return r(e)},buildjxmatrix:function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return r.builddxmatrix(t)},buildymatrix:function(e){return r(e).transpose()},buildjymatrix:function(e){return e.transpose()},matrixmult:function(e,t){var n,o,i,a,s;if(e.cols()==t.rows()){if(t.rows()>1){for(a=[],n=0;n<e.rows();n++)for(a[n]=[],o=0;o<t.cols();o++){for(s=0,i=0;i<e.cols();i++)s+=e.toArray()[n][i]*t.toArray()[i][o];a[n][o]=s}return r(a)}for(a=[],n=0;n<e.rows();n++)for(a[n]=[],o=0;o<t.cols();o++){for(s=0,i=0;i<e.cols();i++)s+=e.toArray()[n][i]*t.toArray()[o];a[n][o]=s}return r(a)}},regress:function(e,t){var n=r.xtranspxinv(e),o=e.transpose(),i=r.matrixmult(r(n),o);return r.matrixmult(i,t)},regresst:function(e,t,n){var o=r.regress(e,t),i={anova:{}},a=r.jMatYBar(e,o);i.yBar=a;var s=t.mean();i.anova.residuals=r.residuals(t,a),i.anova.ssr=r.ssr(a,s),i.anova.msr=i.anova.ssr/(e[0].length-1),i.anova.sse=r.sse(t,a),i.anova.mse=i.anova.sse/(t.length-(e[0].length-1)-1),i.anova.sst=r.sst(t,s),i.anova.mst=i.anova.sst/(t.length-1),i.anova.r2=1-i.anova.sse/i.anova.sst,i.anova.r2<0&&(i.anova.r2=0),i.anova.fratio=i.anova.msr/i.anova.mse,i.anova.pvalue=r.anovaftest(i.anova.fratio,e[0].length-1,t.length-(e[0].length-1)-1),i.anova.rmse=Math.sqrt(i.anova.mse),i.anova.r2adj=1-i.anova.mse/i.anova.mst,i.anova.r2adj<0&&(i.anova.r2adj=0),i.stats=new Array(e[0].length);for(var l,u,c,h=r.xtranspxinv(e),f=0;f<o.length;f++)l=Math.sqrt(i.anova.mse*Math.abs(h[f][f])),u=Math.abs(o[f]/l),c=r.ttest(u,t.length-e[0].length-1,n),i.stats[f]=[o[f],l,u,c];return i.regress=o,i},xtranspx:function(e){return r.matrixmult(e.transpose(),e)},xtranspxinv:function(e){var t=r.matrixmult(e.transpose(),e);return r.inv(t)},jMatYBar:function(e,t){var n=r.matrixmult(e,t);return new r(n)},residuals:function(e,t){return r.matrixsubtract(e,t)},ssr:function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},sse:function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t[r],2);return n},sst:function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},matrixsubtract:function(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++){n[o]=new Array(e[o].length);for(var i=0;i<e[o].length;i++)n[o][i]=e[o][i]-t[o][i]}return r(n)}}),r.jStat=r,r)},function(e,t,n){var r=n(1),o=n(0);t.UNIQUE=function(){for(var e=[],t=0;t<arguments.length;++t){for(var n=!1,r=arguments[t],o=0;o<e.length&&!(n=e[o]===r);++o);n||e.push(r)}return e},t.FLATTEN=r.flatten,t.ARGS2ARRAY=function(){return Array.prototype.slice.call(arguments,0)},t.REFERENCE=function(e,t){if(!arguments.length)return o.error;try{for(var n=t.split("."),r=e,i=0;i<n.length;++i){var a=n[i];if("]"===a[a.length-1]){var s=a.indexOf("["),l=a.substring(s+1,a.length-1);r=r[a.substring(0,s)][l]}else r=r[a]}return r}catch(e){}},t.JOIN=function(e,t){return e.join(t)},t.NUMBERS=function(){return r.flatten(arguments).filter((function(e){return"number"==typeof e}))}},function(e,t,n){var r=n(0),o=n(10),i=n(6),a=n(1),s=n(26);function l(e){return/^[01]{1,10}$/.test(e)}t.BESSELI=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.besseli(e,t)},t.BESSELJ=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.besselj(e,t)},t.BESSELK=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.besselk(e,t)},t.BESSELY=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.bessely(e,t)},t.BIN2DEC=function(e){if(!l(e))return r.num;var t=parseInt(e,2),n=e.toString();return 10===n.length&&"1"===n.substring(0,1)?parseInt(n.substring(1),2)-512:t},t.BIN2HEX=function(e,t){if(!l(e))return r.num;var n=e.toString();if(10===n.length&&"1"===n.substring(0,1))return(0xfffffffe00+parseInt(n.substring(1),2)).toString(16);var o=parseInt(e,2).toString(16);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num},t.BIN2OCT=function(e,t){if(!l(e))return r.num;var n=e.toString();if(10===n.length&&"1"===n.substring(0,1))return(1073741312+parseInt(n.substring(1),2)).toString(8);var o=parseInt(e,2).toString(8);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num},t.BITAND=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e&t},t.BITLSHIFT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e<<t:e>>-t},t.BITOR=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e|t},t.BITRSHIFT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e>>t:e<<-t},t.BITXOR=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e^t},t.COMPLEX=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return e;if("i"!==(n=void 0===n?"i":n)&&"j"!==n)return r.value;if(0===e&&0===t)return 0;if(0===e)return 1===t?n:t.toString()+n;if(0===t)return e.toString();var o=t>0?"+":"";return e.toString()+o+(1===t?n:t.toString()+n)},t.CONVERT=function(e,t,n){if((e=a.parseNumber(e))instanceof Error)return e;for(var o,i=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["ångström","Å",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic ångström","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,7.58660370370369e-8],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","°",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519.538],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdestärke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square ångström","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988.110336],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],s={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,0x1000000000000000,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},l={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]},u=null,c=null,h=t,f=n,d=1,m=1,p=0;p<i.length;p++)o=null===i[p][2]?[]:i[p][2],(i[p][1]===h||o.indexOf(h)>=0)&&(u=i[p]),(i[p][1]===f||o.indexOf(f)>=0)&&(c=i[p]);if(null===u){var y=s[t.substring(0,2)],v=l[t.substring(0,1)];"da"===t.substring(0,2)&&(v=["dekao",10,"da"]),y?(d=y[2],h=t.substring(2)):v&&(d=v[1],h=t.substring(v[2].length));for(var g=0;g<i.length;g++)o=null===i[g][2]?[]:i[g][2],(i[g][1]===h||o.indexOf(h)>=0)&&(u=i[g])}if(null===c){var w=s[n.substring(0,2)],b=l[n.substring(0,1)];"da"===n.substring(0,2)&&(b=["dekao",10,"da"]),w?(m=w[2],f=n.substring(2)):b&&(m=b[1],f=n.substring(b[2].length));for(var _=0;_<i.length;_++)o=null===i[_][2]?[]:i[_][2],(i[_][1]===f||o.indexOf(f)>=0)&&(c=i[_])}return null===u||null===c||u[3]!==c[3]?r.na:e*u[6]*d/(c[6]*m)},t.DEC2BIN=function(e,t){if((e=a.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,3}$/.test(e)||e<-512||e>511)return r.num;if(e<0)return"1"+i.REPT("0",9-(512+e).toString(2).length)+(512+e).toString(2);var n=parseInt(e,10).toString(2);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?i.REPT("0",t-n.length)+n:r.num},t.DEC2HEX=function(e,t){if((e=a.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,12}$/.test(e)||e<-549755813888||e>549755813887)return r.num;if(e<0)return(1099511627776+e).toString(16);var n=parseInt(e,10).toString(16);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?i.REPT("0",t-n.length)+n:r.num},t.DEC2OCT=function(e,t){if((e=a.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,9}$/.test(e)||e<-536870912||e>536870911)return r.num;if(e<0)return(1073741824+e).toString(8);var n=parseInt(e,10).toString(8);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?i.REPT("0",t-n.length)+n:r.num},t.DELTA=function(e,t){return t=void 0===t?0:t,e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e===t?1:0},t.ERF=function(e,t){return t=void 0===t?0:t,e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:o.erf(e)},t.ERF.PRECISE=function(){throw new Error("ERF.PRECISE is not implemented")},t.ERFC=function(e){return isNaN(e)?r.value:o.erfc(e)},t.ERFC.PRECISE=function(){throw new Error("ERFC.PRECISE is not implemented")},t.GESTEP=function(e,t){return t=t||0,e=a.parseNumber(e),a.anyIsError(t,e)?e:e>=t?1:0},t.HEX2BIN=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=10===e.length&&"f"===e.substring(0,1).toLowerCase(),o=n?parseInt(e,16)-1099511627776:parseInt(e,16);if(o<-512||o>511)return r.num;if(n)return"1"+i.REPT("0",9-(512+o).toString(2).length)+(512+o).toString(2);var a=o.toString(2);return void 0===t?a:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=a.length?i.REPT("0",t-a.length)+a:r.num},t.HEX2DEC=function(e){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var t=parseInt(e,16);return t>=549755813888?t-1099511627776:t},t.HEX2OCT=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=parseInt(e,16);if(n>536870911&&n<0xffe0000000)return r.num;if(n>=0xffe0000000)return(n-0xffc0000000).toString(8);var o=n.toString(8);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num},t.IMABS=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:Math.sqrt(Math.pow(n,2)+Math.pow(o,2))},t.IMAGINARY=function(e){if(void 0===e||!0===e||!1===e)return r.value;if(0===e||"0"===e)return 0;if(["i","j"].indexOf(e)>=0)return 1;var t=(e=e.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j")).indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var o=e.substring(e.length-1,e.length),i="i"===o||"j"===o;return t>=0||n>=0?i?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(t+1,e.length-1)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:-Number(e.substring(n+1,e.length-1)):r.num:i?isNaN(e.substring(0,e.length-1))?r.num:e.substring(0,e.length-1):isNaN(e)?r.num:0},t.IMARGUMENT=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:0===n&&0===o?r.div0:0===n&&o>0?Math.PI/2:0===n&&o<0?-Math.PI/2:0===o&&n>0?0:0===o&&n<0?-Math.PI:n>0?Math.atan(o/n):n<0&&o>=0?Math.atan(o/n)+Math.PI:Math.atan(o/n)-Math.PI},t.IMCONJUGATE=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",0!==o?t.COMPLEX(n,-o,i):e},t.IMCOS=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.cos(n)*(Math.exp(o)+Math.exp(-o))/2,-Math.sin(n)*(Math.exp(o)-Math.exp(-o))/2,i)},t.IMCOSH=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.cos(o)*(Math.exp(n)+Math.exp(-n))/2,Math.sin(o)*(Math.exp(n)-Math.exp(-n))/2,i)},t.IMCOT=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:t.IMDIV(t.IMCOS(e),t.IMSIN(e))},t.IMDIV=function(e,n){var o=t.IMREAL(e),i=t.IMAGINARY(e),s=t.IMREAL(n),l=t.IMAGINARY(n);if(a.anyIsError(o,i,s,l))return r.value;var u=e.substring(e.length-1),c=n.substring(n.length-1),h="i";if(("j"===u||"j"===c)&&(h="j"),0===s&&0===l)return r.num;var f=s*s+l*l;return t.COMPLEX((o*s+i*l)/f,(i*s-o*l)/f,h)},t.IMEXP=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);i="i"===i||"j"===i?i:"i";var s=Math.exp(n);return t.COMPLEX(s*Math.cos(o),s*Math.sin(o),i)},t.IMLN=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+o*o)),Math.atan(o/n),i)},t.IMLOG10=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+o*o))/Math.log(10),Math.atan(o/n)/Math.log(10),i)},t.IMLOG2=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+o*o))/Math.log(2),Math.atan(o/n)/Math.log(2),i)},t.IMPOWER=function(e,n){n=a.parseNumber(n);var o=t.IMREAL(e),i=t.IMAGINARY(e);if(a.anyIsError(n,o,i))return r.value;var s=e.substring(e.length-1);s="i"===s||"j"===s?s:"i";var l=Math.pow(t.IMABS(e),n),u=t.IMARGUMENT(e);return t.COMPLEX(l*Math.cos(n*u),l*Math.sin(n*u),s)},t.IMPRODUCT=function(){var e=arguments[0];if(!arguments.length)return r.value;for(var n=1;n<arguments.length;n++){var o=t.IMREAL(e),i=t.IMAGINARY(e),s=t.IMREAL(arguments[n]),l=t.IMAGINARY(arguments[n]);if(a.anyIsError(o,i,s,l))return r.value;e=t.COMPLEX(o*s-i*l,o*l+i*s)}return e},t.IMREAL=function(e){if(void 0===e||!0===e||!1===e)return r.value;if(0===e||"0"===e)return 0;if(["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(e)>=0)return 0;var t=e.indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var o=e.substring(e.length-1,e.length),i="i"===o||"j"===o;return t>=0||n>=0?i?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(0,t)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:Number(e.substring(0,n)):r.num:i?isNaN(e.substring(0,e.length-1))?r.num:0:isNaN(e)?r.num:e},t.IMSEC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:t.IMDIV("1",t.IMCOS(e))},t.IMSECH=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:t.IMDIV("1",t.IMCOSH(e))},t.IMSIN=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.sin(n)*(Math.exp(o)+Math.exp(-o))/2,Math.cos(n)*(Math.exp(o)-Math.exp(-o))/2,i)},t.IMSINH=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.cos(o)*(Math.exp(n)-Math.exp(-n))/2,Math.sin(o)*(Math.exp(n)+Math.exp(-n))/2,i)},t.IMSQRT=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);i="i"===i||"j"===i?i:"i";var s=Math.sqrt(t.IMABS(e)),l=t.IMARGUMENT(e);return t.COMPLEX(s*Math.cos(l/2),s*Math.sin(l/2),i)},t.IMCSC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.num:t.IMDIV("1",t.IMSIN(e))},t.IMCSCH=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.num:t.IMDIV("1",t.IMSINH(e))},t.IMSUB=function(e,t){var n=this.IMREAL(e),o=this.IMAGINARY(e),i=this.IMREAL(t),s=this.IMAGINARY(t);if(a.anyIsError(n,o,i,s))return r.value;var l=e.substring(e.length-1),u=t.substring(t.length-1),c="i";return("j"===l||"j"===u)&&(c="j"),this.COMPLEX(n-i,o-s,c)},t.IMSUM=function(){if(!arguments.length)return r.value;for(var e=a.flatten(arguments),t=e[0],n=1;n<e.length;n++){var o=this.IMREAL(t),i=this.IMAGINARY(t),s=this.IMREAL(e[n]),l=this.IMAGINARY(e[n]);if(a.anyIsError(o,i,s,l))return r.value;t=this.COMPLEX(o+s,i+l)}return t},t.IMTAN=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:this.IMDIV(this.IMSIN(e),this.IMCOS(e))},t.OCT2BIN=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return r.num;var n=10===e.length&&"7"===e.substring(0,1),o=n?parseInt(e,8)-1073741824:parseInt(e,8);if(o<-512||o>511)return r.num;if(n)return"1"+i.REPT("0",9-(512+o).toString(2).length)+(512+o).toString(2);var a=o.toString(2);return void 0===t?a:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=a.length?i.REPT("0",t-a.length)+a:r.num},t.OCT2DEC=function(e){if(!/^[0-7]{1,10}$/.test(e))return r.num;var t=parseInt(e,8);return t>=536870912?t-1073741824:t},t.OCT2HEX=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return r.num;var n=parseInt(e,8);if(n>=536870912)return"ff"+(n+3221225472).toString(16);var o=n.toString(16);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num}},function(e,t,n){"use strict";t.__esModule=!0,t.default=["ABS","ACCRINT","ACOS","ACOSH","ACOT","ACOTH","ADD","AGGREGATE","AND","ARABIC","ARGS2ARRAY","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETA.DIST","BETA.INV","BETADIST","BETAINV","BIN2DEC","BIN2HEX","BIN2OCT","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BINOMDIST","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CEILING","CEILINGMATH","CEILINGPRECISE","CHAR","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHOOSE","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUNTIN","COUNTUNIQUE","COVARIANCE.P","COVARIANCE.S","CSC","CSCH","CUMIPMT","CUMPRINC","DATE","DATEVALUE","DAY","DAYS","DAYS360","DB","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DIVIDE","DOLLARDE","DOLLARFR","E","EDATE","EFFECT","EOMONTH","EQ","ERF","ERFC","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","F.DIST","F.DIST.RT","F.INV","F.INV.RT","FACT","FACTDOUBLE","FALSE","FDIST","FDISTRT","FIND","FINV","FINVRT","FISHER","FISHERINV","FLATTEN","FLOOR","FORECAST","FREQUENCY","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMA.INV","GAMMADIST","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GROWTH","GTE","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HOUR","HTML2TEXT","HYPGEOM.DIST","HYPGEOMDIST","IF","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INT","INTERCEPT","INTERVAL","IPMT","IRR","ISBINARY","ISBLANK","ISEVEN","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISODD","ISOWEEKNUM","ISPMT","ISTEXT","JOIN","KURT","LARGE","LCM","LEFT","LEN","LINEST","LN","LOG","LOG10","LOGEST","LOGNORM.DIST","LOGNORM.INV","LOGNORMDIST","LOGNORMINV","LOWER","LT","LTE","MATCH","MAX","MAXA","MEDIAN","MID","MIN","MINA","MINUS","MINUTE","MIRR","MOD","MODE.MULT","MODE.SNGL","MODEMULT","MODESNGL","MONTH","MROUND","MULTINOMIAL","MULTIPLY","NE","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NOMINAL","NORM.DIST","NORM.INV","NORM.S.DIST","NORM.S.INV","NORMDIST","NORMINV","NORMSDIST","NORMSINV","NOT","NOW","NPER","NPV","NUMBERS","OCT2BIN","OCT2DEC","OCT2HEX","ODD","OR","PDURATION","PEARSON","PERCENTILEEXC","PERCENTILEINC","PERCENTRANKEXC","PERCENTRANKINC","PERMUT","PERMUTATIONA","PHI","PI","PMT","POISSON.DIST","POISSONDIST","POW","POWER","PPMT","PROB","PRODUCT","PROPER","PV","QUARTILE.EXC","QUARTILE.INC","QUARTILEEXC","QUARTILEINC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANKAVG","RANKEQ","RATE","REFERENCE","REGEXEXTRACT","REGEXMATCH","REGEXREPLACE","REPLACE","REPT","RIGHT","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","SEARCH","SEC","SECH","SECOND","SERIESSUM","SIGN","SIN","SINH","SKEW","SKEW.P","SKEWP","SLN","SLOPE","SMALL","SPLIT","SPLIT","SQRT","SQRTPI","STANDARDIZE","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STDEVS","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","T.DIST","T.DIST.2T","T.DIST.RT","T.INV","T.INV.2T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","TDIST","TDIST2T","TDISTRT","TIME","TIMEVALUE","TINV","TINV2T","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","UNICHAR","UNICODE","UNIQUE","UPPER","VAR.P","VAR.S","VARA","VARP","VARPA","VARS","WEEKDAY","WEEKNUM","WEIBULL.DIST","WEIBULLDIST","WORKDAY","XIRR","XNPV","XOR","YEAR","YEARFRAC"]},function(e,t,n){"use strict";function r(e){var t=parseInt(e,10);return isNaN(t)?-1:Math.max(t-1,-1)}function o(e){var t="";return e>=0&&(t=""+(e+1)),t}t.__esModule=!0,t.rowLabelToIndex=r,t.rowIndexToLabel=o,t.columnLabelToIndex=s,t.columnIndexToLabel=l,t.extractLabel=function(e){if("string"!=typeof e||!u.test(e))return[];var t=e.toUpperCase().match(u),n=t[1],o=t[2],i=t[3],a=t[4];return[{index:r(a),label:a,isAbsolute:"$"===i},{index:s(o),label:o,isAbsolute:"$"===n}]},t.toLabel=function(e,t){var n=(e.isAbsolute?"$":"")+o(e.index);return(t.isAbsolute?"$":"")+l(t.index)+n};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",a=i.length;function s(e){var t=0;if("string"==typeof e)for(var n=0,r=(e=e.toUpperCase()).length-1;n<e.length;n+=1,r-=1)t+=Math.pow(a,r)*(i.indexOf(e[n])+1);return--t}function l(e){for(var t="";e>=0;)t=String.fromCharCode(e%a+97)+t,e=Math.floor(e/a)-1;return t.toUpperCase()}var u=/^([$])?([A-Za-z]+)([$])?([0-9]+)$/},function(e,t,n){"use strict";t.__esModule=!0,t.rowLabelToIndex=t.rowIndexToLabel=t.columnLabelToIndex=t.columnIndexToLabel=t.toLabel=t.extractLabel=t.error=t.Parser=t.ERROR_VALUE=t.ERROR_REF=t.ERROR_NUM=t.ERROR_NULL=t.ERROR_NOT_AVAILABLE=t.ERROR_NAME=t.ERROR_DIV_ZERO=t.ERROR=t.SUPPORTED_FORMULAS=void 0;var r=l(n(16)),o=l(n(13)),i=n(2),a=l(i),s=n(14);function l(e){return e&&e.__esModule?e:{default:e}}t.SUPPORTED_FORMULAS=o.default,t.ERROR=i.ERROR,t.ERROR_DIV_ZERO=i.ERROR_DIV_ZERO,t.ERROR_NAME=i.ERROR_NAME,t.ERROR_NOT_AVAILABLE=i.ERROR_NOT_AVAILABLE,t.ERROR_NULL=i.ERROR_NULL,t.ERROR_NUM=i.ERROR_NUM,t.ERROR_REF=i.ERROR_REF,t.ERROR_VALUE=i.ERROR_VALUE,t.Parser=r.default,t.error=a.default,t.extractLabel=s.extractLabel,t.toLabel=s.toLabel,t.columnIndexToLabel=s.columnIndexToLabel,t.columnLabelToIndex=s.columnLabelToIndex,t.rowIndexToLabel=s.rowIndexToLabel,t.rowLabelToIndex=s.rowLabelToIndex},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(17)),o=h(n(18)),i=n(39),a=n(40),s=n(3),l=n(2),u=h(l),c=n(14);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n.parser=new i.Parser,n.parser.yy={toNumber:s.toNumber,trimEdges:a.trimEdges,invertNumber:s.invertNumber,throwError:function(e){return n._throwError(e)},callVariable:function(e){return n._callVariable(e)},evaluateByOperator:o.default,callFunction:function(e,t){return n._callFunction(e,t)},cellValue:function(e){return n._callCellValue(e)},rangeValue:function(e,t){return n._callRangeValue(e,t)}},n.variables=Object.create(null),n.functions=Object.create(null),n.setVariable("TRUE",!0).setVariable("FALSE",!1).setVariable("NULL",null),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.parse=function(e){var t=null,n=null;try{t=""===e?"":this.parser.parse(e)}catch(e){n=(0,u.default)(e.message)||(0,u.default)(l.ERROR)}return t instanceof Error&&(n=(0,u.default)(t.message)||(0,u.default)(l.ERROR),t=null),{error:n,result:t}},t.prototype.setVariable=function(e,t){return this.variables[e]=t,this},t.prototype.getVariable=function(e){return this.variables[e]},t.prototype._callVariable=function(e){var t=this.getVariable(e);if(this.emit("callVariable",e,(function(e){void 0!==e&&(t=e)})),void 0===t)throw Error(l.ERROR_NAME);return t},t.prototype.setFunction=function(e,t){return this.functions[e]=t,this},t.prototype.getFunction=function(e){return this.functions[e]},t.prototype._callFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.getFunction(e),r=void 0;return n&&(r=n(t)),this.emit("callFunction",e,t,(function(e){void 0!==e&&(r=e)})),void 0===r?(0,o.default)(e,t):r},t.prototype._callCellValue=function(e){e=e.toUpperCase();var t=(0,c.extractLabel)(e),n=t[0],r=t[1],o=void 0;return this.emit("callCellValue",{label:e,row:n,column:r},(function(e){o=e})),o},t.prototype._callRangeValue=function(e,t){e=e.toUpperCase(),t=t.toUpperCase();var n=(0,c.extractLabel)(e),r=n[0],o=n[1],i=(0,c.extractLabel)(t),a=i[0],s=i[1],l={},u={};r.index<=a.index?(l.row=r,u.row=a):(l.row=a,u.row=r),o.index<=s.index?(l.column=o,u.column=s):(l.column=s,u.column=o),l.label=(0,c.toLabel)(l.row,l.column),u.label=(0,c.toLabel)(u.row,u.column);var h=[];return this.emit("callRangeValue",l,u,(function(){h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]})),h},t.prototype._throwError=function(e){if((0,l.isValidStrict)(e))throw Error(e);throw Error(l.ERROR)},t}(r.default);t.default=f},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e=e.toUpperCase(),!g[e])throw Error(y.ERROR_NAME);return g[e].apply(g,t)},t.registerOperation=w;var r=v(n(19)),o=v(n(20)),i=v(n(21)),a=v(n(22)),s=v(n(23)),l=v(n(31)),u=v(n(32)),c=v(n(33)),h=v(n(34)),f=v(n(35)),d=v(n(36)),m=v(n(37)),p=v(n(38)),y=n(2);function v(e){return e&&e.__esModule?e:{default:e}}var g=Object.create(null);function w(e,t){Array.isArray(e)||(e=[e.toUpperCase()]),e.forEach((function(e){t.isFactory?g[e]=t(e):g[e]=t}))}w(r.default.SYMBOL,r.default),w(o.default.SYMBOL,o.default),w(i.default.SYMBOL,i.default),w(a.default.SYMBOL,a.default),w(p.default.SYMBOL,p.default),w(s.default.SYMBOL,s.default),w(l.default.SYMBOL,l.default),w(u.default.SYMBOL,u.default),w(c.default.SYMBOL,c.default),w(h.default.SYMBOL,h.default),w(d.default.SYMBOL,d.default),w(m.default.SYMBOL,m.default),w(f.default.SYMBOL,f.default)},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=a;var r=n(3),o=n(2),i=t.SYMBOL="+";function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=n.reduce((function(e,t){return e+(0,r.toNumber)(t)}),(0,r.toNumber)(e));if(isNaN(a))throw Error(o.ERROR_VALUE);return a}a.SYMBOL=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL="&";function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+t.toString()}),"")}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=a;var r=n(3),o=n(2),i=t.SYMBOL="/";function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=n.reduce((function(e,t){return e/(0,r.toNumber)(t)}),(0,r.toNumber)(e));if(a===1/0)throw Error(o.ERROR_DIV_ZERO);if(isNaN(a))throw Error(o.ERROR_VALUE);return a}a.SYMBOL=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL="=";function o(e,t){return e===t}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=l;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(24)),i=(r=n(13))&&r.__esModule?r:{default:r},a=n(2),s=t.SYMBOL=i.default;function l(e){return function(){var t=(e=e.toUpperCase()).split("."),n=!1,r=void 0;if(1===t.length)o[t[0]]&&(n=!0,r=o[t[0]].apply(o,arguments));else{for(var i=t.length,s=0,l=o;s<i;)if(l=l[t[s]],s++,!l){l=null;break}l&&(n=!0,r=l.apply(void 0,arguments))}if(!n)throw Error(a.ERROR_NAME);return r}}l.isFactory=!0,l.SYMBOL=s},function(e,t,n){var r=[n(25),n(27),n(12),n(28),n(4),n(6),n(9),n(29),n(8),n(30),n(5),n(11)];for(var o in r){var i=r[o];for(var a in i)t[a]=t[a]||i[a]}},function(e,t,n){var r=n(4),o=n(5),i=n(12),a=n(9);function s(e,t){if(t)for(var n in t)e[n]=t[n];return e}t.BETADIST=o.BETA.DIST,t.BETAINV=o.BETA.INV,t.BINOMDIST=o.BINOM.DIST,t.CEILING=t.ISOCEILING=s(r.CEILING.MATH,r.CEILING),t.CEILINGMATH=r.CEILING.MATH,t.CEILINGPRECISE=r.CEILING.PRECISE,t.CHIDIST=o.CHISQ.DIST,t.CHIDISTRT=o.CHISQ.DIST.RT,t.CHIINV=o.CHISQ.INV,t.CHIINVRT=o.CHISQ.INV.RT,t.CHITEST=o.CHISQ.TEST,t.CONFIDENCE=s(o.CONFIDENCE.NORM,o.CONFIDENCE),t.COVAR=o.COVARIANCE.P,t.COVARIANCEP=o.COVARIANCE.P,t.COVARIANCES=o.COVARIANCE.S,t.CRITBINOM=o.BINOM.INV,t.EXPONDIST=o.EXPON.DIST,t.ERFCPRECISE=i.ERFC.PRECISE,t.ERFPRECISE=i.ERF.PRECISE,t.FDIST=o.F.DIST,t.FDISTRT=o.F.DIST.RT,t.FINVRT=o.F.INV.RT,t.FINV=o.F.INV,t.FLOOR=s(r.FLOOR.MATH,r.FLOOR),t.FLOORMATH=r.FLOOR.MATH,t.FLOORPRECISE=r.FLOOR.PRECISE,t.FTEST=o.F.TEST,t.GAMMADIST=o.GAMMA.DIST,t.GAMMAINV=o.GAMMA.INV,t.GAMMALNPRECISE=o.GAMMALN.PRECISE,t.HYPGEOMDIST=o.HYPGEOM.DIST,t.LOGINV=o.LOGNORM.INV,t.LOGNORMINV=o.LOGNORM.INV,t.LOGNORMDIST=o.LOGNORM.DIST,t.MODE=s(o.MODE.SNGL,o.MODE),t.MODEMULT=o.MODE.MULT,t.MODESNGL=o.MODE.SNGL,t.NEGBINOMDIST=o.NEGBINOM.DIST,t.NETWORKDAYSINTL=a.NETWORKDAYS.INTL,t.NORMDIST=o.NORM.DIST,t.NORMINV=o.NORM.INV,t.NORMSDIST=o.NORM.S.DIST,t.NORMSINV=o.NORM.S.INV,t.PERCENTILE=s(o.PERCENTILE.EXC,o.PERCENTILE),t.PERCENTILEEXC=o.PERCENTILE.EXC,t.PERCENTILEINC=o.PERCENTILE.INC,t.PERCENTRANK=s(o.PERCENTRANK.INC,o.PERCENTRANK),t.PERCENTRANKEXC=o.PERCENTRANK.EXC,t.PERCENTRANKINC=o.PERCENTRANK.INC,t.POISSON=s(o.POISSON.DIST,o.POISSON),t.POISSONDIST=o.POISSON.DIST,t.QUARTILE=s(o.QUARTILE.INC,o.QUARTILE),t.QUARTILEEXC=o.QUARTILE.EXC,t.QUARTILEINC=o.QUARTILE.INC,t.RANK=s(o.RANK.EQ,o.RANK),t.RANKAVG=o.RANK.AVG,t.RANKEQ=o.RANK.EQ,t.SKEWP=o.SKEW.P,t.STDEV=s(o.STDEV.S,o.STDEV),t.STDEVP=o.STDEV.P,t.STDEVS=o.STDEV.S,t.TDIST=o.T.DIST,t.TDISTRT=o.T.DIST.RT,t.TINV=o.T.INV,t.TTEST=o.T.TEST,t.VAR=s(o.VAR.S,o.VAR),t.VARP=o.VAR.P,t.VARS=o.VAR.S,t.WEIBULL=s(o.WEIBULL.DIST,o.WEIBULL),t.WEIBULLDIST=o.WEIBULL.DIST,t.WORKDAYINTL=a.WORKDAY.INTL,t.ZTEST=o.Z.TEST},function(e,t,n){var r;r=function(e){e.version="1.0.2";var t=Math;function n(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function r(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function o(e,t,n,o,i){return function(n,a){if(o){if(0===n)return 1==o?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:r(n,a|=0,e(n),t(n),i)}}var i,a,s,l,u,c,h,f,d,m,p,y,v,g=function(){var e=.636619772,o=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),i=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function l(r){var l=0,u=0,c=0,h=r*r;if(r<8)l=(u=n(o,h))/(c=n(i,h));else{var f=r-.785398164;u=n(a,h=64/h),c=n(s,h),l=t.sqrt(e/r)*(t.cos(f)*u-t.sin(f)*c*8/r)}return l}var u=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),h=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),f=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function d(r){var o=0,i=0,a=0,s=r*r,l=t.abs(r)-2.356194491;return Math.abs(r)<8?o=(i=r*n(u,s))/(a=n(c,s)):(i=n(h,s=64/s),a=n(f,s),o=t.sqrt(e/t.abs(r))*(t.cos(l)*i-t.sin(l)*a*8/t.abs(r)),r<0&&(o=-o)),o}return function e(n,o){if(o=Math.round(o),!isFinite(n))return isNaN(n)?n:0;if(o<0)return(o%2?-1:1)*e(n,-o);if(n<0)return(o%2?-1:1)*e(-n,o);if(0===o)return l(n);if(1===o)return d(n);if(0===n)return 0;var i=0;if(n>o)i=r(n,o,l(n),d(n),-1);else{for(var a=!1,s=0,u=0,c=1,h=0,f=2/n,m=2*t.floor((o+t.floor(t.sqrt(40*o)))/2);m>0;m--)h=m*f*c-s,s=c,c=h,t.abs(c)>1e10&&(c*=1e-10,s*=1e-10,i*=1e-10,u*=1e-10),a&&(u+=c),a=!a,m==o&&(i=s);i/=u=2*u-c}return i}}(),w=(i=.636619772,a=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),s=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),l=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),u=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),c=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),h=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),f=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),d=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),o((function(e){var r=0,o=0,c=0,h=e*e,f=e-.785398164;return e<8?r=(o=n(a,h))/(c=n(s,h))+i*g(e,0)*t.log(e):(o=n(l,h=64/h),c=n(u,h),r=t.sqrt(i/e)*(t.sin(f)*o+t.cos(f)*c*8/e)),r}),(function(e){var r=0,o=0,a=0,s=e*e,l=e-2.356194491;return e<8?r=(o=e*n(c,s))/(a=n(h,s))+i*(g(e,1)*t.log(e)-1/e):(o=n(f,s=64/s),a=n(d,s),r=t.sqrt(i/e)*(t.sin(l)*o+t.cos(l)*a*8/e)),r}),0,1,-1)),b=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),p=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),v=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(r,o){if(0===(o=Math.round(o)))return function(e){return e<=3.75?n(m,e*e/14.0625):t.exp(t.abs(e))/t.sqrt(t.abs(e))*n(p,3.75/t.abs(e))}(r);if(1===o)return function(e){return e<3.75?e*n(y,e*e/14.0625):(e<0?-1:1)*t.exp(t.abs(e))/t.sqrt(t.abs(e))*n(v,3.75/t.abs(e))}(r);if(o<0)return NaN;if(0===t.abs(r))return 0;if(r==1/0)return 1/0;var i,a=0,s=2/t.abs(r),l=0,u=1,c=0;for(i=2*t.round((o+t.round(t.sqrt(40*o)))/2);i>0;i--)c=i*s*u+l,l=u,u=c,t.abs(u)>1e10&&(u*=1e-10,l*=1e-10,a*=1e-10),i==o&&(a=l);return a*=e(r,0)/u,r<0&&o%2?-a:a}),_=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),r=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse(),i=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),a=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return o((function(o){return o<=2?-t.log(o/2)*b(o,0)+n(e,o*o/4):t.exp(-o)/t.sqrt(o)*n(r,2/o)}),(function(e){return e<=2?t.log(e/2)*b(e,1)+1/e*n(i,e*e/4):t.exp(-e)/t.sqrt(e)*n(a,2/e)}),0,2,1)}();e.besselj=g,e.bessely=w,e.besseli=b,e.besselk=_},"undefined"==typeof DO_NOT_EXPORT_BESSEL?r(t):r({})},function(e,t,n){var r=n(0),o=n(5),i=n(4),a=n(1),s=n(7);function l(e){var t=[];return a.arrayEach(e,(function(e){e&&t.push(e)})),t}function u(e,t){for(var n={},r=1;r<e[0].length;++r)n[r]=!0;var o=t[0].length;for(r=1;r<t.length;++r)t[r].length>o&&(o=t[r].length);for(var i=1;i<e.length;++i)for(var a=1;a<e[i].length;++a){for(var l=!1,u=!1,c=0;c<t.length;++c){var h=t[c];if(!(h.length<o)){var f=h[0];if(e[i][0]===f){u=!0;for(var d=1;d<h.length;++d)if(!l)if(void 0===h[d]||"*"===h[d])l=!0;else{var m=s.parse(h[d]+""),p=[s.createToken(e[i][a],s.TOKEN_TYPE_LITERAL)].concat(m);l=s.compute(p)}}}}u&&(n[a]=n[a]&&l)}for(var y=[],v=0;v<e[0].length;++v)n[v]&&y.push(v-1);return y}t.FINDFIELD=function(e,t){var n=null;return a.arrayEach(e,(function(e,r){if(e[0]===t)return n=r,!1})),null==n?r.value:n},t.DAVERAGE=function(e,n,o){if(isNaN(n)&&"string"!=typeof n)return r.value;var i=u(e,o),s=[];if("string"==typeof n){var l=t.FINDFIELD(e,n);s=a.rest(e[l])}else s=a.rest(e[n]);var c=0;return a.arrayEach(i,(function(e){c+=s[e]})),0===i.length?r.div0:c/i.length},t.DCOUNT=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=a.rest(e[c])}else l=a.rest(e[n]);var h=[];return a.arrayEach(s,(function(e){h.push(l[e])})),o.COUNT(h)},t.DCOUNTA=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=a.rest(e[c])}else l=a.rest(e[n]);var h=[];return a.arrayEach(s,(function(e){h.push(l[e])})),o.COUNTA(h)},t.DGET=function(e,n,o){if(isNaN(n)&&"string"!=typeof n)return r.value;var i=u(e,o),s=[];if("string"==typeof n){var l=t.FINDFIELD(e,n);s=a.rest(e[l])}else s=a.rest(e[n]);return 0===i.length?r.value:i.length>1?r.num:s[i[0]]},t.DMAX=function(e,n,o){if(isNaN(n)&&"string"!=typeof n)return r.value;var i=u(e,o),s=[];if("string"==typeof n){var l=t.FINDFIELD(e,n);s=a.rest(e[l])}else s=a.rest(e[n]);var c=s[i[0]];return a.arrayEach(i,(function(e){c<s[e]&&(c=s[e])})),c},t.DMIN=function(e,n,o){if(isNaN(n)&&"string"!=typeof n)return r.value;var i=u(e,o),s=[];if("string"==typeof n){var l=t.FINDFIELD(e,n);s=a.rest(e[l])}else s=a.rest(e[n]);var c=s[i[0]];return a.arrayEach(i,(function(e){c>s[e]&&(c=s[e])})),c},t.DPRODUCT=function(e,n,o){if(isNaN(n)&&"string"!=typeof n)return r.value;var i=u(e,o),s=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);s=a.rest(e[c])}else s=a.rest(e[n]);var h=[];a.arrayEach(i,(function(e){h.push(s[e])})),h=l(h);var f=1;return a.arrayEach(h,(function(e){f*=e})),f},t.DSTDEV=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),c=[];if("string"==typeof n){var h=t.FINDFIELD(e,n);c=a.rest(e[h])}else c=a.rest(e[n]);var f=[];return a.arrayEach(s,(function(e){f.push(c[e])})),f=l(f),o.STDEV.S(f)},t.DSTDEVP=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),c=[];if("string"==typeof n){var h=t.FINDFIELD(e,n);c=a.rest(e[h])}else c=a.rest(e[n]);var f=[];return a.arrayEach(s,(function(e){f.push(c[e])})),f=l(f),o.STDEV.P(f)},t.DSUM=function(e,n,o){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,o),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=a.rest(e[c])}else l=a.rest(e[n]);var h=[];return a.arrayEach(s,(function(e){h.push(l[e])})),i.SUM(h)},t.DVAR=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=a.rest(e[c])}else l=a.rest(e[n]);var h=[];return a.arrayEach(s,(function(e){h.push(l[e])})),o.VAR.S(h)},t.DVARP=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=a.rest(e[c])}else l=a.rest(e[n]);var h=[];return a.arrayEach(s,(function(e){h.push(l[e])})),o.VAR.P(h)}},function(e,t,n){var r=n(0),o=n(1),i=n(8);t.AND=function(){for(var e=o.flatten(arguments),t=!0,n=0;n<e.length;n++)e[n]||(t=!1);return t},t.CHOOSE=function(){if(arguments.length<2)return r.na;var e=arguments[0];return e<1||e>254||arguments.length<e+1?r.value:arguments[e]},t.FALSE=function(){return!1},t.IF=function(e,t,n){return e?t:n},t.IFERROR=function(e,t){return i.ISERROR(e)?t:e},t.IFNA=function(e,t){return e===r.na?t:e},t.NOT=function(e){return!e},t.OR=function(){for(var e=o.flatten(arguments),t=!1,n=0;n<e.length;n++)e[n]&&(t=!0);return t},t.TRUE=function(){return!0},t.XOR=function(){for(var e=o.flatten(arguments),t=0,n=0;n<e.length;n++)e[n]&&t++;return!!(1&Math.floor(Math.abs(t)))},t.SWITCH=function(){var e;if(arguments.length>0){var t=arguments[0],n=arguments.length-1,o=Math.floor(n/2),i=!1,a=n%2!=0,s=n%2==0?null:arguments[arguments.length-1];if(o)for(var l=0;l<o;l++)if(t===arguments[2*l+1]){e=arguments[2*l+2],i=!0;break}i||(e=a?s:r.na)}else e=r.value;return e}},function(e,t,n){var r=n(0),o=n(9),i=n(1);function a(e){return e&&e.getTime&&!isNaN(e.getTime())}function s(e){return e instanceof Date?e:new Date(e)}t.ACCRINT=function(e,t,n,i,l,u,c){return e=s(e),t=s(t),n=s(n),a(e)&&a(t)&&a(n)?i<=0||l<=0||-1===[1,2,4].indexOf(u)||-1===[0,1,2,3,4].indexOf(c)||n<=e?r.num:(c=c||0,(l=l||0)*i*o.YEARFRAC(e,n,c)):r.value},t.ACCRINTM=function(){throw new Error("ACCRINTM is not implemented")},t.AMORDEGRC=function(){throw new Error("AMORDEGRC is not implemented")},t.AMORLINC=function(){throw new Error("AMORLINC is not implemented")},t.COUPDAYBS=function(){throw new Error("COUPDAYBS is not implemented")},t.COUPDAYS=function(){throw new Error("COUPDAYS is not implemented")},t.COUPDAYSNC=function(){throw new Error("COUPDAYSNC is not implemented")},t.COUPNCD=function(){throw new Error("COUPNCD is not implemented")},t.COUPNUM=function(){throw new Error("COUPNUM is not implemented")},t.COUPPCD=function(){throw new Error("COUPPCD is not implemented")},t.CUMIPMT=function(e,n,o,a,s,l){if(e=i.parseNumber(e),n=i.parseNumber(n),o=i.parseNumber(o),i.anyIsError(e,n,o))return r.value;if(e<=0||n<=0||o<=0)return r.num;if(a<1||s<1||a>s)return r.num;if(0!==l&&1!==l)return r.num;var u=t.PMT(e,n,o,0,l),c=0;1===a&&0===l&&(c=-o,a++);for(var h=a;h<=s;h++)c+=1===l?t.FV(e,h-2,u,o,1)-u:t.FV(e,h-1,u,o,0);return c*e},t.CUMPRINC=function(e,n,o,a,s,l){if(e=i.parseNumber(e),n=i.parseNumber(n),o=i.parseNumber(o),i.anyIsError(e,n,o))return r.value;if(e<=0||n<=0||o<=0)return r.num;if(a<1||s<1||a>s)return r.num;if(0!==l&&1!==l)return r.num;var u=t.PMT(e,n,o,0,l),c=0;1===a&&(c=0===l?u+o*e:u,a++);for(var h=a;h<=s;h++)c+=l>0?u-(t.FV(e,h-2,u,o,1)-u)*e:u-t.FV(e,h-1,u,o,0)*e;return c},t.DB=function(e,t,n,o,a){if(a=void 0===a?12:a,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),i.anyIsError(e,t,n,o,a))return r.value;if(e<0||t<0||n<0||o<0)return r.num;if(-1===[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(a))return r.num;if(o>n)return r.num;if(t>=e)return 0;for(var s=(1-Math.pow(t/e,1/n)).toFixed(3),l=e*s*a/12,u=l,c=0,h=o===n?n-1:o,f=2;f<=h;f++)u+=c=(e-u)*s;return 1===o?l:o===n?(e-u)*s:c},t.DDB=function(e,t,n,o,a){if(a=void 0===a?2:a,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),i.anyIsError(e,t,n,o,a))return r.value;if(e<0||t<0||n<0||o<0||a<=0)return r.num;if(o>n)return r.num;if(t>=e)return 0;for(var s=0,l=0,u=1;u<=o;u++)s+=l=Math.min(a/n*(e-s),e-t-s);return l},t.DISC=function(){throw new Error("DISC is not implemented")},t.DOLLARDE=function(e,t){if(e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t))return r.value;if(t<0)return r.num;if(t>=0&&t<1)return r.div0;t=parseInt(t,10);var n=parseInt(e,10);n+=e%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t;var o=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1);return Math.round(n*o)/o},t.DOLLARFR=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?r.value:t<0?r.num:t>=0&&t<1?r.div0:(t=parseInt(t,10),parseInt(e,10)+e%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t)},t.DURATION=function(){throw new Error("DURATION is not implemented")},t.EFFECT=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?r.value:e<=0||t<1?r.num:(t=parseInt(t,10),Math.pow(1+e/t,t)-1)},t.FV=function(e,t,n,o,a){if(o=o||0,a=a||0,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),i.anyIsError(e,t,n,o,a))return r.value;var s;if(0===e)s=o+n*t;else{var l=Math.pow(1+e,t);s=1===a?o*l+n*(1+e)*(l-1)/e:o*l+n*(l-1)/e}return-s},t.FVSCHEDULE=function(e,t){if(e=i.parseNumber(e),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return r.value;for(var n=t.length,o=e,a=0;a<n;a++)o*=1+t[a];return o},t.INTRATE=function(){throw new Error("INTRATE is not implemented")},t.IPMT=function(e,n,o,a,s,l){if(s=s||0,l=l||0,e=i.parseNumber(e),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),s=i.parseNumber(s),l=i.parseNumber(l),i.anyIsError(e,n,o,a,s,l))return r.value;var u=t.PMT(e,o,a,s,l);return(1===n?1===l?0:-a:1===l?t.FV(e,n-2,u,a,1)-u:t.FV(e,n-1,u,a,0))*e},t.IRR=function(e,t){if(t=t||0,e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),i.anyIsError(e,t))return r.value;for(var n=function(e,t,n){for(var r=n+1,o=e[0],i=1;i<e.length;i++)o+=e[i]/Math.pow(r,(t[i]-t[0])/365);return o},o=function(e,t,n){for(var r=n+1,o=0,i=1;i<e.length;i++){var a=(t[i]-t[0])/365;o-=a*e[i]/Math.pow(r,a+1)}return o},a=[],s=!1,l=!1,u=0;u<e.length;u++)a[u]=0===u?0:a[u-1]+365,e[u]>0&&(s=!0),e[u]<0&&(l=!0);if(!s||!l)return r.num;var c,h,f,d=t=void 0===t?.1:t,m=!0;do{c=d-(f=n(e,a,d))/o(e,a,d),h=Math.abs(c-d),d=c,m=h>1e-10&&Math.abs(f)>1e-10}while(m);return d},t.ISPMT=function(e,t,n,o){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),i.anyIsError(e,t,n,o)?r.value:o*e*(t/n-1)},t.MDURATION=function(){throw new Error("MDURATION is not implemented")},t.MIRR=function(e,n,o){if(e=i.parseNumberArray(i.flatten(e)),n=i.parseNumber(n),o=i.parseNumber(o),i.anyIsError(e,n,o))return r.value;for(var a=e.length,s=[],l=[],u=0;u<a;u++)e[u]<0?s.push(e[u]):l.push(e[u]);var c=-t.NPV(o,l)*Math.pow(1+o,a-1),h=t.NPV(n,s)*(1+n);return Math.pow(c/h,1/(a-1))-1},t.NOMINAL=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?r.value:e<=0||t<1?r.num:(t=parseInt(t,10),(Math.pow(e+1,1/t)-1)*t)},t.NPER=function(e,t,n,o,a){if(a=void 0===a?0:a,o=void 0===o?0:o,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),i.anyIsError(e,t,n,o,a))return r.value;var s=t*(1+e*a)-o*e,l=n*e+t*(1+e*a);return Math.log(s/l)/Math.log(1+e)},t.NPV=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t=e[0],n=0,r=1;r<e.length;r++)n+=e[r]/Math.pow(1+t,r);return n},t.ODDFPRICE=function(){throw new Error("ODDFPRICE is not implemented")},t.ODDFYIELD=function(){throw new Error("ODDFYIELD is not implemented")},t.ODDLPRICE=function(){throw new Error("ODDLPRICE is not implemented")},t.ODDLYIELD=function(){throw new Error("ODDLYIELD is not implemented")},t.PDURATION=function(e,t,n){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:e<=0?r.num:(Math.log(n)-Math.log(t))/Math.log(1+e)},t.PMT=function(e,t,n,o,a){if(o=o||0,a=a||0,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),i.anyIsError(e,t,n,o,a))return r.value;var s;if(0===e)s=(n+o)/t;else{var l=Math.pow(1+e,t);s=1===a?(o*e/(l-1)+n*e/(1-1/l))/(1+e):o*e/(l-1)+n*e/(1-1/l)}return-s},t.PPMT=function(e,n,o,a,s,l){return s=s||0,l=l||0,e=i.parseNumber(e),o=i.parseNumber(o),a=i.parseNumber(a),s=i.parseNumber(s),l=i.parseNumber(l),i.anyIsError(e,o,a,s,l)?r.value:t.PMT(e,o,a,s,l)-t.IPMT(e,n,o,a,s,l)},t.PRICE=function(){throw new Error("PRICE is not implemented")},t.PRICEDISC=function(){throw new Error("PRICEDISC is not implemented")},t.PRICEMAT=function(){throw new Error("PRICEMAT is not implemented")},t.PV=function(e,t,n,o,a){return o=o||0,a=a||0,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),i.anyIsError(e,t,n,o,a)?r.value:0===e?-n*t-o:((1-Math.pow(1+e,t))/e*n*(1+e*a)-o)/Math.pow(1+e,t)},t.RATE=function(e,t,n,o,a,s){if(s=void 0===s?.01:s,o=void 0===o?0:o,a=void 0===a?0:a,e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),a=i.parseNumber(a),s=i.parseNumber(s),i.anyIsError(e,t,n,o,a,s))return r.value;var l,u,c,h=1e-10,f=0,d=0,m=0,p=s;for(Math.abs(p)<h||(d=Math.exp(e*Math.log(1+p))),l=n+t*e+o,u=n*d+t*(1/p+a)*(d-1)+o,m=c=0,f=p;Math.abs(l-u)>h&&m<50;)p=(u*c-l*f)/(u-l),c=f,f=p,l=u,u=Math.abs(p)<h?n*(1+e*p)+t*(1+p*a)*e+o:n*(d=Math.exp(e*Math.log(1+p)))+t*(1/p+a)*(d-1)+o,++m;return p},t.RECEIVED=function(){throw new Error("RECEIVED is not implemented")},t.RRI=function(e,t,n){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:0===e||0===t?r.num:Math.pow(n/t,1/e)-1},t.SLN=function(e,t,n){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:0===n?r.num:(e-t)/n},t.SYD=function(e,t,n,o){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),o=i.parseNumber(o),i.anyIsError(e,t,n,o)?r.value:0===n||o<1||o>n?r.num:(e-t)*(n-(o=parseInt(o,10))+1)*2/(n*(n+1))},t.TBILLEQ=function(e,t,n){return e=i.parseDate(e),t=i.parseDate(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:365*n/(360-n*o.DAYS360(e,t,!1))},t.TBILLPRICE=function(e,t,n){return e=i.parseDate(e),t=i.parseDate(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:100*(1-n*o.DAYS360(e,t,!1)/360)},t.TBILLYIELD=function(e,t,n){return e=i.parseDate(e),t=i.parseDate(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:360*(100-n)/(n*o.DAYS360(e,t,!1))},t.VDB=function(){throw new Error("VDB is not implemented")},t.XNPV=function(e,t,n){if(e=i.parseNumber(e),t=i.parseNumberArray(i.flatten(t)),n=i.parseDateArray(i.flatten(n)),i.anyIsError(e,t,n))return r.value;for(var a=0,s=0;s<t.length;s++)a+=t[s]/Math.pow(1+e,o.DAYS(n[s],n[0])/365);return a},t.YIELD=function(){throw new Error("YIELD is not implemented")},t.YIELDDISC=function(){throw new Error("YIELDDISC is not implemented")},t.YIELDMAT=function(){throw new Error("YIELDMAT is not implemented")}},function(e,t,n){var r=n(0),o=n(1);t.MATCH=function(e,t,n){if(!e&&!t)return r.na;if(2===arguments.length&&(n=1),!(t instanceof Array))return r.na;if(-1!==n&&0!==n&&1!==n)return r.na;for(var o,i,a=0;a<t.length;a++)if(1===n){if(t[a]===e)return a+1;t[a]<e&&(i?t[a]>i&&(o=a+1,i=t[a]):(o=a+1,i=t[a]))}else if(0===n){if("string"==typeof e){if(e=e.replace(/\?/g,"."),t[a].toLowerCase().match(e.toLowerCase()))return a+1}else if(t[a]===e)return a+1}else if(-1===n){if(t[a]===e)return a+1;t[a]>e&&(i?t[a]<i&&(o=a+1,i=t[a]):(o=a+1,i=t[a]))}return o||r.na},t.VLOOKUP=function(e,t,n,o){if(!e||!t||!n)return r.na;o=o||!1;for(var i=0;i<t.length;i++){var a=t[i];if(!o&&a[0]===e||a[0]===e||o&&"string"==typeof a[0]&&-1!==a[0].toLowerCase().indexOf(e.toLowerCase()))return n<a.length+1?a[n-1]:r.ref}return r.na},t.HLOOKUP=function(e,t,n,i){if(!e||!t||!n)return r.na;i=i||!1;for(var a=o.transpose(t),s=0;s<a.length;s++){var l=a[s];if(!i&&l[0]===e||l[0]===e||i&&"string"==typeof l[0]&&-1!==l[0].toLowerCase().indexOf(e.toLowerCase()))return n<l.length+1?l[n-1]:r.ref}return r.na}},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL=">";function o(e,t){return e>t}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL=">=";function o(e,t){return e>=t}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL="<";function o(e,t){return e<t}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL="<=";function o(e,t){return e<=t}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=a;var r=n(3),o=n(2),i=t.SYMBOL="-";function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=n.reduce((function(e,t){return e-(0,r.toNumber)(t)}),(0,r.toNumber)(e));if(isNaN(a))throw Error(o.ERROR_VALUE);return a}a.SYMBOL=i},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=a;var r=n(3),o=n(2),i=t.SYMBOL="*";function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=n.reduce((function(e,t){return e*(0,r.toNumber)(t)}),(0,r.toNumber)(e));if(isNaN(a))throw Error(o.ERROR_VALUE);return a}a.SYMBOL=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=o;var r=t.SYMBOL="<>";function o(e,t){return e!==t}o.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=a;var r=n(3),o=n(2),i=t.SYMBOL="^";function a(e,t){var n=Math.pow((0,r.toNumber)(e),(0,r.toNumber)(t));if(isNaN(n))throw Error(o.ERROR_VALUE);return n}a.SYMBOL=i},function(e,t,n){var r=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,5],n=[1,8],r=[1,6],o=[1,7],i=[1,9],a=[1,14],s=[1,15],l=[1,16],u=[1,12],c=[1,13],h=[1,17],f=[1,19],d=[1,20],m=[1,21],p=[1,22],y=[1,23],v=[1,24],g=[1,25],w=[1,26],b=[1,27],_=[1,28],M=[5,9,10,11,13,14,15,16,17,18,19,20,29,30],k=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,32],S=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,34],C=[5,10,11,13,14,15,16,17,29,30],T=[5,10,13,14,15,16,29,30],E=[5,10,11,13,14,15,16,17,18,19,29,30],O=[13,29,30],R={trace:function(){},yy:{},symbols_:{error:2,expressions:3,expression:4,EOF:5,variableSequence:6,number:7,STRING:8,"&":9,"=":10,"+":11,"(":12,")":13,"<":14,">":15,NOT:16,"-":17,"*":18,"/":19,"^":20,FUNCTION:21,expseq:22,cell:23,ABSOLUTE_CELL:24,RELATIVE_CELL:25,MIXED_CELL:26,":":27,ARRAY:28,";":29,",":30,VARIABLE:31,DECIMAL:32,NUMBER:33,"%":34,ERROR:35,$accept:0,$end:1},terminals_:{5:"EOF",8:"STRING",9:"&",10:"=",11:"+",12:"(",13:")",14:"<",15:">",16:"NOT",17:"-",18:"*",19:"/",20:"^",21:"FUNCTION",24:"ABSOLUTE_CELL",25:"RELATIVE_CELL",26:"MIXED_CELL",27:":",28:"ARRAY",29:";",30:",",31:"VARIABLE",32:"DECIMAL",33:"NUMBER",34:"%",35:"ERROR"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,4],[4,4],[4,4],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,3],[4,4],[4,1],[4,1],[4,2],[23,1],[23,1],[23,1],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[22,1],[22,1],[22,3],[22,3],[6,1],[6,3],[7,1],[7,3],[7,2],[2,1]],performAction:function(e,t,n,r,o,i,a){var s=i.length-1;switch(o){case 1:return i[s-1];case 2:this.$=r.callVariable(i[s][0]);break;case 3:this.$=r.toNumber(i[s]);break;case 4:this.$=r.trimEdges(i[s]);break;case 5:this.$=r.evaluateByOperator("&",[i[s-2],i[s]]);break;case 6:this.$=r.evaluateByOperator("=",[i[s-2],i[s]]);break;case 7:this.$=r.evaluateByOperator("+",[i[s-2],i[s]]);break;case 8:this.$=i[s-1];break;case 9:this.$=r.evaluateByOperator("<=",[i[s-3],i[s]]);break;case 10:this.$=r.evaluateByOperator(">=",[i[s-3],i[s]]);break;case 11:this.$=r.evaluateByOperator("<>",[i[s-3],i[s]]);break;case 12:this.$=r.evaluateByOperator("NOT",[i[s-2],i[s]]);break;case 13:this.$=r.evaluateByOperator(">",[i[s-2],i[s]]);break;case 14:this.$=r.evaluateByOperator("<",[i[s-2],i[s]]);break;case 15:this.$=r.evaluateByOperator("-",[i[s-2],i[s]]);break;case 16:this.$=r.evaluateByOperator("*",[i[s-2],i[s]]);break;case 17:this.$=r.evaluateByOperator("/",[i[s-2],i[s]]);break;case 18:this.$=r.evaluateByOperator("^",[i[s-2],i[s]]);break;case 19:var l=r.invertNumber(i[s]);this.$=l,isNaN(this.$)&&(this.$=0);break;case 20:l=r.toNumber(i[s]),this.$=l,isNaN(this.$)&&(this.$=0);break;case 21:this.$=r.callFunction(i[s-2]);break;case 22:this.$=r.callFunction(i[s-3],i[s-1]);break;case 26:case 27:case 28:this.$=r.cellValue(i[s]);break;case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:this.$=r.rangeValue(i[s-2],i[s]);break;case 38:case 42:this.$=[i[s]];break;case 39:this.$=r.trimEdges(e).split(",");break;case 40:case 41:i[s-2].push(i[s]),this.$=i[s-2];break;case 43:this.$=Array.isArray(i[s-2])?i[s-2]:[i[s-2]],this.$.push(i[s]);break;case 44:this.$=i[s];break;case 45:this.$=1*(i[s-2]+"."+i[s]);break;case 46:this.$=.01*i[s-1];break;case 47:this.$=r.throwError(i[s])}},table:[{2:11,3:1,4:2,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{1:[3]},{5:[1,18],9:f,10:d,11:m,14:p,15:y,16:v,17:g,18:w,19:b,20:_},e(M,[2,2],{32:[1,29]}),e(M,[2,3],{34:[1,30]}),e(M,[2,4]),{2:11,4:31,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:32,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:33,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{12:[1,34]},e(M,[2,23]),e(M,[2,24],{2:35,35:h}),e(k,[2,42]),e(S,[2,44],{32:[1,36]}),e(M,[2,26],{27:[1,37]}),e(M,[2,27],{27:[1,38]}),e(M,[2,28],{27:[1,39]}),e([5,9,10,11,13,14,15,16,17,18,19,20,29,30,35],[2,47]),{1:[2,1]},{2:11,4:40,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:41,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:42,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:45,6:3,7:4,8:t,10:[1,43],11:n,12:r,15:[1,44],17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:47,6:3,7:4,8:t,10:[1,46],11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:48,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:49,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:50,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:51,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:52,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{31:[1,53]},e(S,[2,46]),{9:f,10:d,11:m,13:[1,54],14:p,15:y,16:v,17:g,18:w,19:b,20:_},e(C,[2,19],{9:f,18:w,19:b,20:_}),e(C,[2,20],{9:f,18:w,19:b,20:_}),{2:11,4:57,6:3,7:4,8:t,11:n,12:r,13:[1,55],17:o,21:i,22:56,23:10,24:a,25:s,26:l,28:[1,58],31:u,33:c,35:h},e(M,[2,25]),{33:[1,59]},{24:[1,60],25:[1,61],26:[1,62]},{24:[1,63],25:[1,64],26:[1,65]},{24:[1,66],25:[1,67],26:[1,68]},e(M,[2,5]),e([5,10,13,29,30],[2,6],{9:f,11:m,14:p,15:y,16:v,17:g,18:w,19:b,20:_}),e(C,[2,7],{9:f,18:w,19:b,20:_}),{2:11,4:69,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:70,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},e(T,[2,14],{9:f,11:m,17:g,18:w,19:b,20:_}),{2:11,4:71,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},e(T,[2,13],{9:f,11:m,17:g,18:w,19:b,20:_}),e([5,10,13,16,29,30],[2,12],{9:f,11:m,14:p,15:y,17:g,18:w,19:b,20:_}),e(C,[2,15],{9:f,18:w,19:b,20:_}),e(E,[2,16],{9:f,20:_}),e(E,[2,17],{9:f,20:_}),e([5,10,11,13,14,15,16,17,18,19,20,29,30],[2,18],{9:f}),e(k,[2,43]),e(M,[2,8]),e(M,[2,21]),{13:[1,72],29:[1,73],30:[1,74]},e(O,[2,38],{9:f,10:d,11:m,14:p,15:y,16:v,17:g,18:w,19:b,20:_}),e(O,[2,39]),e(S,[2,45]),e(M,[2,29]),e(M,[2,30]),e(M,[2,31]),e(M,[2,32]),e(M,[2,33]),e(M,[2,34]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(T,[2,9],{9:f,11:m,17:g,18:w,19:b,20:_}),e(T,[2,11],{9:f,11:m,17:g,18:w,19:b,20:_}),e(T,[2,10],{9:f,11:m,17:g,18:w,19:b,20:_}),e(M,[2,22]),{2:11,4:75,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},{2:11,4:76,6:3,7:4,8:t,11:n,12:r,17:o,21:i,23:10,24:a,25:s,26:l,31:u,33:c,35:h},e(O,[2,40],{9:f,10:d,11:m,14:p,15:y,16:v,17:g,18:w,19:b,20:_}),e(O,[2,41],{9:f,10:d,11:m,14:p,15:y,16:v,17:g,18:w,19:b,20:_})],defaultActions:{18:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],o=[],i=this.table,a="",s=0,l=0,u=0,c=o.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(e,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;o.push(m);var p=h.options&&h.options.ranges;"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,v,g,w,b,_,M,k,S,C,T=function(){var e;return"number"!=typeof(e=h.lex()||1)&&(e=t.symbols_[e]||e),e},E={};;){if(g=n[n.length-1],this.defaultActions[g]?w=this.defaultActions[g]:(null==y&&(y=T()),w=i[g]&&i[g][y]),void 0===w||!w.length||!w[0]){var O,R="";function L(e){for(var t=n.length-1,r=0;;){if(2..toString()in i[e])return r;if(0===e||t<2)return!1;e=n[t-=2],++r}}if(u)1!==v&&(O=L(g));else{for(_ in O=L(g),S=[],i[g])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");R=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:m,expected:S,recoverable:!1!==O})}if(3==u){if(1===y||1===v)throw new Error(R||"Parsing halted while starting to recover from another error.");l=h.yyleng,a=h.yytext,s=h.yylineno,m=h.yylloc,y=T()}if(!1===O)throw new Error(R||"Parsing halted. No suitable error recovery rule available.");C=O,n.length=n.length-2*C,r.length=r.length-C,o.length=o.length-C,v=2==y?null:y,y=2,g=n[n.length-1],w=i[g]&&i[g][2],u=3}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+y);switch(w[0]){case 1:n.push(y),r.push(h.yytext),o.push(h.yylloc),n.push(w[1]),y=null,v?(y=v,v=null):(l=h.yyleng,a=h.yytext,s=h.yylineno,m=h.yylloc,u>0&&u--);break;case 2:if(M=this.productions_[w[1]][1],E.$=r[r.length-M],E._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},p&&(E._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),void 0!==(b=this.performAction.apply(E,[a,l,s,f.yy,w[1],r,o].concat(c))))return b;M&&(n=n.slice(0,-1*M*2),r=r.slice(0,-1*M),o=o.slice(0,-1*M)),n.push(this.productions_[w[1]][0]),r.push(E.$),o.push(E._$),k=i[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0}},L={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in o)this[i]=o[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),i=0;i<o.length;i++)if((n=this._input.match(this.rules[o[i]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,o[i])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,o[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:case 2:return 8;case 3:case 9:return 21;case 4:return 35;case 5:return 24;case 6:case 7:return 26;case 8:return 25;case 10:case 11:return 31;case 12:return 33;case 13:return 28;case 14:return 9;case 15:return" ";case 16:return 32;case 17:return 27;case 18:return 29;case 19:return 30;case 20:return 18;case 21:return 19;case 22:return 17;case 23:return 11;case 24:return 20;case 25:return 12;case 26:return 13;case 27:return 15;case 28:return 14;case 29:return 16;case 30:return'"';case 31:return"'";case 32:return"!";case 33:return 10;case 34:return 34;case 35:return"#";case 36:return 5}},rules:[/^(?:\s+)/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/,/^(?:#[A-Z0-9\/]+(!|\?)?)/,/^(?:\$[A-Za-z]+\$[0-9]+)/,/^(?:\$[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z]+\$[0-9]+)/,/^(?:[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z\.]+(?=[(]))/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,/^(?:[A-Za-z_]+)/,/^(?:[0-9]+)/,/^(?:\[(.*)?\])/,/^(?:&)/,/^(?: )/,/^(?:[.])/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\()/,/^(?:\))/,/^(?:>)/,/^(?:<)/,/^(?:NOT\b)/,/^(?:")/,/^(?:')/,/^(?:!)/,/^(?:=)/,/^(?:%)/,/^(?:[#])/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],inclusive:!0}}};function D(){this.yy={}}return R.lexer=L,D.prototype=R,R.Parser=D,new D}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}},function(e,t,n){"use strict";t.__esModule=!0,t.trimEdges=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.substring(t,e.length-t)}}])},e.exports=t()},95093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)h(t,n)&&(e[n]=t[n]);return h(t,"toString")&&(e.toString=t.toString),h(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return At(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function y(e){var t=d(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var v=o.momentProperties=[];function g(e,t){var n,r,o;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=m(t)),s(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)s(o=t[r=v[n]])||(e[r]=o);return e}var w=!1;function b(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,o.updateOffset(this),w=!1)}function _(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=M(t)),n}function S(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&k(e[r])!==k(t[r]))&&a++;return a+i}function C(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return f((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var r,i=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}C(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,O={};function R(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),O[e]||(C(t),O[e]=!0)}function L(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,r=f({},e);for(n in t)h(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)h(e,n)&&!h(t,n)&&a(e[n])&&(r[n]=f({},r[n]));return r}function A(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)h(e,t)&&n.push(t);return n};var H={};function N(e,t){var n=e.toLowerCase();H[n]=H[n+"s"]=H[t]=e}function P(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function x(e){var t,n,r={};for(n in e)h(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var Y={};function I(e,t){Y[e]=t}function j(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},V={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(V[e]=o),t&&(V[t[0]]=function(){return j(o.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=G(t,e.localeData()),B[t]=B[t]||function(e){var t,n,r,o=e.match(F);for(t=0,n=o.length;t<n;t++)V[o[t]]?o[t]=V[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=L(o[r])?o[r].call(t,e):o[r];return i}}(t),B[t](e)):e.localeData().invalidDate()}function G(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;n>=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var q=/\d/,X=/\d\d/,K=/\d{3}/,J=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=L(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return h(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function me(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n<e.length;n++)de[e[n]]=r}function pe(e,t){me(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function ye(e,t,n){null!=t&&h(de,e)&&de[e](t,n._a,n,e)}var ve=0,ge=1,we=2,be=3,_e=4,Me=5,ke=6,Se=7,Ce=8;function Te(e){return Ee(e)?366:365}function Ee(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),N("year","y"),I("year",1),ce("Y",ie),ce("YY",Q,X),ce("YYYY",ne,J),ce("YYYYY",re,$),ce("YYYYYY",re,$),me(["YYYYY","YYYYYY"],ve),me("YYYY",(function(e,t){t[ve]=2===e.length?o.parseTwoDigitYear(e):k(e)})),me("YY",(function(e,t){t[ve]=o.parseTwoDigitYear(e)})),me("Y",(function(e,t){t[ve]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Oe,Re=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(Ae(this,e,n),o.updateOffset(this,t),this):De(this,e)}}function De(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),He(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function He(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ee(e)?29:28:31-r%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),I("month",8),ce("M",Q),ce("MM",Q,X),ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),ce("MMMM",(function(e,t){return t.monthsRegex(e)})),me(["M","MM"],(function(e,t){t[ge]=k(e)-1})),me(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ge]=o:m(n).invalidMonth=e}));var Ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var xe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ye(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))||-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))||-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null}function Ie(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),He(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function je(e){return null!=e?(Ie(this,e),o.updateOffset(this,!0),this):De(this,"Month")}var Fe=le;var We=le;function Be(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),o[t]=fe(o[t]);for(t=0;t<24;t++)i[t]=fe(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ve(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function Ue(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ze(e,t,n){var r=7+t-n;return-(7+Ue(e,0,r).getUTCDay()-t)%7+r-1}function Ge(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+ze(e,r,o);return s<=0?a=Te(i=e-1)+s:s>Te(e)?(i=e+1,a=s-Te(e)):(i=e,a=s),{year:i,dayOfYear:a}}function qe(e,t,n){var r,o,i=ze(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Xe(o=e.year()-1,t,n):a>Xe(e.year(),t,n)?(r=a-Xe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Xe(e,t,n){var r=ze(e,t,n),o=ze(e+1,t,n);return(Te(e)-r+o)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),I("week",5),I("isoWeek",5),ce("w",Q),ce("ww",Q,X),ce("W",Q),ce("WW",Q,X),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=k(e)}));U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),ce("d",Q),ce("e",Q),ce("E",Q),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:m(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=k(e)}));var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var $e="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))||-1!==(o=Oe.call(this._shortWeekdaysParse,a))||-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))||-1!==(o=Oe.call(this._weekdaysParse,a))||-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))||-1!==(o=Oe.call(this._weekdaysParse,a))||-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null}var Ze=le;var et=le;var tt=le;function nt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function it(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,rt),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+rt.apply(this)+j(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+rt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),ot("a",!0),ot("A",!1),N("hour","h"),I("hour",13),ce("a",it),ce("A",it),ce("H",Q),ce("h",Q),ce("k",Q),ce("HH",Q,X),ce("hh",Q,X),ce("kk",Q,X),ce("hmm",Z),ce("hmmss",ee),ce("Hmm",Z),ce("Hmmss",ee),me(["H","HH"],be),me(["k","kk"],(function(e,t,n){var r=k(e);t[be]=24===r?0:r})),me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),me(["h","hh"],(function(e,t,n){t[be]=k(e),m(n).bigHour=!0})),me("hmm",(function(e,t,n){var r=e.length-2;t[be]=k(e.substr(0,r)),t[_e]=k(e.substr(r)),m(n).bigHour=!0})),me("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[be]=k(e.substr(0,r)),t[_e]=k(e.substr(r,2)),t[Me]=k(e.substr(o)),m(n).bigHour=!0})),me("Hmm",(function(e,t,n){var r=e.length-2;t[be]=k(e.substr(0,r)),t[_e]=k(e.substr(r))})),me("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[be]=k(e.substr(0,r)),t[_e]=k(e.substr(r,2)),t[Me]=k(e.substr(o))}));var at,st=Le("Hours",!0),lt={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:Pe,monthsShort:xe,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:$e,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ut={},ct={};function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var r=null;if(!ut[t]&&e&&e.exports)try{r=at._abbr,n(35358)("./"+t),dt(r)}catch(e){}return ut[t]}function dt(e,t){var n;return e&&(n=s(t)?pt(e):mt(e,t))&&(at=n),at._abbr}function mt(e,t){if(null!==t){var n=lt;if(t.abbr=e,null!=ut[e])R("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."),n=ut[e]._config;else if(null!=t.parentLocale){if(null==ut[t.parentLocale])return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;n=ut[t.parentLocale]._config}return ut[e]=new A(D(n,t)),ct[e]&&ct[e].forEach((function(e){mt(e.name,e.config)})),dt(e),ut[e]}return delete ut[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!i(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=ht(e[i]).split("-")).length,n=(n=ht(e[i+1]))?n.split("-"):null;t>0;){if(r=ft(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&S(o,n,!0)>=t-1)break;t--}i++}return null}(e)}function yt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[we]<1||n[we]>He(n[ve],n[ge])?we:n[be]<0||n[be]>24||24===n[be]&&(0!==n[_e]||0!==n[Me]||0!==n[ke])?be:n[_e]<0||n[_e]>59?_e:n[Me]<0||n[Me]>59?Me:n[ke]<0||n[ke]>999?ke:-1,m(e)._overflowDayOfYear&&(t<ve||t>we)&&(t=we),m(e)._overflowWeeks&&-1===t&&(t=Se),m(e)._overflowWeekday&&-1===t&&(t=Ce),m(e).overflow=t),e}function vt(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[we]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=vt(t.GG,e._a[ve],qe(Ht(),1,4).year),r=vt(t.W,1),((o=vt(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=qe(Ht(),i,a);n=vt(t.gg,e._a[ve],u.year),r=vt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Xe(n,i,a)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=Ge(n,r,o,i,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=vt(e._a[ve],r[ve]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ue(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[we]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[_e]&&0===e._a[Me]&&0===e._a[ke]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Ue:Ve).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}var wt=/^\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)?)?$/,bt=/^\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)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["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}/]],kt=[["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/]],St=/^\/?Date\((\-?\d+)/i;function Ct(e){var t,n,r,o,i,a,s=e._i,l=wt.exec(s)||bt.exec(s);if(l){for(m(e).iso=!0,t=0,n=Mt.length;t<n;t++)if(Mt[t][1].exec(l[1])){o=Mt[t][0],r=!1!==Mt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=kt.length;t<n;t++)if(kt[t][1].exec(l[3])){i=(l[2]||" ")+kt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!_t.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Lt(e)}else e._isValid=!1}var Tt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Et(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Ot={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rt(e){var t,n,r,o,i,a,s,l=Tt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(l){var u=(t=l[4],n=l[3],r=l[2],o=l[5],i=l[6],a=l[7],s=[Et(t),xe.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(i,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return Ot[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(l[8],l[9],l[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Lt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,i,a,s=""+e._i,l=s.length,u=0;for(r=G(e._f,e._locale).match(F)||[],t=0;t<r.length;t++)i=r[t],(n=(s.match(he(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&m(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),V[i]?(n?m(e).empty=!1:m(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&m(e).unusedTokens.push(i);m(e).charsLeftOver=l-u,s.length>0&&m(e).unusedInput.push(s),e._a[be]<=12&&!0===m(e).bigHour&&e._a[be]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),gt(e),yt(e)}else Rt(e);else Ct(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new b(yt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Lt(t),p(t)&&(i+=m(t).charsLeftOver,i+=10*m(t).unusedTokens.length,m(t).score=i,(null==r||i<r)&&(r=i,n=t));f(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;s(t)?e._d=new Date(o.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=St.exec(e._i);null===t?(Ct(e),!1===e._isValid&&(delete e._isValid,Rt(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),gt(e)):a(t)?function(e){if(!e._d){var t=x(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),gt(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),p(e)||(e._d=null),e))}function At(e,t,n,r,o){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new b(yt(Dt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ht(e,t,n,r){return At(e,t,n,r,!1)}o.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Nt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ht.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Pt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ht.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function xt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ht();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Yt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var t=x(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Oe.call(Yt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Yt.length;++r)if(e[Yt[r]]){if(n)return!1;parseFloat(e[Yt[r]])!==k(e[Yt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=pt(),this._bubble()}function jt(e){return e instanceof It}function Ft(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Wt(e,t){U(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)}))}Wt("Z",":"),Wt("ZZ",""),ce("Z",se),ce("ZZ",se),me(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Vt(se,e)}));var Bt=/([\+\-]|\d\d)/gi;function Vt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Bt)||["-",0,0],o=60*r[1]+k(r[2]);return 0===o?0:"+"===r[0]?o:-o}function Ut(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_(e)||u(e)?e.valueOf():Ht(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Ht(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var qt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Xt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Kt(e,t){var n,r,o,i,a,s,u=e,c=null;return jt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(u={},t?u[t]=e:u.milliseconds=e):(c=qt.exec(e))?(n="-"===c[1]?-1:1,u={y:0,d:k(c[we])*n,h:k(c[be])*n,m:k(c[_e])*n,s:k(c[Me])*n,ms:k(Ft(1e3*c[ke]))*n}):(c=Xt.exec(e))?(n="-"===c[1]?-1:(c[1],1),u={y:Jt(c[2],n),M:Jt(c[3],n),w:Jt(c[4],n),d:Jt(c[5],n),h:Jt(c[6],n),m:Jt(c[7],n),s:Jt(c[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=Ht(u.from),a=Ht(u.to),o=i.isValid()&&a.isValid()?(a=Ut(a,i),i.isBefore(a)?s=$t(i,a):((s=$t(a,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),r=new It(u),jt(e)&&h(e,"_locale")&&(r._locale=e._locale),r}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function $t(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(R(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Zt(this,Kt(n="string"==typeof n?+n:n,r),e),this}}function Zt(e,t,n,r){var i=t._milliseconds,a=Ft(t._days),s=Ft(t._months);e.isValid()&&(r=null==r||r,s&&Ie(e,De(e,"Month")+s*n),a&&Ae(e,"Date",De(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Kt.fn=It.prototype,Kt.invalid=function(){return Kt(NaN)};var en=Qt(1,"add"),tn=Qt(-1,"subtract");function nn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function rn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=pt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var on=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function an(){return this._locale}function sn(e,t){U(0,[e,e.length],0,t)}function ln(e,t,n,r,o){var i;return null==e?qe(this,r,o).year:(t>(i=Xe(e,r,o))&&(t=i),un.call(this,e,t,n,r,o))}function un(e,t,n,r,o){var i=Ge(e,t,n,r,o),a=Ue(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",Q,X),ce("gg",Q,X),ce("GGGG",ne,J),ce("gggg",ne,J),ce("GGGGG",re,$),ce("ggggg",re,$),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=k(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),N("quarter","Q"),I("quarter",7),ce("Q",q),me("Q",(function(e,t){t[ge]=3*(k(e)-1)})),U("D",["DD",2],"Do","date"),N("date","D"),I("date",9),ce("D",Q),ce("DD",Q,X),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),me(["D","DD"],we),me("Do",(function(e,t){t[we]=k(e.match(Q)[0])}));var cn=Le("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),I("dayOfYear",4),ce("DDD",te),ce("DDDD",K),me(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=k(e)})),U("m",["mm",2],0,"minute"),N("minute","m"),I("minute",14),ce("m",Q),ce("mm",Q,X),me(["m","mm"],_e);var hn=Le("Minutes",!1);U("s",["ss",2],0,"second"),N("second","s"),I("second",15),ce("s",Q),ce("ss",Q,X),me(["s","ss"],Me);var fn,dn=Le("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),I("millisecond",16),ce("S",te,q),ce("SS",te,X),ce("SSS",te,K),fn="SSSS";fn.length<=9;fn+="S")ce(fn,oe);function mn(e,t){t[ke]=k(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")me(fn,mn);var pn=Le("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var yn=b.prototype;function vn(e){return e}yn.add=en,yn.calendar=function(e,t){var n=e||Ht(),r=Ut(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(L(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Ht(n)))},yn.clone=function(){return new b(this)},yn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":i=nn(this,r)/12;break;case"month":i=nn(this,r);break;case"quarter":i=nn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:M(i)},yn.endOf=function(e){return void 0===(e=P(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},yn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Ht(e).isValid())?Kt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(Ht(),e)},yn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Ht(e).isValid())?Kt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(Ht(),e)},yn.get=function(e){return L(this[e=P(e)])?this[e]():this},yn.invalidAt=function(){return m(this).overflow},yn.isAfter=function(e,t){var n=_(e)?e:Ht(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=_(e)?e:Ht(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(s(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},yn.isSame=function(e,t){var n,r=_(e)?e:Ht(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return p(this)},yn.lang=on,yn.locale=rn,yn.localeData=an,yn.max=Pt,yn.min=Nt,yn.parsingFlags=function(){return f({},m(this))},yn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:Y[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=x(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(L(this[e=P(e)]))return this[e](t);return this},yn.startOf=function(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},yn.subtract=tn,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.year=Re,yn.isLeapYear=function(){return Ee(this.year())},yn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=je,yn.daysInMonth=function(){return He(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},yn.date=cn,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=st,yn.minute=yn.minutes=hn,yn.second=yn.seconds=dn,yn.millisecond=yn.milliseconds=pn,yn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Vt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Kt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:zt(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Vt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ht(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Gt,yn.isUTC=Gt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=T("dates accessor is deprecated. Use date instead.",cn),yn.months=T("months accessor is deprecated. Use month instead",je),yn.years=T("years accessor is deprecated. Use year instead",Re),yn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),yn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Dt(e))._a){var t=e._isUTC?d(e._a):Ht(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var gn=A.prototype;function wn(e,t,n,r){var o=pt(),i=d().set(r,t);return o[n](i,e)}function bn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return wn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=wn(e,r,n,"month");return o}function _n(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),a=e?i._week.dow:0;if(null!=n)return wn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=wn(t,(o+a)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=vn,gn.postformat=vn,gn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return L(o)?o(e,t,n,r):o.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)L(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ye.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},gn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",dt),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",pt);var Mn=Math.abs;function kn(e,t,n,r){var o=Kt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Sn(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var On=En("ms"),Rn=En("s"),Ln=En("m"),Dn=En("h"),An=En("d"),Hn=En("w"),Nn=En("M"),Pn=En("y");function xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yn=xn("milliseconds"),In=xn("seconds"),jn=xn("minutes"),Fn=xn("hours"),Wn=xn("days"),Bn=xn("months"),Vn=xn("years");var Un=Math.round,zn={ss:44,s:45,m:45,h:22,d:26,M:11};function Gn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var qn=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=qn(this._milliseconds)/1e3,r=qn(this._days),o=qn(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var i=M(o/12),a=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",d=Xn(this._months)!==Xn(h)?"-":"",m=Xn(this._days)!==Xn(h)?"-":"",p=Xn(this._milliseconds)!==Xn(h)?"-":"";return f+"P"+(i?d+i+"Y":"")+(a?d+a+"M":"")+(s?m+s+"D":"")+(l||u||c?"T":"")+(l?p+l+"H":"")+(u?p+u+"M":"")+(c?p+c+"S":"")}var Jn=It.prototype;return Jn.isValid=function(){return this._isValid},Jn.abs=function(){var e=this._data;return this._milliseconds=Mn(this._milliseconds),this._days=Mn(this._days),this._months=Mn(this._months),e.milliseconds=Mn(e.milliseconds),e.seconds=Mn(e.seconds),e.minutes=Mn(e.minutes),e.hours=Mn(e.hours),e.months=Mn(e.months),e.years=Mn(e.years),this},Jn.add=function(e,t){return kn(this,e,t,1)},Jn.subtract=function(e,t){return kn(this,e,t,-1)},Jn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"year"===e)return t=this._days+r/864e5,n=this._months+Cn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Jn.asMilliseconds=On,Jn.asSeconds=Rn,Jn.asMinutes=Ln,Jn.asHours=Dn,Jn.asDays=An,Jn.asWeeks=Hn,Jn.asMonths=Nn,Jn.asYears=Pn,Jn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Jn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Sn(Tn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=M(i/1e3),l.seconds=e%60,t=M(e/60),l.minutes=t%60,n=M(t/60),l.hours=n%24,a+=M(n/24),s+=o=M(Cn(a)),a-=Sn(Tn(o)),r=M(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Jn.clone=function(){return Kt(this)},Jn.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Jn.milliseconds=Yn,Jn.seconds=In,Jn.minutes=jn,Jn.hours=Fn,Jn.days=Wn,Jn.weeks=function(){return M(this.days()/7)},Jn.months=Bn,Jn.years=Vn,Jn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Kt(e).abs(),o=Un(r.as("s")),i=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),l=Un(r.as("M")),u=Un(r.as("y")),c=o<=zn.ss&&["s",o]||o<zn.s&&["ss",o]||i<=1&&["m"]||i<zn.m&&["mm",i]||a<=1&&["h"]||a<zn.h&&["hh",a]||s<=1&&["d"]||s<zn.d&&["dd",s]||l<=1&&["M"]||l<zn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,Gn.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Jn.toISOString=Kn,Jn.toString=Kn,Jn.toJSON=Kn,Jn.locale=rn,Jn.localeData=an,Jn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Jn.lang=on,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),me("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),me("x",(function(e,t,n){n._d=new Date(k(e))})),o.version="2.20.1",t=Ht,o.fn=yn,o.min=function(){return xt("isBefore",[].slice.call(arguments,0))},o.max=function(){return xt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=d,o.unix=function(e){return Ht(1e3*e)},o.months=function(e,t){return bn(e,t,"months")},o.isDate=u,o.locale=dt,o.invalid=y,o.duration=Kt,o.isMoment=_,o.weekdays=function(e,t,n){return _n(e,t,n,"weekdays")},o.parseZone=function(){return Ht.apply(null,arguments).parseZone()},o.localeData=pt,o.isDuration=jt,o.monthsShort=function(e,t){return bn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return _n(e,t,n,"weekdaysMin")},o.defineLocale=mt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=lt;null!=(r=ft(e))&&(o=r._config),(n=new A(t=D(o,t))).parentLocale=ut[e],ut[e]=n,dt(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?ut[e]=ut[e].parentLocale:null!=ut[e]&&delete ut[e]);return ut[e]},o.locales=function(){return E(ut)},o.weekdaysShort=function(e,t,n){return _n(e,t,n,"weekdaysShort")},o.normalizeUnits=P,o.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==zn[e]&&(void 0===t?zn[e]:(zn[e]=t,"s"===e&&(zn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=yn,o.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:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()},95362:(e,t,n)=>{var r=n(83062),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},95533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},96870:function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n(95093))},97046:(e,t,n)=>{var r=n(47061);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},97499:(e,t,n)=>{var r=n(31602)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},97632:(e,t,n)=>{var r=n(65077),o=n(72368),i=n(9304),a=n(66843),s=n(5476),l=n(86032),u=n(36490),c=n(87694),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=l(t),c)try{return h(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},97650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},97711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(95093))},97712:(e,t,n)=>{var r=n(65077),o=n(43610),i=n(66843);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},97970:(e,t,n)=>{var r=n(36490),o=n(78420),i=n(92612),a=n(25904),s=n(7168),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},98741:(e,t,n)=>{var r=n(65077),o=n(12071).EXISTS,i=n(30281),a=n(43610).f,s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},99034:(e,t,n)=>{var r=n(31602),o=n(52228),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},99070:(e,t,n)=>{var r=n(38823),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},99206:(e,t,n)=>{var r,o,i,a=n(8369),s=n(30200),l=n(30281),u=n(65335),c=n(97712),h=n(36490),f=n(49310),d=n(25904),m=n(67708),p="Object already initialized",y=s.TypeError,v=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new v),w=l(g.get),b=l(g.has),_=l(g.set);r=function(e,t){if(b(g,e))throw y(p);return t.facade=e,_(g,e,t),t},o=function(e){return w(g,e)||{}},i=function(e){return b(g,e)}}else{var M=d("state");m[M]=!0,r=function(e,t){if(h(e,M))throw y(p);return t.facade=e,c(e,M,t),t},o=function(e){return h(e,M)?e[M]:{}},i=function(e){return h(e,M)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return n}}}}}]);
//# sourceMappingURL=249.7ec032cf0b3ede9a.js.map