(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-641ddf1f"],{"010e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},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}});return t}))},"0558":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return e%100===11||e%10!==1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}var r=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}});return r}))},"0721":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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 minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"079e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},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日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";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年"}});return t}))},"07ac":function(e,t,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},"0a3c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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,a=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:i,monthsShortRegex:i,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",w:"una semana",ww:"%d semanas",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}});return a}))},"0a84":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:1,doy:4}});return t}))},"0caa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}var n=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] 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){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===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?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:"[Aujourd’hui à] 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}});return t}))},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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ı"},n=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_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}});return n}))},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"0ff2":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,o=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===r&&n&&"годину"===a?e+" година":e+" "+a)}},n=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:"D. M. 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(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[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:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"14e1":function(e,t,n){},"167b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},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}});return t}))},"1b45":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"1cfd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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 عام"]},i=function(e){return function(t,i,a,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=e.defineLocale("ar-ly",{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,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var r=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),o=r[0],s=r[1],l=new a(d(e,o,s)),c=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(f(r));return i.join("")}function m(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,l=n-i;s<l;s+=o)a.push(p(e,s,s+o>l?l:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}var r=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:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},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}});return r}))},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},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}});return t}))},"22d1":function(e,t,n){"use strict";var r=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),i=function(){function e(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),a=new i;function o(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(a.wxa=!0,a.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?a.worker=!0:!a.hasGlobalWindow||"Deno"in window?(a.node=!0,a.svgSupported=!0):o(navigator.userAgent,a),t["a"]=a},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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?"오전":"오후"}});return t}))},2421:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],i=e.defineLocale("ku",{months:r,monthsShort:r,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,"،")},week:{dow:6,doy:12}});return i}))},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("5a34"),a=n("1d80"),o=n("ab13");r({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){switch(n){case"m":return t?"jedna minuta":r?"jednu minutu":"jedne minute"}}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var r=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:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return r}))},"25ca":function(e,t,n){"use strict";n.d(t,"b",(function(){return gh})),n.d(t,"a",(function(){return jh}));
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var r={version:"0.18.5"},i=1200,a=1252,o=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],s={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},l=function(e){-1!=o.indexOf(e)&&(a=s[0]=e)};function u(){l(1252)}var c=function(e){i=e,l(e)};function d(){c(1200),u()}function h(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var f,p=function(e){return String.fromCharCode(e)},m=function(e){return String.fromCharCode(e)};var g=null,y=!0,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function _(e){for(var t="",n=0,r=0,i=0,a=0,o=0,s=0,l=0,u=0;u<e.length;)n=e.charCodeAt(u++),a=n>>2,r=e.charCodeAt(u++),o=(3&n)<<4|r>>4,i=e.charCodeAt(u++),s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=v.charAt(a)+v.charAt(o)+v.charAt(s)+v.charAt(l);return t}function b(e){var t="",n=0,r=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)a=v.indexOf(e.charAt(u++)),o=v.indexOf(e.charAt(u++)),n=a<<2|o>>4,t+=String.fromCharCode(n),s=v.indexOf(e.charAt(u++)),r=(15&o)<<4|s>>2,64!==s&&(t+=String.fromCharCode(r)),l=v.indexOf(e.charAt(u++)),i=(3&s)<<6|l,64!==l&&(t+=String.fromCharCode(i));return t}var x=function(){return"undefined"!==typeof Buffer&&"undefined"!==typeof process&&"undefined"!==typeof process.versions&&!!process.versions.node}(),w=function(){if("undefined"!==typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function M(e){return x?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function S(e){return x?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var T=function(e){return x?w(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function k(e){if("undefined"===typeof ArrayBuffer)return T(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function L(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function O(e){if("undefined"===typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}var D=x?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:w(e)})))}:function(e){if("undefined"!==typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),i=0;for(t=0,n=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))};function A(e){for(var t=[],n=0,r=e.length+250,i=M(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[n++]=o;else if(o<2048)i[n++]=192|o>>6&31,i[n++]=128|63&o;else if(o>=55296&&o<57344){o=64+(1023&o);var s=1023&e.charCodeAt(++a);i[n++]=240|o>>8&7,i[n++]=128|o>>2&63,i[n++]=128|s>>6&15|(3&o)<<4,i[n++]=128|63&s}else i[n++]=224|o>>12&15,i[n++]=128|o>>6&63,i[n++]=128|63&o;n>r&&(t.push(i.slice(0,n)),n=0,i=M(65535),r=65530)}return t.push(i.slice(0,n)),D(t)}var I=/\u0000/g,C=/[\u0001-\u0006]/g;function E(e){var t="",n=e.length-1;while(n>=0)t+=e.charAt(n--);return t}function P(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}function Y(e,t){var n=""+e;return n.length>=t?n:ft(" ",t-n.length)+n}function j(e,t){var n=""+e;return n.length>=t?n:n+ft(" ",t-n.length)}function N(e,t){var n=""+Math.round(e);return n.length>=t?n:ft("0",t-n.length)+n}function R(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}var H=Math.pow(2,32);function F(e,t){if(e>H||e<-H)return N(e,t);var n=Math.round(e);return R(n,t)}function z(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var B=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],W=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function V(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var G={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},U={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},q={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function X(e,t,n){var r=e<0?-1:1,i=e*r,a=0,o=1,s=0,l=1,u=0,c=0,d=Math.floor(i);while(u<t){if(d=Math.floor(i),s=d*o+a,c=d*u+l,i-d<5e-8)break;i=1/(i-d),a=o,o=s,l=u,u=c}if(c>t&&(u>t?(c=l,s=a):(c=u,s=o)),!n)return[0,r*s,c];var h=Math.floor(r*s/c);return[h,r*s-h*c,c]}function Z(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),a=0,o=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)o=n?[1317,10,29]:[1900,2,29],a=3;else if(0===r)o=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),r<60&&(a=(a+6)%7),n&&(a=se(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var K=new Date(1899,11,31,0,0,0),J=K.getTime(),Q=new Date(1900,2,1,0,0,0);function ee(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Q&&(n+=864e5),(n-(J+6e4*(e.getTimezoneOffset()-K.getTimezoneOffset())))/864e5}function te(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function ne(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function re(e){var t=e<0?12:11,n=te(e.toFixed(12));return n.length<=t?n:(n=e.toPrecision(10),n.length<=t?n:e.toExponential(5))}function ie(e){var t=te(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function ae(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?re(e):10===n?e.toFixed(10).substr(0,12):ie(e),te(ne(t.toUpperCase()))}function oe(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):ae(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Re(14,ee(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function se(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function le(e,t,n,r){var i,a="",o=0,s=0,l=n.y,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,u=2;break;default:i=l%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:i=n.m,u=t.length;break;case 3:return W[n.m-1][1];case 5:return W[n.m-1][0];default:return W[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,u=t.length;break;case 3:return B[n.q][0];default:return B[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,o=Math.round(s*(n.S+n.u)),o>=60*s&&(o=0),"s"===t?0===o?"0":""+o/s:(a=P(o,2+r),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):P(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:i=l,u=1;break}var c=u>0?P(i,u):"";return c}function ue(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var ce=/%/g;function de(e,t,n){var r=t.replace(ce,""),i=t.length-r.length;return Ae(e,r,n*Math.pow(10,2*i))+ft("%",i)}function he(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return Ae(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function fe(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+fe(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i),-1===n.indexOf("e")){var o=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+a):n+="E+"+(o-a);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var pe=/# (\?+)( ?)\/( ?)(\d+)/;function me(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),a=Math.floor(i/r),o=i-a*r,s=r;return n+(0===a?"":""+a)+" "+(0===o?ft(" ",e[1].length+1+e[4].length):Y(o,e[1].length)+e[2]+"/"+e[3]+P(s,e[4].length))}function ge(e,t,n){return n+(0===t?"":""+t)+ft(" ",e[1].length+2+e[4].length)}var ye=/^#*0*\.([0#]+)/,ve=/\).*[0#]/,_e=/\(###\) ###\\?-####/;function be(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function xe(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function we(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function Me(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Se(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Te(e,t,n){if(40===e.charCodeAt(0)&&!t.match(ve)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Te("n",r,n):"("+Te("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return he(e,t,n);if(-1!==t.indexOf("%"))return de(e,t,n);if(-1!==t.indexOf("E"))return fe(t,n);if(36===t.charCodeAt(0))return"$"+Te(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,o,s,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+F(l,t.length);if(t.match(/^[#?]+$/))return i=F(n,0),"0"===i&&(i=""),i.length>t.length?i:be(t.substr(0,t.length-i.length))+i;if(a=t.match(pe))return me(a,l,u);if(t.match(/^#+0+$/))return u+F(l,t.length-t.indexOf("0"));if(a=t.match(ye))return i=xe(n,a[1].length).replace(/^([^\.]+)$/,"$1."+be(a[1])).replace(/\.$/,"."+be(a[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",be(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+xe(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+ue(F(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Te(e,t,-n):ue(""+(Math.floor(n)+Me(n,a[1].length)))+"."+P(we(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Te(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=E(Te(e,t.replace(/[\\-]/g,""),n)),o=0,E(E(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<i.length?i.charAt(o++):"0"===e?"0":""})));if(t.match(_e))return i=Te(e,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=X(l,Math.pow(10,o)-1,!1),i=""+u,c=Ae("n",a[1],s[1])," "==c.charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=j(s[2],o),c.length<a[4].length&&(c=be(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=X(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Y(s[1],o)+a[2]+"/"+a[3]+j(s[2],o):ft(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=F(n,0),t.length<=i.length?i:be(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var d=t.indexOf(".")-o,h=t.length-i.length-d;return be(t.substr(0,d)+i+t.substr(t.length-h))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=we(n,a[1].length),n<0?"-"+Te(e,t,-n):ue(Se(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?P(0,3-e.length):"")+e}))+"."+P(o,a[1].length);switch(t){case"###,##0.00":return Te(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var f=ue(F(l,0));return"0"!==f?u+f:"";case"###,###.00":return Te(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return Te(e,"#,##0.00",n).replace(/^0\./,".");default:}throw new Error("unsupported format |"+t+"|")}function ke(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return Ae(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function Le(e,t,n){var r=t.replace(ce,""),i=t.length-r.length;return Ae(e,r,n*Math.pow(10,2*i))+ft("%",i)}function Oe(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Oe(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i),!n.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+a):n+="E+"+(o-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function De(e,t,n){if(40===e.charCodeAt(0)&&!t.match(ve)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?De("n",r,n):"("+De("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return ke(e,t,n);if(-1!==t.indexOf("%"))return Le(e,t,n);if(-1!==t.indexOf("E"))return Oe(t,n);if(36===t.charCodeAt(0))return"$"+De(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,o,s,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+P(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:be(t.substr(0,t.length-i.length))+i;if(a=t.match(pe))return ge(a,l,u);if(t.match(/^#+0+$/))return u+P(l,t.length-t.indexOf("0"));if(a=t.match(ye))return i=(""+n).replace(/^([^\.]+)$/,"$1."+be(a[1])).replace(/\.$/,"."+be(a[1])),i=i.replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",be(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+ue(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+De(e,t,-n):ue(""+n)+"."+ft("0",a[1].length);if(a=t.match(/^#,#*,#0/))return De(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=E(De(e,t.replace(/[\\-]/g,""),n)),o=0,E(E(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<i.length?i.charAt(o++):"0"===e?"0":""})));if(t.match(_e))return i=De(e,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=X(l,Math.pow(10,o)-1,!1),i=""+u,c=Ae("n",a[1],s[1])," "==c.charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=j(s[2],o),c.length<a[4].length&&(c=be(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=X(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Y(s[1],o)+a[2]+"/"+a[3]+j(s[2],o):ft(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+n,t.length<=i.length?i:be(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var d=t.indexOf(".")-o,h=t.length-i.length-d;return be(t.substr(0,d)+i+t.substr(t.length-h))}if(a=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+De(e,t,-n):ue(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?P(0,3-e.length):"")+e}))+"."+P(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var f=ue(""+l);return"0"!==f?u+f:"";default:if(t.match(/\.[0#?]*$/))return De(e,t.slice(0,t.lastIndexOf(".")),n)+be(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Ae(e,t,n){return(0|n)===n?De(e,t,n):Te(e,t,n)}function Ie(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}var Ce=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ee(e){var t=0,n="",r="";while(t<e.length)switch(n=e.charAt(t)){case"G":z(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":r=n;while("]"!==e.charAt(t++)&&t<e.length)r+=e.charAt(t);if(r.match(Ce))return!0;break;case".":case"0":case"#":while(t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===n);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1);break;case" ":++t;break;default:++t;break}return!1}function Pe(e,t,n,r){var i,a,o,s=[],l="",u=0,c="",d="t",h="H";while(u<e.length)switch(c=e.charAt(u)){case"G":if(!z(e,u))throw new Error("unrecognized character "+c+" in "+e);s[s.length]={t:"G",v:"General"},u+=7;break;case'"':for(l="";34!==(o=e.charCodeAt(++u))&&u<e.length;)l+=String.fromCharCode(o);s[s.length]={t:"t",v:l},++u;break;case"\\":var f=e.charAt(++u),p="("===f||")"===f?f:"t";s[s.length]={t:p,v:f},++u;break;case"_":s[s.length]={t:"t",v:" "},u+=2;break;case"@":s[s.length]={t:"T",v:t},++u;break;case"B":case"b":if("1"===e.charAt(u+1)||"2"===e.charAt(u+1)){if(null==i&&(i=Z(t,n,"2"===e.charAt(u+1)),null==i))return"";s[s.length]={t:"X",v:e.substr(u,2)},d=c,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==i&&(i=Z(t,n),null==i))return"";l=c;while(++u<e.length&&e.charAt(u).toLowerCase()===c)l+=c;"m"===c&&"h"===d.toLowerCase()&&(c="M"),"h"===c&&(c=h),s[s.length]={t:c,v:l},d=c;break;case"A":case"a":case"上":var m={t:c,v:c};if(null==i&&(i=Z(t,n)),"A/P"===e.substr(u,3).toUpperCase()?(null!=i&&(m.v=i.H>=12?"P":"A"),m.t="T",h="h",u+=3):"AM/PM"===e.substr(u,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",u+=5,h="h"):"上午/下午"===e.substr(u,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",u+=5,h="h"):(m.t="t",++u),null==i&&"T"===m.t)return"";s[s.length]=m,d=c;break;case"[":l=c;while("]"!==e.charAt(u++)&&u<e.length)l+=e.charAt(u);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(Ce)){if(null==i&&(i=Z(t,n),null==i))return"";s[s.length]={t:"Z",v:l.toLowerCase()},d=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ee(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=c;while(++u<e.length&&"0"===(c=e.charAt(u)))l+=c;s[s.length]={t:"s",v:l};break}case"0":case"#":l=c;while(++u<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(u))>-1)l+=c;s[s.length]={t:"n",v:l};break;case"?":l=c;while(e.charAt(++u)===c)l+=c;s[s.length]={t:c,v:l},d=c;break;case"*":++u," "!=e.charAt(u)&&"*"!=e.charAt(u)||++u;break;case"(":case")":s[s.length]={t:1===r?"t":c,v:c},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=c;while(u<e.length&&"0123456789".indexOf(e.charAt(++u))>-1)l+=e.charAt(u);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:c,v:c},++u;break;case"$":s[s.length]={t:"t",v:"$"},++u;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);s[s.length]={t:"t",v:c},++u;break}var g,y=0,v=0;for(u=s.length-1,d="t";u>=0;--u)switch(s[u].t){case"h":case"H":s[u].t=h,d="h",y<1&&(y=1);break;case"s":(g=s[u].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":d=s[u].t;break;case"m":"s"===d&&(s[u].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&s[u].v.match(/[Hh]/)&&(y=1),y<2&&s[u].v.match(/[Mm]/)&&(y=2),y<3&&s[u].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var _,b="";for(u=0;u<s.length;++u)switch(s[u].t){case"t":case"T":case" ":case"D":break;case"X":s[u].v="",s[u].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[u].v=le(s[u].t.charCodeAt(0),s[u].v,i,v),s[u].t="t";break;case"n":case"?":_=u+1;while(null!=s[_]&&("?"===(c=s[_].t)||"D"===c||(" "===c||"t"===c)&&null!=s[_+1]&&("?"===s[_+1].t||"t"===s[_+1].t&&"/"===s[_+1].v)||"("===s[u].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===s[_].v||" "===s[_].v&&null!=s[_+1]&&"?"==s[_+1].t)))s[u].v+=s[_].v,s[_]={v:"",t:";"},++_;b+=s[u].v,u=_-1;break;case"G":s[u].t="t",s[u].v=oe(t,n);break}var x,w,M="";if(b.length>0){40==b.charCodeAt(0)?(x=t<0&&45===b.charCodeAt(0)?-t:t,w=Ae("n",b,x)):(x=t<0&&r>1?-t:t,w=Ae("n",b,x),x<0&&s[0]&&"t"==s[0].t&&(w=w.substr(1),s[0].v="-"+s[0].v)),_=w.length-1;var S=s.length;for(u=0;u<s.length;++u)if(null!=s[u]&&"t"!=s[u].t&&s[u].v.indexOf(".")>-1){S=u;break}var T=s.length;if(S===s.length&&-1===w.indexOf("E")){for(u=s.length-1;u>=0;--u)null!=s[u]&&-1!=="n?".indexOf(s[u].t)&&(_>=s[u].v.length-1?(_-=s[u].v.length,s[u].v=w.substr(_+1,s[u].v.length)):_<0?s[u].v="":(s[u].v=w.substr(0,_+1),_=-1),s[u].t="t",T=u);_>=0&&T<s.length&&(s[T].v=w.substr(0,_+1)+s[T].v)}else if(S!==s.length&&-1===w.indexOf("E")){for(_=w.indexOf(".")-1,u=S;u>=0;--u)if(null!=s[u]&&-1!=="n?".indexOf(s[u].t)){for(a=s[u].v.indexOf(".")>-1&&u===S?s[u].v.indexOf(".")-1:s[u].v.length-1,M=s[u].v.substr(a+1);a>=0;--a)_>=0&&("0"===s[u].v.charAt(a)||"#"===s[u].v.charAt(a))&&(M=w.charAt(_--)+M);s[u].v=M,s[u].t="t",T=u}for(_>=0&&T<s.length&&(s[T].v=w.substr(0,_+1)+s[T].v),_=w.indexOf(".")+1,u=S;u<s.length;++u)if(null!=s[u]&&(-1!=="n?(".indexOf(s[u].t)||u===S)){for(a=s[u].v.indexOf(".")>-1&&u===S?s[u].v.indexOf(".")+1:0,M=s[u].v.substr(0,a);a<s[u].v.length;++a)_<w.length&&(M+=w.charAt(_++));s[u].v=M,s[u].t="t",T=u}}}for(u=0;u<s.length;++u)null!=s[u]&&"n?".indexOf(s[u].t)>-1&&(x=r>1&&t<0&&u>0&&"-"===s[u-1].v?-t:t,s[u].v=Ae(s[u].t,s[u].v,x),s[u].t="t");var k="";for(u=0;u!==s.length;++u)null!=s[u]&&(k+=s[u].v);return k}var Ye=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function je(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function Ne(e,t){var n=Ie(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var a=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,a];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var o=n[0].match(Ye),s=n[1].match(Ye);return je(t,o)?[r,n[0]]:je(t,s)?[r,n[1]]:[r,n[null!=o&&null!=s?2:1]]}return[r,a]}function Re(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:G)[e],null==r&&(r=n.table&&n.table[U[e]]||G[U[e]]),null==r&&(r=q[e]||"General");break}if(z(r,0))return oe(t,n);t instanceof Date&&(t=ee(t,n.date1904));var i=Ne(r,t);if(z(i[1]))return oe(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return Pe(i[1],t,n,i[0])}function He(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(void 0!=G[n]){if(G[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return G[t]=e,t}function Fe(e){for(var t=0;392!=t;++t)void 0!==e[t]&&He(e[t],t)}function ze(){G=V()}var Be=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function We(e){var t="number"==typeof e?G[e]:e;return t=t.replace(Be,"(\\d+)"),new RegExp("^"+t+"$")}function Ve(e,t,n){var r=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(Be)||[]).forEach((function(e,t){var u=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=u;break;case"d":a=u;break;case"h":o=u;break;case"s":l=u;break;case"m":o>=0?s=u:i=u;break}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var u=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);7==u.length&&(u="0"+u),8==u.length&&(u="20"+u);var c=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==o&&-1==s&&-1==l?u:-1==r&&-1==i&&-1==a?c:u+"T"+c}var Ge=function(){var e={};function t(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=n,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var n=t();function r(e){var t=0,n=0,r=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var a=[];for(r=1;16!=r;++r)a[r-1]="undefined"!==typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return a}var i=r(n),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],d=i[6],h=i[7],f=i[8],p=i[9],m=i[10],g=i[11],y=i[12],v=i[13],_=i[14];function b(e,t){for(var r=-1^t,i=0,a=e.length;i<a;)r=r>>>8^n[255&(r^e.charCodeAt(i++))];return~r}function x(e,t){for(var r=-1^t,i=e.length-15,b=0;b<i;)r=_[e[b++]^255&r]^v[e[b++]^r>>8&255]^y[e[b++]^r>>16&255]^g[e[b++]^r>>>24]^m[e[b++]]^p[e[b++]]^f[e[b++]]^h[e[b++]]^d[e[b++]]^c[e[b++]]^u[e[b++]]^l[e[b++]]^s[e[b++]]^o[e[b++]]^a[e[b++]]^n[e[b++]];i+=15;while(b<i)r=r>>>8^n[255&(r^e[b++])];return~r}function w(e,t){for(var r=-1^t,i=0,a=e.length,o=0,s=0;i<a;)o=e.charCodeAt(i++),o<128?r=r>>>8^n[255&(r^o)]:o<2048?(r=r>>>8^n[255&(r^(192|o>>6&31))],r=r>>>8^n[255&(r^(128|63&o))]):o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(i++),r=r>>>8^n[255&(r^(240|o>>8&7))],r=r>>>8^n[255&(r^(128|o>>2&63))],r=r>>>8^n[255&(r^(128|s>>6&15|(3&o)<<4))],r=r>>>8^n[255&(r^(128|63&s))]):(r=r>>>8^n[255&(r^(224|o>>12&15))],r=r>>>8^n[255&(r^(128|o>>6&63))],r=r>>>8^n[255&(r^(128|63&o))]);return~r}return e.table=n,e.bstr=b,e.buf=x,e.str=w,e}(),Ue=function(){var e,t={};function n(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,a=0,o=Math.min(n.length,r.length);i<o;++i){if(a=n[i].length-r[i].length)return a;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}function r(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function i(e){if("/"==e.charAt(e.length-1))return i(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function a(e,t){"string"===typeof t&&(t=new Date(t));var n=t.getHours();n=n<<6|t.getMinutes(),n=n<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=r<<4|t.getMonth()+1,r=r<<5|t.getDate(),e.write_shift(2,r)}function o(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n;n>>>=5;var a=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(a-1),r.setDate(i);var o=31&t;t>>>=5;var s=63&t;return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(o<<1),r}function s(e){An(e,0);var t={},n=0;while(e.l<=e.length-4){var r=e.read_shift(2),i=e.read_shift(2),a=e.l+i,o={};switch(r){case 21589:n=e.read_shift(1),1&n&&(o.mtime=e.read_shift(4)),i>5&&(2&n&&(o.atime=e.read_shift(4)),4&n&&(o.ctime=e.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime));break}e.l=a,t[r]=o}return t}function l(){return e||(e={})}function u(e,t){if(80==e[0]&&75==e[1])return Ie(e,t);if(109==(32|e[0])&&105==(32|e[1]))return Fe(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n=3,r=512,i=0,a=0,o=0,s=0,l=0,u=[],p=e.slice(0,512);An(p,0);var g=c(p);switch(n=g[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==g[1])return Ie(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(p=e.slice(0,r),An(p,28));var _=e.slice(0,r);d(p,n);var b=p.read_shift(4,"i");if(3===n&&0!==b)throw new Error("# Directory Sectors: Expected 0 saw "+b);p.l+=4,o=p.read_shift(4,"i"),p.l+=4,p.chk("00100000","Mini Stream Cutoff Size: "),s=p.read_shift(4,"i"),i=p.read_shift(4,"i"),l=p.read_shift(4,"i"),a=p.read_shift(4,"i");for(var x=-1,w=0;w<109;++w){if(x=p.read_shift(4,"i"),x<0)break;u[w]=x}var M=h(e,r);m(l,a,M,r,u);var S=y(M,o,u,r);S[o].name="!Directory",i>0&&s!==H&&(S[s].name="!MiniFAT"),S[u[0]].name="!FAT",S.fat_addrs=u,S.ssz=r;var T={},k=[],L=[],O=[];v(o,S,M,k,i,T,L,s),f(L,O,k),k.shift();var D={FileIndex:L,FullPaths:O};return t&&t.raw&&(D.raw={header:_,sectors:M}),D}function c(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(F,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function d(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function h(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}function f(e,t,n){for(var r=0,i=0,a=0,o=0,s=0,l=n.length,u=[],c=[];r<l;++r)u[r]=c[r]=r,t[r]=n[r];for(;s<c.length;++s)r=c[s],i=e[r].L,a=e[r].R,o=e[r].C,u[r]===r&&(-1!==i&&u[i]!==i&&(u[r]=u[i]),-1!==a&&u[a]!==a&&(u[r]=u[a])),-1!==o&&(u[o]=r),-1!==i&&r!=u[r]&&(u[i]=u[r],c.lastIndexOf(i)<s&&c.push(i)),-1!==a&&r!=u[r]&&(u[a]=u[r],c.lastIndexOf(a)<s&&c.push(a));for(r=1;r<l;++r)u[r]===r&&(-1!==a&&u[a]!==a?u[r]=u[a]:-1!==i&&u[i]!==i&&(u[r]=u[i]));for(r=1;r<l;++r)if(0!==e[r].type){if(s=r,s!=u[s])do{s=u[s],t[r]=t[s]+"/"+t[r]}while(0!==s&&-1!==u[s]&&s!=u[s]);u[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}function p(e,t,n){var r=e.start,i=e.size,a=[],o=r;while(n&&i>0&&o>=0)a.push(t.slice(o*R,o*R+R)),i-=R,o=wn(n,4*o);return 0===a.length?Cn(0):D(a).slice(0,e.size)}function m(e,t,n,r,i){var a=H;if(e===H){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var o=n[e],s=(r>>>2)-1;if(!o)return;for(var l=0;l<s;++l){if((a=wn(o,4*l))===H)break;i.push(a)}m(wn(o,r-4),t-1,n,r,i)}}function g(e,t,n,r,i){var a=[],o=[];i||(i=[]);var s=r-1,l=0,u=0;for(l=t;l>=0;){i[l]=!0,a[a.length]=l,o.push(e[l]);var c=n[Math.floor(4*l/r)];if(u=4*l&s,r<4+u)throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[c])break;l=wn(e[c],u)}return{nodes:a,data:Kt([o])}}function y(e,t,n,r){var i=e.length,a=[],o=[],s=[],l=[],u=r-1,c=0,d=0,h=0,f=0;for(c=0;c<i;++c)if(s=[],h=c+t,h>=i&&(h-=i),!o[h]){l=[];var p=[];for(d=h;d>=0;){p[d]=!0,o[d]=!0,s[s.length]=d,l.push(e[d]);var m=n[Math.floor(4*d/r)];if(f=4*d&u,r<4+f)throw new Error("FAT boundary crossed: "+d+" 4 "+r);if(!e[m])break;if(d=wn(e[m],f),p[d])break}a[h]={nodes:s,data:Kt([l])}}return a}function v(e,t,n,r,i,a,o,s){for(var l,u=0,c=r.length?2:0,d=t[e].data,h=0,f=0;h<d.length;h+=128){var m=d.slice(h,h+128);An(m,64),f=m.read_shift(2),l=$t(m,0,f-c),r.push(l);var y={name:l,type:m.read_shift(1),color:m.read_shift(1),L:m.read_shift(4,"i"),R:m.read_shift(4,"i"),C:m.read_shift(4,"i"),clsid:m.read_shift(16),state:m.read_shift(4,"i"),start:0,size:0},v=m.read_shift(2)+m.read_shift(2)+m.read_shift(2)+m.read_shift(2);0!==v&&(y.ct=k(m,m.l-8));var _=m.read_shift(2)+m.read_shift(2)+m.read_shift(2)+m.read_shift(2);0!==_&&(y.mt=k(m,m.l-8)),y.start=m.read_shift(4,"i"),y.size=m.read_shift(4,"i"),y.size<0&&y.start<0&&(y.size=y.type=0,y.start=H,y.name=""),5===y.type?(u=y.start,i>0&&u!==H&&(t[u].name="!StreamData")):y.size>=4096?(y.storage="fat",void 0===t[y.start]&&(t[y.start]=g(n,y.start,t.fat_addrs,t.ssz)),t[y.start].name=y.name,y.content=t[y.start].data.slice(0,y.size)):(y.storage="minifat",y.size<0?y.size=0:u!==H&&y.start!==H&&t[u]&&(y.content=p(y,t[u].data,(t[s]||{}).data))),y.content&&An(y.content,0),a[l]=y,o.push(y)}}function k(e,t){return new Date(1e3*(xn(e,t+4)/1e7*Math.pow(2,32)+xn(e,t)/1e7-11644473600))}function L(t,n){return l(),u(e.readFileSync(t),n)}function O(e,t){var n=t&&t.type;switch(n||x&&Buffer.isBuffer(e)&&(n="buffer"),n||"base64"){case"file":return L(e,t);case"base64":return u(T(b(e)),t);case"binary":return u(T(e),t)}return u(e,t)}function A(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),E(e)}function E(e){var t="Sh33tJ5";if(!Ue.find(e,"/"+t)){var n=Cn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),P(e)}}function P(e,t){A(e);for(var a=!1,o=!1,s=e.FullPaths.length-1;s>=0;--s){var l=e.FileIndex[s];switch(l.type){case 0:o?a=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:o=!0,isNaN(l.R*l.L*l.C)&&(a=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(a=!0);break;default:a=!0;break}}if(a||t){var u=new Date(1987,1,19),c=0,d=Object.create?Object.create(null):{},h=[];for(s=0;s<e.FullPaths.length;++s)d[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&h.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<h.length;++s){var f=r(h[s][0]);o=d[f],o||(h.push([f,{name:i(f).replace("/",""),type:1,clsid:B,ct:u,mt:u,content:null}]),d[f]=!0)}for(h.sort((function(e,t){return n(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],s=0;s<h.length;++s)e.FullPaths[s]=h[s][0],e.FileIndex[s]=h[s][1];for(s=0;s<h.length;++s){var p=e.FileIndex[s],m=e.FullPaths[s];if(p.name=i(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||B,0===s)p.C=h.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(c=s+1;c<h.length;++c)if(r(e.FullPaths[c])==m)break;for(p.C=c>=h.length?-1:c,c=s+1;c<h.length;++c)if(r(e.FullPaths[c])==r(m))break;p.R=c>=h.length?-1:c,p.type=1}else r(e.FullPaths[s+1]||"")==r(m)&&(p.R=s+1),p.type=2}}}function Y(e,t){var n=t||{};if("mad"==n.fileType)return ze(e,n);switch(P(e),n.fileType){case"zip":return Ee(e,n)}var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var i=e.FileIndex[r];if(i.content){var a=i.content.length;a>0&&(a<4096?t+=a+63>>6:n+=a+511>>9)}}var o=e.FullPaths.length+3>>2,s=t+7>>3,l=t+127>>7,u=s+n+o+l,c=u+127>>7,d=c<=109?0:Math.ceil((c-109)/127);while(u+c+d+127>>7>c)d=++c<=109?0:Math.ceil((c-109)/127);var h=[1,d,c,l,o,n,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),i=Cn(r[7]<<9),a=0,o=0;for(a=0;a<8;++a)i.write_shift(1,z[a]);for(a=0;a<8;++a)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),a=0;a<3;++a)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:H),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:H),i.write_shift(4,r[1]),a=0;a<109;++a)i.write_shift(-4,a<r[2]?r[1]+a:-1);if(r[1])for(o=0;o<r[1];++o){for(;a<236+127*o;++a)i.write_shift(-4,a<r[2]?r[1]+a:-1);i.write_shift(-4,o===r[1]-1?H:o+1)}var s=function(e){for(o+=e;a<o-1;++a)i.write_shift(-4,a+1);e&&(++a,i.write_shift(-4,H))};for(o=a=0,o+=r[1];a<o;++a)i.write_shift(-4,W.DIFSECT);for(o+=r[2];a<o;++a)i.write_shift(-4,W.FATSECT);s(r[3]),s(r[4]);for(var l=0,u=0,c=e.FileIndex[0];l<e.FileIndex.length;++l)c=e.FileIndex[l],c.content&&(u=c.content.length,u<4096||(c.start=o,s(u+511>>9)));s(r[6]+7>>3);while(511&i.l)i.write_shift(-4,W.ENDOFCHAIN);for(o=a=0,l=0;l<e.FileIndex.length;++l)c=e.FileIndex[l],c.content&&(u=c.content.length,!u||u>=4096||(c.start=o,s(u+63>>6)));while(511&i.l)i.write_shift(-4,W.ENDOFCHAIN);for(a=0;a<r[4]<<2;++a){var d=e.FullPaths[a];if(d&&0!==d.length){c=e.FileIndex[a],0===a&&(c.start=c.size?c.start-1:H);var h=0===a&&n.root||c.name;if(u=2*(h.length+1),i.write_shift(64,h,"utf16le"),i.write_shift(2,u),i.write_shift(1,c.type),i.write_shift(1,c.color),i.write_shift(-4,c.L),i.write_shift(-4,c.R),i.write_shift(-4,c.C),c.clsid)i.write_shift(16,c.clsid,"hex");else for(l=0;l<4;++l)i.write_shift(4,0);i.write_shift(4,c.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,c.start),i.write_shift(4,c.size),i.write_shift(4,0)}else{for(l=0;l<17;++l)i.write_shift(4,0);for(l=0;l<3;++l)i.write_shift(4,-1);for(l=0;l<12;++l)i.write_shift(4,0)}}for(a=1;a<e.FileIndex.length;++a)if(c=e.FileIndex[a],c.size>=4096)if(i.l=c.start+1<<9,x&&Buffer.isBuffer(c.content))c.content.copy(i,i.l,0,c.size),i.l+=c.size+511&-512;else{for(l=0;l<c.size;++l)i.write_shift(1,c.content[l]);for(;511&l;++l)i.write_shift(1,0)}for(a=1;a<e.FileIndex.length;++a)if(c=e.FileIndex[a],c.size>0&&c.size<4096)if(x&&Buffer.isBuffer(c.content))c.content.copy(i,i.l,0,c.size),i.l+=c.size+63&-64;else{for(l=0;l<c.size;++l)i.write_shift(1,c.content[l]);for(;63&l;++l)i.write_shift(1,0)}if(x)i.l=i.length;else while(i.l<i.length)i.write_shift(1,0);return i}function j(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),i=!1;47===t.charCodeAt(0)?(i=!0,t=n[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var a=t.toUpperCase(),o=!0===i?n.indexOf(a):r.indexOf(a);if(-1!==o)return e.FileIndex[o];var s=!a.match(C);for(a=a.replace(I,""),s&&(a=a.replace(C,"!")),o=0;o<n.length;++o){if((s?n[o].replace(C,"!"):n[o]).replace(I,"")==a)return e.FileIndex[o];if((s?r[o].replace(C,"!"):r[o]).replace(I,"")==a)return e.FileIndex[o]}return null}t.version="1.2.1";var N,R=64,H=-2,F="d0cf11e0a1b11ae1",z=[208,207,17,224,161,177,26,225],B="00000000000000000000000000000000",W={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:H,FREESECT:-1,HEADER_SIGNATURE:F,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:B,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function V(t,n,r){l();var i=Y(t,r);e.writeFileSync(n,i)}function G(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function U(t,n){var r=Y(t,n);switch(n&&n.type||"buffer"){case"file":return l(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:G(r);case"base64":return _("string"==typeof r?r:G(r));case"buffer":if(x)return Buffer.isBuffer(r)?r:w(r);case"array":return"string"==typeof r?T(r):r}return r}function q(e){try{var t=e.InflateRaw,n=new t;if(n._processChunk(new Uint8Array([3,0]),n._finishFlushFlag),!n.bytesRead)throw new Error("zlib does not expose bytesRead");N=e}catch(r){console.error("cannot use native zlib: "+(r.message||r))}}function X(e,t){if(!N)return De(e,t);var n=N.InflateRaw,r=new n,i=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,i}function Z(e){return N?N.deflateRawSync(e):xe(e)}var K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],$=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Q(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var ee="undefined"!==typeof Uint8Array,te=ee?new Uint8Array(256):[],ne=0;ne<256;++ne)te[ne]=Q(ne);function re(e,t){var n=te[255&e];return t<=8?n>>>8-t:(n=n<<8|te[e>>8&255],t<=16?n>>>16-t:(n=n<<8|te[e>>16&255],n>>>24-t))}function ie(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function ae(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function oe(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}function se(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function le(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ue(e,t,n){var r=7&t,i=t>>>3,a=(1<<n)-1,o=e[i]>>>r;return n<8-r?o&a:(o|=e[i+1]<<8-r,n<16-r?o&a:(o|=e[i+2]<<16-r,n<24-r||(o|=e[i+3]<<24-r),o&a))}function ce(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<<r:(e[i]|=n<<r&255,e[i+1]=(7&n)>>8-r),t+3}function de(e,t,n){var r=7&t,i=t>>>3;return n=(1&n)<<r,e[i]|=n,t+1}function he(e,t,n){var r=7&t,i=t>>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=n,t+8}function fe(e,t,n){var r=7&t,i=t>>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=255&n,e[i+2]=n>>>8,t+16}function pe(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(x){var a=S(r);if(e.copy)e.copy(a);else for(;i<e.length;++i)a[i]=e[i];return a}if(ee){var o=new Uint8Array(r);if(o.set)o.set(e);else for(;i<n;++i)o[i]=e[i];return o}return e.length=r,e}function me(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function ge(e,t,n){var r=1,i=0,a=0,o=0,s=0,l=e.length,u=ee?new Uint16Array(32):me(32);for(a=0;a<32;++a)u[a]=0;for(a=l;a<n;++a)e[a]=0;l=e.length;var c=ee?new Uint16Array(l):me(l);for(a=0;a<l;++a)u[i=e[a]]++,r<i&&(r=i),c[a]=0;for(u[0]=0,a=1;a<=r;++a)u[a+16]=s=s+u[a-1]<<1;for(a=0;a<l;++a)s=e[a],0!=s&&(c[a]=u[s+16]++);var d=0;for(a=0;a<l;++a)if(d=e[a],0!=d)for(s=re(c[a],r)>>r-d,o=(1<<r+4-d)-1;o>=0;--o)t[s|o<<d]=15&d|a<<4;return r}var ye=ee?new Uint16Array(512):me(512),ve=ee?new Uint16Array(32):me(32);if(!ee){for(var _e=0;_e<512;++_e)ye[_e]=0;for(_e=0;_e<32;++_e)ve[_e]=0}(function(){for(var e=[],t=0;t<32;t++)e.push(5);ge(e,ve,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);ge(n,ye,288)})();var be=function(){for(var e=ee?new Uint8Array(32768):[],t=0,n=0;t<$.length-1;++t)for(;n<$[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=ee?new Uint8Array(259):[];for(t=0,n=0;t<J.length-1;++t)for(;n<J[t+1];++n)r[n]=t;function i(e,t){var n=0;while(n<e.length){var r=Math.min(65535,e.length-n),i=n+r==e.length;t.write_shift(1,+i),t.write_shift(2,r),t.write_shift(2,65535&~r);while(r-- >0)t[t.l++]=e[n++]}return t.l}function a(t,n){var i=0,a=0,o=ee?new Uint16Array(32768):[];while(a<t.length){var s=Math.min(65535,t.length-a);if(s<10){i=ce(n,i,+!(a+s!=t.length)),7&i&&(i+=8-(7&i)),n.l=i/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);while(s-- >0)n[n.l++]=t[a++];i=8*n.l}else{i=ce(n,i,+!(a+s!=t.length)+2);var l=0;while(s-- >0){var u=t[a];l=32767&(l<<5^u);var c=-1,d=0;if((c=o[l])&&(c|=-32768&a,c>a&&(c-=32768),c<a))while(t[c+d]==t[a+d]&&d<250)++d;if(d>2){u=r[d],u<=22?i=he(n,i,te[u+1]>>1)-1:(he(n,i,3),i+=5,he(n,i,te[u-23]>>5),i+=3);var h=u<8?0:u-4>>2;h>0&&(fe(n,i,d-J[u]),i+=h),u=e[a-c],i=he(n,i,te[u]>>3),i-=3;var f=u<4?0:u-2>>1;f>0&&(fe(n,i,a-c-$[u]),i+=f);for(var p=0;p<d;++p)o[l]=32767&a,l=32767&(l<<5^t[a]),++a;s-=d-1}else u<=143?u+=48:i=de(n,i,1),i=he(n,i,te[u]),o[l]=32767&a,++a}i=he(n,i,0)-1}}return n.l=(i+7)/8|0,n.l}return function(e,t){return e.length<8?i(e,t):a(e,t)}}();function xe(e){var t=Cn(50+Math.floor(1.1*e.length)),n=be(e,t);return t.slice(0,n)}var we=ee?new Uint16Array(32768):me(32768),Me=ee?new Uint16Array(32768):me(32768),Se=ee?new Uint16Array(128):me(128),Te=1,ke=1;function Le(e,t){var n=se(e,t)+257;t+=5;var r=se(e,t)+1;t+=5;var i=oe(e,t)+4;t+=4;for(var a=0,o=ee?new Uint8Array(19):me(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,u=ee?new Uint8Array(8):me(8),c=ee?new Uint8Array(8):me(8),d=o.length,h=0;h<i;++h)o[K[h]]=a=ae(e,t),l<a&&(l=a),u[a]++,t+=3;var f=0;for(u[0]=0,h=1;h<=l;++h)c[h]=f=f+u[h-1]<<1;for(h=0;h<d;++h)0!=(f=o[h])&&(s[h]=c[f]++);var p=0;for(h=0;h<d;++h)if(p=o[h],0!=p){f=te[s[h]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Se[f|m<<p]=7&p|h<<3}var g=[];for(l=1;g.length<n+r;)switch(f=Se[le(e,t)],t+=7&f,f>>>=3){case 16:a=3+ie(e,t),t+=2,f=g[g.length-1];while(a-- >0)g.push(f);break;case 17:a=3+ae(e,t),t+=3;while(a-- >0)g.push(0);break;case 18:a=11+le(e,t),t+=7;while(a-- >0)g.push(0);break;default:g.push(f),l<f&&(l=f);break}var y=g.slice(0,n),v=g.slice(n);for(h=n;h<286;++h)y[h]=0;for(h=r;h<30;++h)v[h]=0;return Te=ge(y,we,286),ke=ge(v,Me,30),t}function Oe(e,t){if(3==e[0]&&!(3&e[1]))return[M(t),2];var n=0,r=0,i=S(t||1<<18),a=0,o=i.length>>>0,s=0,l=0;while(0==(1&r))if(r=ae(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=Le(e,n),s=Te,l=ke);;){!t&&o<a+32767&&(i=pe(i,a+32767),o=i.length);var u=ue(e,n,s),c=r>>>1==1?ye[u]:we[u];if(n+=15&c,c>>>=4,0===(c>>>8&255))i[a++]=c;else{if(256==c)break;c-=257;var d=c<8?0:c-4>>2;d>5&&(d=0);var h=a+J[c];d>0&&(h+=ue(e,n,d),n+=d),u=ue(e,n,l),c=r>>>1==1?ve[u]:Me[u],n+=15&c,c>>>=4;var f=c<4?0:c-2>>1,p=$[c];f>0&&(p+=ue(e,n,f),n+=f),!t&&o<h&&(i=pe(i,h+100),o=i.length);while(a<h)i[a]=i[a-p],++a}}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0){!t&&o<a+m&&(i=pe(i,a+m),o=i.length);while(m-- >0)i[a++]=e[n>>>3],n+=8}}return t?[i,n+7>>>3]:[i.slice(0,a),n+7>>>3]}function De(e,t){var n=e.slice(e.l||0),r=Oe(n,t);return e.l+=r[1],r[0]}function Ae(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Ie(e,t){var n=e;An(n,0);var r=[],i=[],a={FileIndex:r,FullPaths:i};A(a,{root:t.root});var o=n.length-4;while((80!=n[o]||75!=n[o+1]||5!=n[o+2]||6!=n[o+3])&&o>=0)--o;n.l=o+4,n.l+=4;var l=n.read_shift(2);n.l+=6;var u=n.read_shift(4);for(n.l=u,o=0;o<l;++o){n.l+=20;var c=n.read_shift(4),d=n.read_shift(4),h=n.read_shift(2),f=n.read_shift(2),p=n.read_shift(2);n.l+=8;var m=n.read_shift(4),g=s(n.slice(n.l+h,n.l+h+f));n.l+=h+f+p;var y=n.l;n.l=m+4,Ce(n,c,d,a,g),n.l=y}return a}function Ce(e,t,n,r,i){e.l+=2;var a=e.read_shift(2),l=e.read_shift(2),u=o(e);if(8257&a)throw new Error("Unsupported ZIP encryption");for(var c=e.read_shift(4),d=e.read_shift(4),h=e.read_shift(4),f=e.read_shift(2),p=e.read_shift(2),m="",g=0;g<f;++g)m+=String.fromCharCode(e[e.l++]);if(p){var y=s(e.slice(e.l,e.l+p));(y[21589]||{}).mt&&(u=y[21589].mt),((i||{})[21589]||{}).mt&&(u=i[21589].mt)}e.l+=p;var v=e.slice(e.l,e.l+d);switch(l){case 8:v=X(e,h);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+l)}var _=!1;8&a&&(c=e.read_shift(4),134695760==c&&(c=e.read_shift(4),_=!0),d=e.read_shift(4),h=e.read_shift(4)),d!=t&&Ae(_,"Bad compressed size: "+t+" != "+d),h!=n&&Ae(_,"Bad uncompressed size: "+n+" != "+h),We(r,m,v,{unsafe:!0,mt:u})}function Ee(e,t){var n=t||{},r=[],i=[],o=Cn(1),s=n.compression?8:0,l=0,u=!1;u&&(l|=8);var c=0,d=0,h=0,f=0,p=e.FullPaths[0],m=p,g=e.FileIndex[0],y=[],v=0;for(c=1;c<e.FullPaths.length;++c)if(m=e.FullPaths[c].slice(p.length),g=e.FileIndex[c],g.size&&g.content&&"Sh33tJ5"!=m){var _=h,b=Cn(m.length);for(d=0;d<m.length;++d)b.write_shift(1,127&m.charCodeAt(d));b=b.slice(0,b.l),y[f]=Ge.buf(g.content,0);var x=g.content;8==s&&(x=Z(x)),o=Cn(30),o.write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),g.mt?a(o,g.mt):o.write_shift(4,0),o.write_shift(-4,8&l?0:y[f]),o.write_shift(4,8&l?0:x.length),o.write_shift(4,8&l?0:g.content.length),o.write_shift(2,b.length),o.write_shift(2,0),h+=o.length,r.push(o),h+=b.length,r.push(b),h+=x.length,r.push(x),8&l&&(o=Cn(12),o.write_shift(-4,y[f]),o.write_shift(4,x.length),o.write_shift(4,g.content.length),h+=o.l,r.push(o)),o=Cn(46),o.write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,y[f]),o.write_shift(4,x.length),o.write_shift(4,g.content.length),o.write_shift(2,b.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,_),v+=o.l,i.push(o),v+=b.length,i.push(b),++f}return o=Cn(22),o.write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,f),o.write_shift(2,f),o.write_shift(4,v),o.write_shift(4,h),o.write_shift(2,0),D([D(r),D(i),o])}var Pe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Ye(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&Pe[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/),r&&Pe[r[1]])?Pe[r[1]]:"application/octet-stream"}function je(e){for(var t=_(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function Ne(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09"),"\n"==t.charAt(0)&&(t="=0D"+t.slice(1)),t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A");for(var n=[],r=t.split("\r\n"),i=0;i<r.length;++i){var a=r[i];if(0!=a.length)for(var o=0;o<a.length;){var s=76,l=a.slice(o,o+s);"="==l.charAt(s-1)?s--:"="==l.charAt(s-2)?s-=2:"="==l.charAt(s-3)&&(s-=3),l=a.slice(o,o+s),o+=s,o<a.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function Re(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];while(n<=e.length&&"="==r.charAt(r.length-1))r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return T(t.join("\r\n"))}function He(e,t,n){for(var r,i="",a="",o="",s=0;s<10;++s){var l=t[s];if(!l||l.match(/^\s*$/))break;var u=l.match(/^(.*?):\s*([^\s].*)$/);if(u)switch(u[1].toLowerCase()){case"content-location":i=u[2].trim();break;case"content-type":o=u[2].trim();break;case"content-transfer-encoding":a=u[2].trim();break}}switch(++s,a.toLowerCase()){case"base64":r=T(b(t.slice(s).join("")));break;case"quoted-printable":r=Re(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+a)}var c=We(e,i.slice(n.length),r,{unsafe:!0});o&&(c.ctype=o)}function Fe(e,t){if("mime-version:"!=G(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(x&&Buffer.isBuffer(e)?e.toString("binary"):G(e)).split("\r\n"),i=0,a="";for(i=0;i<r.length;++i)if(a=r[i],/^Content-Location:/i.test(a)&&(a=a.slice(a.indexOf("file")),n||(n=a.slice(0,a.lastIndexOf("/")+1)),a.slice(0,n.length)!=n))while(n.length>0)if(n=n.slice(0,n.length-1),n=n.slice(0,n.lastIndexOf("/")+1),a.slice(0,n.length)==n)break;var o=(r[1]||"").match(/boundary="(.*?)"/);if(!o)throw new Error("MAD cannot find boundary");var s="--"+(o[1]||""),l=[],u=[],c={FileIndex:l,FullPaths:u};A(c);var d,h=0;for(i=0;i<r.length;++i){var f=r[i];f!==s&&f!==s+"--"||(h++&&He(c,r.slice(d,i),n),d=i)}return c}function ze(e,t){var n=t||{},r=n.boundary||"SheetJS";r="------="+r;for(var i=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+r.slice(2)+'"',"","",""],a=e.FullPaths[0],o=a,s=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(o=e.FullPaths[l].slice(a.length),s=e.FileIndex[l],s.size&&s.content&&"Sh33tJ5"!=o){o=o.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var u=s.content,c=x&&Buffer.isBuffer(u)?u.toString("binary"):G(u),d=0,h=Math.min(1024,c.length),f=0,p=0;p<=h;++p)(f=c.charCodeAt(p))>=32&&f<128&&++d;var m=d>=4*h/5;i.push(r),i.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+o),i.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),i.push("Content-Type: "+Ye(s,o)),i.push(""),i.push(m?Ne(c):je(c))}return i.push(r+"--\r\n"),i.join("\r\n")}function Be(e){var t={};return A(t,e),t}function We(e,t,n,r){var a=r&&r.unsafe;a||A(e);var o=!a&&Ue.find(e,t);if(!o){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),o={name:i(t),type:2},e.FileIndex.push(o),e.FullPaths.push(s),a||Ue.utils.cfb_gc(e)}return o.content=n,o.size=n?n.length:0,r&&(r.CLSID&&(o.clsid=r.CLSID),r.mt&&(o.mt=r.mt),r.ct&&(o.ct=r.ct)),o}function Ve(e,t){A(e);var n=Ue.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1}function qe(e,t,n){A(e);var r=Ue.find(e,t);if(r)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==r)return e.FileIndex[a].name=i(n),e.FullPaths[a]=n,!0;return!1}function Xe(e){P(e,!0)}return t.find=j,t.read=O,t.parse=u,t.write=U,t.writeFile=V,t.utils={cfb_new:Be,cfb_add:We,cfb_del:Ve,cfb_mov:qe,cfb_gc:Xe,ReadShift:Sn,CheckField:Dn,prep_blob:An,bconcat:D,use_zlib:q,_deflateRaw:xe,_inflateRaw:De,consts:W},t}();let qe=void 0;function Xe(e){return"string"===typeof e?k(e):Array.isArray(e)?O(e):e}function Ze(e,t,n){if("undefined"!==typeof qe&&qe.writeFileSync)return n?qe.writeFileSync(e,t,n):qe.writeFileSync(e,t);if("undefined"!==typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=k(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?jt(t):t;if("undefined"!==typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!==typeof Blob){var i=new Blob([Xe(r)],{type:"application/octet-stream"});if("undefined"!==typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if("undefined"!==typeof saveAs)return saveAs(i,e);if("undefined"!==typeof URL&&"undefined"!==typeof document&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if("object"===typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(a)}),6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(null!=o.download)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(a)}),6e4),a}}if("undefined"!==typeof $&&"undefined"!==typeof File&&"undefined"!==typeof Folder)try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=L(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Ke(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Je(e,t){for(var n=[],r=Ke(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function $e(e){for(var t=[],n=Ke(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function Qe(e){for(var t=[],n=Ke(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}function et(e){for(var t=[],n=Ke(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}var tt=new Date(1899,11,30,0,0,0);function nt(e,t){var n=e.getTime();t&&(n-=1263168e5);var r=tt.getTime()+6e4*(e.getTimezoneOffset()-tt.getTimezoneOffset());return(n-r)/864e5}var rt=new Date,it=tt.getTime()+6e4*(rt.getTimezoneOffset()-tt.getTimezoneOffset()),at=rt.getTimezoneOffset();function ot(e){var t=new Date;return t.setTime(24*e*60*60*1e3+it),t.getTimezoneOffset()!==at&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-at)),t}var st=new Date("2017-02-19T19:06:09.000Z"),lt=isNaN(st.getFullYear())?new Date("2/19/17"):st,ut=2017==lt.getFullYear();function ct(e,t){var n=new Date(e);if(ut)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==lt.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-60*a.getTimezoneOffset()*1e3)),a}function dt(e,t){if(x&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return jt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return jt(h(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return jt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return jt(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"","‚":"","ƒ":"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(a){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function ht(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ht(e[n]));return t}function ft(e,t){var n="";while(n.length<t)n+=e;return n}function pt(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var mt=["january","february","march","april","may","june","july","august","september","october","november","december"];function gt(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return n;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&-1==mt.indexOf(o))return n}else if(o.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||a>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}function yt(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=x?w(n):A(n),Ue.utils.cfb_add(e,t,r);Ue.utils.cfb_add(e,t,n)}else e.file(t,n)}function vt(){return Ue.utils.cfb_new()}var _t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var bt={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},xt=$e(bt),wt=/[&<>'"]/g,Mt=/[\u0000-\u0008\u000b-\u001f]/g;function St(e){var t=e+"";return t.replace(wt,(function(e){return xt[e]})).replace(Mt,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Tt(e){return St(e).replace(/ /g,"_x0020_")}var kt=/[\u0000-\u001f]/g;function Lt(e){var t=e+"";return t.replace(wt,(function(e){return xt[e]})).replace(/\n/g,"<br/>").replace(kt,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function Ot(e){var t=e+"";return t.replace(wt,(function(e){return xt[e]})).replace(kt,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}function Dt(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function At(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function It(e){var t="",n=0,r=0,i=0,a=0,o=0,s=0;while(n<e.length)r=e.charCodeAt(n++),r<128?t+=String.fromCharCode(r):(i=e.charCodeAt(n++),r>191&&r<224?(o=(31&r)<<6,o|=63&i,t+=String.fromCharCode(o)):(a=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&a):(o=e.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&a)<<6|63&o)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function Ct(e){var t,n,r,i=M(2*e.length),a=1,o=0,s=0;for(n=0;n<e.length;n+=a)a=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),a=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),a=3):(a=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),t-=65536,s=55296+(t>>>10&1023),t=56320+(1023&t)),0!==s&&(i[o++]=255&s,i[o++]=s>>>8,s=0),i[o++]=t%256,i[o++]=t>>>8;return i.slice(0,o).toString("ucs2")}function Et(e){return w(e,"binary").toString("utf8")}var Pt="foo bar bazâð£",Yt=x&&(Et(Pt)==It(Pt)&&Et||Ct(Pt)==It(Pt)&&Ct)||It,jt=x?function(e){return w(e,"utf8").toString("binary")}:function(e){var t=[],n=0,r=0,i=0;while(n<e.length)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},Nt=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}();var Rt=/(^\s|\s$|\n)/;function Ht(e,t){return"<"+e+(t.match(Rt)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ft(e){return Ke(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function zt(e,t,n){return"<"+e+(null!=n?Ft(n):"")+(null!=t?(t.match(Rt)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Bt(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(n){if(t)throw n}return""}function Wt(e,t){switch(typeof e){case"string":var n=zt("vt:lpwstr",St(e));return t&&(n=n.replace(/&quot;/g,"_x0022_")),n;case"number":return zt((0|e)==e?"vt:i4":"vt:r8",St(String(e)));case"boolean":return zt("vt:bool",e?"true":"false")}if(e instanceof Date)return zt("vt:filetime",Bt(e));throw new Error("Unable to serialize "+e)}var Vt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Gt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ut={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function qt(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],a=5;a>=0;--a)i=256*i+e[t+a];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function Xt(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=r?-t:t;isFinite(o)?0==o?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[n+s]=255&a;e[n+6]=(15&i)<<4|15&a,e[n+7]=i>>4|r}var Zt=function(e){for(var t=[],n=10240,r=0;r<e[0].length;++r)if(e[0][r])for(var i=0,a=e[0][r].length;i<a;i+=n)t.push.apply(t,e[0][r].slice(i,i+n));return t},Kt=x?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:w(e)}))):Zt(e)}:Zt,Jt=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(_n(e,i)));return r.join("").replace(I,"")},$t=x?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(I,""):Jt(e,t,n)}:Jt,Qt=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push(("0"+e[i].toString(16)).slice(-2));return r.join("")},en=x?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):Qt(e,t,n)}:Qt,tn=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(vn(e,i)));return r.join("")},nn=x?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):tn(e,t,n)}:tn,rn=function(e,t){var n=xn(e,t);return n>0?nn(e,t+4,t+4+n-1):""},an=rn,on=function(e,t){var n=xn(e,t);return n>0?nn(e,t+4,t+4+n-1):""},sn=on,ln=function(e,t){var n=2*xn(e,t);return n>0?nn(e,t+4,t+4+n-1):""},un=ln,cn=function(e,t){var n=xn(e,t);return n>0?$t(e,t+4,t+4+n):""},dn=cn,hn=function(e,t){var n=xn(e,t);return n>0?nn(e,t+4,t+4+n):""},fn=hn,pn=function(e,t){return qt(e,t)},mn=pn,gn=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function yn(){$t=function(e,t,n){return f.utils.decode(1200,e.slice(t,n)).replace(I,"")},nn=function(e,t,n){return f.utils.decode(65001,e.slice(t,n))},an=function(e,t){var n=xn(e,t);return n>0?f.utils.decode(a,e.slice(t+4,t+4+n-1)):""},sn=function(e,t){var n=xn(e,t);return n>0?f.utils.decode(i,e.slice(t+4,t+4+n-1)):""},un=function(e,t){var n=2*xn(e,t);return n>0?f.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},dn=function(e,t){var n=xn(e,t);return n>0?f.utils.decode(1200,e.slice(t+4,t+4+n)):""},fn=function(e,t){var n=xn(e,t);return n>0?f.utils.decode(65001,e.slice(t+4,t+4+n)):""}}x&&(an=function(e,t){if(!Buffer.isBuffer(e))return rn(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},sn=function(e,t){if(!Buffer.isBuffer(e))return on(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},un=function(e,t){if(!Buffer.isBuffer(e))return ln(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},dn=function(e,t){if(!Buffer.isBuffer(e))return cn(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},fn=function(e,t){if(!Buffer.isBuffer(e))return hn(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},mn=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):pn(e,t)},gn=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof f&&yn();var vn=function(e,t){return e[t]},_n=function(e,t){return 256*e[t+1]+e[t]},bn=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},xn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},wn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Mn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Sn(e,t){var n,r,a,o,s,l,u="",c=[];switch(t){case"dbcs":if(l=this.l,x&&Buffer.isBuffer(this))u=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)u+=String.fromCharCode(_n(this,l)),l+=2;e*=2;break;case"utf8":u=nn(this,this.l,this.l+e);break;case"utf16le":e*=2,u=$t(this,this.l,this.l+e);break;case"wstr":if("undefined"===typeof f)return Sn.call(this,e,"dbcs");u=f.utils.decode(i,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":u=an(this,this.l),e=4+xn(this,this.l);break;case"lpstr-cp":u=sn(this,this.l),e=4+xn(this,this.l);break;case"lpwstr":u=un(this,this.l),e=4+2*xn(this,this.l);break;case"lpp4":e=4+xn(this,this.l),u=dn(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+xn(this,this.l),u=fn(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":e=0,u="";while(0!==(a=vn(this,this.l+e++)))c.push(p(a));u=c.join("");break;case"_wstr":e=0,u="";while(0!==(a=_n(this,this.l+e)))c.push(p(a)),e+=2;e+=2,u=c.join("");break;case"dbcs-cont":for(u="",l=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(l))return a=vn(this,l),this.l=l+1,o=Sn.call(this,e-s,a?"dbcs-cont":"sbcs-cont"),c.join("")+o;c.push(p(_n(this,l))),l+=2}u=c.join(""),e*=2;break;case"cpstr":if("undefined"!==typeof f){u=f.utils.decode(i,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(u="",l=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(l))return a=vn(this,l),this.l=l+1,o=Sn.call(this,e-s,a?"dbcs-cont":"sbcs-cont"),c.join("")+o;c.push(p(vn(this,l))),l+=1}u=c.join("");break;default:switch(e){case 1:return n=vn(this,this.l),this.l++,n;case 2:return n=("i"===t?bn:_n)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0===(128&this[this.l+3])?(n=(e>0?wn:Mn)(this,this.l),this.l+=4,n):(r=xn(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?mn(this,this.l):mn([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:u=en(this,this.l,e);break}}return this.l+=e,u}var Tn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},kn=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Ln=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function On(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Ln(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if("undefined"!==typeof f&&874==a)for(i=0;i!=t.length;++i){var o=f.utils.encode(a,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var s=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var l=t.charCodeAt(i);this[this.l++]=255&l,this[this.l++]=l>>8}while(this.l<s)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,Tn(this,t,this.l);break;case 8:if(r=8,"f"===n){Xt(this,t,this.l);break}case 16:break;case-4:r=4,kn(this,t,this.l);break}}return this.l+=r,this}function Dn(e,t){var n=en(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function An(e,t){e.l=t,e.read_shift=Sn,e.chk=Dn,e.write_shift=On}function In(e,t){e.l+=t}function Cn(e){var t=M(e);return An(t,0),t}function En(){var e=[],t=x?256:2048,n=function(e){var t=Cn(e);return An(t,0),t},r=n(t),i=function(){r&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},a=function(e){return r&&e<r.length-r.l?r:(i(),r=n(Math.max(e+1,t)))},o=function(){return i(),D(e)},s=function(e){i(),r=e,null==r.l&&(r.l=r.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function Pn(e,t,n,r){var i,a=+t;if(!isNaN(a)){r||(r=nd[a].p||(n||[]).length||0),i=1+(a>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var o=e.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,128+(127&a)),o.write_shift(1,a>>7));for(var s=0;4!=s;++s){if(!(r>=128)){o.write_shift(1,r);break}o.write_shift(1,128+(127&r)),r>>=7}r>0&&gn(n)&&e.push(n)}}function Yn(e,t,n){var r=ht(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){while(r.c>=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function jn(e,t,n){var r=ht(e);return r.s=Yn(r.s,t.s,n),r.e=Yn(r.e,t.s,n),r}function Nn(e,t){if(e.cRel&&e.c<0){e=ht(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=ht(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var n=Zn(e);return e.cRel||null==e.cRel||(n=Gn(n)),e.rRel||null==e.rRel||(n=zn(n)),n}function Rn(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Nn(e.s,t.biff)+":"+Nn(e.e,t.biff):(e.s.rRel?"":"$")+Fn(e.s.r)+":"+(e.e.rRel?"":"$")+Fn(e.e.r):(e.s.cRel?"":"$")+Vn(e.s.c)+":"+(e.e.cRel?"":"$")+Vn(e.e.c)}function Hn(e){return parseInt(Bn(e),10)-1}function Fn(e){return""+(e+1)}function zn(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Bn(e){return e.replace(/\$(\d+)$/,"$1")}function Wn(e){for(var t=Un(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function Vn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Gn(e){return e.replace(/^([A-Z])/,"$$$1")}function Un(e){return e.replace(/^\$([A-Z])/,"$1")}function qn(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Xn(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function Zn(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function Kn(e){var t=e.indexOf(":");return-1==t?{s:Xn(e),e:Xn(e)}:{s:Xn(e.slice(0,t)),e:Xn(e.slice(t+1))}}function Jn(e,t){return"undefined"===typeof t||"number"===typeof t?Jn(e.s,e.e):("string"!==typeof e&&(e=Zn(e)),"string"!==typeof t&&(t=Zn(t)),e==t?e:e+":"+t)}function $n(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,a=e.length;for(n=0;r<a;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.s.c=--n,n=0;r<a;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}if(t.s.r=--n,r===a||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=a;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=a;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function Qn(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Re(e.z,n?nt(t):t)}catch(r){}try{return e.w=Re((e.XF||{}).numFmtId||(n?14:0),n?nt(t):t)}catch(r){return""+t}}function er(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?$r[e.v]||e.v:Qn(e,void 0==t?e.v:t))}function tr(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function nr(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=g&&null==i&&(i=g);var a=e||(i?[]:{}),o=0,s=0;if(a&&null!=r.origin){if("number"==typeof r.origin)o=r.origin;else{var l="string"==typeof r.origin?Xn(r.origin):r.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=$n(a["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),-1==o&&(u.e.r=o=c.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[d].length;++h)if("undefined"!==typeof t[d][h]){var f={v:t[d][h]},p=o+d,m=s+h;if(u.s.r>p&&(u.s.r=p),u.s.c>m&&(u.s.c=m),u.e.r<p&&(u.e.r=p),u.e.c<m&&(u.e.c=m),!t[d][h]||"object"!==typeof t[d][h]||Array.isArray(t[d][h])||t[d][h]instanceof Date)if(Array.isArray(f.v)&&(f.f=t[d][h][1],f.v=f.v[0]),null===f.v)if(f.f)f.t="n";else if(r.nullError)f.t="e",f.v=0;else{if(!r.sheetStubs)continue;f.t="z"}else"number"===typeof f.v?f.t="n":"boolean"===typeof f.v?f.t="b":f.v instanceof Date?(f.z=r.dateNF||G[14],r.cellDates?(f.t="d",f.w=Re(f.z,nt(f.v))):(f.t="n",f.v=nt(f.v),f.w=Re(f.z,f.v))):f.t="s";else f=t[d][h];if(i)a[p]||(a[p]=[]),a[p][m]&&a[p][m].z&&(f.z=a[p][m].z),a[p][m]=f;else{var y=Zn({c:m,r:p});a[y]&&a[y].z&&(f.z=a[y].z),a[y]=f}}}return u.s.c<1e7&&(a["!ref"]=Jn(u)),a}function rr(e,t){return nr(null,e,t)}function ir(e){return e.read_shift(4,"i")}function ar(e,t){return t||(t=Cn(4)),t.write_shift(4,e),t}function or(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function sr(e,t){var n=!1;return null==t&&(n=!0,t=Cn(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function lr(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function ur(e,t){return t||(t=Cn(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function cr(e,t){var n=e.l,r=e.read_shift(1),i=or(e),a=[],o={t:i,h:i};if(0!==(1&r)){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(lr(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=n+t,o}function dr(e,t){var n=!1;return null==t&&(n=!0,t=Cn(15+4*e.t.length)),t.write_shift(1,0),sr(e.t,t),n?t.slice(0,t.l):t}var hr=cr;function fr(e,t){var n=!1;return null==t&&(n=!0,t=Cn(23+4*e.t.length)),t.write_shift(1,1),sr(e.t,t),t.write_shift(4,1),ur({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function pr(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function mr(e,t){return null==t&&(t=Cn(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function gr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function yr(e,t){return null==t&&(t=Cn(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var vr=or,_r=sr;function br(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function xr(e,t){var n=!1;return null==t&&(n=!0,t=Cn(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var wr=or,Mr=br,Sr=xr;function Tr(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var i=0===r?mn([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):wn(t,0)>>2;return n?i/100:i}function kr(e,t){null==t&&(t=Cn(4));var n=0,r=0,i=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?i:e)<<2)+(n+2))}function Lr(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function Or(e,t){return t||(t=Cn(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Dr=Lr,Ar=Or;function Ir(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Cr(e,t){return(t||Cn(8)).write_shift(8,e,"f")}function Er(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var u=Jr[i];u&&(t.rgb=Ea(u));break;case 2:t.rgb=Ea([o,s,l]);break;case 3:t.theme=i;break}return 0!=a&&(t.tint=a>0?a/32767:a/32768),t}function Pr(e,t){if(t||(t=Cn(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function Yr(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function jr(e,t){t||(t=Cn(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,n),t.write_shift(1,0),t}var Nr=2,Rr=3,Hr=11,Fr=19,zr=64,Br=65,Wr=71,Vr=4108,Gr=4126,Ur=80,qr={1:{n:"CodePage",t:Nr},2:{n:"Category",t:Ur},3:{n:"PresentationFormat",t:Ur},4:{n:"ByteCount",t:Rr},5:{n:"LineCount",t:Rr},6:{n:"ParagraphCount",t:Rr},7:{n:"SlideCount",t:Rr},8:{n:"NoteCount",t:Rr},9:{n:"HiddenCount",t:Rr},10:{n:"MultimediaClipCount",t:Rr},11:{n:"ScaleCrop",t:Hr},12:{n:"HeadingPairs",t:Vr},13:{n:"TitlesOfParts",t:Gr},14:{n:"Manager",t:Ur},15:{n:"Company",t:Ur},16:{n:"LinksUpToDate",t:Hr},17:{n:"CharacterCount",t:Rr},19:{n:"SharedDoc",t:Hr},22:{n:"HyperlinksChanged",t:Hr},23:{n:"AppVersion",t:Rr,p:"version"},24:{n:"DigSig",t:Br},26:{n:"ContentType",t:Ur},27:{n:"ContentStatus",t:Ur},28:{n:"Language",t:Ur},29:{n:"Version",t:Ur},255:{},2147483648:{n:"Locale",t:Fr},2147483651:{n:"Behavior",t:Fr},1919054434:{}},Xr={1:{n:"CodePage",t:Nr},2:{n:"Title",t:Ur},3:{n:"Subject",t:Ur},4:{n:"Author",t:Ur},5:{n:"Keywords",t:Ur},6:{n:"Comments",t:Ur},7:{n:"Template",t:Ur},8:{n:"LastAuthor",t:Ur},9:{n:"RevNumber",t:Ur},10:{n:"EditTime",t:zr},11:{n:"LastPrinted",t:zr},12:{n:"CreatedDate",t:zr},13:{n:"ModifiedDate",t:zr},14:{n:"PageCount",t:Rr},15:{n:"WordCount",t:Rr},16:{n:"CharCount",t:Rr},17:{n:"Thumbnail",t:Wr},18:{n:"Application",t:Ur},19:{n:"DocSecurity",t:Rr},255:{},2147483648:{n:"Locale",t:Fr},2147483651:{n:"Behavior",t:Fr},1919054434:{}};function Zr(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Kr=Zr([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Jr=ht(Kr),$r={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Qr={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},ei={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function ti(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function ni(e,t){var n,r=et(Qr),i=[];i[i.length]=_t,i[i.length]=zt("Types",null,{xmlns:Vt.CT,"xmlns:xsd":Vt.xsd,"xmlns:xsi":Vt.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return zt("Default",null,{Extension:e[0],ContentType:e[1]})})));var a=function(r){e[r]&&e[r].length>0&&(n=e[r][0],i[i.length]=zt("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:ei[r][t.bookType]||ei[r]["xlsx"]}))},o=function(n){(e[n]||[]).forEach((function(e){i[i.length]=zt("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:ei[n][t.bookType]||ei[n]["xlsx"]})}))},s=function(t){(e[t]||[]).forEach((function(e){i[i.length]=zt("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var ri={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function ii(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function ai(e){var t=[_t,zt("Relationships",null,{xmlns:Vt.RELS})];return Ke(e["!id"]).forEach((function(n){t[t.length]=zt("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function oi(e,t,n,r,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=r,i.Target=n,a?i.TargetMode=a:[ri.HLINK,ri.XPATH,ri.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function si(e){var t=[_t];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}function li(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function ui(e,t){return['  <rdf:Description rdf:about="'+e+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n',"  </rdf:Description>\n"].join("")}function ci(e){var t=[_t];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(li(e[n][0],e[n][1])),t.push(ui("",e[n][0]));return t.push(li("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function di(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+r.version+"</meta:generator></office:meta></office:document-meta>"}var hi=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function fi(e,t,n,r,i){null==i[e]&&null!=t&&""!==t&&(i[e]=t,t=St(t),r[r.length]=n?zt(e,t,n):Ht(e,t))}function pi(e,t){var n=t||{},r=[_t,zt("cp:coreProperties",null,{"xmlns:cp":Vt.CORE_PROPS,"xmlns:dc":Vt.dc,"xmlns:dcterms":Vt.dcterms,"xmlns:dcmitype":Vt.dcmitype,"xmlns:xsi":Vt.xsi})],i={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&fi("dcterms:created","string"===typeof e.CreatedDate?e.CreatedDate:Bt(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=e.ModifiedDate&&fi("dcterms:modified","string"===typeof e.ModifiedDate?e.ModifiedDate:Bt(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var a=0;a!=hi.length;++a){var o=hi[a],s=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:e?e[o[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&fi(o[0],s,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var mi=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],gi=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function yi(e){var t=[],n=zt;return e||(e={}),e.Application="SheetJS",t[t.length]=_t,t[t.length]=zt("Properties",null,{xmlns:Vt.EXT_PROPS,"xmlns:vt":Vt.vt}),mi.forEach((function(r){if(void 0!==e[r[1]]){var i;switch(r[2]){case"string":i=St(String(e[r[1]]));break;case"bool":i=e[r[1]]?"true":"false";break}void 0!==i&&(t[t.length]=n(r[0],i))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+St(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function vi(e){var t=[_t,zt("Properties",null,{xmlns:Vt.CUST_PROPS,"xmlns:vt":Vt.vt})];if(!e)return t.join("");var n=1;return Ke(e).forEach((function(r){++n,t[t.length]=zt("property",Wt(e[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:St(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var _i={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function bi(e,t){var n=[];return Ke(_i).map((function(e){for(var t=0;t<hi.length;++t)if(hi[t][1]==e)return hi[t];for(t=0;t<mi.length;++t)if(mi[t][1]==e)return mi[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var i=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];switch(r[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),n.push(Ht(_i[r[1]]||r[1],i))}})),zt("DocumentProperties",n.join(""),{xmlns:Ut.o})}function xi(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return e&&Ke(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<hi.length;++r)if(t==hi[r][1])return;for(r=0;r<mi.length;++r)if(t==mi[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var a=e[t],o="string";"number"==typeof a?(o="float",a=String(a)):!0===a||!1===a?(o="boolean",a=a?"1":"0"):a=String(a),i.push(zt(Tt(t),a,{"dt:dt":o}))}})),t&&Ke(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],a="string";"number"==typeof r?(a="float",r=String(r)):!0===r||!1===r?(a="boolean",r=r?"1":"0"):r instanceof Date?(a="dateTime.tz",r=r.toISOString()):r=String(r),i.push(zt(Tt(n),r,{"dt:dt":a}))}})),"<"+r+' xmlns="'+Ut.o+'">'+i.join("")+"</"+r+">"}function wi(e){var t="string"==typeof e?new Date(Date.parse(e)):e,n=t.getTime()/1e3+11644473600,r=n%Math.pow(2,32),i=(n-r)/Math.pow(2,32);r*=1e7,i*=1e7;var a=r/Math.pow(2,32)|0;a>0&&(r%=Math.pow(2,32),i+=a);var o=Cn(8);return o.write_shift(4,r),o.write_shift(4,i),o}function Mi(e,t){var n=Cn(4),r=Cn(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:r=Cn(8),r.write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=wi(t);break;case 31:case 80:r=Cn(4+2*(t.length+1)+(t.length%2?0:2)),r.write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");while(r.l!=r.length)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return D([n,r])}var Si=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Ti(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function ki(e,t,n){var r=Cn(8),i=[],a=[],o=8,s=0,l=Cn(8),u=Cn(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),a.push(l),i.push(u),o+=8+l.length,!t){u=Cn(8),u.write_shift(4,0),i.unshift(u);var c=[Cn(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var d=e[s][0];l=Cn(8+2*(d.length+1)+(d.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,d.length+1),l.write_shift(0,d,"dbcs");while(l.l!=l.length)l.write_shift(1,0);c.push(l)}l=D(c),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(Si.indexOf(e[s][0])>-1||gi.indexOf(e[s][0])>-1)&&null!=e[s][1]){var h=e[s][1],f=0;if(t){f=+t[e[s][0]];var p=n[f];if("version"==p.p&&"string"==typeof h){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}l=Mi(p.t,h)}else{var g=Ti(h);-1==g&&(g=31,h=String(h)),l=Mi(g,h)}a.push(l),u=Cn(8),u.write_shift(4,t?f:2+s),i.push(u),o+=8+l.length}var y=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,y),y+=a[s].length;return r.write_shift(4,o),r.write_shift(4,a.length),D([r].concat(i).concat(a))}function Li(e,t,n,r,i,a){var o=Cn(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,Ue.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var l=ki(e,n,r);if(s.push(l),i){var u=ki(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(u)}return D(s)}function Oi(e,t){t||(t=Cn(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}function Di(e,t){return 1===e.read_shift(t)}function Ai(e,t){return t||(t=Cn(2)),t.write_shift(2,+!!e),t}function Ii(e){return e.read_shift(2,"u")}function Ci(e,t){return t||(t=Cn(2)),t.write_shift(2,e),t}function Ei(e,t,n){return n||(n=Cn(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Pi(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),a="sbcs-cont",o=i;if(n&&n.biff>=8&&(i=1200),n&&8!=n.biff)12==n.biff&&(a="wstr");else{var s=e.read_shift(1);s&&(a="dbcs-cont")}n.biff>=2&&n.biff<=5&&(a="cpstr");var l=r?e.read_shift(r,a):"";return i=o,l}function Yi(e){var t=e.t||"",n=1,r=Cn(3+(n>1?2:0));r.write_shift(2,t.length),r.write_shift(1,1|(n>1?8:0)),n>1&&r.write_shift(2,n);var i=Cn(2*t.length);i.write_shift(2*t.length,t,"utf16le");var a=[r,i];return D(a)}function ji(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function Ni(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):ji(e,r,n)}function Ri(e,t,n){if(n.biff>5)return Ni(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Hi(e,t,n){return n||(n=Cn(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function Fi(e,t){t||(t=Cn(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function zi(e){var t=Cn(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var i=r.indexOf("#"),a=i>-1?31:23;switch(r.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)t.write_shift(4,o[n]);if(28==a)r=r.slice(1),Fi(r,t);else if(2&a){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));var s=i>-1?r.slice(0,i):r;for(t.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)t.write_shift(2,s.charCodeAt(n));t.write_shift(2,0),8&a&&Fi(i>-1?r.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));var l=0;while("../"==r.slice(3*l,3*l+3)||"..\\"==r.slice(3*l,3*l+3))++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function Bi(e,t,n,r){return r||(r=Cn(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function Wi(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),a=e.read_shift(r,"i"),o=e.read_shift(r,"i");return[i,a,o]}function Vi(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function Gi(e,t){return t||(t=Cn(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Ui(e,t,n){var r=1536,i=16;switch(n.bookType){case"biff8":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=Cn(i);return a.write_shift(2,r),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function qi(e,t){var n=!t||8==t.biff,r=Cn(n?112:54);r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));while(r.l<r.length)r.write_shift(1,n?0:32);return r}function Xi(e,t){var n=!t||t.biff>=8?2:1,r=Cn(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function Zi(e,t){var n=Cn(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],i=0;i<e.length;++i)r[i]=Yi(e[i],t);var a=D([n].concat(r));return a.parts=[n.length].concat(r.map((function(e){return e.length}))),a}function Ki(){var e=Cn(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function Ji(e){var t=Cn(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function $i(e,t){var n=e.name||"Arial",r=t&&5==t.biff,i=r?15+n.length:16+2*n.length,a=Cn(i);return a.write_shift(2,20*(e.sz||12)),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,n.length),r||a.write_shift(1,1),a.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),a}function Qi(e,t,n,r){var i=Cn(10);return Bi(e,t,r,i),i.write_shift(4,n),i}function ea(e,t,n,r,i){var a=!i||8==i.biff,o=Cn(+a+8+(1+a)*n.length);return Bi(e,t,r,o),o.write_shift(2,n.length),a&&o.write_shift(1,1),o.write_shift((1+a)*n.length,n,a?"utf16le":"sbcs"),o}function ta(e,t,n,r){var i=n&&5==n.biff;r||(r=Cn(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=r.length>r.l?r.slice(0,r.l):r;return null==a.l&&(a.l=a.length),a}function na(e,t){var n=8!=t.biff&&t.biff?2:4,r=Cn(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}function ra(e,t,n,r){var i=n&&5==n.biff;r||(r=Cn(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),r.write_shift(4,a),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function ia(e){var t=Cn(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function aa(e,t,n,r,i,a){var o=Cn(8);return Bi(e,t,r,o),Ei(n,a,o),o}function oa(e,t,n,r){var i=Cn(14);return Bi(e,t,r,i),Cr(n,i),i}function sa(e,t,n){if(n.biff<8)return la(e,t,n);var r=[],i=e.l+t,a=e.read_shift(n.biff>8?4:2);while(0!==a--)r.push(Wi(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function la(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Pi(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function ua(e){var t=Cn(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)Gi(e[n],t);return t}function ca(e){var t=Cn(24),n=Xn(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return D([t,zi(e[1])])}function da(e){var t=e[1].Tooltip,n=Cn(10+2*(t.length+1));n.write_shift(2,2048);var r=Xn(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}function ha(e){return e||(e=Cn(4)),e.write_shift(2,1),e.write_shift(2,1),e}function fa(e,t,n){if(!n.cellStyles)return In(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),a=e.read_shift(r),o=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var u={s:i,e:a,w:o,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(u.level=l>>8&7),u}function pa(e,t){var n=Cn(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}function ma(e){for(var t=Cn(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}function ga(e,t,n){var r=Cn(15);return ad(r,e,t),r.write_shift(8,n,"f"),r}function ya(e,t,n){var r=Cn(9);return ad(r,e,t),r.write_shift(2,n),r}var va=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=$e({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=[],i=M(1);switch(n.type){case"base64":i=T(b(t));break;case"binary":i=T(t);break;case"buffer":case"array":i=t;break}An(i,0);var a=i.read_shift(1),o=!!(136&a),s=!1,l=!1;switch(a){case 2:break;case 3:break;case 48:s=!0,o=!0;break;case 49:s=!0,o=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var u=0,c=521;2==a&&(u=i.read_shift(2)),i.l+=3,2!=a&&(u=i.read_shift(4)),u>1048576&&(u=1e6),2!=a&&(c=i.read_shift(2));var d=i.read_shift(2),h=n.codepage||1252;2!=a&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(h=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var p=[],m={},g=Math.min(i.length,2==a?521:c-10-(s?264:0)),y=l?32:11;while(i.l<g&&13!=i[i.l])switch(m={},m.name=f.utils.decode(h,i.slice(i.l,i.l+y)).replace(/[\u0000\r\n].*$/g,""),i.l+=y,m.type=String.fromCharCode(i.read_shift(1)),2==a||l||(m.offset=i.read_shift(4)),m.len=i.read_shift(1),2==a&&(m.offset=i.read_shift(2)),m.dec=i.read_shift(1),m.name.length&&p.push(m),2!=a&&(i.l+=l?13:14),m.type){case"B":s&&8==m.len||!n.WTF||console.log("Skipping "+m.name+":"+m.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+m.name+":"+m.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+m.type)}if(13!==i[i.l]&&(i.l=c-1),13!==i.read_shift(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=c;var v=0,_=0;for(r[0]=[],_=0;_!=p.length;++_)r[0][_]=p[_].name;while(u-- >0)if(42!==i[i.l])for(++i.l,r[++v]=[],_=0,_=0;_!=p.length;++_){var x=i.slice(i.l,i.l+p[_].len);i.l+=p[_].len,An(x,0);var w=f.utils.decode(h,x);switch(p[_].type){case"C":w.trim().length&&(r[v][_]=w.replace(/\s+$/,""));break;case"D":8===w.length?r[v][_]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):r[v][_]=w;break;case"F":r[v][_]=parseFloat(w.trim());break;case"+":case"I":r[v][_]=l?2147483648^x.read_shift(-4,"i"):x.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":r[v][_]=!0;break;case"N":case"F":r[v][_]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));r[v][_]="##MEMO##"+(l?parseInt(w.trim(),10):x.read_shift(4));break;case"N":w=w.replace(/\u0000/g,"").trim(),w&&"."!=w&&(r[v][_]=+w||0);break;case"@":r[v][_]=new Date(x.read_shift(-8,"f")-621356832e5);break;case"T":r[v][_]=new Date(864e5*(x.read_shift(4)-2440588)+x.read_shift(4));break;case"Y":r[v][_]=x.read_shift(4,"i")/1e4+x.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[v][_]=-x.read_shift(-8,"f");break;case"B":if(s&&8==p[_].len){r[v][_]=x.read_shift(8,"f");break}case"G":case"P":x.l+=p[_].len;break;case"0":if("_NullFlags"===p[_].name)break;default:throw new Error("DBF Unsupported data type "+p[_].type)}}else i.l+=d;if(2!=a&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=p,r}function r(e,t){var r=t||{};r.dateNF||(r.dateNF="yyyymmdd");var i=rr(n(e,r),r);return i["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,i}function i(e,t){try{return tr(r(e,t),t)}catch(n){if(t&&t.WTF)throw n}return{SheetNames:[],Sheets:{}}}var o={B:8,C:250,L:1,D:8,"?":0,"":0};function s(e,n){var r=n||{};if(+r.codepage>=0&&c(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=En(),s=vh(e,{header:1,raw:!0,cellDates:!0}),l=s[0],u=s.slice(1),d=e["!cols"]||[],h=0,f=0,p=0,m=1;for(h=0;h<l.length;++h)if(((d[h]||{}).DBF||{}).name)l[h]=d[h].DBF.name,++p;else if(null!=l[h]){if(++p,"number"===typeof l[h]&&(l[h]=l[h].toString(10)),"string"!==typeof l[h])throw new Error("DBF Invalid column name "+l[h]+" |"+typeof l[h]+"|");if(l.indexOf(l[h])!==h)for(f=0;f<1024;++f)if(-1==l.indexOf(l[h]+"_"+f)){l[h]+="_"+f;break}}var g=$n(e["!ref"]),y=[],v=[],_=[];for(h=0;h<=g.e.c-g.s.c;++h){var b="",x="",w=0,M=[];for(f=0;f<u.length;++f)null!=u[f][h]&&M.push(u[f][h]);if(0!=M.length&&null!=l[h]){for(f=0;f<M.length;++f){switch(typeof M[f]){case"number":x="B";break;case"string":x="C";break;case"boolean":x="L";break;case"object":x=M[f]instanceof Date?"D":"C";break;default:x="C"}w=Math.max(w,String(M[f]).length),b=b&&b!=x?"C":x}w>250&&(w=250),x=((d[h]||{}).DBF||{}).type,"C"==x&&d[h].DBF.len>w&&(w=d[h].DBF.len),"B"==b&&"N"==x&&(b="N",_[h]=d[h].DBF.dec,w=d[h].DBF.len),v[h]="C"==b||"N"==x?w:o[b]||0,m+=v[h],y[h]=b}else y[h]="?"}var S=i.next(32);for(S.write_shift(4,318902576),S.write_shift(4,u.length),S.write_shift(2,296+32*p),S.write_shift(2,m),h=0;h<4;++h)S.write_shift(4,0);for(S.write_shift(4,0|(+t[a]||3)<<8),h=0,f=0;h<l.length;++h)if(null!=l[h]){var T=i.next(32),k=(l[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T.write_shift(1,k,"sbcs"),T.write_shift(1,"?"==y[h]?"C":y[h],"sbcs"),T.write_shift(4,f),T.write_shift(1,v[h]||o[y[h]]||0),T.write_shift(1,_[h]||0),T.write_shift(1,2),T.write_shift(4,0),T.write_shift(1,0),T.write_shift(4,0),T.write_shift(4,0),f+=v[h]||o[y[h]]||0}var L=i.next(264);for(L.write_shift(4,13),h=0;h<65;++h)L.write_shift(4,0);for(h=0;h<u.length;++h){var O=i.next(m);for(O.write_shift(1,0),f=0;f<l.length;++f)if(null!=l[f])switch(y[f]){case"L":O.write_shift(1,null==u[h][f]?63:u[h][f]?84:70);break;case"B":O.write_shift(8,u[h][f]||0,"f");break;case"N":var D="0";for("number"==typeof u[h][f]&&(D=u[h][f].toFixed(_[f]||0)),p=0;p<v[f]-D.length;++p)O.write_shift(1,32);O.write_shift(1,D,"sbcs");break;case"D":u[h][f]?(O.write_shift(4,("0000"+u[h][f].getFullYear()).slice(-4),"sbcs"),O.write_shift(2,("00"+(u[h][f].getMonth()+1)).slice(-2),"sbcs"),O.write_shift(2,("00"+u[h][f].getDate()).slice(-2),"sbcs")):O.write_shift(8,"00000000","sbcs");break;case"C":var A=String(null!=u[h][f]?u[h][f]:"").slice(0,v[f]);for(O.write_shift(1,A,"sbcs"),p=0;p<v[f]-A.length;++p)O.write_shift(1,32);break}}return i.next(1).write_shift(1,26),i.end()}return{to_workbook:i,to_sheet:r,from_sheet:s}}(),_a=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+Ke(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?m(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:m(r)};function i(e,t){switch(t.type){case"base64":return a(b(e),t);case"binary":return a(e,t);case"buffer":return a(x&&Buffer.isBuffer(e)?e.toString("binary"):L(e),t);case"array":return a(dt(e),t)}throw new Error("Unrecognized type "+t.type)}function a(e,i){var a,o=e.split(/[\n\r]+/),s=-1,l=-1,u=0,d=0,h=[],p=[],m=null,g={},y=[],v=[],_=[],b=0;for(+i.codepage>=0&&c(+i.codepage);u!==o.length;++u){b=0;var x,w=o[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),M=w.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),S=M[0];if(w.length>0)switch(S){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==M[1].charAt(0)&&p.push(w.slice(3).replace(/;;/g,";"));break;case"C":var T=!1,k=!1,L=!1,O=!1,D=-1,A=-1;for(d=1;d<M.length;++d)switch(M[d].charAt(0)){case"A":break;case"X":l=parseInt(M[d].slice(1))-1,k=!0;break;case"Y":for(s=parseInt(M[d].slice(1))-1,k||(l=0),a=h.length;a<=s;++a)h[a]=[];break;case"K":x=M[d].slice(1),'"'===x.charAt(0)?x=x.slice(1,x.length-1):"TRUE"===x?x=!0:"FALSE"===x?x=!1:isNaN(pt(x))?isNaN(gt(x).getDate())||(x=ct(x)):(x=pt(x),null!==m&&Ee(m)&&(x=ot(x))),"undefined"!==typeof f&&"string"==typeof x&&"string"!=(i||{}).type&&(i||{}).codepage&&(x=f.utils.decode(i.codepage,x)),T=!0;break;case"E":O=!0;var I=Wo(M[d].slice(1),{r:s,c:l});h[s][l]=[h[s][l],I];break;case"S":L=!0,h[s][l]=[h[s][l],"S5S"];break;case"G":break;case"R":D=parseInt(M[d].slice(1))-1;break;case"C":A=parseInt(M[d].slice(1))-1;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}if(T&&(h[s][l]&&2==h[s][l].length?h[s][l][0]=x:h[s][l]=x,m=null),L){if(O)throw new Error("SYLK shared formula cannot have own formula");var C=D>-1&&h[D][A];if(!C||!C[1])throw new Error("SYLK shared formula cannot find base");h[s][l][1]=Uo(C[1],{r:s-D,c:l-A})}break;case"F":var E=0;for(d=1;d<M.length;++d)switch(M[d].charAt(0)){case"X":l=parseInt(M[d].slice(1))-1,++E;break;case"Y":for(s=parseInt(M[d].slice(1))-1,a=h.length;a<=s;++a)h[a]=[];break;case"M":b=parseInt(M[d].slice(1))/20;break;case"F":break;case"G":break;case"P":m=p[parseInt(M[d].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(_=M[d].slice(1).split(" "),a=parseInt(_[0],10);a<=parseInt(_[1],10);++a)b=parseInt(_[2],10),v[a-1]=0===b?{hidden:!0}:{wch:b},Ha(v[a-1]);break;case"C":l=parseInt(M[d].slice(1))-1,v[l]||(v[l]={});break;case"R":s=parseInt(M[d].slice(1))-1,y[s]||(y[s]={}),b>0?(y[s].hpt=b,y[s].hpx=Wa(b)):0===b&&(y[s].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}E<1&&(m=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}}return y.length>0&&(g["!rows"]=y),v.length>0&&(g["!cols"]=v),i&&i.sheetRows&&(h=h.slice(0,i.sheetRows)),[h,g]}function o(e,t){var n=i(e,t),r=n[0],a=n[1],o=rr(r,t);return Ke(a).forEach((function(e){o[e]=a[e]})),o}function s(e,t){return tr(o(e,t),t)}function l(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+Go(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return i}function u(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"!=typeof t.width||t.wpx||(t.wpx=ja(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Na(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function d(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Ba(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function h(e,t){var n,r=["ID;PWXL;N;E"],i=[],a=$n(e["!ref"]),o=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&u(r,e["!cols"]),e["!rows"]&&d(r,e["!rows"]),r.push("B;Y"+(a.e.r-a.s.r+1)+";X"+(a.e.c-a.s.c+1)+";D"+[a.s.c,a.s.r,a.e.c,a.e.r].join(" "));for(var c=a.s.r;c<=a.e.r;++c)for(var h=a.s.c;h<=a.e.c;++h){var f=Zn({r:c,c:h});n=o?(e[c]||[])[h]:e[f],n&&(null!=n.v||n.f&&!n.F)&&i.push(l(n,e,c,h,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return e["|"]=254,{to_workbook:s,to_sheet:o,from_sheet:h}}(),ba=function(){function e(e,n){switch(n.type){case"base64":return t(b(e),n);case"binary":return t(e,n);case"buffer":return t(x&&Buffer.isBuffer(e)?e.toString("binary"):L(e),n);case"array":return t(dt(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,o=[];a!==n.length;++a)if("BOT"!==n[a].trim()){if(!(r<0)){var s=n[a].trim().split(","),l=s[0],u=s[1];++a;var c=n[a]||"";while(1&(c.match(/["]/g)||[]).length&&a<n.length-1)c+="\n"+n[++a];switch(c=c.trim(),+l){case-1:if("BOT"===c){o[++r]=[],i=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?o[r][i]=!0:"FALSE"===c?o[r][i]=!1:isNaN(pt(u))?isNaN(gt(u).getDate())?o[r][i]=u:o[r][i]=ct(u):o[r][i]=pt(u),++i;break;case 1:c=c.slice(1,c.length-1),c=c.replace(/""/g,'"'),y&&c&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),o[r][i++]=""!==c?c:null;break}if("EOD"===c)break}}else o[++r]=[],i=0;return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}function n(t,n){return rr(e(t,n),n)}function r(e,t){return tr(n(e,t),t)}var i=function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+","+r),e.push('"'+i.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,i=[],a=$n(n["!ref"]),o=Array.isArray(n);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,a.e.r-a.s.r+1,""),e(i,"TUPLES",0,a.e.c-a.s.c+1,""),e(i,"DATA",0,0,"");for(var s=a.s.r;s<=a.e.r;++s){t(i,-1,0,"BOT");for(var l=a.s.c;l<=a.e.c;++l){var u=Zn({r:s,c:l});if(r=o?(n[s]||[])[l]:n[u],r)switch(r.t){case"n":var c=y?r.w:r.v;c||null==r.v||(c=r.v),null==c?y&&r.f&&!r.F?t(i,1,0,"="+r.f):t(i,1,0,""):t(i,0,c,"V");break;case"b":t(i,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(i,1,0,!y||isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=Re(r.z||G[14],nt(ct(r.v)))),y?t(i,0,r.w,"V"):t(i,1,0,r.w);break;default:t(i,1,0,"")}else t(i,1,0,"")}}t(i,-1,0,"EOD");var d="\r\n",h=i.join(d);return h}}();return{to_workbook:r,to_sheet:n,from_sheet:i}}(),xa=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){for(var r=t.split("\n"),i=-1,a=-1,o=0,s=[];o!==r.length;++o){var l=r[o].trim().split(":");if("cell"===l[0]){var u=Xn(l[1]);if(s.length<=u.r)for(i=s.length;i<=u.r;++i)s[i]||(s[i]=[]);switch(i=u.r,a=u.c,l[2]){case"t":s[i][a]=e(l[3]);break;case"v":s[i][a]=+l[3];break;case"vtf":var c=l[l.length-1];case"vtc":switch(l[3]){case"nl":s[i][a]=!!+l[4];break;default:s[i][a]=+l[4];break}"vtf"==l[2]&&(s[i][a]=[s[i][a],c])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}function r(e,t){return rr(n(e,t),t)}function i(e,t){return tr(r(e,t),t)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),l="--SocialCalcSpreadsheetControlSave--";function u(e){if(!e||!e["!ref"])return"";for(var n,r=[],i=[],a="",o=Kn(e["!ref"]),s=Array.isArray(e),l=o.s.r;l<=o.e.r;++l)for(var u=o.s.c;u<=o.e.c;++u)if(a=Zn({r:l,c:u}),n=s?(e[l]||[])[u]:e[a],n&&null!=n.v&&"z"!==n.t){switch(i=["cell",a,"t"],n.t){case"s":case"str":i.push(t(n.v));break;case"n":n.f?(i[2]="vtf",i[3]="n",i[4]=n.v,i[5]=t(n.f)):(i[2]="v",i[3]=n.v);break;case"b":i[2]="vt"+(n.f?"f":"c"),i[3]="nl",i[4]=n.v?"1":"0",i[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=nt(ct(n.v));i[2]="vtc",i[3]="nd",i[4]=""+c,i[5]=n.w||Re(n.z||G[14],c);break;case"e":continue}r.push(i.join(":"))}return r.push("sheet:c:"+(o.e.c-o.s.c+1)+":r:"+(o.e.r-o.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}function c(e){return[a,o,s,o,u(e),l].join("\n")}return{to_workbook:i,to_sheet:r,from_sheet:c}}(),wa=function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(pt(e))?isNaN(gt(e).getDate())?t[n][r]=e:t[n][r]=ct(e):t[n][r]=pt(e))}function t(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;var a=t.split(/[\r\n]/),o=a.length-1;while(o>=0&&0===a[o].length)--o;for(var s=10,l=0,u=0;u<=o;++u)l=a[u].indexOf(" "),-1==l?l=a[u].length:l++,s=Math.max(s,l);for(u=0;u<=o;++u){i[u]=[];var c=0;for(e(a[u].slice(0,s).trim(),i,u,c,r),c=1;c<=(a[u].length-s)/10+1;++c)e(a[u].slice(s+10*(c-1),s+10*c).trim(),i,u,c,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var n={44:",",9:"\t",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function i(e){for(var t={},i=!1,a=0,o=0;a<e.length;++a)34==(o=e.charCodeAt(a))?i=!i:!i&&o in n&&(t[o]=(t[o]||0)+1);for(a in o=[],t)Object.prototype.hasOwnProperty.call(t,a)&&o.push([t[a],a]);if(!o.length)for(a in t=r,t)Object.prototype.hasOwnProperty.call(t,a)&&o.push([t[a],a]);return o.sort((function(e,t){return e[0]-t[0]||r[e[1]]-r[t[1]]})),n[o.pop()[1]]||44}function a(e,t){var n=t||{},r="";null!=g&&null==n.dense&&(n.dense=g);var a=n.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(r=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(r=e.charAt(4),e=e.slice(6)):r=i(e.slice(0,1024)):r=n&&n.FS?n.FS:i(e.slice(0,1024));var s=0,l=0,u=0,c=0,d=0,h=r.charCodeAt(0),f=!1,p=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var y=null!=n.dateNF?We(n.dateNF):null;function v(){var t=e.slice(c,d),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):qo(t)?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(u=pt(t)))if(!isNaN(gt(t).getDate())||y&&t.match(y)){r.z=n.dateNF||G[14];var i=0;y&&t.match(y)&&(t=Ve(t,n.dateNF,t.match(y)||[]),i=1),n.cellDates?(r.t="d",r.v=ct(t,i)):(r.t="n",r.v=nt(ct(t,i))),!1!==n.cellText&&(r.w=Re(r.z,r.v instanceof Date?nt(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=u;if("z"==r.t||(n.dense?(a[s]||(a[s]=[]),a[s][l]=r):a[Zn({c:l,r:s})]=r),c=d+1,m=e.charCodeAt(c),o.e.c<l&&(o.e.c=l),o.e.r<s&&(o.e.r=s),p==h)++l;else if(l=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}e:for(;d<e.length;++d)switch(p=e.charCodeAt(d)){case 34:34===m&&(f=!f);break;case h:case 10:case 13:if(!f&&v())break e;break;default:break}return d-c>0&&v(),a["!ref"]=Jn(o),a}function o(e,n){return n&&n.PRN?n.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,n):rr(t(e,n),n):a(e,n)}function s(e,t){var n="",r="string"==t.type?[0,0,0,0]:oh(e,t);switch(t.type){case"base64":n=b(e);break;case"binary":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof f?f.utils.decode(t.codepage,e):x&&Buffer.isBuffer(e)?e.toString("binary"):L(e);break;case"array":n=dt(e);break;case"string":n=e;break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]?n=Yt(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=Yt(n):"binary"==t.type&&"undefined"!==typeof f&&t.codepage&&(n=f.utils.decode(t.codepage,f.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?xa.to_sheet("string"==t.type?n:Yt(n),t):o(n,t)}function l(e,t){return tr(s(e,t),t)}function u(e){for(var t,n=[],r=$n(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){for(var o=[],s=r.s.c;s<=r.e.c;++s){var l=Zn({r:a,c:s});if(t=i?(e[a]||[])[s]:e[l],t&&null!=t.v){var u=(t.w||(er(t),t.w)||"").slice(0,10);while(u.length<10)u+=" ";o.push(u+(0===s?" ":""))}else o.push("          ")}n.push(o.join(""))}return n.join("\n")}return{to_workbook:l,to_sheet:s,from_sheet:u}}();var Ma=function(){function e(e,t,n){if(e){An(e,e.l||0);var r=n.Enum||F;while(e.l<e.length){var i=e.read_shift(2),a=r[i]||r[65535],o=e.read_shift(2),s=e.l+o,l=a.f&&a.f(e,o,n);if(e.l=s,t(l,a,i))return}}}function t(e,t){switch(t.type){case"base64":return n(T(b(e)),t);case"binary":return n(T(e),t);case"buffer":case"array":return n(e,t)}throw"Unsupported type "+t.type}function n(t,n){if(!t)return t;var r=n||{};null!=g&&null==r.dense&&(r.dense=g);var i=r.dense?[]:{},a="Sheet1",o="",s=0,l={},u=[],c=[],d={s:{r:0,c:0},e:{r:0,c:0}},h=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=F,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:d=e;break;case 204:e&&(o=e);break;case 222:o=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||G[14],r.cellDates&&(e[1].t="d",e[1].v=ot(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=Jn(d),l[a]=i,u.push(a),i=r.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a=o||"Sheet"+(s+1),o="");var c=r.dense?(i[e[0].r]||[])[e[0].c]:i[Zn(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[Zn(e[0])]=e[1];break;default:}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=z,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=Jn(d),l[a]=i,u.push(a),i=r.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a="Sheet"+(s+1)),h>0&&e[0].r>=h)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[Zn(e[0])]=e[1],d.e.c<e[0].c&&(d.e.c=e[0].c),d.e.r<e[0].r&&(d.e.r=e[0].r);break;case 27:e[14e3]&&(c[e[14e3][0]]=e[14e3][1]);break;case 1537:c[e[0]]=e[1],e[0]==s&&(a=e[1]);break;default:break}}),r)}if(i["!ref"]=Jn(d),l[o||a]=i,u.push(o||a),!c.length)return{SheetNames:u,Sheets:l};for(var f={},p=[],m=0;m<c.length;++m)l[u[m]]?(p.push(c[m]||u[m]),f[c[m]]=l[c[m]]||l[u[m]]):(p.push(c[m]),f[c[m]]={"!ref":"A1"});return{SheetNames:p,Sheets:f}}function r(e,t){var n=t||{};if(+n.codepage>=0&&c(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=En(),i=$n(e["!ref"]),o=Array.isArray(e),s=[];rd(r,0,a(1030)),rd(r,6,l(i));for(var u=Math.min(i.e.r,8191),d=i.s.r;d<=u;++d)for(var f=Fn(d),m=i.s.c;m<=i.e.c;++m){d===i.s.r&&(s[m]=Vn(m));var g=s[m]+f,v=o?(e[d]||[])[m]:e[g];if(v&&"z"!=v.t)if("n"==v.t)(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?rd(r,13,p(d,m,v.v)):rd(r,14,y(d,m,v.v));else{var _=er(v);rd(r,15,h(d,m,_.slice(0,239)))}}return rd(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&c(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=En();rd(r,0,o(e));for(var i=0,a=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&rd(r,27,H(e.SheetNames[i],a++));var s=0;for(i=0;i<e.SheetNames.length;++i){var l=e.Sheets[e.SheetNames[i]];if(l&&l["!ref"]){for(var u=$n(l["!ref"]),d=Array.isArray(l),h=[],f=Math.min(u.e.r,8191),p=u.s.r;p<=f;++p)for(var m=Fn(p),g=u.s.c;g<=u.e.c;++g){p===u.s.r&&(h[g]=Vn(g));var y=h[g]+m,v=d?(l[p]||[])[g]:l[y];if(v&&"z"!=v.t)if("n"==v.t)rd(r,23,A(p,g,s,v.v));else{var _=er(v);rd(r,22,L(p,g,s,_.slice(0,239)))}}++s}}return rd(r,1),r.end()}function a(e){var t=Cn(2);return t.write_shift(2,e),t}function o(e){var t=Cn(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,a=0;a<e.SheetNames.length;++a){var o=e.SheetNames[a],s=e.Sheets[o];if(s&&s["!ref"]){++i;var l=Kn(s["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(e){var t=Cn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function u(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function d(e,t,n){var r=e.l+t,i=u(e,t,n);if(i[1].t="s",20768==n.vers){e.l++;var a=e.read_shift(1);return i[1].v=e.read_shift(a,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,"cstr"),i}function h(e,t,n){var r=Cn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i<r.length;++i){var a=n.charCodeAt(i);r.write_shift(1,a>=128?95:a)}return r.write_shift(1,0),r}function f(e,t,n){var r=u(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function p(e,t,n){var r=Cn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function m(e,t,n){var r=u(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function y(e,t,n){var r=Cn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function v(e,t,n){var r=e.l+t,i=u(e,t,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var a=e.read_shift(2);M(e.slice(e.l,e.l+a),i),e.l+=a}return i}function _(e,t,n){var r=32768&t;return t&=-32769,t=(r?e:0)+(t>=8192?t-16384:t),(r?"":"$")+(n?Vn(t):Fn(t))}var x={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(e,t){An(e,0);var n=[],r=0,i="",a="",o="",s="";while(e.l<e.length){var l=e[e.l++];switch(l){case 0:n.push(e.read_shift(8,"f"));break;case 1:a=_(t[0].c,e.read_shift(2),!0),i=_(t[0].r,e.read_shift(2),!1),n.push(a+i);break;case 2:var u=_(t[0].c,e.read_shift(2),!0),c=_(t[0].r,e.read_shift(2),!1);a=_(t[0].c,e.read_shift(2),!0),i=_(t[0].r,e.read_shift(2),!1),n.push(u+c+":"+a+i);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:var d="";while(l=e[e.l++])d+=String.fromCharCode(l);n.push('"'+d.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:s=n.pop(),o=n.pop(),n.push(["AND","OR"][l-20]+"("+o+","+s+")");break;default:if(l<32&&w[l])s=n.pop(),o=n.pop(),n.push(o+w[l]+s);else{if(!x[l])return l<=7?console.error("WK1 invalid opcode "+l.toString(16)):l<=24?console.error("WK1 unsupported op "+l.toString(16)):l<=30?console.error("WK1 invalid opcode "+l.toString(16)):l<=115?console.error("WK1 unsupported function opcode "+l.toString(16)):console.error("WK1 unrecognized opcode "+l.toString(16));if(r=x[l][1],69==r&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+n.join("|")+"|");var h=n.slice(-r);n.length-=r,n.push(x[l][0]+"("+h.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function S(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function k(e,t){var n=S(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function L(e,t,n,r){var i=Cn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var a=0;a<r.length;++a){var o=r.charCodeAt(a);i.write_shift(1,o>=128?95:o)}return i.write_shift(1,0),i}function O(e,t){var n=S(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function D(e,t){var n=S(e,t),r=e.read_shift(4),i=e.read_shift(4),a=e.read_shift(2);if(65535==a)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var o=32768&a;return a=(32767&a)-16446,n[1].v=(1-2*o)*(i*Math.pow(2,a+32)+r*Math.pow(2,a)),n}function A(e,t,n,r){var i=Cn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var a=0,o=0,s=0,l=0;return r<0&&(a=1,r=-r),o=0|Math.log2(r),r/=Math.pow(2,o-31),l=r>>>0,0==(2147483648&l)&&(r/=2,++o,l=r>>>0),r-=l,l|=2147483648,l>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,l),o+=16383+(a?32768:0),i.write_shift(2,o),i}function I(e,t){var n=D(e,14);return e.l+=t-14,n}function C(e,t){var n=S(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function E(e,t){var n=S(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function P(e,t){var n=E(e,14);return e.l+=t-10,n}function Y(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function j(e,t){var n=e[e.l++];n>t-1&&(n=t-1);var r="";while(r.length<n)r+=String.fromCharCode(e[e.l++]);return r}function N(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);e.l+=17,e.l+=1,e.l+=2;var i=e.read_shift(t-21,"cstr");return[r,i]}}function R(e,t){var n={},r=e.l+t;while(e.l<r){var i=e.read_shift(2);if(14e3==i){n[i]=[0,""],n[i][0]=e.read_shift(2);while(e[e.l])n[i][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}function H(e,t){var n=Cn(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var i=e.charCodeAt(r);n[n.l++]=i>127?95:i}return n[n.l++]=0,n}var F={0:{n:"BOF",f:Ii},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:f},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:d},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:d},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:Y},222:{n:"SHEETNAMELP",f:j},65535:{n:""}},z={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:k},23:{n:"NUMBER17",f:D},24:{n:"NUMBER18",f:O},25:{n:"FORMULA19",f:I},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:R},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:C},38:{n:"??"},39:{n:"NUMBER27",f:E},40:{n:"FORMULA28",f:P},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:Y},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:N},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:t}}();var Sa=/^\s|\s$|[\t\n\r]/;function Ta(e,t){if(!t.bookSST)return"";var n=[_t];n[n.length]=zt("sst",null,{xmlns:Gt[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var i=e[r],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(Sa)&&(a+=' xml:space="preserve"'),a+=">"+St(i.t)+"</t>"),a+="</si>",n[n.length]=a}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}function ka(e){return[e.read_shift(4),e.read_shift(4)]}function La(e,t){return t||(t=Cn(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var Oa=dr;function Da(e){var t=En();Pn(t,159,La(e));for(var n=0;n<e.length;++n)Pn(t,19,Oa(e[n]));return Pn(t,160),t.end()}function Aa(e){if("undefined"!==typeof f)return f.utils.encode(a,e);for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function Ia(e){var t,n,r,i,a,o,s=0,l=Aa(e),u=l.length+1;for(t=M(u),t[0]=l.length,n=1;n!=u;++n)t[n]=l[n-1];for(n=u-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,a=s<<1&32767,o=i|a,s=o^r;return 52811^s}var Ca=function(){function e(e,n){switch(n.type){case"base64":return t(b(e),n);case"binary":return t(e,n);case"buffer":return t(x&&Buffer.isBuffer(e)?e.toString("binary"):L(e),n);case"array":return t(dt(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=t||{},r=n.dense?[]:{},i=e.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var a={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);var n,i=/\\\w+\b/g,o=0,s=-1;while(n=i.exec(e)){switch(n[0]){case"\\cell":var l=e.slice(o,i.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var u={v:l,t:"s"};Array.isArray(r)?r[t][s]=u:r[Zn({r:t,c:s})]=u}break}o=i.lastIndex}s>a.e.c&&(a.e.c=s)})),r["!ref"]=Jn(a),r}function n(t,n){return tr(e(t,n),n)}function r(e){for(var t,n=["{\\rtf1\\ansi"],r=$n(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){n.push("\\trowd\\trautofit1");for(var o=r.s.c;o<=r.e.c;++o)n.push("\\cellx"+(o+1));for(n.push("\\pard\\intbl"),o=r.s.c;o<=r.e.c;++o){var s=Zn({r:a,c:o});t=i?(e[a]||[])[o]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(er(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:n,to_sheet:e,from_sheet:r}}();function Ea(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var Pa=6,Ya=Pa;function ja(e){return Math.floor((e+Math.round(128/Ya)/256)*Ya)}function Na(e){return Math.floor((e-5)/Ya*100+.5)/100}function Ra(e){return Math.round((e*Ya+5)/Ya*256)/256}function Ha(e){e.width?(e.wpx=ja(e.width),e.wch=Na(e.wpx),e.MDW=Ya):e.wpx?(e.wch=Na(e.wpx),e.width=Ra(e.wch),e.MDW=Ya):"number"==typeof e.wch&&(e.width=Ra(e.wch),e.wpx=ja(e.width),e.MDW=Ya),e.customWidth&&delete e.customWidth}var Fa=96,za=Fa;function Ba(e){return 96*e/za}function Wa(e){return e*za/96}function Va(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=zt("numFmt",null,{numFmtId:r,formatCode:St(e[r])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=zt("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Ga(e){var t=[];return t[t.length]=zt("cellXfs",null),e.forEach((function(e){t[t.length]=zt("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=zt("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Ua(e,t){var n,r=[_t,zt("styleSheet",null,{xmlns:Gt[0],"xmlns:vt":Vt.vt})];return e.SSF&&null!=(n=Va(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Ga(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function qa(e,t){var n=e.read_shift(2),r=or(e,t-2);return[n,r]}function Xa(e,t,n){n||(n=Cn(6+4*t.length)),n.write_shift(2,e),sr(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}function Za(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=Yr(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var a=e.read_shift(2);switch(700===a&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var o=e.read_shift(1);0!=o&&(r.underline=o);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=Er(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=or(e,t-21),r}function Ka(e,t){t||(t=Cn(153)),t.write_shift(2,20*e.sz),jr(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Pr(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),sr(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Ja,$a=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Qa=In;function eo(e,t){t||(t=Cn(84)),Ja||(Ja=$e($a));var n=Ja[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(Pr({auto:1},t),Pr({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function to(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}function no(e,t,n){n||(n=Cn(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);var r=0;return n.write_shift(1,r),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function ro(e,t){return t||(t=Cn(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var io=In;function ao(e,t){return t||(t=Cn(51)),t.write_shift(1,0),ro(null,t),ro(null,t),ro(null,t),ro(null,t),ro(null,t),t.length>t.l?t.slice(0,t.l):t}function oo(e,t){return t||(t=Cn(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),xr(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function so(e,t,n){var r=Cn(2052);return r.write_shift(4,e),xr(t,r),xr(n,r),r.length>r.l?r.slice(0,r.l):r}function lo(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(Pn(e,615,ar(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&Pn(e,44,Xa(r,t[r]))})),Pn(e,616))}}function uo(e){var t=1;0!=t&&(Pn(e,611,ar(t)),Pn(e,43,Ka({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Pn(e,612))}function co(e){var t=2;0!=t&&(Pn(e,603,ar(t)),Pn(e,45,eo({patternType:"none"})),Pn(e,45,eo({patternType:"gray125"})),Pn(e,604))}function ho(e){var t=1;0!=t&&(Pn(e,613,ar(t)),Pn(e,46,ao({})),Pn(e,614))}function fo(e){var t=1;Pn(e,626,ar(t)),Pn(e,47,no({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Pn(e,627)}function po(e,t){Pn(e,617,ar(t.length)),t.forEach((function(t){Pn(e,47,no(t,0))})),Pn(e,618)}function mo(e){var t=1;Pn(e,619,ar(t)),Pn(e,48,oo({xfId:0,builtinId:0,name:"Normal"})),Pn(e,620)}function go(e){var t=0;Pn(e,505,ar(t)),Pn(e,506)}function yo(e){var t=0;Pn(e,508,so(t,"TableStyleMedium9","PivotStyleMedium4")),Pn(e,509)}function vo(){}function _o(e,t){var n=En();return Pn(n,278),lo(n,e.SSF),uo(n,e),co(n,e),ho(n,e),fo(n,e),po(n,t.cellXfs),mo(n,e),go(n,e),yo(n,e),vo(n,e),Pn(n,279),n.end()}function bo(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[_t];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function xo(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:or(e,t-8)}}function wo(e){var t=Cn(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),sr(e.name,t),t.slice(0,t.l)}function Mo(e){var t=[],n=e.read_shift(4);while(n-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function So(e){var t=Cn(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}function To(e,t){var n=Cn(8+2*t.length);return n.write_shift(4,e),sr(t,n),n.slice(0,n.l)}function ko(e){return e.l+=4,0!=e.read_shift(4)}function Lo(e,t){var n=Cn(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}function Oo(){var e=En();return Pn(e,332),Pn(e,334,ar(1)),Pn(e,335,wo({name:"XLDAPR",version:12e4,flags:3496657072})),Pn(e,336),Pn(e,339,To(1,"XLDAPR")),Pn(e,52),Pn(e,35,ar(514)),Pn(e,4096,ar(0)),Pn(e,4097,Ci(1)),Pn(e,36),Pn(e,53),Pn(e,340),Pn(e,337,Lo(1,!0)),Pn(e,51,So([[1,0]])),Pn(e,338),Pn(e,333),e.end()}function Do(){var e=[_t];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}function Ao(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=Zn(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}var Io=1024;function Co(e,t){var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),i=[zt("xml",null,{"xmlns:v":Ut.v,"xmlns:o":Ut.o,"xmlns:x":Ut.x,"xmlns:mv":Ut.mv}).replace(/\/>/,">"),zt("o:shapelayout",zt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),zt("v:shapetype",[zt("v:stroke",null,{joinstyle:"miter"}),zt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];while(Io<1e3*e)Io+=1e3;return t.forEach((function(e){var t=Xn(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?zt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=zt("v:fill",r,n),o={on:"t",obscured:"t"};++Io,i=i.concat(["<v:shape"+Ft({id:"_x0000_s"+Io,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",a,zt("v:shadow",null,o),zt("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ht("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Ht("x:AutoFill","False"),Ht("x:Row",String(t.r)),Ht("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),i.push("</xml>"),i.join("")}function Eo(e){var t=[_t,zt("comments",null,{xmlns:Gt[0]})],n=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var r=St(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var r=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(St(e.a))),i.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),i.length<=1)t.push(Ht("t",St(i[0]||"")));else{for(var a="Comment:\n    "+i[0]+"\n",o=1;o<i.length;++o)a+="Reply:\n    "+i[o]+"\n";t.push(Ht("t",St(a)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Po(e,t,n){var r=[_t,zt("ThreadedComments",null,{xmlns:Vt.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var i="";(e[1]||[]).forEach((function(a,o){if(a.T){a.a&&-1==t.indexOf(a.a)&&t.push(a.a);var s={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==o?i=s.id:s.parentId=i,a.ID=s.id,a.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),r.push(zt("threadedComment",Ht("text",a.t||""),s))}else delete a.ID}))})),r.push("</ThreadedComments>"),r.join("")}function Yo(e){var t=[_t,zt("personList",null,{xmlns:Vt.TCMNT,"xmlns:x":Gt[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(zt("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}function jo(e){var t={};t.iauthor=e.read_shift(4);var n=Dr(e,16);return t.rfx=n.s,t.ref=Zn(n.s),e.l+=16,t}function No(e,t){return null==t&&(t=Cn(36)),t.write_shift(4,e[1].iauthor),Ar(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Ro=or;function Ho(e){return sr(e.slice(0,54))}function Fo(e){var t=En(),n=[];return Pn(t,628),Pn(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Pn(t,632,Ho(e.a)))}))})),Pn(t,631),Pn(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var i={s:Xn(e[0]),e:Xn(e[0])};Pn(t,635,No([i,r])),r.t&&r.t.length>0&&Pn(t,637,fr(r)),Pn(t,636),delete r.iauthor}))})),Pn(t,634),Pn(t,629),t.end()}function zo(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var i=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&Ue.utils.cfb_add(e,i,t.FileIndex[r].content)}}))}var Bo=["xlsb","xlsm","xlam","biff8","xla"];var Wo=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var a=!1,o=!1;0==r.length?o=!0:"["==r.charAt(0)&&(o=!0,r=r.slice(1,-1)),0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return a?l+=t.c:--l,o?s+=t.r:--s,n+(a?"":"$")+Vn(l)+(o?"":"$")+Fn(s)}return function(r,i){return t=i,r.replace(e,n)}}(),Vo=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Go=function(){return function(e,t){return e.replace(Vo,(function(e,n,r,i,a,o){var s=Wn(i)-(r?0:t.c),l=Hn(o)-(a?0:t.r),u=0==l?"":a?l+1:"["+l+"]",c=0==s?"":r?s+1:"["+s+"]";return n+"R"+u+"C"+c}))}}();function Uo(e,t){return e.replace(Vo,(function(e,n,r,i,a,o){return n+("$"==r?r+i:Vn(Wn(i)+t.c))+("$"==a?a+o:Fn(Hn(o)+t.r))}))}function qo(e){return 1!=e.length}function Xo(e){e.l+=1}function Zo(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function Ko(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return Jo(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),a=e.read_shift(r),o=Zo(e,2),s=Zo(e,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function Jo(e){var t=Zo(e,2),n=Zo(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function $o(e,t,n){if(n.biff<8)return Jo(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),a=Zo(e,2),o=Zo(e,2);return{s:{r:r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function Qo(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return es(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=Zo(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function es(e){var t=Zo(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function ts(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function ns(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return rs(e,t,n);var i=e.read_shift(r>=12?4:2),a=e.read_shift(2),o=(16384&a)>>14,s=(32768&a)>>15;if(a&=16383,1==s)while(i>524287)i-=1048576;if(1==o)while(a>8191)a-=16384;return{r:i,c:a,cRel:o,rRel:s}}function rs(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function is(e,t,n){var r=(96&e[e.l++])>>5,i=Ko(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function as(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var o=Ko(e,a,n);return[r,i,o]}function os(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function ss(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[r,i]}function ls(e,t,n){var r=(96&e[e.l++])>>5,i=$o(e,t-1,n);return[r,i]}function us(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function cs(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function ds(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],a=0;a<=r;++a)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function hs(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function fs(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function ps(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function ms(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function gs(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function ys(e){return e.read_shift(2),gs(e,2)}function vs(e){return e.read_shift(2),gs(e,2)}function _s(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=Qo(e,0,n);return[r,i]}function bs(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=ns(e,0,n);return[r,i]}function xs(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var a=Qo(e,0,n);return[r,i,a]}function ws(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Cl[i],Il[i],r]}function Ms(e,t,n){var r=e[e.l++],i=e.read_shift(1),a=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Ss(e);return[i,(0===a[0]?Il:Al)[a[1]]]}function Ss(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Ts(e,t,n){e.l+=n&&2==n.biff?3:4}function ks(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Ls(e){return e.l++,$r[e.read_shift(1)]}function Os(e){return e.l++,e.read_shift(2)}function Ds(e){return e.l++,0!==e.read_shift(1)}function As(e){return e.l++,Ir(e,8)}function Is(e,t,n){return e.l++,Pi(e,t-1,n)}function Cs(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Di(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=$r[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Ir(e,8);break;case 2:n[1]=Ri(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Es(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],a=0;a!=r;++a)i.push((12==n.biff?Dr:Vi)(e,8));return i}function Ps(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var a=0,o=[];a!=r&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=Cs(e,n.biff);return o}function Ys(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,a=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,a]}function js(e,t,n){if(5==n.biff)return Ns(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[r,i,a]}function Ns(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function Rs(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Hs(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Fs(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function zs(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[r,i]}var Bs=In,Ws=In,Vs=In;function Gs(e,t,n){return e.l+=2,[ts(e,4,n)]}function Us(e){return e.l+=6,[]}var qs=Gs,Xs=Us,Zs=Us,Ks=Gs;function Js(e){return e.l+=2,[Ii(e),1&e.read_shift(2)]}var $s=Gs,Qs=Js,el=Us,tl=Gs,nl=Gs,rl=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function il(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),o=rl[n>>2&31];return{ixti:t,coltype:3&n,rt:o,idx:r,c:i,C:a}}function al(e){return e.l+=2,[e.read_shift(4)]}function ol(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function sl(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function ll(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function ul(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function cl(e){return e.l+=4,[0,0]}var dl={1:{n:"PtgExp",f:ks},2:{n:"PtgTbl",f:Vs},3:{n:"PtgAdd",f:Xo},4:{n:"PtgSub",f:Xo},5:{n:"PtgMul",f:Xo},6:{n:"PtgDiv",f:Xo},7:{n:"PtgPower",f:Xo},8:{n:"PtgConcat",f:Xo},9:{n:"PtgLt",f:Xo},10:{n:"PtgLe",f:Xo},11:{n:"PtgEq",f:Xo},12:{n:"PtgGe",f:Xo},13:{n:"PtgGt",f:Xo},14:{n:"PtgNe",f:Xo},15:{n:"PtgIsect",f:Xo},16:{n:"PtgUnion",f:Xo},17:{n:"PtgRange",f:Xo},18:{n:"PtgUplus",f:Xo},19:{n:"PtgUminus",f:Xo},20:{n:"PtgPercent",f:Xo},21:{n:"PtgParen",f:Xo},22:{n:"PtgMissArg",f:Xo},23:{n:"PtgStr",f:Is},26:{n:"PtgSheet",f:ol},27:{n:"PtgEndSheet",f:sl},28:{n:"PtgErr",f:Ls},29:{n:"PtgBool",f:Ds},30:{n:"PtgInt",f:Os},31:{n:"PtgNum",f:As},32:{n:"PtgArray",f:us},33:{n:"PtgFunc",f:ws},34:{n:"PtgFuncVar",f:Ms},35:{n:"PtgName",f:Ys},36:{n:"PtgRef",f:_s},37:{n:"PtgArea",f:is},38:{n:"PtgMemArea",f:Rs},39:{n:"PtgMemErr",f:Bs},40:{n:"PtgMemNoMem",f:Ws},41:{n:"PtgMemFunc",f:Hs},42:{n:"PtgRefErr",f:Fs},43:{n:"PtgAreaErr",f:os},44:{n:"PtgRefN",f:bs},45:{n:"PtgAreaN",f:ls},46:{n:"PtgMemAreaN",f:ll},47:{n:"PtgMemNoMemN",f:ul},57:{n:"PtgNameX",f:js},58:{n:"PtgRef3d",f:xs},59:{n:"PtgArea3d",f:as},60:{n:"PtgRefErr3d",f:zs},61:{n:"PtgAreaErr3d",f:ss},255:{}},hl={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},fl={1:{n:"PtgElfLel",f:Js},2:{n:"PtgElfRw",f:tl},3:{n:"PtgElfCol",f:qs},6:{n:"PtgElfRwV",f:nl},7:{n:"PtgElfColV",f:Ks},10:{n:"PtgElfRadical",f:$s},11:{n:"PtgElfRadicalS",f:el},13:{n:"PtgElfColS",f:Xs},15:{n:"PtgElfColSV",f:Zs},16:{n:"PtgElfRadicalLel",f:Qs},25:{n:"PtgList",f:il},29:{n:"PtgSxName",f:al},255:{}},pl={0:{n:"PtgAttrNoop",f:cl},1:{n:"PtgAttrSemi",f:ms},2:{n:"PtgAttrIf",f:fs},4:{n:"PtgAttrChoose",f:ds},8:{n:"PtgAttrGoto",f:hs},16:{n:"PtgAttrSum",f:Ts},32:{n:"PtgAttrBaxcel",f:cs},33:{n:"PtgAttrBaxcel",f:cs},64:{n:"PtgAttrSpace",f:ys},65:{n:"PtgAttrSpaceSemi",f:vs},128:{n:"PtgAttrIfError",f:ps},255:{}};function ml(e,t,n,r){if(r.biff<8)return In(e,t);for(var i=e.l+t,a=[],o=0;o!==n.length;++o)switch(n[o][0]){case"PtgArray":n[o][1]=Ps(e,0,r),a.push(n[o][1]);break;case"PtgMemArea":n[o][2]=Es(e,n[o][1],r),a.push(n[o][2]);break;case"PtgExp":r&&12==r.biff&&(n[o][1][1]=e.read_shift(4),a.push(n[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[o][0];default:break}return t=i-e.l,0!==t&&a.push(In(e,t)),a}function gl(e,t,n){var r,i,a=e.l+t,o=[];while(a!=e.l)t=a-e.l,i=e[e.l],r=dl[i]||dl[hl[i]],24!==i&&25!==i||(r=(24===i?fl:pl)[e[e.l+1]]),r&&r.f?o.push([r.n,r.f(e,t,n)]):In(e,t);return o}function yl(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],a=0;a<r.length;++a){var o=r[a];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var vl={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function _l(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function bl(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function xl(e,t,n){var r=bl(e,t,n);return"#REF"==r?r:_l(r,n)}function wl(e,t,n,r,i){var a,o,s,l,u=i&&i.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},d=[],h=0,f=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",y=0,v=e[0].length;y<v;++y){var _=e[0][y];switch(_[0]){case"PtgUminus":d.push("-"+d.pop());break;case"PtgUplus":d.push("+"+d.pop());break;case"PtgPercent":d.push(d.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(a=d.pop(),o=d.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=ft(" ",e[0][m][1][1]);break;case 1:g=ft("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}o+=g,m=-1}d.push(o+vl[_[0]]+a);break;case"PtgIsect":a=d.pop(),o=d.pop(),d.push(o+" "+a);break;case"PtgUnion":a=d.pop(),o=d.pop(),d.push(o+","+a);break;case"PtgRange":a=d.pop(),o=d.pop(),d.push(o+":"+a);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=Yn(_[1][1],c,i),d.push(Nn(s,u));break;case"PtgRefN":s=n?Yn(_[1][1],n,i):_[1][1],d.push(Nn(s,u));break;case"PtgRef3d":h=_[1][1],s=Yn(_[1][2],c,i),p=xl(r,h,i);d.push(p+"!"+Nn(s,u));break;case"PtgFunc":case"PtgFuncVar":var b=_[1][0],x=_[1][1];b||(b=0),b&=127;var w=0==b?[]:d.slice(-b);d.length-=b,"User"===x&&(x=w.shift()),d.push(x+"("+w.join(",")+")");break;case"PtgBool":d.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":d.push(_[1]);break;case"PtgNum":d.push(String(_[1]));break;case"PtgStr":d.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":d.push(_[1]);break;case"PtgAreaN":l=jn(_[1][1],n?{s:n}:c,i),d.push(Rn(l,i));break;case"PtgArea":l=jn(_[1][1],c,i),d.push(Rn(l,i));break;case"PtgArea3d":h=_[1][1],l=_[1][2],p=xl(r,h,i),d.push(p+"!"+Rn(l,i));break;case"PtgAttrSum":d.push("SUM("+d.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=_[1][2];var M=(r.names||[])[f-1]||(r[0]||[])[f],S=M?M.Name:"SH33TJSNAME"+String(f);S&&"_xlfn."==S.slice(0,6)&&!i.xlfn&&(S=S.slice(6)),d.push(S);break;case"PtgNameX":var T,k=_[1][1];if(f=_[1][2],!(i.biff<=5)){var L="";if(14849==((r[k]||[])[0]||[])[0]||(1025==((r[k]||[])[0]||[])[0]?r[k][f]&&r[k][f].itab>0&&(L=r.SheetNames[r[k][f].itab-1]+"!"):L=r.SheetNames[f-1]+"!"),r[k]&&r[k][f])L+=r[k][f].Name;else if(r[0]&&r[0][f])L+=r[0][f].Name;else{var O=(bl(r,k,i)||"").split(";;");O[f-1]?L=O[f-1]:L+="SH33TJSERRX"}d.push(L);break}k<0&&(k=-k),r[k]&&(T=r[k][f]),T||(T={Name:"SH33TJSERRY"}),d.push(T.Name);break;case"PtgParen":var D="(",A=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:D=ft(" ",e[0][m][1][1])+D;break;case 3:D=ft("\r",e[0][m][1][1])+D;break;case 4:A=ft(" ",e[0][m][1][1])+A;break;case 5:A=ft("\r",e[0][m][1][1])+A;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}d.push(D+d.pop()+A);break;case"PtgRefErr":d.push("#REF!");break;case"PtgRefErr3d":d.push("#REF!");break;case"PtgExp":s={c:_[1][1],r:_[1][0]};var I={c:n.c,r:n.r};if(r.sharedf[Zn(s)]){var C=r.sharedf[Zn(s)];d.push(wl(C,c,I,r,i))}else{var E=!1;for(a=0;a!=r.arrayf.length;++a)if(o=r.arrayf[a],!(s.c<o[0].s.c||s.c>o[0].e.c)&&!(s.r<o[0].s.r||s.r>o[0].e.r)){d.push(wl(o[1],c,I,r,i)),E=!0;break}E||d.push(_[1])}break;case"PtgArray":d.push("{"+yl(_[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":d.push("");break;case"PtgAreaErr":d.push("#REF!");break;case"PtgAreaErr3d":d.push("#REF!");break;case"PtgList":d.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&m>=0&&-1==P.indexOf(e[0][y][0])){_=e[0][m];var Y=!0;switch(_[1][0]){case 4:Y=!1;case 0:g=ft(" ",_[1][1]);break;case 5:Y=!1;case 1:g=ft("\r",_[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}d.push((Y?g:"")+d.pop()+(Y?"":g)),m=-1}}if(d.length>1&&i.WTF)throw new Error("bad formula stack");return d[0]}function Ml(e){if(null==e){var t=Cn(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Cr("number"==typeof e?e:0)}function Sl(e,t,n,r,i){var a=Bi(t,n,i),o=Ml(e.v),s=Cn(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=Cn(e.bf.length),c=0;c<e.bf.length;++c)u[c]=e.bf[c];var d=D([a,o,s,u]);return d}function Tl(e,t,n){var r=e.read_shift(4),i=gl(e,r,n),a=e.read_shift(4),o=a>0?ml(e,a,i,n):null;return[i,o]}var kl=Tl,Ll=Tl,Ol=Tl,Dl=Tl,Al={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Il={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Cl={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function El(e){var t="of:="+e.replace(Vo,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function Pl(e){return e.replace(/\./,"!")}var Yl="undefined"!==typeof Map;function jl(e,t,n){var r=0,i=e.length;if(n){if(Yl?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var a=Yl?n.get(t):n[t];r<a.length;++r)if(e[a[r]].t===t)return e.Count++,a[r]}else for(;r<i;++r)if(e[r].t===t)return e.Count++,r;return e[i]={t:t},e.Count++,e.Unique++,n&&(Yl?(n.has(t)||n.set(t,[]),n.get(t).push(i)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(i))),i}function Nl(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(Ya=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=Na(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=Ra(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function Rl(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function Hl(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,a=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){He(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=a;++i)if(e[i].numFmtId===r)return i;return e[a]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function Fl(e,t,n){if(e&&e["!ref"]){var r=$n(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}function zl(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Jn(e[n])+'"/>';return t+"</mergeCells>"}function Bl(e,t,n,r,i){var a=!1,o={},s=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(c){}a=!0,o.codeName=jt(St(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+zt("outlinePr",null,u)}(a||s)&&(i[i.length]=zt("sheetPr",s,o))}var Wl=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Vl=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Gl(e){var t={sheet:1};return Wl.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Vl.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=Ia(e.password).toString(16).toUpperCase()),zt("sheetProtection",null,t)}function Ul(e){return Rl(e),zt("pageMargins",null,e)}function ql(e,t){for(var n,r=["<cols>"],i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=zt("col",null,Nl(i,n)));return r[r.length]="</cols>",r.join("")}function Xl(e,t,n,r){var i="string"==typeof e.ref?e.ref:Jn(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,o=Kn(i);o.s.r==o.e.r&&(o.e.r=Kn(t["!ref"]).e.r,i=Jn(o));for(var s=0;s<a.length;++s){var l=a[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),zt("autoFilter",null,{ref:i})}function Zl(e,t,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),zt("sheetViews",zt("sheetView",null,i),{})}function Kl(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!==typeof e.f||"z"===e.t&&!e.f)return"";var i="",a=e.t,o=e.v;if("z"!==e.t)switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=$r[e.v];break;case"d":r&&r.cellDates?i=ct(e.v,-1).toISOString():(e=ht(e),e.t="n",i=""+(e.v=nt(ct(e.v)))),"undefined"===typeof e.z&&(e.z=G[14]);break;default:i=e.v;break}var s=Ht("v",St(i)),l={r:t},u=Hl(r.cellXfs,e,r);switch(0!==u&&(l.s=u),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){s=Ht("v",""+jl(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=o),"string"==typeof e.f&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=zt("f",St(e.f),c)+(null!=e.v?s:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),zt("c",s,l)}function Jl(e,t,n,r){var i,a,o=[],s=[],l=$n(e["!ref"]),u="",c="",d=[],h=0,f=0,p=e["!rows"],m=Array.isArray(e),g={r:c},y=-1;for(f=l.s.c;f<=l.e.c;++f)d[f]=Vn(f);for(h=l.s.r;h<=l.e.r;++h){for(s=[],c=Fn(h),f=l.s.c;f<=l.e.c;++f){i=d[f]+c;var v=m?(e[h]||[])[f]:e[i];void 0!==v&&(null!=(u=Kl(v,i,e,t,n,r))&&s.push(u))}(s.length>0||p&&p[h])&&(g={r:c},p&&p[h]&&(a=p[h],a.hidden&&(g.hidden=1),y=-1,a.hpx?y=Ba(a.hpx):a.hpt&&(y=a.hpt),y>-1&&(g.ht=y,g.customHeight=1),a.level&&(g.outlineLevel=a.level)),o[o.length]=zt("row",s.join(""),g))}if(p)for(;h<p.length;++h)p&&p[h]&&(g={r:h+1},a=p[h],a.hidden&&(g.hidden=1),y=-1,a.hpx?y=Ba(a.hpx):a.hpt&&(y=a.hpt),y>-1&&(g.ht=y,g.customHeight=1),a.level&&(g.outlineLevel=a.level),o[o.length]=zt("row","",g));return o.join("")}function $l(e,t,n,r){var i=[_t,zt("worksheet",null,{xmlns:Gt[0],"xmlns:r":Vt.r})],a=n.SheetNames[e],o=0,s="",l=n.Sheets[a];null==l&&(l={});var u=l["!ref"]||"A1",c=$n(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=Jn(c)}r||(r={}),l["!comments"]=[];var d=[];Bl(l,n,e,t,i),i[i.length]=zt("dimension",null,{ref:u}),i[i.length]=Zl(l,t,e,n),t.sheetFormat&&(i[i.length]=zt("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=ql(l,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=Jl(l,t,e,n,r),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=Gl(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=Xl(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=zl(l["!merges"]));var h,f=-1,p=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(e){e[1].Target&&(h={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(p=oi(r,-1,St(e[1].Target).replace(/#.*$/,""),ri.HLINK),h["r:id"]="rId"+p),(f=e[1].Target.indexOf("#"))>-1&&(h.location=St(e[1].Target.slice(f+1))),e[1].Tooltip&&(h.tooltip=St(e[1].Tooltip)),i[i.length]=zt("hyperlink",null,h))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=Ul(l["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||(i[i.length]=Ht("ignoredErrors",zt("ignoredError",null,{numberStoredAsText:1,sqref:u}))),d.length>0&&(p=oi(r,-1,"../drawings/drawing"+(e+1)+".xml",ri.DRAW),i[i.length]=zt("drawing",null,{"r:id":"rId"+p}),l["!drawing"]=d),l["!comments"].length>0&&(p=oi(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ri.VML),i[i.length]=zt("legacyDrawing",null,{"r:id":"rId"+p}),l["!legacy"]=p),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Ql(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=r,7&a&&(n.level=7&a),16&a&&(n.hidden=!0),32&a&&(n.hpt=i/20),n}function eu(e,t,n){var r=Cn(145),i=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var a=320;i.hpx?a=20*Ba(i.hpx):i.hpt&&(a=20*i.hpt),r.write_shift(2,a),r.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),r.write_shift(1,o),r.write_shift(1,0);var s=0,l=r.l;r.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var d=-1,h=-1,f=c<<10;f<c+1<<10;++f){u.c=f;var p=Array.isArray(n)?(n[u.r]||[])[u.c]:n[Zn(u)];p&&(d<0&&(d=f),h=f)}d<0||(++s,r.write_shift(4,d),r.write_shift(4,h))}var m=r.l;return r.l=l,r.write_shift(4,s),r.l=m,r.length>r.l?r.slice(0,r.l):r}function tu(e,t,n,r){var i=eu(r,n,t);(i.length>17||(t["!rows"]||[])[r])&&Pn(e,0,i)}var nu=Dr,ru=Ar;function iu(){}function au(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=vr(e,t-19),n}function ou(e,t,n){null==n&&(n=Cn(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return Pr({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),_r(e,n),n.slice(0,n.l)}function su(e){var t=pr(e);return[t]}function lu(e,t,n){return null==n&&(n=Cn(8)),mr(t,n)}function uu(e){var t=gr(e);return[t]}function cu(e,t,n){return null==n&&(n=Cn(4)),yr(t,n)}function du(e){var t=pr(e),n=e.read_shift(1);return[t,n,"b"]}function hu(e,t,n){return null==n&&(n=Cn(9)),mr(t,n),n.write_shift(1,e.v?1:0),n}function fu(e){var t=gr(e),n=e.read_shift(1);return[t,n,"b"]}function pu(e,t,n){return null==n&&(n=Cn(5)),yr(t,n),n.write_shift(1,e.v?1:0),n}function mu(e){var t=pr(e),n=e.read_shift(1);return[t,n,"e"]}function gu(e,t,n){return null==n&&(n=Cn(9)),mr(t,n),n.write_shift(1,e.v),n}function yu(e){var t=gr(e),n=e.read_shift(1);return[t,n,"e"]}function vu(e,t,n){return null==n&&(n=Cn(8)),yr(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}function _u(e){var t=pr(e),n=e.read_shift(4);return[t,n,"s"]}function bu(e,t,n){return null==n&&(n=Cn(12)),mr(t,n),n.write_shift(4,t.v),n}function xu(e){var t=gr(e),n=e.read_shift(4);return[t,n,"s"]}function wu(e,t,n){return null==n&&(n=Cn(8)),yr(t,n),n.write_shift(4,t.v),n}function Mu(e){var t=pr(e),n=Ir(e);return[t,n,"n"]}function Su(e,t,n){return null==n&&(n=Cn(16)),mr(t,n),Cr(e.v,n),n}function Tu(e){var t=gr(e),n=Ir(e);return[t,n,"n"]}function ku(e,t,n){return null==n&&(n=Cn(12)),yr(t,n),Cr(e.v,n),n}function Lu(e){var t=pr(e),n=Tr(e);return[t,n,"n"]}function Ou(e,t,n){return null==n&&(n=Cn(12)),mr(t,n),kr(e.v,n),n}function Du(e){var t=gr(e),n=Tr(e);return[t,n,"n"]}function Au(e,t,n){return null==n&&(n=Cn(8)),yr(t,n),kr(e.v,n),n}function Iu(e){var t=pr(e),n=cr(e);return[t,n,"is"]}function Cu(e){var t=pr(e),n=or(e);return[t,n,"str"]}function Eu(e,t,n){return null==n&&(n=Cn(12+4*e.v.length)),mr(t,n),sr(e.v,n),n.length>n.l?n.slice(0,n.l):n}function Pu(e){var t=gr(e),n=or(e);return[t,n,"str"]}function Yu(e,t,n){return null==n&&(n=Cn(8+4*e.v.length)),yr(t,n),sr(e.v,n),n.length>n.l?n.slice(0,n.l):n}function ju(e,t,n){var r=e.l+t,i=pr(e);i.r=n["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(n.cellFormula){e.l+=2;var s=Ll(e,r-e.l,n);o[3]=wl(s,null,i,n.supbooks,n)}else e.l=r;return o}function Nu(e,t,n){var r=e.l+t,i=pr(e);i.r=n["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(n.cellFormula){e.l+=2;var s=Ll(e,r-e.l,n);o[3]=wl(s,null,i,n.supbooks,n)}else e.l=r;return o}function Ru(e,t,n){var r=e.l+t,i=pr(e);i.r=n["!row"];var a=Ir(e),o=[i,a,"n"];if(n.cellFormula){e.l+=2;var s=Ll(e,r-e.l,n);o[3]=wl(s,null,i,n.supbooks,n)}else e.l=r;return o}function Hu(e,t,n){var r=e.l+t,i=pr(e);i.r=n["!row"];var a=or(e),o=[i,a,"str"];if(n.cellFormula){e.l+=2;var s=Ll(e,r-e.l,n);o[3]=wl(s,null,i,n.supbooks,n)}else e.l=r;return o}var Fu=Dr,zu=Ar;function Bu(e,t){return null==t&&(t=Cn(4)),t.write_shift(4,e),t}function Wu(e,t){var n=e.l+t,r=Dr(e,16),i=br(e),a=or(e),o=or(e),s=or(e);e.l=n;var l={rfx:r,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function Vu(e,t){var n=Cn(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Ar({s:Xn(e[0]),e:Xn(e[0])},n),Sr("rId"+t,n);var r=e[1].Target.indexOf("#"),i=-1==r?"":e[1].Target.slice(r+1);return sr(i||"",n),sr(e[1].Tooltip||"",n),sr("",n),n.slice(0,n.l)}function Gu(){}function Uu(e,t,n){var r=e.l+t,i=Lr(e,16),a=e.read_shift(1),o=[i];if(o[2]=a,n.cellFormula){var s=kl(e,r-e.l,n);o[1]=s}else e.l=r;return o}function qu(e,t,n){var r=e.l+t,i=Dr(e,16),a=[i];if(n.cellFormula){var o=Dl(e,r-e.l,n);a[1]=o,e.l=r}else e.l=r;return a}function Xu(e,t,n){null==n&&(n=Cn(18));var r=Nl(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}var Zu=["left","right","top","bottom","header","footer"];function Ku(e){var t={};return Zu.forEach((function(n){t[n]=Ir(e,8)})),t}function Ju(e,t){return null==t&&(t=Cn(48)),Rl(e),Zu.forEach((function(n){Cr(e[n],t)})),t}function $u(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function Qu(e,t,n){null==n&&(n=Cn(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}function ec(e){var t=Cn(24);return t.write_shift(4,4),t.write_shift(4,1),Ar(e,t),t}function tc(e,t){return null==t&&(t=Cn(66)),t.write_shift(2,e.password?Ia(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?t.write_shift(4,null==e[n[0]]||e[n[0]]?0:1):t.write_shift(4,null!=e[n[0]]&&e[n[0]]?0:1)})),t}function nc(){}function rc(){}function ic(e,t,n,r,i,a,o){if(void 0===t.v)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=ht(t),t.z=t.z||G[14],t.v=nt(ct(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r:n,c:r};switch(l.s=Hl(i.cellXfs,t,i),t.l&&a["!links"].push([Zn(l),t.l]),t.c&&a["!comments"].push([Zn(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=jl(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?Pn(e,18,wu(t,l)):Pn(e,7,bu(t,l))):(l.t="str",o?Pn(e,17,Yu(t,l)):Pn(e,6,Eu(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?o?Pn(e,13,Au(t,l)):Pn(e,2,Ou(t,l)):o?Pn(e,16,ku(t,l)):Pn(e,5,Su(t,l)),!0;case"b":return l.t="b",o?Pn(e,15,pu(t,l)):Pn(e,4,hu(t,l)),!0;case"e":return l.t="e",o?Pn(e,14,vu(t,l)):Pn(e,3,gu(t,l)),!0}return o?Pn(e,12,cu(t,l)):Pn(e,1,lu(t,l)),!0}function ac(e,t,n,r){var i,a=$n(t["!ref"]||"A1"),o="",s=[];Pn(e,145);var l=Array.isArray(t),u=a.e.r;t["!rows"]&&(u=Math.max(a.e.r,t["!rows"].length-1));for(var c=a.s.r;c<=u;++c){o=Fn(c),tu(e,t,a,c);var d=!1;if(c<=a.e.r)for(var h=a.s.c;h<=a.e.c;++h){c===a.s.r&&(s[h]=Vn(h)),i=s[h]+o;var f=l?(t[c]||[])[h]:t[i];f?d=ic(e,f,c,h,r,t,d):d=!1}}Pn(e,146)}function oc(e,t){t&&t["!merges"]&&(Pn(e,177,Bu(t["!merges"].length)),t["!merges"].forEach((function(t){Pn(e,176,zu(t))})),Pn(e,178))}function sc(e,t){t&&t["!cols"]&&(Pn(e,390),t["!cols"].forEach((function(t,n){t&&Pn(e,60,Xu(n,t))})),Pn(e,391))}function lc(e,t){t&&t["!ref"]&&(Pn(e,648),Pn(e,649,ec($n(t["!ref"]))),Pn(e,650))}function uc(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=oi(n,-1,t[1].Target.replace(/#.*$/,""),ri.HLINK);Pn(e,494,Vu(t,r))}})),delete t["!links"]}function cc(e,t,n,r){if(t["!comments"].length>0){var i=oi(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",ri.VML);Pn(e,551,Sr("rId"+i)),t["!legacy"]=i}}function dc(e,t,n,r){if(t["!autofilter"]){var i=t["!autofilter"],a="string"===typeof i.ref?i.ref:Jn(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,s=Kn(a);s.s.r==s.e.r&&(s.e.r=Kn(t["!ref"]).e.r,a=Jn(s));for(var l=0;l<o.length;++l){var u=o[l];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+a}),Pn(e,161,Ar($n(a))),Pn(e,162)}}function hc(e,t,n){Pn(e,133),Pn(e,137,Qu(t,n)),Pn(e,138),Pn(e,134)}function fc(){}function pc(e,t){t["!protect"]&&Pn(e,535,tc(t["!protect"]))}function mc(e,t,n,r){var i=En(),a=n.SheetNames[e],o=n.Sheets[a]||{},s=a;try{n&&n.Workbook&&(s=n.Workbook.Sheets[e].CodeName||s)}catch(u){}var l=$n(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],Pn(i,129),(n.vbaraw||o["!outline"])&&Pn(i,147,ou(s,o["!outline"])),Pn(i,148,ru(l)),hc(i,o,n.Workbook),fc(i,o),sc(i,o,e,t,n),ac(i,o,e,t,n),pc(i,o),dc(i,o,n,e),oc(i,o),uc(i,o,r),o["!margins"]&&Pn(i,476,Ju(o["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||lc(i,o),cc(i,o,e,r),Pn(i,130),i.end()}function gc(e,t){e.l+=10;var n=or(e,t-10);return{name:n}}var yc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function vc(e){return e.Workbook&&e.Workbook.WBProps&&At(e.Workbook.WBProps.date1904)?"true":"false"}var _c="][*?/\\".split("");function bc(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return _c.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function xc(e,t,n){e.forEach((function(r,i){bc(r);for(var a=0;a<i;++a)if(r==e[a])throw new Error("Duplicate Sheet Name: "+r);if(n){var o=t&&t[i]&&t[i].CodeName||r;if(95==o.charCodeAt(0)&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}}))}function wc(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];xc(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)Fl(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}function Mc(e){var t=[_t];t[t.length]=zt("workbook",null,{xmlns:Gt[0],"xmlns:r":Vt.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(yc.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=zt("workbookPr",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length;++a){if(!i[a])break;if(!i[a].Hidden)break}a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:St(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=zt("sheet",null,o)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=zt("definedName",St(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Sc(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=Mr(e,t-8),n.name=or(e),n}function Tc(e,t){return t||(t=Cn(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Sr(e.strRelID,t),sr(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function kc(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?or(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function Lc(e,t){t||(t=Cn(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),_r(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function Oc(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=wr(e),o=Ol(e,0,n),s=br(e);e.l=r;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function Dc(e,t){Pn(e,143);for(var n=0;n!=t.SheetNames.length;++n){var r=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,i={Hidden:r,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]};Pn(e,156,Tc(i))}Pn(e,144)}function Ac(e,t){t||(t=Cn(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return sr("SheetJS",t),sr(r.version,t),sr(r.version,t),sr("7262",t),t.length>t.l?t.slice(0,t.l):t}function Ic(e,t){t||(t=Cn(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var n=120;return t.write_shift(1,n),t.length>t.l?t.slice(0,t.l):t}function Cc(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n=t.Workbook.Sheets,r=0,i=-1,a=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&-1==i?i=r:1==n[r].Hidden&&-1==a&&(a=r);a>i||(Pn(e,135),Pn(e,158,Ic(i)),Pn(e,136))}}function Ec(e,t){var n=En();return Pn(n,131),Pn(n,128,Ac()),Pn(n,153,Lc(e.Workbook&&e.Workbook.WBProps||null)),Cc(n,e,t),Dc(n,e,t),Pn(n,132),n.end()}function Pc(e,t,n){return(".bin"===t.slice(-4)?Ec:Mc)(e,n)}function Yc(e,t,n,r,i){return(".bin"===t.slice(-4)?mc:$l)(e,n,r,i)}function jc(e,t,n){return(".bin"===t.slice(-4)?_o:Ua)(e,n)}function Nc(e,t,n){return(".bin"===t.slice(-4)?Da:Ta)(e,n)}function Rc(e,t,n){return(".bin"===t.slice(-4)?Fo:Eo)(e,n)}function Hc(e){return(".bin"===e.slice(-4)?Oo:Do)()}function Fc(e,t){var n=[];return e.Props&&n.push(bi(e.Props,t)),e.Custprops&&n.push(xi(e.Props,e.Custprops,t)),n.join("")}function zc(){return""}function Bc(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(zt("NumberFormat",null,{"ss:Format":St(G[e.numFmtId])}));var i={"ss:ID":"s"+(21+t)};n.push(zt("Style",r.join(""),i))})),zt("Styles",n.join(""))}function Wc(e){return zt("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Go(e.Ref,{r:0,c:0})})}function Vc(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var i=t[r];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||n.push(Wc(i)))}return zt("Names",n.join(""))}function Gc(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||a.push(Wc(s)))}return a.join("")}function Uc(e,t,n,r){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(zt("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(zt("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(zt("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(zt("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<n;++a)if(r.Workbook.Sheets[a]&&!r.Workbook.Sheets[a].Hidden)break;a==n&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Ht("ProtectContents","True")),e["!protect"].objects&&i.push(Ht("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Ht("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||i.push(Ht("EnableSelection","UnlockedCells")):i.push(Ht("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&i.push("<"+t[1]+"/>")}))),0==i.length?"":zt("WorksheetOptions",i.join(""),{xmlns:Ut.x})}function qc(e){return e.map((function(e){var t=Dt(e.t||""),n=zt("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return zt("Comment",n,{"ss:Author":e.a})})).join("")}function Xc(e,t,n,r,i,a,o){if(!e||void 0==e.v&&void 0==e.f)return"";var s={};if(e.f&&(s["ss:Formula"]="="+St(Go(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=Xn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=St(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=St(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],c=0;c!=u.length;++c)u[c].s.c==o.c&&u[c].s.r==o.r&&(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].s.r));var d="",h="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":d="Number",h=String(e.v);break;case"b":d="Boolean",h=e.v?"1":"0";break;case"e":d="Error",h=$r[e.v];break;case"d":d="DateTime",h=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||G[14]);break;case"s":d="String",h=Ot(e.v||"");break}var f=Hl(r.cellXfs,e,r);s["ss:StyleID"]="s"+(21+f),s["ss:Index"]=o.c+1;var p=null!=e.v?h:"",m="z"==e.t?"":'<Data ss:Type="'+d+'">'+p+"</Data>";return(e.c||[]).length>0&&(m+=qc(e.c)),zt("Cell",m,s)}function Zc(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Wa(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Kc(e,t,n,r){if(!e["!ref"])return"";var i=$n(e["!ref"]),a=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Ha(e);var n=!!e.width,r=Nl(t,e),i={"ss:Index":t+1};n&&(i["ss:Width"]=ja(r.width)),e.hidden&&(i["ss:Hidden"]="1"),s.push(zt("Column",null,i))}));for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[Zc(u,(e["!rows"]||[])[u])],d=i.s.c;d<=i.e.c;++d){var h=!1;for(o=0;o!=a.length;++o)if(!(a[o].s.c>d)&&!(a[o].s.r>u)&&!(a[o].e.c<d)&&!(a[o].e.r<u)){a[o].s.c==d&&a[o].s.r==u||(h=!0);break}if(!h){var f={r:u,c:d},p=Zn(f),m=l?(e[u]||[])[d]:e[p];c.push(Xc(m,p,e,t,n,r,f))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function Jc(e,t,n){var r=[],i=n.SheetNames[e],a=n.Sheets[i],o=a?Gc(a,t,e,n):"";return o.length>0&&r.push("<Names>"+o+"</Names>"),o=a?Kc(a,t,e,n):"",o.length>0&&r.push("<Table>"+o+"</Table>"),r.push(Uc(a,t,e,n)),r.join("")}function $c(e,t){t||(t={}),e.SSF||(e.SSF=ht(G)),e.SSF&&(ze(),Fe(e.SSF),t.revssf=Qe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Hl(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(Fc(e,t)),n.push(zc(e,t)),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(zt("Worksheet",Jc(r,t,e),{"ss:Name":St(e.SheetNames[r])}));return n[2]=Bc(e,t),n[3]=Vc(e,t),_t+zt("Workbook",n.join(""),{xmlns:Ut.ss,"xmlns:o":Ut.o,"xmlns:x":Ut.x,"xmlns:ss":Ut.ss,"xmlns:dt":Ut.dt,"xmlns:html":Ut.html})}var Qc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function ed(e,t){var n,r=[],i=[],a=[],o=0,s=Je(qr,"n"),l=Je(Xr,"n");if(e.Props)for(n=Ke(e.Props),o=0;o<n.length;++o)(Object.prototype.hasOwnProperty.call(s,n[o])?r:Object.prototype.hasOwnProperty.call(l,n[o])?i:a).push([n[o],e.Props[n[o]]]);if(e.Custprops)for(n=Ke(e.Custprops),o=0;o<n.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},n[o])||(Object.prototype.hasOwnProperty.call(s,n[o])?r:Object.prototype.hasOwnProperty.call(l,n[o])?i:a).push([n[o],e.Custprops[n[o]]]);var u=[];for(o=0;o<a.length;++o)Si.indexOf(a[o][0])>-1||gi.indexOf(a[o][0])>-1||null!=a[o][1]&&u.push(a[o]);i.length&&Ue.utils.cfb_add(t,"/SummaryInformation",Li(i,Qc.SI,l,Xr)),(r.length||u.length)&&Ue.utils.cfb_add(t,"/DocumentSummaryInformation",Li(r,Qc.DSI,s,qr,u.length?u:null,Qc.UDI))}function td(e,t){var n=t||{},r=Ue.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return Ue.utils.cfb_add(r,i,xd(e,n)),8==n.biff&&(e.Props||e.Custprops)&&ed(e,r),8==n.biff&&e.vbaraw&&zo(r,Ue.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var nd={0:{f:Ql},1:{f:su},2:{f:Lu},3:{f:mu},4:{f:du},5:{f:Mu},6:{f:Cu},7:{f:_u},8:{f:Hu},9:{f:Ru},10:{f:ju},11:{f:Nu},12:{f:uu},13:{f:Du},14:{f:yu},15:{f:fu},16:{f:Tu},17:{f:Pu},18:{f:xu},19:{f:cr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Oc},40:{},42:{},43:{f:Za},44:{f:qa},45:{f:Qa},46:{f:io},47:{f:to},48:{},49:{f:ir},50:{},51:{f:Mo},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:fa},62:{f:Iu},63:{f:Ao},64:{f:nc},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:In,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:$u},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:au},148:{f:nu,p:16},151:{f:Gu},152:{},153:{f:kc},154:{},155:{},156:{f:Sc},157:{},158:{},159:{T:1,f:ka},160:{T:-1},161:{T:1,f:Dr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Fu},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:xo},336:{T:-1},337:{f:ko,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Mr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:sa},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Uu},427:{f:qu},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Ku},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:iu},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Wu},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Mr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Ro},633:{T:1},634:{T:-1},635:{T:1,f:jo},636:{T:-1},637:{f:hr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:gc},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:rc},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function rd(e,t,n,r){var i=t;if(!isNaN(i)){var a=r||(n||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&gn(n)&&e.push(n)}}function id(e,t,n,r){var i=r||(n||[]).length||0;if(i<=8224)return rd(e,t,n,i);var a=t;if(!isNaN(a)){var o=n.parts||[],s=0,l=0,u=0;while(u+(o[s]||8224)<=8224)u+=o[s]||8224,s++;var c=e.next(4);c.write_shift(2,a),c.write_shift(2,u),e.push(n.slice(l,l+u)),l+=u;while(l<i){c=e.next(4),c.write_shift(2,60),u=0;while(u+(o[s]||8224)<=8224)u+=o[s]||8224,s++;c.write_shift(2,u),e.push(n.slice(l,l+u)),l+=u}}}function ad(e,t,n){return e||(e=Cn(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function od(e,t,n,r){var i=Cn(9);return ad(i,e,t),Ei(n,r||"b",i),i}function sd(e,t,n){var r=Cn(8+2*n.length);return ad(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}function ld(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var i="d"==t.t?nt(ct(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?rd(e,2,ya(n,r,i)):rd(e,3,ga(n,r,i)));case"b":case"e":return void rd(e,5,od(n,r,t.v,t.t));case"s":case"str":return void rd(e,4,sd(n,r,(t.v||"").slice(0,255)))}rd(e,1,ad(null,n,r))}function ud(e,t,n,r){var i,a=Array.isArray(t),o=$n(t["!ref"]||"A1"),s="",l=[];if(o.e.c>255||o.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),i=Jn(o)}for(var u=o.s.r;u<=o.e.r;++u){s=Fn(u);for(var c=o.s.c;c<=o.e.c;++c){u===o.s.r&&(l[c]=Vn(c)),i=l[c]+s;var d=a?(t[u]||[])[c]:t[i];d&&ld(e,d,u,c,r)}}}function cd(e,t){var n=t||{};null!=g&&null==n.dense&&(n.dense=g);for(var r=En(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==n.sheet&&(i=a);if(0==i&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return rd(r,4==n.biff?1033:3==n.biff?521:9,Ui(e,16,n)),ud(r,e.Sheets[e.SheetNames[i]],i,n,e),rd(r,10),r.end()}function dd(e,t,n){rd(e,49,$i({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function hd(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&rd(e,1054,ta(i,t[i],n))}))}function fd(e,t){var n=Cn(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),rd(e,2151,n),n=Cn(39),n.write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),Gi($n(t["!ref"]||"A1"),n),n.write_shift(4,4),rd(e,2152,n)}function pd(e,t){for(var n=0;n<16;++n)rd(e,224,ra({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){rd(e,224,ra(n,0,t))}))}function md(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];rd(e,440,ca(r)),r[1].Tooltip&&rd(e,2048,da(r))}delete t["!links"]}function gd(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&rd(e,125,pa(Nl(r,t),r))}))}}function yd(e,t,n,r,i){var a=16+Hl(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)rd(e,6,Sl(t,n,r,i,a));else switch(t.t){case"d":case"n":var o="d"==t.t?nt(ct(t.v)):t.v;rd(e,515,oa(n,r,o,a,i));break;case"b":case"e":rd(e,517,aa(n,r,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=jl(i.Strings,t.v,i.revStrings);rd(e,253,Qi(n,r,s,a,i))}else rd(e,516,ea(n,r,(t.v||"").slice(0,255),a,i));break;default:rd(e,513,Bi(n,r,a))}else rd(e,513,Bi(n,r,a))}function vd(e,t,n){var r,i=En(),a=n.SheetNames[e],o=n.Sheets[a]||{},s=(n||{}).Workbook||{},l=(s.Sheets||[])[e]||{},u=Array.isArray(o),c=8==t.biff,d="",h=[],f=$n(o["!ref"]||"A1"),p=c?65536:16384;if(f.e.c>255||f.e.r>=p){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,p-1)}rd(i,2057,Ui(n,16,t)),rd(i,13,Ci(1)),rd(i,12,Ci(100)),rd(i,15,Ai(!0)),rd(i,17,Ai(!1)),rd(i,16,Cr(.001)),rd(i,95,Ai(!0)),rd(i,42,Ai(!1)),rd(i,43,Ai(!1)),rd(i,130,Ci(1)),rd(i,128,ia([0,0])),rd(i,131,Ai(!1)),rd(i,132,Ai(!1)),c&&gd(i,o["!cols"]),rd(i,512,na(f,t)),c&&(o["!links"]=[]);for(var m=f.s.r;m<=f.e.r;++m){d=Fn(m);for(var g=f.s.c;g<=f.e.c;++g){m===f.s.r&&(h[g]=Vn(g)),r=h[g]+d;var y=u?(o[m]||[])[g]:o[r];y&&(yd(i,y,m,g,t),c&&y.l&&o["!links"].push([r,y.l]))}}var v=l.CodeName||l.name||a;return c&&rd(i,574,Ji((s.Views||[])[0])),c&&(o["!merges"]||[]).length&&rd(i,229,ua(o["!merges"])),c&&md(i,o),rd(i,442,Hi(v,t)),c&&fd(i,o),rd(i,10),i.end()}function _d(e,t,n){var r=En(),i=(e||{}).Workbook||{},a=i.Sheets||[],o=i.WBProps||{},s=8==n.biff,l=5==n.biff;if(rd(r,2057,Ui(e,5,n)),"xla"==n.bookType&&rd(r,135),rd(r,225,s?Ci(1200):null),rd(r,193,Oi(2)),l&&rd(r,191),l&&rd(r,192),rd(r,226),rd(r,92,qi("SheetJS",n)),rd(r,66,Ci(s?1200:1252)),s&&rd(r,353,Ci(0)),s&&rd(r,448),rd(r,317,ma(e.SheetNames.length)),s&&e.vbaraw&&rd(r,211),s&&e.vbaraw){var u=o.CodeName||"ThisWorkbook";rd(r,442,Hi(u,n))}rd(r,156,Ci(17)),rd(r,25,Ai(!1)),rd(r,18,Ai(!1)),rd(r,19,Ci(0)),s&&rd(r,431,Ai(!1)),s&&rd(r,444,Ci(0)),rd(r,61,Ki(n)),rd(r,64,Ai(!1)),rd(r,141,Ci(0)),rd(r,34,Ai("true"==vc(e))),rd(r,14,Ai(!0)),s&&rd(r,439,Ai(!1)),rd(r,218,Ci(0)),dd(r,e,n),hd(r,e.SSF,n),pd(r,n),s&&rd(r,352,Ai(!1));var c=r.end(),d=En();s&&rd(d,140,ha()),s&&n.Strings&&id(d,252,Zi(n.Strings,n)),rd(d,10);var h=d.end(),f=En(),p=0,m=0;for(m=0;m<e.SheetNames.length;++m)p+=(s?12:11)+(s?2:1)*e.SheetNames[m].length;var g=c.length+p+h.length;for(m=0;m<e.SheetNames.length;++m){var y=a[m]||{};rd(f,133,Xi({pos:g,hs:y.Hidden||0,dt:0,name:e.SheetNames[m]},n)),g+=t[m].length}var v=f.end();if(p!=v.length)throw new Error("BS8 "+p+" != "+v.length);var _=[];return c.length&&_.push(c),v.length&&_.push(v),h.length&&_.push(h),D(_)}function bd(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=ht(G)),e&&e.SSF&&(ze(),Fe(e.SSF),n.revssf=Qe(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,nh(n),n.cellXfs=[],Hl(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=vd(i,n,e);return r.unshift(_d(e,r,n)),D(r)}function xd(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];if(r&&r["!ref"]){var i=Kn(r["!ref"]);i.e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255).  Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return bd(e,t);case 4:case 3:case 2:return cd(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function wd(e,t,n,r){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>n||i[u].s.c>o)&&!(i[u].e.r<n||i[u].e.c<o)){if(i[u].s.r<n||i[u].s.c<o){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=Zn({r:n,c:o}),d=r.dense?(e[n]||[])[o]:e[c],h=d&&null!=d.v&&(d.h||Lt(d.w||(er(d),d.w)||""))||"",f={};s>1&&(f.rowspan=s),l>1&&(f.colspan=l),r.editable?h='<span contenteditable="true">'+h+"</span>":d&&(f["data-t"]=d&&d.t||"z",null!=d.v&&(f["data-v"]=d.v),null!=d.z&&(f["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(h='<a href="'+d.l.Target+'">'+h+"</a>")),f.id=(r.id||"sjs")+"-"+c,a.push(zt("td",h,f))}}var p="<tr>";return p+a.join("")+"</tr>"}var Md='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Sd="</body></html>";function Td(e,t,n){var r=[];return r.join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function kd(e,t){var n=t||{},r=null!=n.header?n.header:Md,i=null!=n.footer?n.footer:Sd,a=[r],o=Kn(e["!ref"]);n.dense=Array.isArray(e),a.push(Td(e,o,n));for(var s=o.s.r;s<=o.e.r;++s)a.push(wd(e,o,s,n));return a.push("</table>"+i),a.join("")}function Ld(e,t,n){var r=n||{};null!=g&&(r.dense=g);var i=0,a=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var o="string"==typeof r.origin?Xn(r.origin):r.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=Kn(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),-1==i&&(u.e.r=i=c.e.r+1)}var d=[],h=0,f=e["!rows"]||(e["!rows"]=[]),p=0,m=0,y=0,v=0,_=0,b=0;for(e["!cols"]||(e["!cols"]=[]);p<s.length&&m<l;++p){var x=s[p];if(Ad(x)){if(r.display)continue;f[m]={hidden:!0}}var w=x.children;for(y=v=0;y<w.length;++y){var M=w[y];if(!r.display||!Ad(M)){var S=M.hasAttribute("data-v")?M.getAttribute("data-v"):M.hasAttribute("v")?M.getAttribute("v"):Nt(M.innerHTML),T=M.getAttribute("data-z")||M.getAttribute("z");for(h=0;h<d.length;++h){var k=d[h];k.s.c==v+a&&k.s.r<m+i&&m+i<=k.e.r&&(v=k.e.c+1-a,h=-1)}b=+M.getAttribute("colspan")||1,((_=+M.getAttribute("rowspan")||1)>1||b>1)&&d.push({s:{r:m+i,c:v+a},e:{r:m+i+(_||1)-1,c:v+a+(b||1)-1}});var L={t:"s",v:S},O=M.getAttribute("data-t")||M.getAttribute("t")||"";null!=S&&(0==S.length?L.t=O||"z":r.raw||0==S.trim().length||"s"==O||("TRUE"===S?L={t:"b",v:!0}:"FALSE"===S?L={t:"b",v:!1}:isNaN(pt(S))?isNaN(gt(S).getDate())||(L={t:"d",v:ct(S)},r.cellDates||(L={t:"n",v:nt(L.v)}),L.z=r.dateNF||G[14]):L={t:"n",v:pt(S)})),void 0===L.z&&null!=T&&(L.z=T);var D="",A=M.getElementsByTagName("A");if(A&&A.length)for(var I=0;I<A.length;++I)if(A[I].hasAttribute("href")&&(D=A[I].getAttribute("href"),"#"!=D.charAt(0)))break;D&&"#"!=D.charAt(0)&&(L.l={Target:D}),r.dense?(e[m+i]||(e[m+i]=[]),e[m+i][v+a]=L):e[Zn({c:v+a,r:m+i})]=L,u.e.c<v+a&&(u.e.c=v+a),v+=b}}++m}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),u.e.r=Math.max(u.e.r,m-1+i),e["!ref"]=Jn(u),m>=l&&(e["!fullref"]=Jn((u.e.r=s.length-p+m-1+i,u))),e}function Od(e,t){var n=t||{},r=n.dense?[]:{};return Ld(r,e,t)}function Dd(e,t){return tr(Od(e,t),t)}function Ad(e){var t="",n=Id(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Id(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}var Cd=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ft({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return _t+t}}(),Ed=function(){var e=function(e){return St(e).replace(/  +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t="          <table:table-cell />\n",n="          <table:covered-table-cell/>\n",r=function(r,i,a){var o=[];o.push('      <table:table table:name="'+St(i.SheetNames[a])+'" table:style-name="ta1">\n');var s=0,l=0,u=Kn(r["!ref"]||"A1"),c=r["!merges"]||[],d=0,h=Array.isArray(r);if(r["!cols"])for(l=0;l<=u.e.c;++l)o.push("        <table:table-column"+(r["!cols"][l]?' table:style-name="co'+r["!cols"][l].ods+'"':"")+"></table:table-column>\n");var f="",p=r["!rows"]||[];for(s=0;s<u.s.r;++s)f=p[s]?' table:style-name="ro'+p[s].ods+'"':"",o.push("        <table:table-row"+f+"></table:table-row>\n");for(;s<=u.e.r;++s){for(f=p[s]?' table:style-name="ro'+p[s].ods+'"':"",o.push("        <table:table-row"+f+">\n"),l=0;l<u.s.c;++l)o.push(t);for(;l<=u.e.c;++l){var m=!1,g={},y="";for(d=0;d!=c.length;++d)if(!(c[d].s.c>l)&&!(c[d].s.r>s)&&!(c[d].e.c<l)&&!(c[d].e.r<s)){c[d].s.c==l&&c[d].s.r==s||(m=!0),g["table:number-columns-spanned"]=c[d].e.c-c[d].s.c+1,g["table:number-rows-spanned"]=c[d].e.r-c[d].s.r+1;break}if(m)o.push(n);else{var v=Zn({r:s,c:l}),_=h?(r[s]||[])[l]:r[v];if(_&&_.f&&(g["table:formula"]=St(El(_.f)),_.F&&_.F.slice(0,v.length)==v)){var b=Kn(_.F);g["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,g["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(_){switch(_.t){case"b":y=_.v?"TRUE":"FALSE",g["office:value-type"]="boolean",g["office:boolean-value"]=_.v?"true":"false";break;case"n":y=_.w||String(_.v||0),g["office:value-type"]="float",g["office:value"]=_.v||0;break;case"s":case"str":y=null==_.v?"":_.v,g["office:value-type"]="string";break;case"d":y=_.w||ct(_.v).toISOString(),g["office:value-type"]="date",g["office:date-value"]=ct(_.v).toISOString(),g["table:style-name"]="ce1";break;default:o.push(t);continue}var x=e(y);if(_.l&&_.l.Target){var w=_.l.Target;w="#"==w.charAt(0)?"#"+Pl(w.slice(1)):w,"#"==w.charAt(0)||w.match(/^\w+:/)||(w="../"+w),x=zt("text:a",x,{"xlink:href":w.replace(/&/g,"&amp;")})}o.push("          "+zt("table:table-cell",zt("text:p",x,{}),g)+"\n")}else o.push(t)}}o.push("        </table:table-row>\n")}return o.push("      </table:table>\n"),o.join("")},i=function(e,t){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var i=t["!cols"][r];if(null==i.width&&null==i.wpx&&null==i.wch)continue;Ha(i),i.ods=n;var a=t["!cols"][r].wpx+"px";e.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+a+'"/>\n'),e.push("  </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var i=t["!rows"][n].hpx+"px";e.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+i+'"/>\n'),e.push("  </style:style>\n"),++r}})),e.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")};return function(e,t){var n=[_t],a=Ft({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),o=Ft({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(n.push("<office:document"+a+o+">\n"),n.push(di().replace(/office:document-meta/g,"office:meta"))):n.push("<office:document-content"+a+">\n"),i(n,e),n.push("  <office:body>\n"),n.push("    <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)n.push(r(e.Sheets[e.SheetNames[s]],e,s,t));return n.push("    </office:spreadsheet>\n"),n.push("  </office:body>\n"),"fods"==t.bookType?n.push("</office:document>"):n.push("</office:document-content>"),n.join("")}}();function Pd(e,t){if("fods"==t.bookType)return Ed(e,t);var n=vt(),r="",i=[],a=[];return r="mimetype",yt(n,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",yt(n,r,Ed(e,t)),i.push([r,"text/xml"]),a.push([r,"ContentFile"]),r="styles.xml",yt(n,r,Cd(e,t)),i.push([r,"text/xml"]),a.push([r,"StylesFile"]),r="meta.xml",yt(n,r,_t+di()),i.push([r,"text/xml"]),a.push([r,"MetadataFile"]),r="manifest.rdf",yt(n,r,ci(a)),i.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",yt(n,r,si(i)),n}
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Yd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function jd(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):T(jt(e))}function Nd(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}function Rd(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Hd(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=255&i;e[t+15]|=n>=0?0:128}function Fd(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function zd(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function Bd(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Wd(e){var t=[],n=[0];while(n[0]<e.length){var r=n[0],i=Fd(e,n),a=7&i;i=Math.floor(i/8);var o,s=0;if(0==i)break;switch(a){case 0:var l=n[0];while(e[n[0]++]>=128);o=e.slice(l,n[0]);break;case 5:s=4,o=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,o=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Fd(e,n),o=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(r))}var u={data:o,type:a};null==t[i]?t[i]=[u]:t[i].push(u)}return t}function Vd(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(zd(8*n+e.type)),2==e.type&&t.push(zd(e.data.length)),t.push(e.data))}))})),Rd(t)}function Gd(e){var t,n=[],r=[0];while(r[0]<e.length){var i=Fd(e,r),a=Wd(e.slice(r[0],r[0]+i));r[0]+=i;var o={id:Bd(a[1][0].data),messages:[]};a[2].forEach((function(t){var n=Wd(t.data),i=Bd(n[3][0].data);o.messages.push({meta:n,data:e.slice(r[0],r[0]+i)}),r[0]+=i})),(null==(t=a[3])?void 0:t[0])&&(o.merge=Bd(a[3][0].data)>>>0>0),n.push(o)}return n}function Ud(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:zd(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:zd(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:zd(e.data.length)}],n[2].push({data:Vd(e.meta),type:2})}));var i=Vd(n);t.push(zd(i.length)),t.push(i),r.forEach((function(e){return t.push(e)}))})),Rd(t)}function qd(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var n=[0],r=Fd(t,n),i=[];while(n[0]<t.length){var a=3&t[n[0]];if(0!=a){var o=0,s=0;if(1==a?(s=4+(t[n[0]]>>2&7),o=(224&t[n[0]++])<<3,o|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==a?(o=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(o=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Rd(i)],0==o)throw new Error("Invalid offset 0");if(o>i[0].length)throw new Error("Invalid offset beyond length");if(s>=o){i.push(i[0].slice(-o)),s-=o;while(s>=i[i.length-1].length)i.push(i[i.length-1]),s-=i[i.length-1].length}i.push(i[0].slice(-o,-o+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var u=l-59;l=t[n[0]],u>1&&(l|=t[n[0]+1]<<8),u>2&&(l|=t[n[0]+2]<<16),u>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=u}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var c=Rd(i);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function Xd(e){var t=[],n=0;while(n<e.length){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(qd(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Rd(t)}function Zd(e){var t=[],n=0;while(n<e.length){var r=Math.min(e.length-n,268435455),i=new Uint8Array(4);t.push(i);var a=zd(r),o=a.length;t.push(a),r<=60?(o++,t.push(new Uint8Array([r-1<<2]))):r<=256?(o+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(o+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(o+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(o+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),o+=r,i[0]=0,i[1]=255&o,i[2]=o>>8&255,i[3]=o>>16&255,n+=r}return Rd(t)}function Kd(e,t){var n=new Uint8Array(32),r=Yd(n),i=12,a=0;switch(n[0]=5,e.t){case"n":n[1]=2,Hd(n,i,e.v),a|=1,i+=16;break;case"b":n[1]=6,r.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,a,!0),n.slice(0,i)}function Jd(e,t){var n=new Uint8Array(32),r=Yd(n),i=12,a=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":n[2]=6,r.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,a,!0),n.slice(0,i)}function $d(e){var t=Wd(e);return Fd(t[1][0].data)}function Qd(e,t,n){var r,i,a,o;if(!(null==(r=e[6])?void 0:r[0])||!(null==(i=e[7])?void 0:i[0]))throw"Mutation only works on post-BNC storages!";var s=(null==(o=null==(a=e[8])?void 0:a[0])?void 0:o.data)&&Bd(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=Yd(e[7][0].data),c=0,d=[],h=Yd(e[4][0].data),f=0,p=[],m=0;m<t.length;++m)if(null!=t[m]){var g,y;switch(u.setUint16(2*m,c,!0),h.setUint16(2*m,f,!0),typeof t[m]){case"string":g=Kd({t:"s",v:t[m]},n),y=Jd({t:"s",v:t[m]},n);break;case"number":g=Kd({t:"n",v:t[m]},n),y=Jd({t:"n",v:t[m]},n);break;case"boolean":g=Kd({t:"b",v:t[m]},n),y=Jd({t:"b",v:t[m]},n);break;default:throw new Error("Unsupported value "+t[m])}d.push(g),c+=g.length,p.push(y),f+=y.length,++l}else u.setUint16(2*m,65535,!0),h.setUint16(2*m,65535);for(e[2][0].data=zd(l);m<e[7][0].data.length/2;++m)u.setUint16(2*m,65535,!0),h.setUint16(2*m,65535,!0);return e[6][0].data=Rd(d),e[3][0].data=Rd(p),l}function eh(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=Kn(n["!ref"]);r.s.r=r.s.c=0;var i=!1;r.e.c>9&&(i=!0,r.e.c=9),r.e.r>49&&(i=!0,r.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Jn(r)));var a=vh(n,{range:r,header:1}),o=["~Sh33tJ5~"];a.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&o.push(e)}))}));var s={},l=[],u=Ue.read(t.numbers,{type:"base64"});u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];if(2==t.type&&t.name.match(/\.iwa/)){var r=t.content,i=Xd(r),a=Gd(i);a.forEach((function(e){l.push(e.id),s[e.id]={deps:[],location:n,type:Bd(e.messages[0].meta[1][0].data)}}))}})),l.sort((function(e,t){return e-t}));var c=l.filter((function(e){return e>1})).map((function(e){return[e,zd(e)]}));u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1];if(t.name.match(/\.iwa/)){var n=Gd(Xd(t.content));n.forEach((function(e){e.messages.forEach((function(t){c.forEach((function(t){e.messages.some((function(e){return 11006!=Bd(e.meta[1][0].data)&&Nd(e.data,t[1])}))&&s[t[0]].deps.push(e.id)}))}))}))}}));for(var d,h=Ue.find(u,s[1].location),f=Gd(Xd(h.content)),p=0;p<f.length;++p){var m=f[p];1==m.id&&(d=m)}var g=$d(Wd(d.messages[0].data)[1][0].data);for(h=Ue.find(u,s[g].location),f=Gd(Xd(h.content)),p=0;p<f.length;++p)m=f[p],m.id==g&&(d=m);for(g=$d(Wd(d.messages[0].data)[2][0].data),h=Ue.find(u,s[g].location),f=Gd(Xd(h.content)),p=0;p<f.length;++p)m=f[p],m.id==g&&(d=m);for(g=$d(Wd(d.messages[0].data)[2][0].data),h=Ue.find(u,s[g].location),f=Gd(Xd(h.content)),p=0;p<f.length;++p)m=f[p],m.id==g&&(d=m);var y=Wd(d.messages[0].data);y[6][0].data=zd(r.e.r+1),y[7][0].data=zd(r.e.c+1);for(var v=$d(y[46][0].data),_=Ue.find(u,s[v].location),b=Gd(Xd(_.content)),x=0;x<b.length;++x)if(b[x].id==v)break;if(b[x].id!=v)throw"Bad ColumnRowUIDMapArchive";var w=Wd(b[x].messages[0].data);w[1]=[],w[2]=[],w[3]=[];for(var M=0;M<=r.e.c;++M){var S=[];S[1]=S[2]=[{type:0,data:zd(M+420690)}],w[1].push({type:2,data:Vd(S)}),w[2].push({type:0,data:zd(M)}),w[3].push({type:0,data:zd(M)})}w[4]=[],w[5]=[],w[6]=[];for(var T=0;T<=r.e.r;++T)S=[],S[1]=S[2]=[{type:0,data:zd(T+726270)}],w[4].push({type:2,data:Vd(S)}),w[5].push({type:0,data:zd(T)}),w[6].push({type:0,data:zd(T)});b[x].messages[0].data=Vd(w),_.content=Zd(Ud(b)),_.size=_.content.length,delete y[46];var k=Wd(y[4][0].data);k[7][0].data=zd(r.e.r+1);var L=Wd(k[1][0].data),O=$d(L[2][0].data);if(_=Ue.find(u,s[O].location),b=Gd(Xd(_.content)),b[0].id!=O)throw"Bad HeaderStorageBucket";var D=Wd(b[0].messages[0].data);for(T=0;T<a.length;++T){var A=Wd(D[2][0].data);A[1][0].data=zd(T),A[4][0].data=zd(a[T].length),D[2][T]={type:D[2][0].type,data:Vd(A)}}b[0].messages[0].data=Vd(D),_.content=Zd(Ud(b)),_.size=_.content.length;var I=$d(k[2][0].data);if(_=Ue.find(u,s[I].location),b=Gd(Xd(_.content)),b[0].id!=I)throw"Bad HeaderStorageBucket";for(D=Wd(b[0].messages[0].data),M=0;M<=r.e.c;++M)A=Wd(D[2][0].data),A[1][0].data=zd(M),A[4][0].data=zd(r.e.r+1),D[2][M]={type:D[2][0].type,data:Vd(A)};b[0].messages[0].data=Vd(D),_.content=Zd(Ud(b)),_.size=_.content.length;var C=$d(k[4][0].data);(function(){for(var e,t=Ue.find(u,s[C].location),n=Gd(Xd(t.content)),r=0;r<n.length;++r){var i=n[r];i.id==C&&(e=i)}var a=Wd(e.messages[0].data);a[3]=[];var l=[];o.forEach((function(e,t){l[1]=[{type:0,data:zd(t)}],l[2]=[{type:0,data:zd(1)}],l[3]=[{type:2,data:jd(e)}],a[3].push({type:2,data:Vd(l)})})),e.messages[0].data=Vd(a);var c=Ud(n),d=Zd(c);t.content=d,t.size=t.content.length})();var E=Wd(k[3][0].data),P=E[1][0];delete E[2];var Y=Wd(P.data),j=$d(Y[2][0].data);(function(){for(var e,t=Ue.find(u,s[j].location),n=Gd(Xd(t.content)),i=0;i<n.length;++i){var l=n[i];l.id==j&&(e=l)}var c=Wd(e.messages[0].data);delete c[6],delete E[7];var d=new Uint8Array(c[5][0].data);c[5]=[];for(var h=0,f=0;f<=r.e.r;++f){var p=Wd(d);h+=Qd(p,a[f],o),p[1][0].data=zd(f),c[5].push({data:Vd(p),type:2})}c[1]=[{type:0,data:zd(r.e.c+1)}],c[2]=[{type:0,data:zd(r.e.r+1)}],c[3]=[{type:0,data:zd(h)}],c[4]=[{type:0,data:zd(r.e.r+1)}],e.messages[0].data=Vd(c);var m=Ud(n),g=Zd(m);t.content=g,t.size=t.content.length})(),P.data=Vd(Y),k[3][0].data=Vd(E),y[4][0].data=Vd(k),d.messages[0].data=Vd(y);var N=Ud(f),R=Zd(N);return h.content=R,h.size=h.content.length,u}function th(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function nh(e){th([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function rh(e,t){return"ods"==t.bookType?Pd(e,t):"numbers"==t.bookType?eh(e,t):"xlsb"==t.bookType?ih(e,t):ah(e,t)}function ih(e,t){Io=1024,e&&!e.SSF&&(e.SSF=ht(G)),e&&e.SSF&&(ze(),Fe(e.SSF),t.revssf=Qe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Yl?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=Bo.indexOf(t.bookType)>-1,i=ti();nh(t=t||{});var a=vt(),o="",s=0;if(t.cellXfs=[],Hl(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",yt(a,o,pi(e.Props,t)),i.coreprops.push(o),oi(t.rels,2,o,ri.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,yt(a,o,yi(e.Props,t)),i.extprops.push(o),oi(t.rels,3,o,ri.EXT_PROPS),e.Custprops!==e.Props&&Ke(e.Custprops||{}).length>0&&(o="docProps/custom.xml",yt(a,o,vi(e.Custprops,t)),i.custprops.push(o),oi(t.rels,4,o,ri.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+n,yt(a,o,Yc(s-1,o,t,e,c)),i.sheets.push(o),oi(t.wbrels,-1,"worksheets/sheet"+s+"."+n,ri.WS[0])}if(d){var f=d["!comments"],p=!1,m="";f&&f.length>0&&(m="xl/comments"+s+"."+n,yt(a,m,Rc(f,m,t)),i.comments.push(m),oi(c,-1,"../comments"+s+"."+n,ri.CMNT),p=!0),d["!legacy"]&&p&&yt(a,"xl/drawings/vmlDrawing"+s+".vml",Co(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}c["!id"].rId1&&yt(a,ii(o),ai(c))}return null!=t.Strings&&t.Strings.length>0&&(o="xl/sharedStrings."+n,yt(a,o,Nc(t.Strings,o,t)),i.strs.push(o),oi(t.wbrels,-1,"sharedStrings."+n,ri.SST)),o="xl/workbook."+n,yt(a,o,Pc(e,o,t)),i.workbooks.push(o),oi(t.rels,1,o,ri.WB),o="xl/theme/theme1.xml",yt(a,o,bo(e.Themes,t)),i.themes.push(o),oi(t.wbrels,-1,"theme/theme1.xml",ri.THEME),o="xl/styles."+n,yt(a,o,jc(e,o,t)),i.styles.push(o),oi(t.wbrels,-1,"styles."+n,ri.STY),e.vbaraw&&r&&(o="xl/vbaProject.bin",yt(a,o,e.vbaraw),i.vba.push(o),oi(t.wbrels,-1,"vbaProject.bin",ri.VBA)),o="xl/metadata."+n,yt(a,o,Hc(o)),i.metadata.push(o),oi(t.wbrels,-1,"metadata."+n,ri.XLMETA),yt(a,"[Content_Types].xml",ni(i,t)),yt(a,"_rels/.rels",ai(t.rels)),yt(a,"xl/_rels/workbook."+n+".rels",ai(t.wbrels)),delete t.revssf,delete t.ssf,a}function ah(e,t){Io=1024,e&&!e.SSF&&(e.SSF=ht(G)),e&&e.SSF&&(ze(),Fe(e.SSF),t.revssf=Qe(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Yl?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=Bo.indexOf(t.bookType)>-1,i=ti();nh(t=t||{});var a=vt(),o="",s=0;if(t.cellXfs=[],Hl(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",yt(a,o,pi(e.Props,t)),i.coreprops.push(o),oi(t.rels,2,o,ri.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,yt(a,o,yi(e.Props,t)),i.extprops.push(o),oi(t.rels,3,o,ri.EXT_PROPS),e.Custprops!==e.Props&&Ke(e.Custprops||{}).length>0&&(o="docProps/custom.xml",yt(a,o,vi(e.Custprops,t)),i.custprops.push(o),oi(t.rels,4,o,ri.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var d={"!id":{}},h=e.Sheets[e.SheetNames[s-1]],f=(h||{})["!type"]||"sheet";switch(f){case"chart":default:o="xl/worksheets/sheet"+s+"."+n,yt(a,o,$l(s-1,t,e,d)),i.sheets.push(o),oi(t.wbrels,-1,"worksheets/sheet"+s+"."+n,ri.WS[0])}if(h){var p=h["!comments"],m=!1,g="";if(p&&p.length>0){var y=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(y=!0)}))})),y&&(g="xl/threadedComments/threadedComment"+s+"."+n,yt(a,g,Po(p,c,t)),i.threadedcomments.push(g),oi(d,-1,"../threadedComments/threadedComment"+s+"."+n,ri.TCMNT)),g="xl/comments"+s+"."+n,yt(a,g,Eo(p,t)),i.comments.push(g),oi(d,-1,"../comments"+s+"."+n,ri.CMNT),m=!0}h["!legacy"]&&m&&yt(a,"xl/drawings/vmlDrawing"+s+".vml",Co(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}d["!id"].rId1&&yt(a,ii(o),ai(d))}return null!=t.Strings&&t.Strings.length>0&&(o="xl/sharedStrings."+n,yt(a,o,Ta(t.Strings,t)),i.strs.push(o),oi(t.wbrels,-1,"sharedStrings."+n,ri.SST)),o="xl/workbook."+n,yt(a,o,Mc(e,t)),i.workbooks.push(o),oi(t.rels,1,o,ri.WB),o="xl/theme/theme1.xml",yt(a,o,bo(e.Themes,t)),i.themes.push(o),oi(t.wbrels,-1,"theme/theme1.xml",ri.THEME),o="xl/styles."+n,yt(a,o,Ua(e,t)),i.styles.push(o),oi(t.wbrels,-1,"styles."+n,ri.STY),e.vbaraw&&r&&(o="xl/vbaProject.bin",yt(a,o,e.vbaraw),i.vba.push(o),oi(t.wbrels,-1,"vbaProject.bin",ri.VBA)),o="xl/metadata."+n,yt(a,o,Do()),i.metadata.push(o),oi(t.wbrels,-1,"metadata."+n,ri.XLMETA),c.length>1&&(o="xl/persons/person.xml",yt(a,o,Yo(c,t)),i.people.push(o),oi(t.wbrels,-1,"persons/person.xml",ri.PEOPLE)),yt(a,"[Content_Types].xml",ni(i,t)),yt(a,"_rels/.rels",ai(t.rels)),yt(a,"xl/_rels/workbook."+n+".rels",ai(t.wbrels)),delete t.revssf,delete t.ssf,a}function oh(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=b(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function sh(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Ze(t.file,Ue.write(e,{type:x?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Ue.write(e,t)}function lh(e,t){var n=ht(t||{}),r=rh(e,n);return uh(r,n)}function uh(e,t){var n={},r=x?"nodebuffer":"undefined"!==typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?Ue.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!==typeof Deno&&"string"==typeof i){if("binary"==t.type||"base64"==t.type)return i;i=new Uint8Array(k(i))}return t.password&&"undefined"!==typeof encrypt_agile?sh(encrypt_agile(i,t.password),t):"file"===t.type?Ze(t.file,i):"string"==t.type?Yt(i):i}function ch(e,t){var n=t||{},r=td(e,n);return sh(r,n)}function dh(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return _(jt(r));case"binary":return jt(r);case"string":return e;case"file":return Ze(t.file,r,"utf8");case"buffer":return x?w(r,"utf8"):"undefined"!==typeof TextEncoder?(new TextEncoder).encode(r):dh(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function hh(e,t){switch(t.type){case"base64":return _(e);case"binary":return e;case"string":return e;case"file":return Ze(t.file,e,"binary");case"buffer":return x?w(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function fh(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?_(n):"string"==t.type?Yt(n):n;case"file":return Ze(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function ph(e,t){d(),wc(e);var n=ht(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=ph(e,n);return n.type="array",k(r)}var i=0;if(n.sheet&&(i="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return dh($c(e,n),n);case"slk":case"sylk":return dh(_a.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"htm":case"html":return dh(kd(e.Sheets[e.SheetNames[i]],n),n);case"txt":return hh(wh(e.Sheets[e.SheetNames[i]],n),n);case"csv":return dh(xh(e.Sheets[e.SheetNames[i]],n),n,"\ufeff");case"dif":return dh(ba.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"dbf":return fh(va.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"prn":return dh(wa.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"rtf":return dh(Ca.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"eth":return dh(xa.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"fods":return dh(Pd(e,n),n);case"wk1":return fh(Ma.sheet_to_wk1(e.Sheets[e.SheetNames[i]],n),n);case"wk3":return fh(Ma.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),fh(xd(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),ch(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return lh(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function mh(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},n=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();n.match(/^\.[a-z]+$/)&&(e.bookType=n.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function gh(e,t,n){var r=n||{};return r.type="file",r.file=t,mh(r),ph(e,r)}function yh(e,t,n,r,i,a,o,s){var l=Fn(n),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,h=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch(g){h.__rowNum__=n}else h.__rowNum__=n;if(!o||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=o?e[n][f]:e[r[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=a[f]){if(null==m)if("e"==p.t&&null===m)h[a[f]]=null;else if(void 0!==u)h[a[f]]=u;else{if(!c||null!==m)continue;h[a[f]]=null}else h[a[f]]=c&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:er(p,m,s);null!=m&&(d=!1)}}else{if(void 0===u)continue;null!=a[f]&&(h[a[f]]=u)}}return{row:h,isempty:d}}function vh(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,a=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=null!=u.range?u.range:e["!ref"];switch(1===u.header?r=1:"A"===u.header?r=2:Array.isArray(u.header)?r=3:null==u.header&&(r=0),typeof c){case"string":l=$n(c);break;case"number":l=$n(e["!ref"]),l.s.r=c;break;default:l=c}r>0&&(i=0);var d=Fn(l.s.r),h=[],f=[],p=0,m=0,g=Array.isArray(e),y=l.s.r,v=0,_={};g&&!e[y]&&(e[y]=[]);var b=u.skipHidden&&e["!cols"]||[],x=u.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(b[v]||{}).hidden)switch(h[v]=Vn(v),n=g?e[y][v]:e[h[v]+d],r){case 1:a[v]=v-l.s.c;break;case 2:a[v]=h[v];break;case 3:a[v]=u.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=o=er(n,null,u),m=_[o]||0,m){do{s=o+"_"+m++}while(_[s]);_[o]=m,_[s]=1}else _[o]=1;a[v]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(x[y]||{}).hidden){var w=yh(e,l,y,h,r,a,g,u);(!1===w.isempty||(1===r?!1!==u.blankrows:u.blankrows))&&(f[p++]=w.row)}return f.length=p,f}var _h=/"/g;function bh(e,t,n,r,i,a,o,s){for(var l=!0,u=[],c="",d=Fn(n),h=t.s.c;h<=t.e.c;++h)if(r[h]){var f=s.dense?(e[n]||[])[h]:e[r[h]+d];if(null==f)c="";else if(null!=f.v){l=!1,c=""+(s.rawNumbers&&"n"==f.t?f.v:er(f,null,s));for(var p=0,m=0;p!==c.length;++p)if((m=c.charCodeAt(p))===i||m===a||34===m||s.forceQuotes){c='"'+c.replace(_h,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==f.f||f.F?c="":(l=!1,c="="+f.f,c.indexOf(",")>=0&&(c='"'+c.replace(_h,'""')+'"'));u.push(c)}return!1===s.blankrows&&l?null:u.join(o)}function xh(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=$n(e["!ref"]),a=void 0!==r.FS?r.FS:",",o=a.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),u=new RegExp(("|"==a?"\\|":a)+"+$"),c="",d=[];r.dense=Array.isArray(e);for(var h=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(h[p]||{}).hidden||(d[p]=Vn(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(f[g]||{}).hidden||(c=bh(e,i,g,d,o,l,a,r),null!=c&&(r.strip&&(c=c.replace(u,"")),(c||!1!==r.blankrows)&&n.push((m++?s:"")+c)));return delete r.dense,n.join("")}function wh(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=xh(e,t);if("undefined"==typeof f||"string"==t.type)return n;var r=f.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function Mh(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,a=$n(e["!ref"]),o="",s=[],l=[],u=Array.isArray(e);for(i=a.s.c;i<=a.e.c;++i)s[i]=Vn(i);for(var c=a.s.r;c<=a.e.r;++c)for(o=Fn(c),i=a.s.c;i<=a.e.c;++i)if(n=s[i]+o,t=u?(e[c]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function Sh(e,t,n){var r,i=n||{},a=+!i.skipHeader,o=e||{},s=0,l=0;if(o&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var u="string"==typeof i.origin?Xn(i.origin):i.origin;s=u.r,l=u.c}var c={s:{c:0,r:0},e:{c:l,r:s+t.length-1+a}};if(o["!ref"]){var d=$n(o["!ref"]);c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),-1==s&&(s=d.e.r+1,c.e.r=s+t.length-1+a)}else-1==s&&(s=0,c.e.r=t.length-1+a);var h=i.header||[],f=0;t.forEach((function(e,t){Ke(e).forEach((function(n){-1==(f=h.indexOf(n))&&(h[f=h.length]=n);var u=e[n],c="z",d="",p=Zn({c:l+f,r:s+t+a});r=kh(o,p),!u||"object"!==typeof u||u instanceof Date?("number"==typeof u?c="n":"boolean"==typeof u?c="b":"string"==typeof u?c="s":u instanceof Date?(c="d",i.cellDates||(c="n",u=nt(u)),d=i.dateNF||G[14]):null===u&&i.nullError&&(c="e",u=0),r?(r.t=c,r.v=u,delete r.w,delete r.R,d&&(r.z=d)):o[p]=r={t:c,v:u},d&&(r.z=d)):o[p]=u}))})),c.e.c=Math.max(c.e.c,l+h.length-1);var p=Fn(s);if(a)for(f=0;f<h.length;++f)o[Vn(f+l)+p]={t:"s",v:h[f]};return o["!ref"]=Jn(c),o}function Th(e,t){return Sh(null,e,t)}function kh(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=Xn(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return kh(e,Zn("number"!=typeof t?t:{r:t,c:n||0}))}function Lh(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function Oh(){return{SheetNames:[],Sheets:{}}}function Dh(e,t,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+i))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||n;for(++i;i<=65535;++i)if(-1==e.SheetNames.indexOf(n=o+i))break}if(bc(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Ah(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=Lh(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function Ih(e,t){return e.z=t,e}function Ch(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Eh(e,t,n){return Ch(e,"#"+t,n)}function Ph(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})}function Yh(e,t,n,r){for(var i="string"!=typeof t?t:$n(t),a="string"==typeof t?t:Jn(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=kh(e,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e}var jh={encode_col:Vn,encode_row:Fn,encode_cell:Zn,encode_range:Jn,decode_col:Wn,decode_row:Hn,split_cell:qn,decode_cell:Xn,decode_range:Kn,format_cell:er,sheet_add_aoa:nr,sheet_add_json:Sh,sheet_add_dom:Ld,aoa_to_sheet:rr,json_to_sheet:Th,table_to_sheet:Od,table_to_book:Dd,sheet_to_csv:xh,sheet_to_txt:wh,sheet_to_json:vh,sheet_to_html:kd,sheet_to_formulae:Mh,sheet_to_row_object_array:vh,sheet_get_cell:kh,book_new:Oh,book_append_sheet:Dh,book_set_sheet_visibility:Ah,cell_set_number_format:Ih,cell_set_hyperlink:Ch,cell_set_internal_link:Eh,cell_add_comment:Ph,sheet_set_array_formula:Yh,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};r.version},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function i(e){return e%10===0||e>10&&e<20}function a(e){return t[e].split("_")}function o(e,t,n,o){var s=e+" ";return 1===e?s+r(e,t,n[0],o):t?s+(i(e)?a(n)[1]:a(n)[0]):o?s+a(n)[1]:s+(i(e)?a(n)[1]:a(n)[2])}var s=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:n,ss:o,m:r,mm:o,h:r,hh:o,d:r,dd:o,M:r,MM:o,y:r,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},2921:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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 trước 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",w:"một tuần",ww:"%d tuần",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}});return t}))},"293c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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 i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}},n=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(){var e=["[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"];return e[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}});return n}))},"2bfb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"2e8c6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"313e":function(e,t,n){"use strict";n.d(t,"a",(function(){return vb}));var r={};n.r(r),n.d(r,"updateProps",(function(){return Gl})),n.d(r,"initProps",(function(){return Ul})),n.d(r,"removeElement",(function(){return Xl})),n.d(r,"removeElementWithFadeOut",(function(){return Kl})),n.d(r,"isElementRemoved",(function(){return ql})),n.d(r,"extendShape",(function(){return hg})),n.d(r,"extendPath",(function(){return pg})),n.d(r,"registerShape",(function(){return mg})),n.d(r,"getShapeClass",(function(){return gg})),n.d(r,"makePath",(function(){return yg})),n.d(r,"makeImage",(function(){return vg})),n.d(r,"mergePath",(function(){return bg})),n.d(r,"resizePath",(function(){return xg})),n.d(r,"subPixelOptimizeLine",(function(){return wg})),n.d(r,"subPixelOptimizeRect",(function(){return Mg})),n.d(r,"subPixelOptimize",(function(){return Sg})),n.d(r,"getTransform",(function(){return Tg})),n.d(r,"applyTransform",(function(){return kg})),n.d(r,"transformDirection",(function(){return Lg})),n.d(r,"groupTransition",(function(){return Ag})),n.d(r,"clipPointsByRect",(function(){return Ig})),n.d(r,"clipRectByRect",(function(){return Cg})),n.d(r,"createIcon",(function(){return Eg})),n.d(r,"linePolygonIntersect",(function(){return Pg})),n.d(r,"lineLineIntersect",(function(){return Yg})),n.d(r,"setTooltipConfig",(function(){return Rg})),n.d(r,"traverseElements",(function(){return Fg})),n.d(r,"Group",(function(){return Sr})),n.d(r,"Image",(function(){return es})),n.d(r,"Text",(function(){return Ls})),n.d(r,"Circle",(function(){return tm})),n.d(r,"Ellipse",(function(){return im})),n.d(r,"Sector",(function(){return wm})),n.d(r,"Ring",(function(){return Tm})),n.d(r,"Polygon",(function(){return Am})),n.d(r,"Polyline",(function(){return Em})),n.d(r,"Rect",(function(){return us})),n.d(r,"Line",(function(){return Nm})),n.d(r,"BezierCurve",(function(){return Bm})),n.d(r,"Arc",(function(){return Gm})),n.d(r,"IncrementalDisplayable",(function(){return lg})),n.d(r,"CompoundPath",(function(){return qm})),n.d(r,"LinearGradient",(function(){return Jm})),n.d(r,"RadialGradient",(function(){return Qm})),n.d(r,"BoundingRect",(function(){return De})),n.d(r,"OrientedBoundingRect",(function(){return ag})),n.d(r,"Point",(function(){return _e})),n.d(r,"Path",(function(){return Uo}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var o=n("22d1"),s=n("6d8b"),l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)};function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function c(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function d(e,t){return e[0]=t[0],e[1]=t[1],e}function h(e){return[e[0],e[1]]}function f(e,t,n){return e[0]=t,e[1]=n,e}function p(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function m(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function g(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function y(e){return Math.sqrt(v(e))}function v(e){return e[0]*e[0]+e[1]*e[1]}function _(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function b(e,t){var n=y(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function x(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var w=x;function M(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var S=M;function T(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function k(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function L(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function O(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var D=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),A=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new D(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new D(t,e),"drag",e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new D(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new D(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new D(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new D(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),I=A,C=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,t[0]);break;case 2:u.h.call(o,t[0],t[1]);break;default:u.h.apply(o,t.slice(1,a-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),E=C,P=Math.log(2);function Y(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/P);return e[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var d=0,h=0,f=0;h<s;h++){var p=1<<h;p&i||(d+=(f%2?-1:1)*e[n][h]*Y(e,t-1,c,u,i|p,a),f++)}return a[o]=d,d}function j(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Y(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Y(n,7,0===o?1:0,1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var N="___zrEVENTSAVED",R=[];function H(e,t,n,r,i){return F(R,t,r,i,!0)&&F(e,n,R[0],R[1])}function F(e,t,n,r,i){if(t.getBoundingClientRect&&o["a"].domSupported&&!W(t)){var a=t[N]||(t[N]={}),s=z(t,a),l=B(s,a,i);if(l)return l(e,n,r),!0}return!1}function z(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function B(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,f=c.top;o.push(h,f),l=l&&a&&h===a[d]&&f===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?j(s,o):j(o,s))}function W(e){return"CANVAS"===e.nodeName.toUpperCase()}var V=/([&<>"'])/g,G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function U(e){return null==e?"":(e+"").replace(V,(function(e,t){return G[t]}))}var q=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,X=[],Z=o["a"].browser.firefox&&+o["a"].browser.version.split(".")[0]<39;function K(e,t,n,r){return n=n||{},r?J(e,t,n):Z&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):J(e,t,n),n}function J(e,t,n){if(o["a"].domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(W(e)){var a=e.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=i-a.top)}if(F(X,e,r,i))return n.zrX=X[0],void(n.zrY=X[1])}n.zrX=n.zrY=0}function $(e){return e||window.event}function Q(e,t,n){if(t=$(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&K(e,a,t,n)}else{K(e,t,t,n);var o=ee(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&q.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function ee(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function te(e,t,n,r){e.addEventListener(t,n,r)}function ne(e,t,n,r){e.removeEventListener(t,n,r)}var re=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ie(e){return 2===e.which||3===e.which}var ae=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],l=K(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in le)if(le.hasOwnProperty(t)){var n=le[t](this._track,e);if(n)return n}},e}();function oe(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function se(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var le={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=oe(r)/oe(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=se(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function ue(){return[1,0,0,1,0,0]}function ce(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function de(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function he(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function fe(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function pe(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=a*d+l*c,e[3]=-a*c+d*l,e[4]=d*(o-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(o-r[0])+r[1],e}function me(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function ge(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}function ye(e){var t=ue();return de(t,e),t}var ve=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),_e=ve,be=Math.min,xe=Math.max,we=new _e,Me=new _e,Se=new _e,Te=new _e,ke=new _e,Le=new _e,Oe=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=be(e.x,this.x),n=be(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xe(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=xe(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=ue();return fe(i,i,[-t.x,-t.y]),me(i,i,[n,r]),fe(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(a<l||u<i||s<c||d<o);if(n){var f=1/0,p=0,m=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-c),v=Math.abs(d-o),_=Math.min(m,g),b=Math.min(y,v);a<l||u<i?_>p&&(p=_,m<g?_e.set(Le,-m,0):_e.set(Le,g,0)):_<f&&(f=_,m<g?_e.set(ke,m,0):_e.set(ke,-g,0)),s<c||d<o?b>p&&(p=b,y<v?_e.set(Le,0,-y):_e.set(Le,0,v)):_<f&&(f=_,y<v?_e.set(ke,0,y):_e.set(ke,0,-v))}return n&&_e.copy(n,h?ke:Le),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];return t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}we.x=Se.x=n.x,we.y=Te.y=n.y,Me.x=Te.x=n.x+n.width,Me.y=Se.y=n.y+n.height,we.transform(r),Te.transform(r),Me.transform(r),Se.transform(r),t.x=be(we.x,Me.x,Se.x,Te.x),t.y=be(we.y,Me.y,Se.y,Te.y);var l=xe(we.x,Me.x,Se.x,Te.x),u=xe(we.y,Me.y,Se.y,Te.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),De=Oe,Ae="silent";function Ie(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ce}}function Ce(){re(this.event)}var Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return u(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(E),Pe=function(){function e(e,t){this.x=e,this.y=t}return e}(),Ye=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],je=new De(0,0,0,0),Ne=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Pe(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new Ee,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new I(o),o}return u(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(s["k"](Ye,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Fe(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Pe(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Pe(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,a=Ie(t,e,n);while(r)if(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,a),e.trigger&&e.trigger(t,a)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Pe(e,t);if(He(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new De(e-s,t-s,o,o),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(je.copy(c.getBoundingRect()),c.transform&&je.applyTransform(c.transform),je.intersect(l)&&a.push(c))}if(a.length)for(var d=4,h=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=d)for(var m=0;m<f;m+=h){var g=e+p*Math.cos(m),y=t+p*Math.sin(m);if(He(a,i,g,y,n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new ae);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Pe;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(E);function Re(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var r=e,i=void 0,a=!1;while(r){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||Ae}return!1}function He(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Re(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Ae)){t.target=o;break}}}function Fe(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}s["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ne.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=Fe(this,i,a);if("mouseup"===e&&o||(n=this.findHover(i,a),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||w(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var ze=Ne,Be=32,We=7;function Ve(e){var t=0;while(e>=Be)t|=1&e,e>>=1;return e+t}function Ge(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i<n&&r(e[i],e[i-1])<0)i++;Ue(e,t,i)}else while(i<n&&r(e[i],e[i-1])>=0)i++;return i-t}function Ue(e,t,n){n--;while(t<n){var r=e[t];e[t++]=e[n],e[n--]=r}}function qe(e,t,n,r,i){for(r===t&&r++;r<n;r++){var a,o=e[r],s=t,l=r;while(s<l)a=s+l>>>1,i(o,e[a])<0?l=a:s=a+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=o}}function Xe(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){s=r-i;while(l<s&&a(e,t[n+i+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{s=i+1;while(l<s&&a(e,t[n+i-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}o++;while(o<l){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function Ze(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])<0){s=i+1;while(l<s&&a(e,t[n+i-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{s=r-i;while(l<s&&a(e,t[n+i+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}o++;while(o<l){var c=o+(l-o>>>1);a(e,t[n+c])<0?l=c:o=c+1}return l}function Ke(e,t){var n,r,i=We,a=0,o=[];function s(e,t){n[a]=e,r[a]=t,a+=1}function l(){while(a>1){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;c(e)}}function u(){while(a>1){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,c(e)}}function c(i){var o=n[i],s=r[i],l=n[i+1],u=r[i+1];r[i]=s+u,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),a--;var c=Ze(e[l],e,o,s,0,t);o+=c,s-=c,0!==s&&(u=Xe(e[o+s-1],e,l,u,u-1,t),0!==u&&(s<=u?d(o,s,l,u):h(o,s,l,u)))}function d(n,r,a,s){var l=0;for(l=0;l<r;l++)o[l]=e[n+l];var u=0,c=a,d=n;if(e[d++]=e[c++],0!==--s)if(1!==r){var h,f,p,m=i;while(1){h=0,f=0,p=!1;do{if(t(e[c],o[u])<0){if(e[d++]=e[c++],f++,h=0,0===--s){p=!0;break}}else if(e[d++]=o[u++],h++,f=0,1===--r){p=!0;break}}while((h|f)<m);if(p)break;do{if(h=Ze(e[c],o,u,r,0,t),0!==h){for(l=0;l<h;l++)e[d+l]=o[u+l];if(d+=h,u+=h,r-=h,r<=1){p=!0;break}}if(e[d++]=e[c++],0===--s){p=!0;break}if(f=Xe(o[u],e,c,s,0,t),0!==f){for(l=0;l<f;l++)e[d+l]=e[c+l];if(d+=f,c+=f,s-=f,0===s){p=!0;break}}if(e[d++]=o[u++],1===--r){p=!0;break}m--}while(h>=We||f>=We);if(p)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=o[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=o[u+l]}}else{for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=o[u]}else for(l=0;l<r;l++)e[d+l]=o[u+l]}function h(n,r,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+r-1,c=s-1,d=a+s-1,h=0,f=0;if(e[d--]=e[u--],0!==--r)if(1!==s){var p=i;while(1){var m=0,g=0,y=!1;do{if(t(o[c],e[u])<0){if(e[d--]=e[u--],m++,g=0,0===--r){y=!0;break}}else if(e[d--]=o[c--],g++,m=0,1===--s){y=!0;break}}while((m|g)<p);if(y)break;do{if(m=r-Ze(o[c],e,n,r,r-1,t),0!==m){for(d-=m,u-=m,r-=m,f=d+1,h=u+1,l=m-1;l>=0;l--)e[f+l]=e[h+l];if(0===r){y=!0;break}}if(e[d--]=o[c--],1===--s){y=!0;break}if(g=s-Xe(e[u],o,0,s,s-1,t),0!==g){for(d-=g,c-=g,s-=g,f=d+1,h=c+1,l=0;l<g;l++)e[f+l]=o[h+l];if(s<=1){y=!0;break}}if(e[d--]=e[u--],0===--r){y=!0;break}p--}while(m>=We||g>=We);if(y)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===s){for(d-=r,u-=r,f=d+1,h=u+1,l=r-1;l>=0;l--)e[f+l]=e[h+l];e[d]=o[c]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l<s;l++)e[h+l]=o[l]}}else{for(d-=r,u-=r,f=d+1,h=u+1,l=r-1;l>=0;l--)e[f+l]=e[h+l];e[d]=o[c]}else for(h=d-(s-1),l=0;l<s;l++)e[h+l]=o[l]}return n=[],r=[],{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Je(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<Be)return a=Ge(e,n,r,t),void qe(e,n,r,n+a,t);var o=Ke(e,t),s=Ve(i);do{if(a=Ge(e,n,r,t),a<s){var l=i;l>s&&(l=s),qe(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}var $e=1,Qe=2,et=4,tt=!1;function nt(){tt||(tt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var it,at=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rt}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Je(n,rt)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];var i=r,a=e;while(i)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=$e),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(nt(),u.z=0),isNaN(u.z2)&&(nt(),u.z2=0),isNaN(u.zlevel)&&(nt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=s["r"](this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),ot=at;it=o["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var st=it,lt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-lt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*lt.bounceIn(2*e):.5*lt.bounceOut(2*e-1)+.5}},ut=lt,ct=Math.pow,dt=Math.sqrt,ht=1e-8,ft=1e-4,pt=dt(3),mt=1/3,gt=c(),yt=c(),vt=c();function _t(e){return e>-ht&&e<ht}function bt(e){return e>ht||e<-ht}function xt(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function wt(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Mt(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,f=0;if(_t(c)&&_t(d))if(_t(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[f++]=p)}else{var m=d*d-4*c*h;if(_t(m)){var g=d/c,y=(p=-s/o+g,-g/2);p>=0&&p<=1&&(a[f++]=p),y>=0&&y<=1&&(a[f++]=y)}else if(m>0){var v=dt(m),_=c*s+1.5*o*(-d+v),b=c*s+1.5*o*(-d-v);_=_<0?-ct(-_,mt):ct(_,mt),b=b<0?-ct(-b,mt):ct(b,mt);p=(-s-(_+b))/(3*o);p>=0&&p<=1&&(a[f++]=p)}else{var x=(2*c*s-3*o*d)/(2*dt(c*c*c)),w=Math.acos(x)/3,M=dt(c),S=Math.cos(w),T=(p=(-s-2*M*S)/(3*o),y=(-s+M*(S+pt*Math.sin(w)))/(3*o),(-s+M*(S-pt*Math.sin(w)))/(3*o));p>=0&&p<=1&&(a[f++]=p),y>=0&&y<=1&&(a[f++]=y),T>=0&&T<=1&&(a[f++]=T)}}return f}function St(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(_t(o)){if(bt(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(_t(c))i[0]=-a/(2*o);else if(c>0){var d=dt(c),h=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Tt(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function kt(e,t,n,r,i,a,o,s,l,u,c){var d,h,f,p,m,g=.005,y=1/0;gt[0]=l,gt[1]=u;for(var v=0;v<1;v+=.05)yt[0]=xt(e,n,i,o,v),yt[1]=xt(t,r,a,s,v),p=S(gt,yt),p<y&&(d=v,y=p);y=1/0;for(var _=0;_<32;_++){if(g<ft)break;h=d-g,f=d+g,yt[0]=xt(e,n,i,o,h),yt[1]=xt(t,r,a,s,h),p=S(yt,gt),h>=0&&p<y?(d=h,y=p):(vt[0]=xt(e,n,i,o,f),vt[1]=xt(t,r,a,s,f),m=S(vt,gt),f<=1&&m<y?(d=f,y=m):g*=.5)}return c&&(c[0]=xt(e,n,i,o,d),c[1]=xt(t,r,a,s,d)),dt(y)}function Lt(e,t,n,r,i,a,o,s,l){for(var u=e,c=t,d=0,h=1/l,f=1;f<=l;f++){var p=f*h,m=xt(e,n,i,o,p),g=xt(t,r,a,s,p),y=m-u,v=g-c;d+=Math.sqrt(y*y+v*v),u=m,c=g}return d}function Ot(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Dt(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function At(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(_t(a)){if(bt(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(_t(c)){u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=dt(c),h=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function It(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Ct(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Et(e,t,n,r,i,a,o,s,l){var u,c=.005,d=1/0;gt[0]=o,gt[1]=s;for(var h=0;h<1;h+=.05){yt[0]=Ot(e,n,i,h),yt[1]=Ot(t,r,a,h);var f=S(gt,yt);f<d&&(u=h,d=f)}d=1/0;for(var p=0;p<32;p++){if(c<ft)break;var m=u-c,g=u+c;yt[0]=Ot(e,n,i,m),yt[1]=Ot(t,r,a,m);f=S(yt,gt);if(m>=0&&f<d)u=m,d=f;else{vt[0]=Ot(e,n,i,g),vt[1]=Ot(t,r,a,g);var y=S(vt,gt);g<=1&&y<d?(u=g,d=y):c*=.5}}return l&&(l[0]=Ot(e,n,i,u),l[1]=Ot(t,r,a,u)),dt(d)}function Pt(e,t,n,r,i,a,o){for(var s=e,l=t,u=0,c=1/o,d=1;d<=o;d++){var h=d*c,f=Ot(e,n,i,h),p=Ot(t,r,a,h),m=f-s,g=p-l;u+=Math.sqrt(m*m+g*g),s=f,l=p}return u}var Yt=/cubic-bezier\(([0-9,\.e ]+)\)/;function jt(e){var t=e&&Yt.exec(e);if(t){var n=t[1].split(","),r=+Object(s["T"])(n[0]),i=+Object(s["T"])(n[1]),a=+Object(s["T"])(n[2]),o=+Object(s["T"])(n[3]);if(isNaN(r+i+a+o))return;var l=[];return function(e){return e<=0?0:e>=1?1:Mt(0,r,a,1,e,l)&&xt(0,i,o,1,l[0])}}}var Nt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||s["L"],this.ondestroy=e.ondestroy||s["L"],this.onrestart=e.onrestart||s["L"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(s["w"])(e)?e:ut[e]||jt(e)},e}(),Rt=Nt,Ht=n("41ef"),Ft=n("7a29"),zt=Array.prototype.slice;function Bt(e,t,n){return(t-e)*n+e}function Wt(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Bt(t[a],n[a],r);return e}function Vt(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Bt(t[o][s],n[o][s],r)}return e}function Gt(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Ut(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function qt(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Xt(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){var s=a>o;if(s)r.length=o;else for(var l=a;l<o;l++)r.push(1===n?i[l]:zt.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function Zt(e){if(Object(s["u"])(e)){var t=e.length;if(Object(s["u"])(e[0])){for(var n=[],r=0;r<t;r++)n.push(zt.call(e[r]));return n}return zt.call(e)}return e}function Kt(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function Jt(e){return Object(s["u"])(e&&e[0])?2:1}var $t=0,Qt=1,en=2,tn=3,nn=4,rn=5,an=6;function on(e){return e===nn||e===rn}function sn(e){return e===Qt||e===en}var ln=[0,0,0,0],un=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=an,l=t;if(Object(s["u"])(t)){var u=Jt(t);o=u,(1===u&&!Object(s["z"])(t[0])||2===u&&!Object(s["z"])(t[0][0]))&&(a=!0)}else if(Object(s["z"])(t)&&!Object(s["l"])(t))o=$t;else if(Object(s["C"])(t))if(isNaN(+t)){var c=Ht["h"](t);c&&(l=c,o=tn)}else o=$t;else if(Object(s["x"])(t)){var d=Object(s["m"])({},l);d.colorStops=Object(s["H"])(t.colorStops,(function(e){return{offset:e.offset,color:Ht["h"](e.color)}})),Object(Ft["m"])(t)?o=nn:Object(Ft["o"])(t)&&(o=rn),l=d}0===i?this.valType=o:o===this.valType&&o!==an||(a=!0),this.discrete=this.discrete||a;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Object(s["w"])(n)?n:ut[n]||jt(n)),r.push(h),h},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=sn(r),l=on(r),u=0;u<i;u++){var c=n[u],d=c.value,h=a.value;c.percent=c.time/e,o||(s&&u!==i-1?Xt(d,h,r):l&&qt(d.colorStops,h.colorStops))}if(!o&&r!==rn&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var f=n[0].value;for(u=0;u<i;u++)r===$t?n[u].additiveValue=n[u].value-f:r===tn?n[u].additiveValue=Gt([],n[u].value,f,-1):sn(r)&&(n[u].additiveValue=r===Qt?Gt([],n[u].value,f,-1):Ut([],n[u].value,f,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,o=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,d=this.propName,h=l===tn,f=this._lastFr,p=Math.min;if(1===c)r=i=u[0];else{if(t<0)n=0;else if(t<this._lastFrP){var m=p(f+1,c-1);for(n=m;n>=0;n--)if(u[n].percent<=t)break;n=p(n,c-2)}else{for(n=f;n<c;n++)if(u[n].percent>t)break;n=p(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var g=i.percent-r.percent,y=0===g?1:p((t-r.percent)/g,1);i.easingFunc&&(y=i.easingFunc(y));var v=a?this._additiveValue:h?ln:e[d];if(!sn(l)&&!h||v||(v=this._additiveValue=[]),this.discrete)e[d]=y<1?r.rawValue:i.rawValue;else if(sn(l))l===Qt?Wt(v,r[o],i[o],y):Vt(v,r[o],i[o],y);else if(on(l)){var _=r[o],b=i[o],x=l===nn;e[d]={type:x?"linear":"radial",x:Bt(_.x,b.x,y),y:Bt(_.y,b.y,y),colorStops:Object(s["H"])(_.colorStops,(function(e,t){var n=b.colorStops[t];return{offset:Bt(e.offset,n.offset,y),color:Kt(Wt([],e.color,n.color,y))}})),global:b.global},x?(e[d].x2=Bt(_.x2,b.x2,y),e[d].y2=Bt(_.y2,b.y2,y)):e[d].r=Bt(_.r,b.r,y)}else if(h)Wt(v,r[o],i[o],y),a||(e[d]=Kt(v));else{var w=Bt(r[o],i[o],y);a?this._additiveValue=w:e[d]=w}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===$t?e[n]=e[n]+r:t===tn?(Ht["h"](e[n],ln),Gt(ln,ln,r,1),e[n]=Kt(ln)):t===Qt?Gt(e[n],e[n],r,1):t===en&&Ut(e[n],e[n],r,1)},e}(),cn=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(s["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(s["F"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new un(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,u.valType===tn&&l&&(l=Kt(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,Zt(l),r),this._trackKeys.push(o)}s.addKeyframe(e,Zt(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),l=o.keyframes,u=l.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(t._target[o.propName]=c.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new Rt({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(s["H"])(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Zt(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(s["F"])(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),dn=cn;function hn(){return(new Date).getTime()}var fn=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return u(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=hn()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,a=r.step(t,n);a?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(st(t),!e._paused&&e.update())}this._running=!0,st(t)},t.prototype.start=function(){this._running||(this._time=hn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=hn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=hn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new dn(e,t.loop);return this.addAnimator(n),n},t}(E),pn=fn,mn=300,gn=o["a"].domSupported,yn=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=s["H"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),vn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_n=!1;function bn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function xn(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function wn(e){e&&(e.zrByTouch=!0)}function Mn(e,t){return Q(e.dom,new Tn(e,t),!0)}function Sn(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Tn=function(){function e(e,t){this.stopPropagation=s["L"],this.stopImmediatePropagation=s["L"],this.preventDefault=s["L"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),kn={mousedown:function(e){e=Q(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Q(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Q(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Q(this.dom,e);var t=e.toElement||e.relatedTarget;Sn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){_n=!0,e=Q(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){_n||(e=Q(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Q(this.dom,e),wn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),kn.mousemove.call(this,e),kn.mousedown.call(this,e)},touchmove:function(e){e=Q(this.dom,e),wn(e),this.handler.processGesture(e,"change"),kn.mousemove.call(this,e)},touchend:function(e){e=Q(this.dom,e),wn(e),this.handler.processGesture(e,"end"),kn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<mn&&kn.click.call(this,e)},pointerdown:function(e){kn.mousedown.call(this,e)},pointermove:function(e){bn(e)||kn.mousemove.call(this,e)},pointerup:function(e){kn.mouseup.call(this,e)},pointerout:function(e){bn(e)||kn.mouseout.call(this,e)}};s["k"](["click","dblclick","contextmenu"],(function(e){kn[e]=function(t){t=Q(this.dom,t),this.trigger(e,t)}}));var Ln={pointermove:function(e){bn(e)||Ln.mousemove.call(this,e)},pointerup:function(e){Ln.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function On(e,t){var n=t.domHandlers;o["a"].pointerEventsSupported?s["k"](yn.pointer,(function(r){An(t,r,(function(t){n[r].call(e,t)}))})):(o["a"].touchEventsSupported&&s["k"](yn.touch,(function(r){An(t,r,(function(i){n[r].call(e,i),xn(t)}))})),s["k"](yn.mouse,(function(r){An(t,r,(function(i){i=$(i),t.touching||n[r].call(e,i)}))})))}function Dn(e,t){function n(n){function r(r){r=$(r),Sn(e,r.target)||(r=Mn(e,r),t.domHandlers[n].call(e,r))}An(t,n,r,{capture:!0})}o["a"].pointerEventsSupported?s["k"](vn.pointer,n):o["a"].touchEventsSupported||s["k"](vn.mouse,n)}function An(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,te(e.domTarget,t,n,r)}function In(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&ne(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Cn=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),En=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Cn(t,kn),gn&&(r._globalHandlerScope=new Cn(document,Ln)),On(r,r._localHandlerScope),r}return u(t,e),t.prototype.dispose=function(){In(this._localHandlerScope),gn&&In(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,gn&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Dn(this,t):In(t)}},t}(E),Pn=En,Yn=1;o["a"].hasGlobalWindow&&(Yn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var jn=Yn,Nn=.4,Rn="#333",Hn="#ccc",Fn="#eee",zn=ce,Bn=5e-5;function Wn(e){return e>Bn||e<-Bn}var Vn=[],Gn=[],Un=ue(),qn=Math.abs,Xn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Wn(this.rotation)||Wn(this.x)||Wn(this.y)||Wn(this.scaleX-1)||Wn(this.scaleY-1)||Wn(this.skewX)||Wn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||ue(),t?this.getLocalTransform(n):zn(n),e&&(t?he(n,e,n):de(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(zn(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Vn);var n=Vn[0]<0?-1:1,r=Vn[1]<0?-1:1,i=((Vn[0]-n)*t+n)/Vn[0]||0,a=((Vn[1]-r)*t+r)/Vn[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||ue(),ge(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ue(),he(Gn,e.invTransform,t),t=Gn);var n=this.originX,r=this.originY;(n||r)&&(Un[4]=n,Un[5]=r,he(Gn,t,Un),Gn[4]-=n,Gn[5]-=r,t=Gn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&k(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&k(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&qn(e[0]-1)>1e-10&&qn(e[3]-1)>1e-10?Math.sqrt(qn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Kn(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var f=n+o,p=r+s;t[4]=-f*i-d*p*a,t[5]=-p*a-h*f*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=h*i,t[2]=d*a,l&&pe(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Zn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Kn(e,t){for(var n=0;n<Zn.length;n++){var r=Zn[n];e[r]=t[r]}}var Jn=Xn,$n=n("d51b"),Qn=n("726e"),er={};function tr(e,t){t=t||Qn["a"];var n=er[t];n||(n=er[t]=new $n["a"](500));var r=n.get(e);return null==r&&(r=Qn["d"].measureText(e,t).width,n.put(e,r)),r}function nr(e,t,n,r){var i=tr(e,t),a=or(t),o=ir(0,i,n),s=ar(0,a,r),l=new De(o,s,i,a);return l}function rr(e,t,n,r){var i=((e||"")+"").split("\n"),a=i.length;if(1===a)return nr(i[0],t,n,r);for(var o=new De(0,0,0,0),s=0;s<i.length;s++){var l=nr(i[s],t,n,r);0===s?o.copy(l):o.union(l)}return o}function ir(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ar(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function or(e){return tr("国",e)}function sr(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function lr(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=sr(r[0],n.width),u+=sr(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var ur="__zr_normal__",cr=Zn.concat(["ignore"]),dr=Object(s["N"])(Zn,(function(e,t){return e[t]=!0,e}),{ignore:!1}),hr={},fr=new De(0,0,0,0),pr=function(){function e(e){this.id=Object(s["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=fr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hr,n,u):lr(hr,n,u),i.x=hr.x,i.y=hr.y,a=hr.align,o=hr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=sr(c[0],u.width),h=sr(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+h+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,v=void 0;p&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,y=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(g),v=!0)),g=g||"#000",g===m.fill&&y===m.stroke&&v===m.autoStroke&&a===m.align&&o===m.verticalAlign||(s=!0,m.fill=g,m.stroke=y,m.autoStroke=v,m.align=a,m.verticalAlign=o,t.setDefaultTextStyle(m)),t.__dirty|=$e,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Hn:Rn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(Ht["h"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Object(Ht["i"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(s["m"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(s["A"])(e))for(var n=e,r=Object(s["F"])(n),i=0;i<r.length;i++){var a=r[i];this.attrKV(a,e[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==ur)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,cr)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ur,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ur,a=this.hasState();if(a||!i){var o=this.currentStates,l=this.stateTransition;if(!(Object(s["r"])(o,e)>=0)||!t&&1!==o.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),u||i){i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,h=this._textGuide;return d&&d.useState(e,t,n,c),h&&h.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e),u}Object(s["G"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o)for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,m=this._textGuide;p&&p.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e)}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(s["r"])(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(s["r"])(r,e),a=Object(s["r"])(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];Object(s["m"])(n,i),i.textConfig&&(t=t||{},Object(s["m"])(t,i.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=Object(s["m"])({},r?this.textConfig:n.textConfig),Object(s["m"])(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<cr.length;c++){var d=cr[c],h=i&&dr[d];t&&null!=t[d]?h?(u=!0,l[d]=t[d]):this[d]=t[d]:o&&null!=n[d]&&(h?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!i)for(c=0;c<this.animators.length;c++){var f=this.animators[c],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}u&&this._transitionState(e,l,a)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Jn,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(s["m"])(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=$e;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var i=new dn(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(s["r"])(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){mr(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){mr(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=mr(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=$e;function n(e,n,r,i){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function mr(e,t,n,r,i){n=n||{};var a=[];xr(e,"",e,t,n,r,a,i);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&n.during&&a[0].during((function(e,t){n.during(t)}));for(var h=0;h<a.length;h++){var f=a[h];c&&f.done(c),d&&f.aborted(d),n.force&&f.duration(n.duration),f.start(n.easing)}return a}function gr(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function yr(e){return Object(s["u"])(e[0])}function vr(e,t,n){if(Object(s["u"])(t[n]))if(Object(s["u"])(e[n])||(e[n]=[]),Object(s["E"])(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),gr(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(yr(i))for(var l=i[0].length,u=0;u<o;u++)a[u]?gr(a[u],i[u],l):a[u]=Array.prototype.slice.call(i[u]);else gr(a,i,o);a.length=i.length}else e[n]=t[n]}function _r(e,t){return e===t||Object(s["u"])(e)&&Object(s["u"])(t)&&br(e,t)}function br(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function xr(e,t,n,r,i,a,o,l){for(var u=Object(s["F"])(r),c=i.duration,d=i.delay,h=i.additive,f=i.setToFinal,p=!Object(s["A"])(a),m=e.animators,g=[],y=0;y<u.length;y++){var v=u[y],_=r[v];if(null!=_&&null!=n[v]&&(p||a[v]))if(!Object(s["A"])(_)||Object(s["u"])(_)||Object(s["x"])(_))g.push(v);else{if(t){l||(n[v]=_,e.updateDuringAnimation(t));continue}xr(e,v,n[v],_,i,a&&a[v],o,l)}else l||(n[v]=_,e.updateDuringAnimation(t),g.push(v))}var b=g.length;if(!h&&b)for(var x=0;x<m.length;x++){var w=m[x];if(w.targetName===t){var M=w.stopTracks(g);if(M){var S=Object(s["r"])(m,w);m.splice(S,1)}}}if(i.force||(g=Object(s["n"])(g,(function(e){return!_r(r[e],n[e])})),b=g.length),b>0||i.force&&!o.length){var T=void 0,k=void 0,L=void 0;if(l){k={},f&&(T={});for(x=0;x<b;x++){v=g[x];k[v]=n[v],f?T[v]=r[v]:n[v]=r[v]}}else if(f){L={};for(x=0;x<b;x++){v=g[x];L[v]=Zt(n[v]),vr(n,r,v)}}w=new dn(n,!1,!1,h?Object(s["n"])(m,(function(e){return e.targetName===t})):null);w.targetName=t,i.scope&&(w.scope=i.scope),f&&T&&w.whenWithKeys(0,T,g),L&&w.whenWithKeys(0,L,g),w.whenWithKeys(null==c?500:c,l?k:r,g).delay(d||0),e.addAnimator(w,t),o.push(w)}}Object(s["K"])(pr,E),Object(s["K"])(pr,Jn);var wr=pr,Mr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return u(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=s["r"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=s["r"](n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new De(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(De.applyTransform(t,s,l),i=i||t.clone(),i.union(t)):(i=i||s.clone(),i.union(s))}}return i||t},t}(wr);Mr.prototype.type="group";var Sr=Mr,Tr={},kr={};
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/function Lr(e){delete kr[e]}function Or(e){if(!e)return!1;if("string"===typeof e)return Object(Ht["e"])(e,1)<Nn;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(Ht["e"])(t[i].color,1);return n/=r,n<Nn}return!1}var Dr,Ar=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new ot,a=n.renderer||"canvas";Tr[a]||(a=s["F"](Tr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new Tr[a](t,i,n,e),u=n.ssr||l.ssrOnly;this.storage=i,this.painter=l;var c,d=o["a"].node||o["a"].worker||u?null:new Pn(l.getViewportRoot(),l.root),h=n.useCoarsePointer,f=null==h||"auto"===h?o["a"].touchEventsSupported:!!h,p=44;f&&(c=s["P"](n.pointerSize,p)),this.handler=new ze(i,l,d,l.root,c),this.animation=new pn({stage:{update:u?null:function(){return r._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Or(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=hn();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=hn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Sr&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Lr(this.id))},e}();function Ir(e,t){var n=new Ar(s["p"](),e,t);return kr[n.id]=n,n}function Cr(e,t){Tr[e]=t}function Er(e){if("function"===typeof Dr)return Dr(e)}function Pr(e){Dr=e}var Yr=1e-4,jr=20;function Nr(e){return e.replace(/^\s+|\s+$/g,"")}function Rr(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],l=a-i,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(r)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Hr(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return s["C"](e)?Nr(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Fr(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),jr),e=(+e).toFixed(t),n?e:+e}function zr(e){return e.sort((function(e,t){return e-t})),e}function Br(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Wr(e)}function Wr(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Vr(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Gr(e,t){var n=s["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),i=s["H"](e,(function(e){return(isNaN(e)?0:e)/n*r*100})),a=100*r,o=s["H"](i,(function(e){return Math.floor(e)})),l=s["N"](o,(function(e,t){return e+t}),0),u=s["H"](i,(function(e,t){return e-o[t]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,d=null,h=0,f=u.length;h<f;++h)u[h]>c&&(c=u[h],d=h);++o[d],u[d]=0,++l}return s["H"](o,(function(e){return e/r}))}function Ur(e,t){var n=Math.max(Br(e),Br(t)),r=e+t;return n>jr?r:Fr(r,n)}var qr=9007199254740991;function Xr(e){var t=2*Math.PI;return(e%t+t)%t}function Zr(e){return e>-Yr&&e<Yr}var Kr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Jr(e){if(e instanceof Date)return e;if(s["C"](e)){var t=Kr.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function $r(e){return Math.pow(10,Qr(e))}function Qr(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function ei(e,t){var n,r=Qr(e),i=Math.pow(10,r),a=e/i;return n=t?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,e=n*i,r>=-20?+e.toFixed(r<0?-r:0):e}function ti(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function ni(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ri(e){var t=parseFloat(e);return t==e&&(0!==t||!s["C"](e)||e.indexOf("x")<=0)?t:NaN}function ii(e){return!isNaN(ri(e))}function ai(){return Math.round(9*Math.random())}function oi(e,t){return 0===t?e:oi(t,e%t)}function si(e,t){return null==e?t:null==t?e:e*t/oi(e,t)}function li(e,t,n){return(t-e)*n+e}var ui="series\0",ci="\0_ec_\0";function di(e){return e instanceof Array?e:null==e?[]:[e]}function hi(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var fi=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function pi(e){return!Object(s["A"])(e)||Object(s["t"])(e)||e instanceof Date?e:e.value}function mi(e){return Object(s["A"])(e)&&!(e instanceof Array)}function gi(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var o=Object(s["f"])();Object(s["k"])(t,(function(e,n){Object(s["A"])(e)||(t[n]=null)}));var l=yi(e,o,n);return(r||i)&&vi(l,e,o,t),r&&_i(l,t),r||i?bi(l,t,i):a&&xi(l,t),wi(l),l}function yi(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||Li(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function vi(e,t,n,r){Object(s["k"])(r,(function(i,a){if(i&&null!=i.id){var o=Si(i.id),l=n.get(o);if(null!=l){var u=e[l];Object(s["b"])(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[l],r[a]=null}}}))}function _i(e,t){Object(s["k"])(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(null==a.id||null==n.id)&&!Li(n)&&!Li(a)&&Mi("name",a,n))return e[i].newOption=n,void(t[r]=null)}}))}function bi(e,t,n){Object(s["k"])(t,(function(t){if(t){var r,i=0;while((r=e[i])&&(r.newOption||Li(r.existing)||r.existing&&null!=t.id&&!Mi("id",t,r.existing)))i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}function xi(e,t){Object(s["k"])(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function wi(e){var t=Object(s["f"])();Object(s["k"])(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Object(s["k"])(e,(function(e){var n=e.newOption;Object(s["b"])(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(s["k"])(e,(function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(Object(s["A"])(i)){if(a.name=null!=i.name?Si(i.name):r?r.name:ui+n,r)a.id=Si(r.id);else if(null!=i.id)a.id=Si(i.id);else{var o=0;do{a.id="\0"+a.name+"\0"+o++}while(t.get(a.id))}t.set(a.id,e)}}))}function Mi(e,t,n){var r=Ti(t[e],null),i=Ti(n[e],null);return null!=r&&null!=i&&r===i}function Si(e){return Ti(e,"")}function Ti(e,t){return null==e?t:Object(s["C"])(e)?e:Object(s["z"])(e)||Object(s["D"])(e)?e+"":t}function ki(e){var t=e.name;return!(!t||!t.indexOf(ui))}function Li(e){return e&&null!=e.id&&0===Si(e.id).indexOf(ci)}function Oi(e){return ci+e}function Di(e,t,n){Object(s["k"])(e,(function(e){var r=e.newOption;Object(s["A"])(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Ai(t,r,e.existing,n))}))}function Ai(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function Ii(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Ti(e[r].seriesId,null);if(null==a)return;for(var o=di(e[r].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var c=o[l];s&&s[c]?s[c]=null:(t[a]||(t[a]={}))[c]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function Ci(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(s["t"])(t.dataIndex)?Object(s["H"])(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(s["t"])(t.name)?Object(s["H"])(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function Ei(){var e="__ec_inner_"+Pi++;return function(t){return t[e]||(t[e]={})}}var Pi=ai();function Yi(e,t,n){var r=ji(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each((function(t,r){var i=Hi(e,r,t,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function ji(e,t){var n;if(Object(s["C"])(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Object(s["f"])(),a={},o=!1;return Object(s["k"])(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();if(l&&u&&!(t&&t.includeMainTypes&&Object(s["r"])(t.includeMainTypes,l)<0)){o=o||!!l;var c=i.get(l)||i.set(l,{});c[u]=e}}else a[n]=e})),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ni={useDefault:!0,enableAll:!1,enableNone:!1},Ri={useDefault:!1,enableAll:!0,enableNone:!0};function Hi(e,t,n,r){r=r||Ni;var i=n.index,a=n.id,o=n.name,l={models:null,specified:null!=i||null!=a||null!=o};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=e.getComponent(t))?[u]:[],l}return"none"===i||!1===i?(Object(s["b"])(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===i&&(Object(s["b"])(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),l.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),l)}function Fi(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function zi(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Bi(e){return"auto"===e?o["a"].domSupported?"html":"richText":e||"html"}function Wi(e,t){var n=Object(s["f"])(),r=[];return Object(s["k"])(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}function Vi(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if(Object(s["z"])(r)){var o=li(n||0,r,i);return Fr(o,a?Math.max(Br(n||0),Br(r)):t)}if(Object(s["C"])(r))return i<1?n:r;for(var l=[],u=n,c=r,d=Math.max(u?u.length:0,c.length),h=0;h<d;++h){var f=e.getDimensionInfo(h);if(f&&"ordinal"===f.type)l[h]=(i<1&&u?u:c)[h];else{var p=u&&u[h]?u[h]:0,m=c[h];o=li(p,m,i);l[h]=Fr(o,a?Math.max(Br(p),Br(m)):t)}}return l}var Gi=".",Ui="___EC__COMPONENT__CONTAINER___",qi="___EC__EXTENDED_CLASS___";function Xi(e){var t={main:"",sub:""};if(e){var n=e.split(Gi);t.main=n[0]||"",t.sub=n[1]||""}return t}function Zi(e){s["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Ki(e){return!(!e||!e[qi])}function Ji(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return $i(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},s["s"](t,this)),s["m"](t.prototype,e),t[qi]=!0,t.extend=this.extend,t.superCall=na,t.superApply=ra,t.superClass=n,t}}function $i(e){return s["w"](e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Qi(e,t){e.extend=t.extend}var ea=Math.round(10*Math.random());function ta(e){var t=["__\0is_clz",ea++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function na(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function ra(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ia(e){var t={};function n(e){var n=t[e.main];return n&&n[Ui]||(n=t[e.main]={},n[Ui]=!0),n}e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Zi(r),e.prototype.type=r;var i=Xi(r);if(i.sub){if(i.sub!==Ui){var a=n(i);a[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Ui]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=Xi(e),r=[],i=t[n.main];return i&&i[Ui]?s["k"](i,(function(e,t){t!==Ui&&r.push(e)})):r.push(i),r},e.hasClass=function(e){var n=Xi(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return s["k"](t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=Xi(e),r=t[n.main];return r&&r[Ui]}}function aa(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var l=e[o][1];if(!(r&&s["r"](r,l)>=0||i&&s["r"](i,l)<0)){var u=n.getShallow(l,t);null!=u&&(a[e[o][0]]=u)}}return a}}var oa=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sa=aa(oa),la=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return sa(this,e,t)},e}(),ua=new $n["a"](50);function ca(e){if("string"===typeof e){var t=ua.get(e);return t&&t.image}return e}function da(e,t,n,r,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=ua.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!fa(t)&&a.pending.push(o)):(t=Qn["d"].loadImage(e,ha,ha),t.__zrImageSrc=e,ua.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function ha(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function fa(e){return e&&e.width&&e.height}var pa=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ma(e,t,n,r,i,a){if(!n)return e.text="",void(e.isTruncated=!1);var o=(t+"").split("\n");a=ga(n,r,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)ya(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}function ga(e,t,n,r){r=r||{};var i=Object(s["m"])({},r);i.font=t,n=Object(s["P"])(n,"..."),i.maxIterations=Object(s["P"])(r.maxIterations,2);var a=i.minChar=Object(s["P"])(r.minChar,0);i.cnCharWidth=tr("国",t);var o=i.ascCharWidth=tr("a",t);i.placeholder=Object(s["P"])(r.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<a&&l>=o;u++)l-=o;var c=tr(n,t);return c>l&&(n="",c=0),l=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=e,i}function ya(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r)return e.textLine="",void(e.isTruncated=!1);var o=tr(t,i);if(o<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?va(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=tr(t,i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function va(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function _a(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o="truncate"===r,l=or(a),u=Object(s["P"])(t.lineHeight,l),c=!!t.backgroundColor,d="truncate"===t.lineOverflow,h=!1,f=t.width;n=null==f||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Oa(e,t.font,f,"breakAll"===r,0).lines:[];var p=n.length*u,m=Object(s["P"])(t.height,p);if(p>m&&d){var g=Math.floor(m/u);h=h||n.length>g,n=n.slice(0,g)}if(e&&o&&null!=f)for(var y=ga(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},_=0;_<n.length;_++)ya(v,n[_],y),n[_]=v.textLine,h=h||v.isTruncated;var b=m,x=0;for(_=0;_<n.length;_++)x=Math.max(tr(n[_],a),x);null==f&&(f=x);var w=x;return i&&(b+=i[0]+i[2],w+=i[1]+i[3],f+=i[1]+i[3]),c&&(w=f),{lines:n,height:m,outerWidth:w,outerHeight:b,lineHeight:u,calculatedLineHeight:l,contentWidth:x,contentHeight:p,width:f,isTruncated:h}}var ba=function(){function e(){}return e}(),xa=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),wa=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Ma(e,t){var n=new wa;if(null!=e&&(e+=""),!e)return n;var r,i=t.width,a=t.height,o=t.overflow,l="break"!==o&&"breakAll"!==o||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===o},u=pa.lastIndex=0;while(null!=(r=pa.exec(e))){var c=r.index;c>u&&Sa(n,e.substring(u,c),t,l),Sa(n,r[2],t,l,r[1]),u=pa.lastIndex}u<e.length&&Sa(n,e.substring(u,e.length),t,l);var d=[],h=0,f=0,p=t.padding,m="truncate"===o,g="truncate"===t.lineOverflow,y={};function v(e,t,n){e.width=t,e.lineHeight=n,h+=n,f=Math.max(f,t)}e:for(var _=0;_<n.lines.length;_++){for(var b=n.lines[_],x=0,w=0,M=0;M<b.tokens.length;M++){var S=b.tokens[M],T=S.styleName&&t.rich[S.styleName]||{},k=S.textPadding=T.padding,L=k?k[1]+k[3]:0,O=S.font=T.font||t.font;S.contentHeight=or(O);var D=Object(s["P"])(T.height,S.contentHeight);if(S.innerHeight=D,k&&(D+=k[0]+k[2]),S.height=D,S.lineHeight=Object(s["Q"])(T.lineHeight,t.lineHeight,D),S.align=T&&T.align||t.align,S.verticalAlign=T&&T.verticalAlign||"middle",g&&null!=a&&h+S.lineHeight>a){var A=n.lines.length;M>0?(b.tokens=b.tokens.slice(0,M),v(b,w,x),n.lines=n.lines.slice(0,_+1)):n.lines=n.lines.slice(0,_),n.isTruncated=n.isTruncated||n.lines.length<A;break e}var I=T.width,C=null==I||"auto"===I;if("string"===typeof I&&"%"===I.charAt(I.length-1))S.percentWidth=I,d.push(S),S.contentWidth=tr(S.text,O);else{if(C){var E=T.backgroundColor,P=E&&E.image;P&&(P=ca(P),fa(P)&&(S.width=Math.max(S.width,P.width*D/P.height)))}var Y=m&&null!=i?i-w:null;null!=Y&&Y<S.width?!C||Y<L?(S.text="",S.width=S.contentWidth=0):(ma(y,S.text,Y-L,O,t.ellipsis,{minChar:t.truncateMinChar}),S.text=y.text,n.isTruncated=n.isTruncated||y.isTruncated,S.width=S.contentWidth=tr(S.text,O)):S.contentWidth=tr(S.text,O)}S.width+=L,w+=S.width,T&&(x=Math.max(x,S.lineHeight))}v(b,w,x)}n.outerWidth=n.width=Object(s["P"])(i,f),n.outerHeight=n.height=Object(s["P"])(a,h),n.contentHeight=h,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(_=0;_<d.length;_++){S=d[_];var j=S.percentWidth;S.width=parseInt(j,10)/100*n.width}return n}function Sa(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,f=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var p=sr(l.width,r.width)+f;u.length>0&&p+r.accumWidth>r.width&&(a=t.split("\n"),d=!0),r.accumWidth=p}else{var m=Oa(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+f,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var g=0;g<a.length;g++){var y=a[g],v=new ba;if(v.styleName=i,v.text=y,v.isLineHolder=!y&&!s,"number"===typeof l.width?v.width=l.width:v.width=o?o[g]:tr(y,c),g||d)u.push(new xa([v]));else{var _=(u[u.length-1]||(u[0]=new xa)).tokens,b=_.length;1===b&&_[0].isLineHolder?_[0]=v:(y||!b||s)&&_.push(v)}}}function Ta(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ka=Object(s["N"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function La(e){return!Ta(e)||!!ka[e]}function Oa(e,t,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var f=tr(h,t),p=!r&&!La(h);(a.length?c+f>n:i+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=f)):p?(a.push(l),o.push(u),l=h,u=f):(a.push(h),o.push(f)):(c+=f,p?(l+=h,u+=f):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0}return a.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Da="__zr_style_"+Math.round(10*Math.random()),Aa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ia={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Aa[Da]=!0;var Ca=["z","z2","invisible"],Ea=["invisible"],Pa=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype._init=function(t){for(var n=Object(s["F"])(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Na(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(r&&this.parent){var o=this.parent;while(o){if(o.ignore)return!1;o=o.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return r.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new De(0,0,0,0)),t?De.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new De(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:Object(s["m"])(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Qe,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qe)},t.prototype.styleUpdated=function(){this.__dirty&=~Qe},t.prototype.createStyle=function(e){return Object(s["g"])(Aa,e)},t.prototype.useStyle=function(e){e[Da]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Da]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Ca)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var l,u=!(n&&i);if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):u&&(l=r.style),l)if(a){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var d=Object(s["F"])(c),h=0;h<d.length;h++){var f=d[h];f in l&&(l[f]=l[f],this.style[f]=c[f])}var p=Object(s["F"])(l);for(h=0;h<p.length;h++){f=p[h];this.style[f]=this.style[f]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else this.useStyle(l);var m=this.__inHover?Ea:Ca;for(h=0;h<m.length;h++){f=m[h];n&&null!=n[f]?this[f]=n[f]:u&&null!=r[f]&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(s["m"])(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ia},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=$e|Qe}(),t}(wr),Ya=new De(0,0,0,0),ja=new De(0,0,0,0);function Na(e,t,n){return Ya.copy(e.getBoundingRect()),e.transform&&Ya.applyTransform(e.transform),ja.width=t,ja.height=n,!Ya.intersect(ja)}var Ra=Pa,Ha=Math.min,Fa=Math.max,za=Math.sin,Ba=Math.cos,Wa=2*Math.PI,Va=c(),Ga=c(),Ua=c();function qa(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=Ha(i,r[0]),a=Fa(a,r[0]),o=Ha(o,r[1]),s=Fa(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function Xa(e,t,n,r,i,a){i[0]=Ha(e,n),i[1]=Ha(t,r),a[0]=Fa(e,n),a[1]=Fa(t,r)}var Za=[],Ka=[];function Ja(e,t,n,r,i,a,o,s,l,u){var c=St,d=xt,h=c(e,n,i,o,Za);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<h;f++){var p=d(e,n,i,o,Za[f]);l[0]=Ha(p,l[0]),u[0]=Fa(p,u[0])}h=c(t,r,a,s,Ka);for(f=0;f<h;f++){var m=d(t,r,a,s,Ka[f]);l[1]=Ha(m,l[1]),u[1]=Fa(m,u[1])}l[0]=Ha(e,l[0]),u[0]=Fa(e,u[0]),l[0]=Ha(o,l[0]),u[0]=Fa(o,u[0]),l[1]=Ha(t,l[1]),u[1]=Fa(t,u[1]),l[1]=Ha(s,l[1]),u[1]=Fa(s,u[1])}function $a(e,t,n,r,i,a,o,s){var l=It,u=Ot,c=Fa(Ha(l(e,n,i),1),0),d=Fa(Ha(l(t,r,a),1),0),h=u(e,n,i,c),f=u(t,r,a,d);o[0]=Ha(e,i,h),o[1]=Ha(t,a,f),s[0]=Fa(e,i,h),s[1]=Fa(t,a,f)}function Qa(e,t,n,r,i,a,o,s,l){var u=L,c=O,d=Math.abs(i-a);if(d%Wa<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Va[0]=Ba(i)*n+e,Va[1]=za(i)*r+t,Ga[0]=Ba(a)*n+e,Ga[1]=za(a)*r+t,u(s,Va,Ga),c(l,Va,Ga),i%=Wa,i<0&&(i+=Wa),a%=Wa,a<0&&(a+=Wa),i>a&&!o?a+=Wa:i<a&&o&&(i+=Wa),o){var h=a;a=i,i=h}for(var f=0;f<a;f+=Math.PI/2)f>i&&(Ua[0]=Ba(f)*n+e,Ua[1]=za(f)*r+t,u(s,Ua,s),c(l,Ua,l))}var eo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},to=[],no=[],ro=[],io=[],ao=[],oo=[],so=Math.min,lo=Math.max,uo=Math.cos,co=Math.sin,ho=Math.abs,fo=Math.PI,po=2*fo,mo="undefined"!==typeof Float32Array,go=[];function yo(e){var t=Math.round(e/fo*1e8)/1e8;return t%2*fo}function vo(e,t){var n=yo(e[0]);n<0&&(n+=po);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=po?i=n+po:t&&n-i>=po?i=n-po:!t&&n>i?i=n+(po-yo(n-i)):t&&n<i&&(i=n-(po-yo(i-n))),e[0]=n,e[1]=i}var _o=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=ho(n/jn/e)||0,this._uy=ho(n/jn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(eo.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=ho(e-this._xi),r=ho(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(eo.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(eo.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(eo.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),go[0]=r,go[1]=i,vo(go,a),r=go[0],i=go[1];var o=i-r;return this.addData(eo.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=uo(i)*n+e,this._yi=co(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(eo.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(eo.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!mo||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();mo&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,mo&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ro[0]=ro[1]=ao[0]=ao[1]=Number.MAX_VALUE,io[0]=io[1]=oo[0]=oo[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],r=t[e+1],i=n,a=r),o){case eo.M:n=i=t[e++],r=a=t[e++],ao[0]=i,ao[1]=a,oo[0]=i,oo[1]=a;break;case eo.L:Xa(n,r,t[e],t[e+1],ao,oo),n=t[e++],r=t[e++];break;case eo.C:Ja(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],ao,oo),n=t[e++],r=t[e++];break;case eo.Q:$a(n,r,t[e++],t[e++],t[e],t[e+1],ao,oo),n=t[e++],r=t[e++];break;case eo.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],f=t[e++]+h;e+=1;var p=!t[e++];s&&(i=uo(h)*c+l,a=co(h)*d+u),Qa(l,u,c,d,h,f,p,ao,oo),n=uo(f)*c+l,r=co(f)*d+u;break;case eo.R:i=n=t[e++],a=r=t[e++];var m=t[e++],g=t[e++];Xa(i,a,i+m,a+g,ao,oo);break;case eo.Z:n=i,r=a;break}L(ro,ro,ao),O(io,io,oo)}return 0===e&&(ro[0]=ro[1]=io[0]=io[1]=0),new De(ro[0],ro[1],io[0]-ro[0],io[1]-ro[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],f=1===d;f&&(i=e[d],a=e[d+1],o=i,s=a);var p=-1;switch(h){case eo.M:i=o=e[d++],a=s=e[d++];break;case eo.L:var m=e[d++],g=e[d++],y=m-i,v=g-a;(ho(y)>n||ho(v)>r||d===t-1)&&(p=Math.sqrt(y*y+v*v),i=m,a=g);break;case eo.C:var _=e[d++],b=e[d++],x=(m=e[d++],g=e[d++],e[d++]),w=e[d++];p=Lt(i,a,_,b,m,g,x,w,10),i=x,a=w;break;case eo.Q:_=e[d++],b=e[d++],m=e[d++],g=e[d++];p=Pt(i,a,_,b,m,g,10),i=m,a=g;break;case eo.A:var M=e[d++],S=e[d++],T=e[d++],k=e[d++],L=e[d++],O=e[d++],D=O+L;d+=1,f&&(o=uo(L)*T+M,s=co(L)*k+S),p=lo(T,k)*so(po,Math.abs(O)),i=uo(D)*T+M,a=co(D)*k+S;break;case eo.R:o=i=e[d++],s=a=e[d++];var A=e[d++],I=e[d++];p=2*A+2*I;break;case eo.Z:y=o-i,v=s-a;p=Math.sqrt(y*y+v*v),i=o,a=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,u,c,d,h,f=this.data,p=this._ux,m=this._uy,g=this._len,y=t<1,v=0,_=0,b=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var x=0;x<g;){var w=f[x++],M=1===x;switch(M&&(i=f[x],a=f[x+1],n=i,r=a),w!==eo.L&&b>0&&(e.lineTo(d,h),b=0),w){case eo.M:n=i=f[x++],r=a=f[x++],e.moveTo(i,a);break;case eo.L:o=f[x++],s=f[x++];var S=ho(o-i),T=ho(s-a);if(S>p||T>m){if(y){var k=l[_++];if(v+k>c){var L=(c-v)/k;e.lineTo(i*(1-L)+o*L,a*(1-L)+s*L);break e}v+=k}e.lineTo(o,s),i=o,a=s,b=0}else{var O=S*S+T*T;O>b&&(d=o,h=s,b=O)}break;case eo.C:var D=f[x++],A=f[x++],I=f[x++],C=f[x++],E=f[x++],P=f[x++];if(y){k=l[_++];if(v+k>c){L=(c-v)/k;Tt(i,D,I,E,L,to),Tt(a,A,C,P,L,no),e.bezierCurveTo(to[1],no[1],to[2],no[2],to[3],no[3]);break e}v+=k}e.bezierCurveTo(D,A,I,C,E,P),i=E,a=P;break;case eo.Q:D=f[x++],A=f[x++],I=f[x++],C=f[x++];if(y){k=l[_++];if(v+k>c){L=(c-v)/k;Ct(i,D,I,L,to),Ct(a,A,C,L,no),e.quadraticCurveTo(to[1],no[1],to[2],no[2]);break e}v+=k}e.quadraticCurveTo(D,A,I,C),i=I,a=C;break;case eo.A:var Y=f[x++],j=f[x++],N=f[x++],R=f[x++],H=f[x++],F=f[x++],z=f[x++],B=!f[x++],W=N>R?N:R,V=ho(N-R)>.001,G=H+F,U=!1;if(y){k=l[_++];v+k>c&&(G=H+F*(c-v)/k,U=!0),v+=k}if(V&&e.ellipse?e.ellipse(Y,j,N,R,z,H,G,B):e.arc(Y,j,W,H,G,B),U)break e;M&&(n=uo(H)*N+Y,r=co(H)*R+j),i=uo(G)*N+Y,a=co(G)*R+j;break;case eo.R:n=i=f[x],r=a=f[x+1],o=f[x++],s=f[x++];var q=f[x++],X=f[x++];if(y){k=l[_++];if(v+k>c){var Z=c-v;e.moveTo(o,s),e.lineTo(o+so(Z,q),s),Z-=q,Z>0&&e.lineTo(o+q,s+so(Z,X)),Z-=X,Z>0&&e.lineTo(o+lo(q-Z,0),s+X),Z-=q,Z>0&&e.lineTo(o,s+lo(X-Z,0));break e}v+=k}e.rect(o,s,q,X);break;case eo.Z:if(y){k=l[_++];if(v+k>c){L=(c-v)/k;e.lineTo(i*(1-L)+n*L,a*(1-L)+r*L);break e}v+=k}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=eo,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),bo=_o;function xo(e,t,n,r,i,a,o){if(0===i)return!1;var s=i,l=0,u=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);var c=l*a-o+u,d=c*c/(l*l+1);return d<=s/2*s/2}function wo(e,t,n,r,i,a,o,s,l,u,c){if(0===l)return!1;var d=l;if(c>t+d&&c>r+d&&c>a+d&&c>s+d||c<t-d&&c<r-d&&c<a-d&&c<s-d||u>e+d&&u>n+d&&u>i+d&&u>o+d||u<e-d&&u<n-d&&u<i-d&&u<o-d)return!1;var h=kt(e,t,n,r,i,a,o,s,u,c,null);return h<=d/2}function Mo(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;if(l>t+u&&l>r+u&&l>a+u||l<t-u&&l<r-u&&l<a-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=Et(e,t,n,r,i,a,s,l,null);return c<=u/2}var So=2*Math.PI;function To(e){return e%=So,e<0&&(e+=So),e}var ko=2*Math.PI;function Lo(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%ko<1e-4)return!0;if(a){var d=r;r=To(i),i=To(d)}else r=To(r),i=To(i);r>i&&(i+=ko);var h=Math.atan2(l,s);return h<0&&(h+=ko),h>=r&&h<=i||h+ko>=r&&h+ko<=i}function Oo(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r)return 0;if(r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;1!==o&&0!==o||(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var Do=bo.CMD,Ao=2*Math.PI,Io=1e-4;function Co(e,t){return Math.abs(e-t)<Io}var Eo=[-1,-1,-1],Po=[-1,-1];function Yo(){var e=Po[0];Po[0]=Po[1],Po[1]=e}function jo(e,t,n,r,i,a,o,s,l,u){if(u>t&&u>r&&u>a&&u>s||u<t&&u<r&&u<a&&u<s)return 0;var c=Mt(t,r,a,s,u,Eo);if(0===c)return 0;for(var d=0,h=-1,f=void 0,p=void 0,m=0;m<c;m++){var g=Eo[m],y=0===g||1===g?.5:1,v=xt(e,n,i,o,g);v<l||(h<0&&(h=St(t,r,a,s,Po),Po[1]<Po[0]&&h>1&&Yo(),f=xt(t,r,a,s,Po[0]),h>1&&(p=xt(t,r,a,s,Po[1]))),2===h?g<Po[0]?d+=f<t?y:-y:g<Po[1]?d+=p<f?y:-y:d+=s<p?y:-y:g<Po[0]?d+=f<t?y:-y:d+=s<f?y:-y)}return d}function No(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=At(t,r,a,s,Eo);if(0===l)return 0;var u=It(t,r,a);if(u>=0&&u<=1){for(var c=0,d=Ot(t,r,a,u),h=0;h<l;h++){var f=0===Eo[h]||1===Eo[h]?.5:1,p=Ot(e,n,i,Eo[h]);p<o||(Eo[h]<u?c+=d<t?f:-f:c+=a<d?f:-f)}return c}f=0===Eo[0]||1===Eo[0]?.5:1,p=Ot(e,n,i,Eo[0]);return p<o?0:a<t?f:-f}function Ro(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Eo[0]=-l,Eo[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ao-1e-4){r=0,i=Ao;var c=a?1:-1;return o>=Eo[0]+e&&o<=Eo[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Ao,i+=Ao);for(var h=0,f=0;f<2;f++){var p=Eo[f];if(p+e>o){var m=Math.atan2(s,p);c=a?1:-1;m<0&&(m=Ao+m),(m>=r&&m<=i||m+Ao>=r&&m+Ao<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Ho(e,t,n,r,i){for(var a,o,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,f=0,p=0;p<l;){var m=s[p++],g=1===p;switch(m===Do.M&&p>1&&(n||(u+=Oo(c,d,h,f,r,i))),g&&(c=s[p],d=s[p+1],h=c,f=d),m){case Do.M:h=s[p++],f=s[p++],c=h,d=f;break;case Do.L:if(n){if(xo(c,d,s[p],s[p+1],t,r,i))return!0}else u+=Oo(c,d,s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Do.C:if(n){if(wo(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=jo(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Do.Q:if(n){if(Mo(c,d,s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=No(c,d,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Do.A:var y=s[p++],v=s[p++],_=s[p++],b=s[p++],x=s[p++],w=s[p++];p+=1;var M=!!(1-s[p++]);a=Math.cos(x)*_+y,o=Math.sin(x)*b+v,g?(h=a,f=o):u+=Oo(c,d,a,o,r,i);var S=(r-y)*b/_+y;if(n){if(Lo(y,v,b,x,x+w,M,t,S,i))return!0}else u+=Ro(y,v,b,x,x+w,M,S,i);c=Math.cos(x+w)*_+y,d=Math.sin(x+w)*b+v;break;case Do.R:h=c=s[p++],f=d=s[p++];var T=s[p++],k=s[p++];if(a=h+T,o=f+k,n){if(xo(h,f,a,f,t,r,i)||xo(a,f,a,o,t,r,i)||xo(a,o,h,o,t,r,i)||xo(h,o,h,f,t,r,i))return!0}else u+=Oo(a,f,a,o,r,i),u+=Oo(h,o,h,f,r,i);break;case Do.Z:if(n){if(xo(c,d,h,f,t,r,i))return!0}else u+=Oo(c,d,h,f,r,i);c=h,d=f;break}}return n||Co(d,f)||(u+=Oo(c,d,h,f,r,i)||0),0!==u}function Fo(e,t,n){return Ho(e,0,!1,t,n)}function zo(e,t,n,r){return Ho(e,t,!0,n,r)}var Bo=Object(s["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Aa),Wo={style:Object(s["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ia.style)},Vo=Zn.concat(["invisible","culling","z","z2","zlevel","parent"]),Go=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Vo.length;++s)i[Vo[s]]=this[Vo[s]];i.__dirty|=$e}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(s["F"])(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];"style"===a?this.style?Object(s["m"])(this.style,o):this.useStyle(o):"shape"===a?Object(s["m"])(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(s["C"])(e)){var t=Object(Ht["e"])(e,0);return t>.5?Rn:t>.2?Fn:Hn}if(e)return Hn}return Rn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(s["C"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Ht["e"])(e,0)<Nn;if(r===i)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~et},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new bo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&et)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),zo(a,o/s,e,t)))return!0}if(this.hasFill())return Fo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=et,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(s["m"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&et)},t.prototype.createStyle=function(e){return Object(s["g"])(Bo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(s["m"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var l,u=!(n&&i);if(n&&n.shape?a?i?l=n.shape:(l=Object(s["m"])({},r.shape),Object(s["m"])(l,n.shape)):(l=Object(s["m"])({},i?this.shape:r.shape),Object(s["m"])(l,n.shape)):u&&(l=r.shape),l)if(a){this.shape=Object(s["m"])({},this.shape);for(var c={},d=Object(s["F"])(l),h=0;h<d.length;h++){var f=d[h];"object"===typeof l[f]?this.shape[f]=l[f]:c[f]=l[f]}this._transitionState(t,{shape:c},o)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return Wo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return u(n,t),n.prototype.getDefaultStyle=function(){return Object(s["d"])(e.style)},n.prototype.getDefaultShape=function(){return Object(s["d"])(e.shape)},n}(t);for(var r in e)"function"===typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=$e|Qe|et}(),t}(Ra),Uo=Go,qo=Object(s["i"])({strokeFirst:!0,font:Qn["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Bo),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(s["g"])(qo,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=rr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ra);Xo.prototype.type="tspan";var Zo=Xo,Ko=Object(s["i"])({x:0,y:0},Aa),Jo={style:Object(s["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ia.style)};function $o(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var Qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.createStyle=function(e){return Object(s["g"])(Ko,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=$o(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",a=t[i];return null==a?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Jo},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new De(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ra);Qo.prototype.type="image";var es=Qo;function ts(e,t){var n,r,i,a,o,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=r=i=a=d:d instanceof Array?1===d.length?n=r=i=a=d[0]:2===d.length?(n=i=d[0],r=a=d[1]):3===d.length?(n=d[0],r=a=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],a=d[3]):n=r=i=a=0,n+r>u&&(o=n+r,n*=u/o,r*=u/o),i+a>u&&(o=i+a,i*=u/o,a*=u/o),r+i>c&&(o=r+i,r*=c/o,i*=c/o),n+a>c&&(o=n+a,n*=c/o,a*=c/o),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+a,l+c),0!==a&&e.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ns=Math.round;function rs(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(ns(2*r)===ns(2*i)&&(e.x1=e.x2=as(r,s,!0)),ns(2*a)===ns(2*o)&&(e.y1=e.y2=as(a,s,!0)),e):e}}function is(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=as(r,s,!0),e.y=as(i,s,!0),e.width=Math.max(as(r+a,s,!1)-e.x,0===a?0:1),e.height=Math.max(as(i+o,s,!1)-e.y,0===o?0:1),e):e}}function as(e,t,n){if(!t)return e;var r=ns(2*e);return(r+ns(t))%2===0?r/2:(r+(n?1:-1))/2}var os=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),ss={},ls=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultShape=function(){return new os},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=is(ss,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?ts(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Uo);ls.prototype.type="rect";var us=ls,cs={fill:"#000"},ds=2,hs={style:Object(s["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ia.style)},fs=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=cs,n.attr(t),n}return u(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,bs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new De(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||cs},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(s["m"])(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(s["F"])(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Object(s["m"])(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return hs},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||Qn["a"],n=e.padding,r=Ts(e),i=_a(r,e),a=ks(e),o=!!e.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,c=i.lines,d=i.lineHeight,h=this._defaultStyle;this.isTruncated=!!i.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||h.align||"left",g=e.verticalAlign||h.verticalAlign||"top",y=f,v=ar(p,i.contentHeight,g);if(a||n){var _=ir(f,l,m),b=ar(p,s,g);a&&this._renderBackground(e,e,_,b,l,s)}v+=d/2,n&&(y=Ss(f,m,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var x=0,w=!1,M=(Ms("fill"in e?e.fill:(w=!0,h.fill))),S=(ws("stroke"in e?e.stroke:o||h.autoStroke&&!w?null:(x=ds,h.stroke))),T=e.textShadowBlur>0,k=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),L=i.calculatedLineHeight,O=0;O<c.length;O++){var D=this._getOrCreateChild(Zo),A=D.createStyle();D.useStyle(A),A.text=c[O],A.x=y,A.y=v,m&&(A.textAlign=m),A.textBaseline="middle",A.opacity=e.opacity,A.strokeFirst=!0,T&&(A.shadowBlur=e.textShadowBlur||0,A.shadowColor=e.textShadowColor||"transparent",A.shadowOffsetX=e.textShadowOffsetX||0,A.shadowOffsetY=e.textShadowOffsetY||0),A.stroke=S,A.fill=M,S&&(A.lineWidth=e.lineWidth||x,A.lineDash=e.lineDash,A.lineDashOffset=e.lineDashOffset||0),A.font=t,vs(A,e),v+=d,k&&D.setBoundingRect(new De(ir(A.x,u,A.textAlign),ar(A.y,L,A.textBaseline),u,L))}},t.prototype._updateRichTexts=function(){var e=this.style,t=Ts(e),n=Ma(t,e),r=n.width,i=n.outerWidth,a=n.outerHeight,o=e.padding,s=e.x||0,l=e.y||0,u=this._defaultStyle,c=e.align||u.align,d=e.verticalAlign||u.verticalAlign;this.isTruncated=!!n.isTruncated;var h=ir(s,i,c),f=ar(l,a,d),p=h,m=f;o&&(p+=o[3],m+=o[0]);var g=p+r;ks(e)&&this._renderBackground(e,e,h,f,i,a);for(var y=!!e.backgroundColor,v=0;v<n.lines.length;v++){var _=n.lines[v],b=_.tokens,x=b.length,w=_.lineHeight,M=_.width,S=0,T=p,k=g,L=x-1,O=void 0;while(S<x&&(O=b[S],!O.align||"left"===O.align))this._placeToken(O,e,w,m,T,"left",y),M-=O.width,T+=O.width,S++;while(L>=0&&(O=b[L],"right"===O.align))this._placeToken(O,e,w,m,k,"right",y),M-=O.width,k-=O.width,L--;T+=(r-(T-p)-(g-k)-M)/2;while(S<=L)O=b[S],this._placeToken(O,e,w,m,T+O.width/2,"center",y),T+=O.width,S++;m+=w}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var l=t.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,c=r+n/2;"top"===u?c=r+e.height/2:"bottom"===u&&(c=r+n-e.height/2);var d=!e.isLineHolder&&ks(l);d&&this._renderBackground(l,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,c-e.height/2,e.width,e.height);var h=!!l.backgroundColor,f=e.textPadding;f&&(i=Ss(i,a,f),c-=e.height/2-f[0]-e.innerHeight/2);var p=this._getOrCreateChild(Zo),m=p.createStyle();p.useStyle(m);var g=this._defaultStyle,y=!1,v=0,_=Ms("fill"in l?l.fill:"fill"in t?t.fill:(y=!0,g.fill)),b=ws("stroke"in l?l.stroke:"stroke"in t?t.stroke:h||o||g.autoStroke&&!y?null:(v=ds,g.stroke)),x=l.textShadowBlur>0||t.textShadowBlur>0;m.text=e.text,m.x=i,m.y=c,x&&(m.shadowBlur=l.textShadowBlur||t.textShadowBlur||0,m.shadowColor=l.textShadowColor||t.textShadowColor||"transparent",m.shadowOffsetX=l.textShadowOffsetX||t.textShadowOffsetX||0,m.shadowOffsetY=l.textShadowOffsetY||t.textShadowOffsetY||0),m.textAlign=a,m.textBaseline="middle",m.font=e.font||Qn["a"],m.opacity=Object(s["Q"])(l.opacity,t.opacity,1),vs(m,l),b&&(m.lineWidth=Object(s["Q"])(l.lineWidth,t.lineWidth,v),m.lineDash=Object(s["P"])(l.lineDash,t.lineDash),m.lineDashOffset=t.lineDashOffset||0,m.stroke=b),_&&(m.fill=_);var w=e.contentWidth,M=e.contentHeight;p.setBoundingRect(new De(ir(m.x,w,m.textAlign),ar(m.y,M,m.textBaseline),w,M))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,h=u&&u.image,f=u&&!h,p=e.borderRadius,m=this;if(f||e.lineHeight||c&&d){o=this._getOrCreateChild(us),o.useStyle(o.createStyle()),o.style.fill=null;var g=o.shape;g.x=n,g.y=r,g.width=i,g.height=a,g.r=p,o.dirtyShape()}if(f){var y=o.style;y.fill=u||null,y.fillOpacity=Object(s["P"])(e.fillOpacity,1)}else if(h){l=this._getOrCreateChild(es),l.onload=function(){m.dirtyStyle()};var v=l.style;v.image=u.image,v.x=n,v.y=r,v.width=i,v.height=a}if(c&&d){y=o.style;y.lineWidth=c,y.stroke=d,y.strokeOpacity=Object(s["P"])(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(o||l).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=Object(s["Q"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return _s(e)&&(t=[e.fontStyle,e.fontWeight,ys(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(s["T"])(t)||e.textFont||e.font},t}(Ra),ps={left:!0,right:1,center:1},ms={top:1,bottom:1,middle:1},gs=["fontStyle","fontWeight","fontSize","fontFamily"];function ys(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?Qn["c"]+"px":e+"px":e}function vs(e,t){for(var n=0;n<gs.length;n++){var r=gs[n],i=t[r];null!=i&&(e[r]=i)}}function _s(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function bs(e){return xs(e),Object(s["k"])(e.rich,xs),e}function xs(e){if(e){e.font=fs.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||ps[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||ms[n]?n:"top";var r=e.padding;r&&(e.padding=Object(s["M"])(e.padding))}}function ws(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ms(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ss(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Ts(e){var t=e.text;return null!=t&&(t+=""),t}function ks(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ls=fs,Os=Ei(),Ds=function(e,t,n,r){if(r){var i=Os(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=Os(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"}))}},As=1,Is={},Cs=Ei(),Es=Ei(),Ps=0,Ys=1,js=2,Ns=["emphasis","blur","select"],Rs=["normal","emphasis","blur","select"],Hs=10,Fs=9,zs="highlight",Bs="downplay",Ws="select",Vs="unselect",Gs="toggleSelect";function Us(e){return null!=e&&"none"!==e}function qs(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Xs(e){qs(e,"emphasis",js)}function Zs(e){e.hoverState===js&&qs(e,"normal",Ps)}function Ks(e){qs(e,"blur",Ys)}function Js(e){e.hoverState===Ys&&qs(e,"normal",Ps)}function $s(e){e.selected=!0}function Qs(e){e.selected=!1}function el(e,t,n){t(e,n)}function tl(e,t,n){el(e,t,n),e.isGroup&&e.traverse((function(e){el(e,t,n)}))}function nl(e,t){switch(t){case"emphasis":e.hoverState=js;break;case"normal":e.hoverState=Ps;break;case"blur":e.hoverState=Ys;break;case"select":e.selected=!0}}function rl(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(a,t)}return a}function il(e,t,n,r){var i=n&&Object(s["r"])(n,"select")>=0,a=!1;if(e instanceof Uo){var o=Cs(e),l=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Us(l)||Us(u)){r=r||{};var c=r.style||{};"inherit"===c.fill?(a=!0,r=Object(s["m"])({},r),c=Object(s["m"])({},c),c.fill=l):!Us(c.fill)&&Us(l)?(a=!0,r=Object(s["m"])({},r),c=Object(s["m"])({},c),c.fill=Object(Ht["d"])(l)):!Us(c.stroke)&&Us(u)&&(a||(r=Object(s["m"])({},r),c=Object(s["m"])({},c)),c.stroke=Object(Ht["d"])(u)),r.style=c}}if(r&&null==r.z2){a||(r=Object(s["m"])({},r));var d=e.z2EmphasisLift;r.z2=e.z2+(null!=d?d:Hs)}return r}function al(e,t,n){if(n&&null==n.z2){n=Object(s["m"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:Fs)}return n}function ol(e,t,n){var r=Object(s["r"])(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:rl(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return null==o.opacity&&(n=Object(s["m"])({},n),o=Object(s["m"])({opacity:r?i:.1*a.opacity},o),n.style=o),n}function sl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return il(this,e,t,n);if("blur"===e)return ol(this,e,n);if("select"===e)return al(this,e,n)}return n}function ll(e){e.stateProxy=sl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sl),n&&(n.stateProxy=sl)}function ul(e,t){!yl(e,t)&&!e.__highByOuter&&tl(e,Xs)}function cl(e,t){!yl(e,t)&&!e.__highByOuter&&tl(e,Zs)}function dl(e,t){e.__highByOuter|=1<<(t||0),tl(e,Xs)}function hl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&tl(e,Zs)}function fl(e){tl(e,Ks)}function pl(e){tl(e,Js)}function ml(e){tl(e,$s)}function gl(e){tl(e,Qs)}function yl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vl(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var a=Es(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse((function(e){Js(e)})),o&&n.push(i)),a.isBlured=!1})),Object(s["k"])(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function _l(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&pl(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var o=i.getSeriesByIndex(e),l=o.coordinateSystem;l&&l.master&&(l=l.master);var u=[];i.eachSeries((function(e){var i=o===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&l?c===l:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!d||"series"===t&&i)){var h=r.getViewOfSeriesModel(e);if(h.group.traverse((function(e){e.__highByOuter&&i&&"self"===t||Ks(e)})),Object(s["u"])(t))a(e.getData(),t);else if(Object(s["A"])(t))for(var f=Object(s["F"])(t),p=0;p<f.length;p++)a(e.getData(f[p]),t[f[p]]);u.push(e),Es(e).isBlured=!0}})),i.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,i)}}))}}function bl(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){Es(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){Ks(e)}))}}}function xl(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Ci(i,t);a=(Object(s["t"])(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o){var l=i.count(),u=0;while(!o&&u<l)o=i.getItemGraphicEl(u++)}if(o){var c=Os(o);_l(r,c.focus,c.blurScope,n)}else{var d=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);null!=d&&_l(r,d,h,n)}}}function wl(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s,l=o.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Os(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Ml(e,t,n){var r=Os(e),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&bl(r.componentMainType,r.componentIndex,n),Object(s["k"])(a,(function(e){return ul(e,t)}))):(_l(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&bl(r.componentMainType,r.componentIndex,n),ul(e,t))}function Sl(e,t,n){vl(n);var r=Os(e),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(s["k"])(i,(function(e){return cl(e,t)})):cl(e,t)}function Tl(e,t,n){if(Hl(t)){var r=t.dataType,i=e.getData(r),a=Ci(i,t);Object(s["t"])(a)||(a=[a]),e[t.type===Gs?"toggleSelect":t.type===Ws?"select":"unselect"](a,r)}}function kl(e){var t=e.getAllData();Object(s["k"])(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?ml(t):gl(t)}))}))}function Ll(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(s["k"])(n,(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}}))})),t}function Ol(e,t,n){Yl(e,!0),tl(e,ll),Il(e,t,n)}function Dl(e){Yl(e,!1)}function Al(e,t,n,r){r?Dl(e):Ol(e,t,n)}function Il(e,t,n){var r=Os(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Cl=["emphasis","blur","select"],El={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pl(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Cl.length;i++){var a=Cl[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[El[n]]()}}function Yl(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function jl(e){return!(!e||!e.__highDownDispatcher)}function Nl(e,t,n){var r=Os(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Rl(e){var t=Is[e];return null==t&&As<=32&&(t=Is[e]=As++),t}function Hl(e){var t=e.type;return t===Ws||t===Vs||t===Gs}function Fl(e){var t=e.type;return t===zs||t===Bs}function zl(e){var t=Cs(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Bl=Ei();function Wl(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var l=t&&t.isAnimationEnabled(),u="update"===e;if(l){var c=void 0,d=void 0,h=void 0;r?(c=Object(s["P"])(r.duration,200),d=Object(s["P"])(r.easing,"cubicOut"),h=0):(c=t.getShallow(u?"animationDurationUpdate":"animationDuration"),d=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(d=a.easing),null!=a.delay&&(h=a.delay)),Object(s["w"])(h)&&(h=h(n,i)),Object(s["w"])(c)&&(c=c(n));var f={duration:c||0,delay:h,easing:d};return f}return null}function Vl(e,t,n,r,i,a,o){var l,u=!1;Object(s["w"])(i)?(o=a,a=i,i=null):Object(s["A"])(i)&&(a=i.cb,o=i.during,u=i.isFrom,l=i.removeOpt,i=i.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var d=Wl(e,r,i,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(d&&d.duration>0){var h=d.duration,f=d.delay,p=d.easing,m={duration:h,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};u?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!u&&t.attr(n),o&&o(1),a&&a()}function Gl(e,t,n,r,i,a){Vl("update",e,t,n,r,i,a)}function Ul(e,t,n,r,i,a){Vl("enter",e,t,n,r,i,a)}function ql(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function Xl(e,t,n,r,i,a){ql(e)||Vl("leave",e,t,n,r,i,a)}function Zl(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Xl(e,{style:{opacity:0}},t,n,r)}function Kl(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||Zl(e,t,n,r)})):Zl(e,t,n,r)}function Jl(e){Bl(e).oldStyle=e.style}function $l(e){return Bl(e).oldStyle}var Ql={};function eu(e,t){for(var n=0;n<Ns.length;n++){var r=Ns[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function tu(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,l=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(s["w"])(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var u={normal:r},c=0;c<Ns.length;c++){var d=Ns[c],h=t[d];u[d]=Object(s["P"])(i?i.getFormattedLabel(a,d,null,o,h&&h.get("formatter")):null,r)}return u}function nu(e,t,n,r){n=n||Ql;for(var i=e instanceof Ls,a=!1,o=0;o<Rs.length;o++){var l=t[Rs[o]];if(l&&l.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new Ls,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var c=tu(n,t),d=t.normal,h=!!d.getShallow("show"),f=iu(d,r&&r.normal,n,!1,!i);f.text=c.normal,i||e.setTextConfig(au(d,n,!1));for(o=0;o<Ns.length;o++){var p=Ns[o];l=t[p];if(l){var m=u.ensureState(p),g=!!Object(s["P"])(l.getShallow("show"),h);if(g!==h&&(m.ignore=!g),m.style=iu(l,r&&r[p],n,!0,!i),m.style.text=c[p],!i){var y=e.ensureState(p);y.textConfig=au(l,n,!0)}}}u.silent=!!d.getShallow("silent"),null!=u.style.x&&(f.x=u.style.x),null!=u.style.y&&(f.y=u.style.y),u.ignore=!h,u.useStyle(f),u.dirty(),n.enableTextSetter&&(fu(u).setLabelText=function(e){var r=tu(n,t,e);eu(u,r)})}else u&&(u.ignore=!0);e.dirty()}function ru(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Ns.length;r++){var i=Ns[r];n[i]=e.getModel([i,t])}return n}function iu(e,t,n,r,i){var a={};return ou(a,e,n,r,i),t&&Object(s["m"])(a,t),a}function au(e,t,n){t=t||{};var r,i={},a=e.getShallow("rotate"),o=Object(s["P"])(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=l&&(i.offset=l),null!=a&&(a*=Math.PI/180,i.rotation=a),null!=o&&(i.distance=o),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}function ou(e,t,n,r,i){n=n||Ql;var a,o=t.ecModel,s=o&&o.option.textStyle,l=su(t);if(l)for(var u in a={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);du(a[u]={},c,s,n,r,i,!1,!0)}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),du(e,t,s,n,r,i,!0,!1)}function su(e){var t;while(e&&e!==e.ecModel){var n=(e.option||Ql).rich;if(n){t=t||{};for(var r=Object(s["F"])(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var lu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],uu=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function du(e,t,n,r,i,a,o,l){n=!i&&n||Ql;var u=r&&r.inheritColor,c=t.getShallow("color"),d=t.getShallow("textBorderColor"),h=Object(s["P"])(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=u||null),"inherit"!==d&&"auto"!==d||(d=u||null),a||(c=c||n.color,d=d||n.textBorderColor),null!=c&&(e.fill=c),null!=d&&(e.stroke=d);var f=Object(s["P"])(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(e.lineWidth=f);var p=Object(s["P"])(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var m=Object(s["P"])(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(e.lineDashOffset=m),i||null!=h||l||(h=r&&r.defaultOpacity),null!=h&&(e.opacity=h),i||a||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<lu.length;g++){var y=lu[g],v=Object(s["P"])(t.getShallow(y),n[y]);null!=v&&(e[y]=v)}for(g=0;g<uu.length;g++){y=uu[g],v=t.getShallow(y);null!=v&&(e[y]=v)}if(null==e.verticalAlign){var _=t.getShallow("baseline");null!=_&&(e.verticalAlign=_)}if(!o||!r.disableBox){for(g=0;g<cu.length;g++){y=cu[g],v=t.getShallow(y);null!=v&&(e[y]=v)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!u||(e.backgroundColor=u),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!u||(e.borderColor=u)}}function hu(e,t){var n=t&&t.getModel("textStyle");return Object(s["T"])([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var fu=Ei();function pu(e,t,n,r){if(e){var i=fu(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function mu(e,t,n,r,i){var a=fu(e);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,l=Object(s["P"])(a.interpolatedValue,a.prevValue),u=a.value;e.percent=0,(null==a.prevValue?Ul:Gl)(e,{percent:1},r,t,null,c)}function c(r){var s=Vi(n,a.precision,l,u,r);a.interpolatedValue=1===r?null:s;var c=tu({labelDataIndex:t,labelFetcher:i,defaultText:o?o(s):s+""},a.statesModels,s);eu(e,c)}}var gu=["textStyle","color"],yu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vu=new Ls,_u=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(gu):null)},e.prototype.getFont=function(){return hu({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<yu.length;n++)t[yu[n]]=this.getShallow(yu[n]);return vu.useStyle(t),vu.update(),vu.getBoundingRect()},e}(),bu=_u,xu=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],wu=aa(xu),Mu=function(){function e(){}return e.prototype.getLineStyle=function(e){return wu(this,e)},e}(),Su=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Tu=aa(Su),ku=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Tu(this,e,t)},e}(),Lu=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Object(s["I"])(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Object(s["d"])(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!o["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]&&(n=n&&"object"===typeof n?n[e[r]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Ji(Lu),ta(Lu),Object(s["K"])(Lu,Mu),Object(s["K"])(Lu,ku),Object(s["K"])(Lu,la),Object(s["K"])(Lu,bu);var Ou=Lu,Du=Math.round(10*Math.random());function Au(e){return[e||"",Du++].join("_")}function Iu(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Xi(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Xi(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Cu(e,t){function n(e){var n={},a=[];return s["k"](e,(function(o){var l=r(n,o),u=l.originalDeps=t(o),c=i(u,e);l.entryCount=c.length,0===l.entryCount&&a.push(o),s["k"](c,(function(e){s["r"](l.predecessor,e)<0&&l.predecessor.push(e);var t=r(n,e);s["r"](t.successor,e)<0&&t.successor.push(o)}))})),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return s["k"](e,(function(e){s["r"](t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,i){if(e.length){var a=n(t),o=a.graph,l=a.noEntryList,u={};s["k"](e,(function(e){u[e]=!0}));while(l.length){var c=l.pop(),d=o[c],h=!!u[c];h&&(r.call(i,c,d.originalDeps.slice()),delete u[c]),s["k"](d.successor,h?p:f)}s["k"](u,(function(){var e="";throw new Error(e)}))}function f(e){o[e].entryCount--,0===o[e].entryCount&&l.push(e)}function p(e){u[e]=!0,f(e)}}}function Eu(e,t){return s["I"](s["I"]({},e,!0),t,!0)}var Pu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Yu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}},ju="ZH",Nu="EN",Ru=Nu,Hu={},Fu={},zu=o["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ru).toUpperCase();return e.indexOf(ju)>-1?ju:Ru}():Ru;function Bu(e,t){e=e.toUpperCase(),Fu[e]=new Ou(t),Hu[e]=t}function Wu(e){if(Object(s["C"])(e)){var t=Hu[e.toUpperCase()]||{};return e===ju||e===Nu?Object(s["d"])(t):Object(s["I"])(Object(s["d"])(t),Object(s["d"])(Hu[Ru]),!1)}return Object(s["I"])(Object(s["d"])(e),Object(s["d"])(Hu[Ru]),!1)}function Vu(e){return Fu[e]}function Gu(){return Fu[Ru]}Bu(Nu,Pu),Bu(ju,Yu);var Uu=1e3,qu=60*Uu,Xu=60*qu,Zu=24*Xu,Ku=365*Zu,Ju={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$u="{yyyy}-{MM}-{dd}",Qu={year:"{yyyy}",month:"{yyyy}-{MM}",day:$u,hour:$u+" "+Ju.hour,minute:$u+" "+Ju.minute,second:$u+" "+Ju.second,millisecond:Ju.none},ec=["year","month","day","hour","minute","second","millisecond"],tc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function nc(e,t){return e+="","0000".substr(0,t-e.length)+e}function rc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ic(e){return e===rc(e)}function ac(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oc(e,t,n,r){var i=Jr(e),a=i[cc(n)](),o=i[dc(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[hc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[fc(n)](),d=(c-1)%12+1,h=i[pc(n)](),f=i[mc(n)](),p=i[gc(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),y=r instanceof Ou?r:Vu(r||zu)||Gu(),v=y.getModel("time"),_=v.get("month"),b=v.get("monthAbbr"),x=v.get("dayOfWeek"),w=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,nc(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,nc(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,nc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,nc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,nc(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,nc(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,nc(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,nc(p,3)).replace(/{S}/g,p+"")}function sc(e,t,n,r,i){var a=null;if(s["C"](n))a=n;else if(s["w"](n))a=n(e.value,t,{level:e.level});else{var o=s["m"]({},Ju);if(e.level>0)for(var l=0;l<ec.length;++l)o[ec[l]]="{primary|"+o[ec[l]]+"}";var u=n?!1===n.inherit?n:s["i"](n,o):o,c=lc(e.value,i);if(u[c])a=u[c];else if(u.inherit){var d=tc.indexOf(c);for(l=d-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||o.none}if(s["t"](a)){var h=null==e.level?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return oc(new Date(e.value),a,i,r)}function lc(e,t){var n=Jr(e),r=n[dc(t)]()+1,i=n[hc(t)](),a=n[fc(t)](),o=n[pc(t)](),s=n[mc(t)](),l=n[gc(t)](),u=0===l,c=u&&0===s,d=c&&0===o,h=d&&0===a,f=h&&1===i,p=f&&1===r;return p?"year":f?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function uc(e,t,n){var r=s["z"](e)?Jr(e):e;switch(t=t||lc(e,n),t){case"year":return r[cc(n)]();case"half-year":return r[dc(n)]()>=6?1:0;case"quarter":return Math.floor((r[dc(n)]()+1)/4);case"month":return r[dc(n)]();case"day":return r[hc(n)]();case"half-day":return r[fc(n)]()/24;case"hour":return r[fc(n)]();case"minute":return r[pc(n)]();case"second":return r[mc(n)]();case"millisecond":return r[gc(n)]()}}function cc(e){return e?"getUTCFullYear":"getFullYear"}function dc(e){return e?"getUTCMonth":"getMonth"}function hc(e){return e?"getUTCDate":"getDate"}function fc(e){return e?"getUTCHours":"getHours"}function pc(e){return e?"getUTCMinutes":"getMinutes"}function mc(e){return e?"getUTCSeconds":"getSeconds"}function gc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function yc(e){return e?"setUTCFullYear":"setFullYear"}function vc(e){return e?"setUTCMonth":"setMonth"}function _c(e){return e?"setUTCDate":"setDate"}function bc(e){return e?"setUTCHours":"setHours"}function xc(e){return e?"setUTCMinutes":"setMinutes"}function wc(e){return e?"setUTCSeconds":"setSeconds"}function Mc(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Sc(e){if(!ii(e))return s["C"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Tc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var kc=s["M"];function Lc(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(e){return e&&s["T"](e)?e:"-"}function a(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,l=e instanceof Date;if(o||l){var u=o?Jr(e):e;if(!isNaN(+u))return oc(u,r,n);if(l)return"-"}if("ordinal"===t)return s["D"](e)?i(e):s["z"](e)&&a(e)?e+"":"-";var c=ri(e);return a(c)?Sc(c):s["D"](e)?i(e):"boolean"===typeof e?e+"":"-"}var Oc=["a","b","c","d","e","f","g"],Dc=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Ac(e,t,n){s["t"](t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Oc[a];e=e.replace(Dc(o),Dc(o,0))}for(var l=0;l<r;l++)for(var u=0;u<i.length;u++){var c=t[l][i[u]];e=e.replace(Dc(Oc[u],l),n?U(c):c)}return e}function Ic(e,t,n){return s["k"](t,(function(t,r){e=e.replace("{"+r+"}",n?U(t):t)})),e}function Cc(e,t){var n=s["C"](e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||"html";if(!r)return"";if("html"===a)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+U(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+U(r)+";"+(t||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Ec(e,t){return t=t||"transparent",s["C"](e)?e:s["A"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Pc(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Yc=s["k"],jc=["left","right","top","bottom","width","height"],Nc=[["width","left","right"],["height","top","bottom"]];function Rc(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,d,h=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===e){var m=h.width+(p?-p.x+h.x:0);c=a+m,c>r||l.newline?(a=0,c=m,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(p?-p.y+h.y:0);d=o+g,d>i||l.newline?(a+=s+n,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)}))}var Hc=Rc;s["h"](Rc,"vertical"),s["h"](Rc,"horizontal");function Fc(e,t,n){var r=t.width,i=t.height,a=Hr(e.left,r),o=Hr(e.top,i),s=Hr(e.right,r),l=Hr(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),n=kc(n||0),{width:Math.max(s-a-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function zc(e,t,n){n=kc(n||0);var r=t.width,i=t.height,a=Hr(e.left,r),o=Hr(e.top,i),s=Hr(e.right,r),l=Hr(e.bottom,i),u=Hr(e.width,r),c=Hr(e.height,i),d=n[2]+n[0],h=n[1]+n[3],f=e.aspect;switch(isNaN(u)&&(u=r-s-h-a),isNaN(c)&&(c=i-l-d-o),null!=f&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(a)&&(a=r-s-u-h),isNaN(o)&&(o=i-l-c-d),e.left||e.right){case"center":a=r/2-u/2-n[3];break;case"right":a=r-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-n[0];break;case"bottom":o=i-c-d;break}a=a||0,o=o||0,isNaN(u)&&(u=r-h-a-(s||0)),isNaN(c)&&(c=i-d-o-(l||0));var p=new De(a+n[3],o+n[0],u,c);return p.margin=n,p}function Bc(e,t,n,r,i,a){var o,l=!i||!i.hv||i.hv[0],u=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!l&&!u)return!1;if("raw"===c)o="group"===e.type?new De(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();o=o.clone(),o.applyTransform(d)}var h=zc(s["i"]({width:o.width,height:o.height},t),n,r),f=l?h.x-o.x:0,p=u?h.y-o.y:0;return"raw"===c?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Wc(e,t){return null!=e[Nc[t][0]]||null!=e[Nc[t][1]]&&null!=e[Nc[t][2]]}function Vc(e){var t=e.layoutMode||e.constructor.layoutMode;return s["A"](t)?t:t?{type:t}:null}function Gc(e,t,n){var r=n&&n.ignoreSize;!s["t"](r)&&(r=[r,r]);var i=o(Nc[0],0),a=o(Nc[1],1);function o(n,i){var a={},o=0,s={},c=0,d=2;if(Yc(n,(function(t){s[t]=e[t]})),Yc(n,(function(e){l(t,e)&&(a[e]=s[e]=t[e]),u(a,e)&&o++,u(s,e)&&c++})),r[i])return u(t,n[1])?s[n[2]]=null:u(t,n[2])&&(s[n[1]]=null),s;if(c!==d&&o){if(o>=d)return a;for(var h=0;h<n.length;h++){var f=n[h];if(!l(a,f)&&l(e,f)){a[f]=e[f];break}}return a}return s}function l(e,t){return e.hasOwnProperty(t)}function u(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){Yc(e,(function(e){t[e]=n[e]}))}c(Nc[0],e,i),c(Nc[1],e,a)}function Uc(e){return qc({},e)}function qc(e,t){return t&&e&&Yc(jc,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var Xc=Ei(),Zc=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Au("ec_cpt_model"),i}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vc(this),r=n?Uc(e):{},i=t.getTheme();s["I"](e,i.get(this.mainType)),s["I"](e,this.getDefaultOption()),n&&Gc(e,r,n)},t.prototype.mergeOption=function(e,t){s["I"](this.option,e,!0);var n=Vc(this);n&&Gc(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ki(e))return e.defaultOption;var t=Xc(this);if(!t.defaultOption){var n=[],r=e;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=s["I"](a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Hi(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ou);function Kc(e){var t=[];return s["k"](Zc.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=s["H"](t,(function(e){return Xi(e).main})),"dataset"!==e&&s["r"](t,"dataset")<=0&&t.unshift("dataset"),t}Qi(Zc,Ou),ia(Zc),Iu(Zc),Cu(Zc,Kc);var Jc=Zc,$c="";"undefined"!==typeof navigator&&($c=navigator.platform||"");var Qc="rgba(0, 0, 0, 0.2)",ed={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Qc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$c.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},td=Object(s["f"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),nd="original",rd="arrayRows",id="objectRows",ad="keyedColumns",od="typedArray",sd="unknown",ld="column",ud="row",cd={Must:1,Might:2,Not:3},dd=Ei();function hd(e){dd(e).datasetMap=Object(s["f"])()}function fd(e,t,n){var r={},i=md(t);if(!i||!e)return r;var a,o,l=[],u=[],c=t.ecModel,d=dd(c).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(s["k"])(e,(function(t,n){var i=Object(s["A"])(t)?t:e[n]={name:t};"ordinal"===i.type&&null==a&&(a=n,o=m(i)),r[i.name]=[]}));var f=d.get(h)||d.set(h,{categoryWayDim:o,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return Object(s["k"])(e,(function(e,t){var n=e.name,i=m(e);if(null==a){var o=f.valueWayDim;p(r[n],o,i),p(u,o,i),f.valueWayDim+=i}else if(a===t)p(r[n],0,i),p(l,0,i);else{o=f.categoryWayDim;p(r[n],o,i),p(u,o,i),f.categoryWayDim+=i}})),l.length&&(r.itemName=l),u.length&&(r.seriesName=u),r}function pd(e,t,n){var r={},i=md(e);if(!i)return r;var a,o=t.sourceFormat,l=t.dimensionsDefine;o!==id&&o!==ad||Object(s["k"])(l,(function(e,t){"name"===(Object(s["A"])(e)?e.name:e)&&(a=t)}));var u=function(){for(var e={},r={},i=[],s=0,u=Math.min(5,n);s<u;s++){var c=vd(t.data,o,t.seriesLayoutBy,l,t.startIndex,s);i.push(c);var d=c===cd.Not;if(d&&null==e.v&&s!==a&&(e.v=s),(null==e.n||e.n===e.v||!d&&i[e.n]===cd.Not)&&(e.n=s),h(e)&&i[e.n]!==cd.Not)return e;d||(c===cd.Might&&null==r.v&&s!==a&&(r.v=s),null!=r.n&&r.n!==r.v||(r.n=s))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(r)?r:null}();if(u){r.value=[u.v];var c=null!=a?a:u.n;r.itemName=[c],r.seriesName=[c]}return r}function md(e){var t=e.get("data",!0);if(!t)return Hi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ni).models[0]}function gd(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Hi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ni).models:[]}function yd(e,t){return vd(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function vd(e,t,n,r,i,a){var o,l,u,c=5;if(Object(s["E"])(e))return cd.Not;if(r){var d=r[a];Object(s["A"])(d)?(l=d.name,u=d.type):Object(s["C"])(d)&&(l=d)}if(null!=u)return"ordinal"===u?cd.Must:cd.Not;if(t===rd){var h=e;if(n===ud){for(var f=h[a],p=0;p<(f||[]).length&&p<c;p++)if(null!=(o=x(f[i+p])))return o}else for(p=0;p<h.length&&p<c;p++){var m=h[i+p];if(m&&null!=(o=x(m[a])))return o}}else if(t===id){var g=e;if(!l)return cd.Not;for(p=0;p<g.length&&p<c;p++){var y=g[p];if(y&&null!=(o=x(y[l])))return o}}else if(t===ad){var v=e;if(!l)return cd.Not;f=v[l];if(!f||Object(s["E"])(f))return cd.Not;for(p=0;p<f.length&&p<c;p++)if(null!=(o=x(f[p])))return o}else if(t===nd){var _=e;for(p=0;p<_.length&&p<c;p++){y=_[p];var b=pi(y);if(!Object(s["t"])(b))return cd.Not;if(null!=(o=x(b[a])))return o}}function x(e){var t=Object(s["C"])(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?cd.Might:cd.Not:t&&"-"!==e?cd.Must:void 0}return cd.Not}var _d=Object(s["f"])();function bd(e,t){Object(s["b"])(null==_d.get(e)&&t),_d.set(e,t)}function xd(e,t,n){var r=_d.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var wd=Ei(),Md=Ei(),Sd=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=di(this.get("color",!0)),i=this.get("colorLayer",!0);return Ld(this,wd,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Od(this,wd)},e}();function Td(e,t,n,r){var i=di(e.get(["aria","decal","decals"]));return Ld(e,Md,i,null,t,n,r)}function kd(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Ld(e,t,n,r,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?kd(r,o):n;if(c=c||n,c&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}function Od(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Dd,Ad,Id;"undefined"!==typeof console&&console.warn&&console.log;function Cd(e){0}function Ed(e){throw new Error(e)}var Pd="\0_ec_inner",Yd=1;var jd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new Ou(r),this._locale=new Ou(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=zd(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,zd(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Id(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&Object(s["k"])(o,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Object(s["f"])(),l=t&&t.replaceMergeMainTypeMap;function u(t){var a=xd(this,t,di(e[t])),o=r.get(t),u=o?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=gi(o,a,u);Di(c,t,Jc),n[t]=null,r.set(t,null),i.set(t,0);var d,h=[],f=[],p=0;Object(s["k"])(c,(function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=Jc.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(d)return void 0;d=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var l=Object(s["m"])({componentIndex:n},e.keyInfo);r=new o(i,this,this,l),Object(s["m"])(r,l),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),p++):(h.push(void 0),f.push(void 0))}),this),n[t]=h,r.set(t,f),i.set(t,p),"series"===t&&Dd(this)}hd(this),Object(s["k"])(e,(function(e,t){null!=e&&(Jc.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?Object(s["d"])(e):Object(s["I"])(n[t],e,!0))})),l&&l.each((function(e,t){Jc.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))})),Jc.topologicalTravel(a,Jc.getAllClassMainTypes(),u,this),this._seriesIndices||Dd(this)},t.prototype.getOption=function(){var e=Object(s["d"])(this.option);return Object(s["k"])(e,(function(t,n){if(Jc.hasClass(n)){for(var r=di(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Li(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}})),delete e[Pd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(t);return o&&o.length?(null!=r?(n=[],Object(s["k"])(di(r),(function(e){o[e]&&n.push(o[e])}))):n=null!=i?Hd("id",i,o):null!=a?Hd("name",a,o):Object(s["n"])(o,(function(e){return!!e})),Fd(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=a(t),i=r?this.queryComponents(r):Object(s["n"])(this._componentsMap.get(n),(function(e){return!!e}));return o(Fd(i,e));function a(e){var t=n+"Index",r=n+"Id",i=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[i]?null:{mainType:n,index:e[t],id:e[r],name:e[i]}}function o(t){return e.filter?Object(s["n"])(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(s["w"])(e)){var i=t,a=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}}))}else for(var o=Object(s["C"])(e)?r.get(e):Object(s["A"])(e)?this.findComponents(e):null,l=0;o&&l<o.length;l++){var u=o[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ti(e,null);return Object(s["n"])(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(s["n"])(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(s["n"])(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Ad(this),Object(s["k"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(s["k"])(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Ad(this),Object(s["k"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(s["k"])(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Ad(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Ad(this);var n=[];Object(s["k"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(s["f"])(n)},t.prototype.restoreData=function(e){Dd(this);var t=this._componentsMap,n=[];t.each((function(e,t){Jc.hasClass(t)&&n.push(t)})),Jc.topologicalTravel(n,Jc.getAllClassMainTypes(),(function(n){Object(s["k"])(t.get(n),(function(t){!t||"series"===n&&Nd(t,e)||t.restoreData()}))}))},t.internalField=function(){Dd=function(e){var t=e._seriesIndices=[];Object(s["k"])(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(s["f"])(t)},Ad=function(e){0},Id=function(e,t){e.option={},e.option[Pd]=Yd,e._componentsMap=Object(s["f"])({series:[]}),e._componentsCount=Object(s["f"])();var n=t.aria;Object(s["A"])(n)&&null==n.enabled&&(n.enabled=!0),Rd(t,e._theme.option),Object(s["I"])(t,ed,!1),e._mergeOption(t,null)}}(),t}(Ou);function Nd(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}function Rd(e,t){var n=e.color&&!e.colorLayer;Object(s["k"])(t,(function(t,r){"colorLayer"===r&&n||Jc.hasClass(r)||("object"===typeof t?e[r]=e[r]?Object(s["I"])(e[r],t,!1):Object(s["d"])(t):null==e[r]&&(e[r]=t))}))}function Hd(e,t,n){if(Object(s["t"])(t)){var r=Object(s["f"])();return Object(s["k"])(t,(function(e){if(null!=e){var t=Ti(e,null);null!=t&&r.set(e,!0)}})),Object(s["n"])(n,(function(t){return t&&r.get(t[e])}))}var i=Ti(t,null);return Object(s["n"])(n,(function(t){return t&&null!=i&&t[e]===i}))}function Fd(e,t){return t.hasOwnProperty("subType")?Object(s["n"])(e,(function(e){return e&&e.subType===t.subType})):e}function zd(e){var t=Object(s["f"])();return e&&Object(s["k"])(di(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(s["K"])(jd,Sd);var Bd=jd,Wd=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Vd=function(){function e(e){s["k"](Wd,(function(t){this[t]=s["c"](e[t],e)}),this)}return e}(),Gd=Vd,Ud={},qd=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];s["k"](Ud,(function(r,i){var a=r.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){s["k"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Ud[e]=t},e.get=function(e){return Ud[e]},e}(),Xd=qd,Zd=/^(min|max)?(.+)$/,Kd=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(s["k"])(di(e.series),(function(e){e&&e.data&&Object(s["E"])(e.data)&&Object(s["R"])(e.data)})),Object(s["k"])(di(e.dataset),(function(e){e&&e.source&&Object(s["E"])(e.source)&&Object(s["R"])(e.source)}))),e=Object(s["d"])(e);var r=this._optionBackup,i=Jd(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(s["d"])(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=Object(s["d"])(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var l=0,u=r.length;l<u;l++)$d(r[l].query,t,n)&&a.push(l);return!a.length&&i&&(a=[-1]),a.length&&!eh(a,this._currentMediaIndices)&&(o=Object(s["H"])(a,(function(e){return Object(s["d"])(-1===e?i.option:r[e].option)}))),this._currentMediaIndices=a,o},e}();function Jd(e,t,n){var r,i,a=[],o=e.baseOption,l=e.timeline,u=e.options,c=e.media,d=!!e.media,h=!!(u||l||o&&o.timeline);function f(e){Object(s["k"])(t,(function(t){t(e,n)}))}return o?(i=o,i.timeline||(i.timeline=l)):((h||d)&&(e.options=e.media=null),i=e),d&&Object(s["t"])(c)&&Object(s["k"])(c,(function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))})),f(i),Object(s["k"])(u,(function(e){return f(e)})),Object(s["k"])(a,(function(e){return f(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function $d(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Object(s["k"])(e,(function(e,t){var n=t.match(Zd);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();Qd(r[o],e,a)||(i=!1)}})),i}function Qd(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function eh(e,t){return e.join(",")===t.join(",")}var th=Kd,nh=s["k"],rh=s["A"],ih=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ah(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=ih.length;n<r;n++){var i=ih[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?s["I"](e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?s["I"](e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function oh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,s["i"](e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function sh(e){oh(e,"itemStyle"),oh(e,"lineStyle"),oh(e,"areaStyle"),oh(e,"label"),oh(e,"labelLine"),oh(e,"upperLabel"),oh(e,"edgeLabel")}function lh(e,t){var n=rh(e)&&e[t],r=rh(n)&&n.textStyle;if(r){0;for(var i=0,a=fi.length;i<a;i++){var o=fi[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function uh(e){e&&(sh(e),lh(e,"label"),e.emphasis&&lh(e.emphasis,"label"))}function ch(e){if(rh(e)){ah(e),sh(e),lh(e,"label"),lh(e,"upperLabel"),lh(e,"edgeLabel"),e.emphasis&&(lh(e.emphasis,"label"),lh(e.emphasis,"upperLabel"),lh(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ah(t),uh(t));var n=e.markLine;n&&(ah(n),uh(n));var r=e.markArea;r&&uh(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!s["E"](a))for(var o=0;o<a.length;o++)uh(a[o]);s["k"](e.categories,(function(e){sh(e)}))}if(i&&!s["E"](i))for(o=0;o<i.length;o++)uh(i[o]);if(t=e.markPoint,t&&t.data){var l=t.data;for(o=0;o<l.length;o++)uh(l[o])}if(n=e.markLine,n&&n.data){var u=n.data;for(o=0;o<u.length;o++)s["t"](u[o])?(uh(u[o][0]),uh(u[o][1])):uh(u[o])}"gauge"===e.type?(lh(e,"axisLabel"),lh(e,"title"),lh(e,"detail")):"treemap"===e.type?(oh(e.breadcrumb,"itemStyle"),s["k"](e.levels,(function(e){sh(e)}))):"tree"===e.type&&sh(e.leaves)}}function dh(e){return s["t"](e)?e:e?[e]:[]}function hh(e){return(s["t"](e)?e[0]:e)||{}}function fh(e,t){nh(dh(e.series),(function(e){rh(e)&&ch(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nh(n,(function(t){nh(dh(e[t]),(function(e){e&&(lh(e,"axisLabel"),lh(e.axisPointer,"label"))}))})),nh(dh(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;lh(t,"axisLabel"),lh(t&&t.axisPointer,"label")})),nh(dh(e.calendar),(function(e){oh(e,"itemStyle"),lh(e,"dayLabel"),lh(e,"monthLabel"),lh(e,"yearLabel")})),nh(dh(e.radar),(function(e){lh(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),nh(dh(e.geo),(function(e){rh(e)&&(uh(e),nh(dh(e.regions),(function(e){uh(e)})))})),nh(dh(e.timeline),(function(e){uh(e),oh(e,"label"),oh(e,"itemStyle"),oh(e,"controlStyle",!0);var t=e.data;s["t"](t)&&s["k"](t,(function(e){s["A"](e)&&(oh(e,"label"),oh(e,"itemStyle"))}))})),nh(dh(e.toolbox),(function(e){oh(e,"iconStyle"),nh(e.feature,(function(e){oh(e,"iconStyle")}))})),lh(hh(e.axisPointer),"label"),lh(hh(e.tooltip).axisPointer,"label")}function ph(e,t){for(var n=t.split(","),r=e,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function mh(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)i=a[s],null==o[i]&&(o[i]={}),o=o[i];(r||null==o[a[s]])&&(o[a[s]]=n)}function gh(e){e&&Object(s["k"])(yh,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var yh=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vh=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_h=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<_h.length;n++){var r=_h[n][1],i=_h[n][0];null!=t[r]&&(t[i]=t[r])}}function xh(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function wh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Mh(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function Sh(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Sh(e[n].children,t)}function Th(e,t){fh(e,t),e.series=di(e.series),Object(s["k"])(e.series,(function(e){if(Object(s["A"])(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),xh(e.label);var n=e.data;if(n&&!Object(s["E"])(n))for(var r=0;r<n.length;r++)xh(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=ph(e,"pointer.color");null!=i&&mh(e,"itemStyle.color",i)}else if("bar"===t){bh(e),bh(e.backgroundStyle),bh(e.emphasis);n=e.data;if(n&&!Object(s["E"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(bh(n[r]),bh(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),wh(e),Sh(e.data,wh)}else"graph"===t||"sankey"===t?Mh(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(s["i"])(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),gh(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(s["k"])(vh,(function(t){var n=e[t];n&&(Object(s["t"])(n)||(n=[n]),Object(s["k"])(n,(function(e){gh(e)})))}))}function kh(e){var t=Object(s["f"])();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}})),t.each(Lh)}function Lh(e){Object(s["k"])(e,(function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,(function(a,u,c){var d,h,f=o.get(t.stackedDimension,c);if(isNaN(f))return i;s?h=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var p=NaN,m=n-1;m>=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var y=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&f>=0&&y>0||"samesign"===l&&f<=0&&y<0){f=Ur(f,y),p=y;break}}}return r[0]=f,r[1]=p,r}))}))}var Oh,Dh,Ah,Ih,Ch,Eh=function(){function e(e){this.data=e.data||(e.sourceFormat===ad?{}:[]),this.sourceFormat=e.sourceFormat||sd,this.seriesLayoutBy=e.seriesLayoutBy||ld,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&yd(this,n)===cd.Must&&(r.type="ordinal")}}return e}();function Ph(e){return e instanceof Eh}function Yh(e,t,n){n=n||Rh(e);var r=t.seriesLayoutBy,i=Hh(e,n,r,t.sourceHeader,t.dimensions),a=new Eh({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(s["d"])(t)});return a}function jh(e){return new Eh({data:e,sourceFormat:Object(s["E"])(e)?od:nd})}function Nh(e){return new Eh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(s["d"])(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Rh(e){var t=sd;if(Object(s["E"])(e))t=od;else if(Object(s["t"])(e)){0===e.length&&(t=rd);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(Object(s["t"])(i)||Object(s["E"])(i)){t=rd;break}if(Object(s["A"])(i)){t=id;break}}}}else if(Object(s["A"])(e))for(var a in e)if(Object(s["q"])(e,a)&&Object(s["u"])(e[a])){t=ad;break}return t}function Hh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:zh(i),startIndex:o,dimensionsDetectedCount:a};if(t===rd){var l=e;"auto"===r||null==r?Bh((function(e){null!=e&&"-"!==e&&(Object(s["C"])(e)?null==o&&(o=1):o=0)}),n,l,10):o=Object(s["z"])(r)?r:r?1:0,i||1!==o||(i=[],Bh((function(e,t){i[t]=null!=e?e+"":""}),n,l,1/0)),a=i?i.length:n===ud?l.length:l[0]?l[0].length:null}else if(t===id)i||(i=Fh(e));else if(t===ad)i||(i=[],Object(s["k"])(e,(function(e,t){i.push(t)})));else if(t===nd){var u=pi(e[0]);a=Object(s["t"])(u)&&u.length||1}return{startIndex:o,dimensionsDefine:zh(i),dimensionsDetectedCount:a}}function Fh(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t)return Object(s["F"])(t)}function zh(e){if(e){var t=Object(s["f"])();return Object(s["H"])(e,(function(e,n){e=Object(s["A"])(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r}))}}function Bh(e,t,n,r){if(t===ud)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var a=n[0]||[];for(i=0;i<a.length&&i<r;i++)e(a[i],i)}}function Wh(e){var t=e.sourceFormat;return t===id||t===ad}var Vh=function(){function e(e,t){var n=Ph(e)?e:jh(e);this._source=n;var r=this._data=n.data;n.sourceFormat===od&&(this._offset=0,this._dimSize=t,this._data=r),Ch(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Ch=function(e,i,a){var o=a.sourceFormat,l=a.seriesLayoutBy,u=a.startIndex,c=a.dimensionsDefine,d=Ih[ef(o,l)];if(Object(s["m"])(e,d),o===od)e.getItem=t,e.count=r,e.fillStorage=n;else{var h=qh(o,l);e.getItem=Object(s["c"])(h,null,i,u,c);var f=Kh(o,l);e.count=Object(s["c"])(f,null,i,u,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[o],h=0;h<c;h++){var f=i[h*a+o];d[e+h]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[rd+"_"+ld]={pure:!0,appendData:i},e[rd+"_"+ud]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[id]={pure:!0,appendData:i},e[ad]={pure:!0,appendData:function(e){var t=this._data;Object(s["k"])(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[nd]={appendData:i},e[od]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Ih=e}(),e}(),Gh=function(e,t,n,r){return e[r]},Uh=(Oh={},Oh[rd+"_"+ld]=function(e,t,n,r){return e[r+t]},Oh[rd+"_"+ud]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},Oh[id]=Gh,Oh[ad]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name;0;var l=e[s];a[o]=l?l[r]:null}return a},Oh[nd]=Gh,Oh);function qh(e,t){var n=Uh[ef(e,t)];return n}var Xh=function(e,t,n){return e.length},Zh=(Dh={},Dh[rd+"_"+ld]=function(e,t,n){return Math.max(0,e.length-t)},Dh[rd+"_"+ud]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Dh[id]=Xh,Dh[ad]=function(e,t,n){var r=n[0].name;var i=e[r];return i?i.length:0},Dh[nd]=Xh,Dh);function Kh(e,t){var n=Zh[ef(e,t)];return n}var Jh=function(e,t,n){return e[t]},$h=(Ah={},Ah[rd]=Jh,Ah[id]=function(e,t,n){return e[n]},Ah[ad]=Jh,Ah[nd]=function(e,t,n){var r=pi(e);return r instanceof Array?r[t]:r},Ah[od]=Jh,Ah);function Qh(e){var t=$h[e];return t}function ef(e,t){return e===rd?e+"_"+t:e}function tf(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Qh(a)(r,o,s)}var l=r;return a===nd&&(l=pi(r)),l}}}var nf=/\{@(.+?)\}/g,rf=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),l=this.getDataParams(e,n);if(a&&(l.value=a.interpolatedValue),null!=r&&s["t"](l.value)&&(l.value=l.value[r]),!i){var u=o.getItemModel(e);i=u.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(s["w"](i))return l.status=t,l.dimensionIndex=r,i(l);if(s["C"](i)){var c=Ac(i,l);return c.replace(nf,(function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var l=tf(o,e,i);if(a&&s["t"](a.interpolatedValue)){var u=o.getDimensionIndex(i);u>=0&&(l=a.interpolatedValue[u])}return null!=l?l+"":""}))}},e.prototype.getRawValue=function(e,t){return tf(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function af(e){var t,n;return s["A"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function of(e){return new sf(e)}var sf=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,o=d(this._modBy),l=this._modDataCount||0,u=d(e&&e.modBy),c=e&&e.modDataCount||0;function d(e){return!(e>=1)&&(e=1),e}o===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(a||f<p)){var m=this._progress;if(Object(s["t"])(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],f,p,u,c);else this._doProgress(m,f,p,u,c)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){lf.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:lf.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Object(s["t"])(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),lf=function(){var e,t,n,r,i,a={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function uf(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(s["z"])(e)||null==e||"-"===e||(e=+Jr(e)),null==e||""===e?NaN:Number(e))}var cf=Object(s["f"])({number:function(e){return parseFloat(e)},time:function(e){return+Jr(e)},trim:function(e){return Object(s["C"])(e)?Object(s["T"])(e):e}});function df(e){return cf.get(e)}var hf={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},ff=function(){function e(e,t){if(!Object(s["z"])(t)){var n="";0,Ed(n)}this._opFn=hf[e],this._rvalFloat=ri(t)}return e.prototype.evaluate=function(e){return Object(s["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(ri(e),this._rvalFloat)},e}(),pf=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(s["z"])(e)?e:ri(e),r=Object(s["z"])(t)?t:ri(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=Object(s["C"])(e),l=Object(s["C"])(t);o&&(n=l?e:0),l&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),mf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ri(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=ri(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function gf(e,t){return"eq"===e||"ne"===e?new mf("eq"===e,t):Object(s["q"])(hf,e)?new ff(e,t):null}var yf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return uf(e,t)},e}();function vf(e,t){var n=new yf,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ld&&Ed(o);var l=[],u={},c=e.dimensionsDefine;if(c)Object(s["k"])(c,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(l.push(r),null!=n){var i="";Object(s["q"])(u,n)&&Ed(i),u[n]=r}}));else for(var d=0;d<e.dimensionsDetectedCount;d++)l.push({index:d});var h=qh(i,ld);t.__isBuiltIn&&(n.getRawDataItem=function(e){return h(r,a,l,e)},n.getRawData=Object(s["c"])(_f,null,e)),n.cloneRawData=Object(s["c"])(bf,null,e);var f=Kh(i,ld);n.count=Object(s["c"])(f,null,r,a,l);var p=Qh(i);n.retrieveValue=function(e,t){var n=h(r,a,l,e);return m(n,t)};var m=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=l[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=Object(s["c"])(xf,null,l,u),n.cloneAllDimensionInfo=Object(s["c"])(wf,null,l),n}function _f(e){var t=e.sourceFormat;if(!Lf(t)){var n="";0,Ed(n)}return e.data}function bf(e){var t=e.sourceFormat,n=e.data;if(!Lf(t)){var r="";0,Ed(r)}if(t===rd){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(t===id){for(i=[],a=0,o=n.length;a<o;a++)i.push(Object(s["m"])({},n[a]));return i}}function xf(e,t,n){if(null!=n)return Object(s["z"])(n)||!isNaN(n)&&!Object(s["q"])(t,n)?e[n]:Object(s["q"])(t,n)?t[n]:void 0}function wf(e){return Object(s["d"])(e)}var Mf=Object(s["f"])();function Sf(e){e=Object(s["d"])(e);var t=e.type,n="";t||Ed(n);var r=t.split(":");2!==r.length&&Ed(n);var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,Mf.set(t,e)}function Tf(e,t,n){var r=di(e),i=r.length,a="";i||Ed(a);for(var o=0,s=i;o<s;o++){var l=r[o];t=kf(l,t,n,1===i?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function kf(e,t,n,r){var i="";t.length||Ed(i),Object(s["A"])(e)||Ed(i);var a=e.type,o=Mf.get(a);o||Ed(i);var l=Object(s["H"])(t,(function(e){return vf(e,o)})),u=di(o.transform({upstream:l[0],upstreamList:l,config:Object(s["d"])(e.config)}));return Object(s["H"])(u,(function(e,n){var r="";Object(s["A"])(e)||Ed(r),e.data||Ed(r);var i,a=Rh(e.data);Lf(a)||Ed(r);var o=t[0];if(o&&0===n&&!e.dimensions){var l=o.startIndex;l&&(e.data=o.data.slice(0,l).concat(e.data)),i={seriesLayoutBy:ld,sourceHeader:l,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:ld,sourceHeader:0,dimensions:e.dimensions};return Yh(e.data,i,null)}))}function Lf(e){return e===rd||e===id}var Of,Df="undefined",Af=typeof Uint32Array===Df?Array:Uint32Array,If=typeof Uint16Array===Df?Array:Uint16Array,Cf=typeof Int32Array===Df?Array:Int32Array,Ef=typeof Float64Array===Df?Array:Float64Array,Pf={float:Ef,int:Cf,ordinal:Array,number:Array,time:Ef};function Yf(e){return e>65535?Af:If}function jf(){return[1/0,-1/0]}function Nf(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Rf(e,t,n,r,i){var a=Pf[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(r)}var Hf=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(s["f"])()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Of[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];Wh(r);this._dimensions=Object(s["H"])(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Pf[t||"float"](this._rawCount),this._rawExtent[i]=jf(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;0===a&&(i[e]=jf());for(var s=i[e],l=a;l<o;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),l=0;l<i;l++){var u=r[l];Rf(n,l,u.type,s,!0)}for(var c=[],d=o;d<s;d++)for(var h=d-o,f=0;f<i;f++){u=r[f];var p=Of.arrayRows.call(this,e[h]||c,u.property,h,f);n[f][d]=p;var m=a[f];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,l=this._rawExtent,u=Object(s["H"])(a,(function(e){return e.property})),c=0;c<o;c++){var d=a[c];l[c]||(l[c]=jf()),Rf(i,c,d.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,l);else for(var h=[],f=e;f<t;f++){h=r.getItem(f,h);for(var p=0;p<o;p++){var m=i[p],g=this._dimValueGetter(h,u[p],f,p);m[f]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var r=0,i=this._count-1;while(r<=i){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,i=r[e],a=[];if(!i)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var d=this.getRawIndex(u),h=t-i[d],f=Math.abs(h);f<=n&&((f<o||f===o&&h>=0&&s<0)&&(o=f,s=h,l=0),h===s&&(a[l++]=u))}return a.length=l,a},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{n=Yf(this._rawCount);e=new n(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=Yf(n._rawCount),a=new i(r),o=[],s=e.length,l=0,u=e[0],c=n._chunks,d=0;d<r;d++){var h=void 0,f=n.getRawIndex(d);if(0===s)h=t(d);else if(1===s){var p=c[u][f];h=t(p,d)}else{for(var m=0;m<s;m++)o[m]=c[e[m]][f];o[m]=d,h=t.apply(null,o)}h&&(a[l++]=f)}return l<r&&(n._indices=a),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Object(s["F"])(e),i=r.length;if(!i)return this;var a=t.count(),o=Yf(t._rawCount),l=new o(a),u=0,c=r[0],d=e[c][0],h=e[c][1],f=t._chunks,p=!1;if(!t._indices){var m=0;if(1===i){for(var g=f[r[0]],y=0;y<n;y++){var v=g[y];(v>=d&&v<=h||isNaN(v))&&(l[u++]=m),m++}p=!0}else if(2===i){g=f[r[0]];var _=f[r[1]],b=e[r[1]][0],x=e[r[1]][1];for(y=0;y<n;y++){v=g[y];var w=_[y];(v>=d&&v<=h||isNaN(v))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=m),m++}p=!0}}if(!p)if(1===i)for(y=0;y<a;y++){var M=t.getRawIndex(y);v=f[r[0]][M];(v>=d&&v<=h||isNaN(v))&&(l[u++]=M)}else for(y=0;y<a;y++){for(var S=!0,T=(M=t.getRawIndex(y),0);T<i;T++){var k=r[T];v=f[k][M];(v<e[k][0]||v>e[k][1])&&(S=!1)}S&&(l[u++]=t.getRawIndex(y))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=jf();for(var c=0;c<o;c++){for(var d=e.getRawIndex(c),h=0;h<a;h++)s[h]=r[t[h]][d];s[a]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!==typeof f&&(i[0]=f,f=i);for(u=0;u<f.length;u++){var p=t[u],m=f[u],g=l[p],y=r[p];y&&(y[d]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks,s=o[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),h=new(Yf(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var f=1;f<l-1;f+=c){for(var p=Math.min(f+c,l-1),m=Math.min(f+2*c,l),g=(m+p)/2,y=0,v=p;v<m;v++){var _=this.getRawIndex(v),b=s[_];isNaN(b)||(y+=b)}y/=m-p;var x=f,w=Math.min(f+c,l),M=f-1,S=s[d];n=-1,i=x;var T=-1,k=0;for(v=x;v<w;v++){_=this.getRawIndex(v),b=s[_];isNaN(b)?(k++,T<0&&(T=_)):(r=Math.abs((M-g)*(b-S)-(M-v)*(y-S)),r>n&&(n=r,i=_))}k>0&&k<w-x&&(h[u++]=Math.min(T,i),i=Math.max(T,i)),h[u++]=i,d=i}return h[u++]=this.getRawIndex(l-1),a._count=u,a._indices=h,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Yf(this._rawCount))(2*Math.ceil(o/i)),l=0,u=0;u<o;u+=i){var c=u,d=a[this.getRawIndex(c)],h=u,f=a[this.getRawIndex(h)],p=i;u+i>o&&(p=o-u);for(var m=0;m<p;m++){var g=this.getRawIndex(u+m),y=a[g];y<d&&(d=y,c=u+m),y>f&&(f=y,h=u+m)}var v=this.getRawIndex(c),_=this.getRawIndex(h);c<h?(s[l++]=v,s[l++]=_):(s[l++]=_,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),l=a[e],u=this.count(),c=i._rawExtent[e]=jf(),d=new(Yf(this._rawCount))(Math.ceil(u/s)),h=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,o.length=s);for(var p=0;p<s;p++){var m=this.getRawIndex(f+p);o[p]=l[m]}var g=n(o),y=this.getRawIndex(Math.min(f+r(o,g)||0,u-1));l[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),d[h++]=y}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=jf();if(!t)return n;var r,i=this.count(),a=!this._indices;if(a)return this._rawExtent[e].slice();if(r=this._extent[e],r)return r.slice();r=n;for(var o=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=t[u];c<o&&(o=c),c>s&&(s=c)}return r=[o,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Object(s["N"])(t,(function(e,t){return e[t]=!0,e}),{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Nf(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(s["d"])(this._extent),e._rawExtent=Object(s["d"])(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return uf(e[r],this._dimensions[r])}Of={arrayRows:e,objectRows:function(e,t,n,r){return uf(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return uf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Ff=Hf,zf=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Wf(n)){var a=n,o=void 0,l=void 0,u=void 0;if(i){var c=r[0];c.prepareSource(),u=c.getSource(),o=u.data,l=u.sourceFormat,t=[c._getVersionSign()]}else o=a.get("data",!0),l=Object(s["E"])(o)?od:nd,t=[];var d=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},f=Object(s["P"])(d.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(s["P"])(d.sourceHeader,h.sourceHeader),m=Object(s["P"])(d.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||m;e=g?[Yh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},l)]:[]}else{var y=n;if(i){var v=this._applyTransform(r);e=v.sourceList,t=v.upstreamSignList}else{var _=y.get("source",!0);e=[Yh(_,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var a="";1!==e.length&&Vf(a)}var o=[],l=[];return Object(s["k"])(e,(function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||Vf(n),o.push(t),l.push(e._getVersionSign())})),r?t=Tf(r,o,{datasetIndex:n.componentIndex}):null!=i&&(t=[Nh(o[0])]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||(a=i[r]={});var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Wf(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Ff,o.initData(new Vh(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Wf(e)){var t=md(e);return t?[t.getSourceManager()]:[]}return Object(s["H"])(gd(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Wf(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Bf(e){var t=e.option.transform;t&&Object(s["R"])(e.option.transform)}function Wf(e){return"series"===e.mainType}function Vf(e){throw new Error(e)}var Gf="line-height:1";function Uf(e){var t=e.lineHeight;return null==t?Gf:"line-height:"+U(t+"")+"px"}function qf(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+U(r+"")+"px;color:"+U(n)+";font-weight:"+U(i+""),valueStyle:"font-size:"+U(o+"")+"px;color:"+U(a)+";font-weight:"+U(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Xf=[0,10,20,30],Zf=["","\n","\n\n","\n\n\n"];function Kf(e,t){return t.type=e,t}function Jf(e){return"section"===e.type}function $f(e){return Jf(e)?ep:tp}function Qf(e){if(Jf(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Object(s["k"])(e.blocks,(function(e){var n=Qf(e);n>=t&&(t=n+ +(r&&(!n||Jf(e)&&!e.noHeader)))})),t}return 0}function ep(e,t,n,r){var i=t.noHeader,a=rp(Qf(t)),o=[],l=t.blocks||[];Object(s["b"])(!l||Object(s["t"])(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(s["q"])(c,u)){var d=new pf(c[u],null);l.sort((function(e,t){return d.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===u&&l.reverse()}Object(s["k"])(l,(function(n,i){var l=t.valueFormatter,u=$f(n)(l?Object(s["m"])(Object(s["m"])({},e),{valueFormatter:l}):e,n,i>0?a.html:0,r);null!=u&&o.push(u)}));var h="richText"===e.renderMode?o.join(a.richText):ip(r,o.join(""),i?n:a.html);if(i)return h;var f=Lc(t.header,"ordinal",e.useUTC),p=qf(r,e.renderMode).nameStyle,m=Uf(r);return"richText"===e.renderMode?sp(e,f,p)+a.richText+h:ip(r,'<div style="'+p+";"+m+';">'+U(f)+"</div>"+h,n)}function tp(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,l=!t.markerType,u=t.name,c=e.useUTC,d=t.valueFormatter||e.valueFormatter||function(e){return e=Object(s["t"])(e)?e:[e],Object(s["H"])(e,(function(e,t){return Lc(e,Object(s["t"])(p)?p[t]:p,c)}))};if(!a||!o){var h=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=a?"":Lc(u,"ordinal",c),p=t.valueType,m=o?[]:d(t.value,t.dataIndex),g=!l||!a,y=!l&&a,v=qf(r,i),_=v.nameStyle,b=v.valueStyle;return"richText"===i?(l?"":h)+(a?"":sp(e,f,_))+(o?"":lp(e,m,g,y,b)):ip(r,(l?"":h)+(a?"":ap(f,!l,_))+(o?"":op(m,g,y,b)),n)}}function np(e,t,n,r,i,a){if(e){var o=$f(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function rp(e){return{html:Xf[e],richText:Zf[e]}}function ip(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",a=Uf(e);return'<div style="'+i+";"+a+';">'+t+r+"</div>"}function ap(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+U(e)+"</span>"}function op(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Object(s["t"])(e)?e:[e],'<span style="'+a+";"+r+'">'+Object(s["H"])(e,(function(e){return U(e)})).join("&nbsp;&nbsp;")+"</span>"}function sp(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function lp(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(s["t"])(t)?t.join("  "):t,a)}function up(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Ec(r)}function cp(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var dp=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ai()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=Cc({color:t,type:e,renderMode:n,markerId:r});return Object(s["C"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(s["t"])(t)?Object(s["k"])(t,(function(e){return Object(s["m"])(n,e)})):Object(s["m"])(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function hp(e){var t,n,r,i,a=e.series,o=e.dataIndex,l=e.multipleSeries,u=a.getData(),c=u.mapDimensionsAll("defaultedTooltip"),d=c.length,h=a.getRawValue(o),f=Object(s["t"])(h),p=up(a,o);if(d>1||f&&!d){var m=fp(h,a,o,c,p);t=m.inlineValues,n=m.inlineValueTypes,r=m.blocks,i=m.inlineValues[0]}else if(d){var g=u.getDimensionInfo(c[0]);i=t=tf(u,o,c[0]),n=g.type}else i=t=f?h[0]:h;var y=ki(a),v=y&&a.name||"",_=u.getName(o),b=l?v:_;return Kf("section",{header:v,noHeader:l||!y,sortParam:i,blocks:[Kf("nameValue",{markerType:"item",markerColor:p,name:b,noName:!Object(s["T"])(b),value:t,valueType:n,dataIndex:o})].concat(r||[])})}function fp(e,t,n,r,i){var a=t.getData(),o=Object(s["N"])(e,(function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),l=[],u=[],c=[];function d(e,t){var n=a.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(o?c.push(Kf("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(l.push(e),u.push(n.type)))}return r.length?Object(s["k"])(r,(function(e){d(tf(a,n,e),e)})):Object(s["k"])(e,d),{inlineValues:l,inlineValueTypes:u,blocks:c}}var pp=Ei();function mp(e,t){return e.getName(t)||e.getId(t)}var gp="__universalTransitionEnabled",yp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return a(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=of({count:bp,reset:xp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=pp(this).sourceManager=new zf(this);r.prepareSource();var i=this.getInitialData(e,n);Mp(i,this),this.dataTask.context.data=i,pp(this).dataBeforeProcessed=i,vp(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vc(this),r=n?Uc(e):{},i=this.subType;Jc.hasClass(i)&&(i+="Series"),s["I"](e,t.getTheme().get(this.subType)),s["I"](e,this.getDefaultOption()),hi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Gc(e,r,n)},t.prototype.mergeOption=function(e,t){e=s["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Vc(this);n&&Gc(this.option,e,n);var r=pp(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Mp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,pp(this).dataBeforeProcessed=i,vp(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!s["E"](e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&hi(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=Tp(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return pp(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Tp(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}pp(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return s["f"](e)},t.prototype.getSourceManager=function(){return pp(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return pp(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return hp({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o["a"].node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Sd.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<e.length;a++){var o=e[a],s=mp(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=s["F"](e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[mp(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[gp])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o)if("series"===a)i.selectedMap="all";else if("multiple"===a){s["A"](i.selectedMap)||(i.selectedMap={});for(var l=i.selectedMap,u=0;u<o;u++){var c=t[u],d=mp(e,c);l[d]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(c)}}else if("single"===a||!0===a){var h=t[o-1];d=mp(e,h);i.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(r={},r[d]=e.getRawIndex(h),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Jc.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Jc);function vp(e){var t=e.name;ki(e)||(e.name=_p(e)||t)}function _p(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return s["k"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function bp(e){return e.model.getRawData().count()}function xp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),wp}function wp(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Mp(e,t){s["k"](s["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,s["h"](Sp,t))}))}function Sp(e,t){var n=Tp(e);return n&&n.setOutputEnd((t||this).count()),t}function Tp(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}s["K"](yp,rf),s["K"](yp,Sd),Qi(yp,Jc);var kp=yp,Lp=function(){function e(){this.group=new Sr,this.uid=Au("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ji(Lp),ia(Lp);var Op=Lp;function Dp(){var e=Ei();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}var Ap=bo.CMD,Ip=[[],[],[]],Cp=Math.sqrt,Ep=Math.atan2;function Pp(e,t){if(t){var n,r,i,a,o,s,l=e.data,u=e.len(),c=Ap.M,d=Ap.C,h=Ap.L,f=Ap.R,p=Ap.A,m=Ap.Q;for(i=0,a=0;i<u;){switch(n=l[i++],a=i,r=0,n){case c:r=1;break;case h:r=1;break;case d:r=3;break;case m:r=2;break;case p:var g=t[4],y=t[5],v=Cp(t[0]*t[0]+t[1]*t[1]),_=Cp(t[2]*t[2]+t[3]*t[3]),b=Ep(-t[1]/_,t[0]/v);l[i]*=v,l[i++]+=g,l[i]*=_,l[i++]+=y,l[i++]*=v,l[i++]*=_,l[i++]+=b,l[i++]+=b,i+=2,a=i;break;case f:s[0]=l[i++],s[1]=l[i++],k(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],k(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var x=Ip[o];x[0]=l[i++],x[1]=l[i++],k(x,x,t),l[a++]=x[0],l[a++]=x[1]}}e.increaseVersion()}}var Yp=Math.sqrt,jp=Math.sin,Np=Math.cos,Rp=Math.PI;function Hp(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Fp(e,t){return(e[0]*t[0]+e[1]*t[1])/(Hp(e)*Hp(t))}function zp(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Fp(e,t))}function Bp(e,t,n,r,i,a,o,s,l,u,c){var d=l*(Rp/180),h=Np(d)*(e-n)/2+jp(d)*(t-r)/2,f=-1*jp(d)*(e-n)/2+Np(d)*(t-r)/2,p=h*h/(o*o)+f*f/(s*s);p>1&&(o*=Yp(p),s*=Yp(p));var m=(i===a?-1:1)*Yp((o*o*(s*s)-o*o*(f*f)-s*s*(h*h))/(o*o*(f*f)+s*s*(h*h)))||0,g=m*o*f/s,y=m*-s*h/o,v=(e+n)/2+Np(d)*g-jp(d)*y,_=(t+r)/2+jp(d)*g+Np(d)*y,b=zp([1,0],[(h-g)/o,(f-y)/s]),x=[(h-g)/o,(f-y)/s],w=[(-1*h-g)/o,(-1*f-y)/s],M=zp(x,w);if(Fp(x,w)<=-1&&(M=Rp),Fp(x,w)>=1&&(M=0),M<0){var S=Math.round(M/Rp*1e6)/1e6;M=2*Rp+S%2*Rp}c.addData(u,v,_,o,s,b,M,d,a)}var Wp=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Vp=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Gp(e){var t=new bo;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=bo.CMD,l=e.match(Wp);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,f=c.match(Vp)||[],p=f.length,m=0;m<p;m++)f[m]=parseFloat(f[m]);var g=0;while(g<p){var y=void 0,v=void 0,_=void 0,b=void 0,x=void 0,w=void 0,M=void 0,S=r,T=i,k=void 0,L=void 0;switch(d){case"l":r+=f[g++],i+=f[g++],h=s.L,t.addData(h,r,i);break;case"L":r=f[g++],i=f[g++],h=s.L,t.addData(h,r,i);break;case"m":r+=f[g++],i+=f[g++],h=s.M,t.addData(h,r,i),a=r,o=i,d="l";break;case"M":r=f[g++],i=f[g++],h=s.M,t.addData(h,r,i),a=r,o=i,d="L";break;case"h":r+=f[g++],h=s.L,t.addData(h,r,i);break;case"H":r=f[g++],h=s.L,t.addData(h,r,i);break;case"v":i+=f[g++],h=s.L,t.addData(h,r,i);break;case"V":i=f[g++],h=s.L,t.addData(h,r,i);break;case"C":h=s.C,t.addData(h,f[g++],f[g++],f[g++],f[g++],f[g++],f[g++]),r=f[g-2],i=f[g-1];break;case"c":h=s.C,t.addData(h,f[g++]+r,f[g++]+i,f[g++]+r,f[g++]+i,f[g++]+r,f[g++]+i),r+=f[g-2],i+=f[g-1];break;case"S":y=r,v=i,k=t.len(),L=t.data,n===s.C&&(y+=r-L[k-4],v+=i-L[k-3]),h=s.C,S=f[g++],T=f[g++],r=f[g++],i=f[g++],t.addData(h,y,v,S,T,r,i);break;case"s":y=r,v=i,k=t.len(),L=t.data,n===s.C&&(y+=r-L[k-4],v+=i-L[k-3]),h=s.C,S=r+f[g++],T=i+f[g++],r+=f[g++],i+=f[g++],t.addData(h,y,v,S,T,r,i);break;case"Q":S=f[g++],T=f[g++],r=f[g++],i=f[g++],h=s.Q,t.addData(h,S,T,r,i);break;case"q":S=f[g++]+r,T=f[g++]+i,r+=f[g++],i+=f[g++],h=s.Q,t.addData(h,S,T,r,i);break;case"T":y=r,v=i,k=t.len(),L=t.data,n===s.Q&&(y+=r-L[k-4],v+=i-L[k-3]),r=f[g++],i=f[g++],h=s.Q,t.addData(h,y,v,r,i);break;case"t":y=r,v=i,k=t.len(),L=t.data,n===s.Q&&(y+=r-L[k-4],v+=i-L[k-3]),r+=f[g++],i+=f[g++],h=s.Q,t.addData(h,y,v,r,i);break;case"A":_=f[g++],b=f[g++],x=f[g++],w=f[g++],M=f[g++],S=r,T=i,r=f[g++],i=f[g++],h=s.A,Bp(S,T,r,i,w,M,_,b,x,h,t);break;case"a":_=f[g++],b=f[g++],x=f[g++],w=f[g++],M=f[g++],S=r,T=i,r+=f[g++],i+=f[g++],h=s.A,Bp(S,T,r,i,w,M,_,b,x,h,t);break}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),r=a,i=o),n=h}return t.toStatic(),t}var Up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.applyTransform=function(e){},t}(Uo);function qp(e){return null!=e.setData}function Xp(e,t){var n=Gp(e),r=Object(s["m"])({},t);return r.buildPath=function(e){if(qp(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Pp(n,e),this.dirtyShape()},r}function Zp(e,t){return new Up(Xp(e,t))}function Kp(e,t){var n=Xp(e,t),r=function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return u(t,e),t}(Up);return r}function Jp(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Uo(t);return o.createPathProxy(),o.buildPath=function(e){if(qp(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function $p(e,t){t=t||{};var n=new Uo;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Pp(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Qp=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),em=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultShape=function(){return new Qp},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Uo);em.prototype.type="circle";var tm=em,nm=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),rm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultShape=function(){return new nm},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-l,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-l,r+a,i),e.bezierCurveTo(r+a,i+l,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+l,r-a,i),e.closePath()},t}(Uo);rm.prototype.type="ellipse";var im=rm,am=Math.PI,om=2*am,sm=Math.sin,lm=Math.cos,um=Math.acos,cm=Math.atan2,dm=Math.abs,hm=Math.sqrt,fm=Math.max,pm=Math.min,mm=1e-4;function gm(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<mm))return h=(c*(t-a)-d*(e-i))/h,[e+h*l,t+h*u]}function ym(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/hm(s*s+l*l),c=u*l,d=-u*s,h=e+c,f=t+d,p=n+c,m=r+d,g=(h+p)/2,y=(f+m)/2,v=p-h,_=m-f,b=v*v+_*_,x=i-a,w=h*m-p*f,M=(_<0?-1:1)*hm(fm(0,x*x*b-w*w)),S=(w*_-v*M)/b,T=(-w*v-_*M)/b,k=(w*_+v*M)/b,L=(-w*v+_*M)/b,O=S-g,D=T-y,A=k-g,I=L-y;return O*O+D*D>A*A+I*I&&(S=k,T=L),{cx:S,cy:T,x0:-c,y0:-d,x1:S*(i/x-1),y1:T*(i/x-1)}}function vm(e){var t;if(Object(s["t"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function _m(e,t){var n,r=fm(t.r,0),i=fm(t.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,h=!!t.clockwise,f=dm(u-l),p=f>om&&f%om;if(p>mm&&(f=p),r>mm)if(f>om-mm)e.moveTo(c+r*lm(l),d+r*sm(l)),e.arc(c,d,r,l,u,!h),i>mm&&(e.moveTo(c+i*lm(u),d+i*sm(u)),e.arc(c,d,i,u,l,h));else{var m=void 0,g=void 0,y=void 0,v=void 0,_=void 0,b=void 0,x=void 0,w=void 0,M=void 0,S=void 0,T=void 0,k=void 0,L=void 0,O=void 0,D=void 0,A=void 0,I=r*lm(l),C=r*sm(l),E=i*lm(u),P=i*sm(u),Y=f>mm;if(Y){var j=t.cornerRadius;j&&(n=vm(j),m=n[0],g=n[1],y=n[2],v=n[3]);var N=dm(r-i)/2;if(_=pm(N,y),b=pm(N,v),x=pm(N,m),w=pm(N,g),T=M=fm(_,b),k=S=fm(x,w),(M>mm||S>mm)&&(L=r*lm(u),O=r*sm(u),D=i*lm(l),A=i*sm(l),f<am)){var R=gm(I,C,D,A,L,O,E,P);if(R){var H=I-R[0],F=C-R[1],z=L-R[0],B=O-R[1],W=1/sm(um((H*z+F*B)/(hm(H*H+F*F)*hm(z*z+B*B)))/2),V=hm(R[0]*R[0]+R[1]*R[1]);T=pm(M,(r-V)/(W+1)),k=pm(S,(i-V)/(W-1))}}}if(Y)if(T>mm){var G=pm(y,T),U=pm(v,T),q=ym(D,A,I,C,r,G,h),X=ym(L,O,E,P,r,U,h);e.moveTo(c+q.cx+q.x0,d+q.cy+q.y0),T<M&&G===U?e.arc(c+q.cx,d+q.cy,T,cm(q.y0,q.x0),cm(X.y0,X.x0),!h):(G>0&&e.arc(c+q.cx,d+q.cy,G,cm(q.y0,q.x0),cm(q.y1,q.x1),!h),e.arc(c,d,r,cm(q.cy+q.y1,q.cx+q.x1),cm(X.cy+X.y1,X.cx+X.x1),!h),U>0&&e.arc(c+X.cx,d+X.cy,U,cm(X.y1,X.x1),cm(X.y0,X.x0),!h))}else e.moveTo(c+I,d+C),e.arc(c,d,r,l,u,!h);else e.moveTo(c+I,d+C);if(i>mm&&Y)if(k>mm){G=pm(m,k),U=pm(g,k),q=ym(E,P,L,O,i,-U,h),X=ym(I,C,D,A,i,-G,h);e.lineTo(c+q.cx+q.x0,d+q.cy+q.y0),k<S&&G===U?e.arc(c+q.cx,d+q.cy,k,cm(q.y0,q.x0),cm(X.y0,X.x0),!h):(U>0&&e.arc(c+q.cx,d+q.cy,U,cm(q.y0,q.x0),cm(q.y1,q.x1),!h),e.arc(c,d,i,cm(q.cy+q.y1,q.cx+q.x1),cm(X.cy+X.y1,X.cx+X.x1),h),G>0&&e.arc(c+X.cx,d+X.cy,G,cm(X.y1,X.x1),cm(X.y0,X.x0),!h))}else e.lineTo(c+E,d+P),e.arc(c,d,i,u,l,h);else e.lineTo(c+E,d+P)}else e.moveTo(c,d);e.closePath()}}}var bm=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),xm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultShape=function(){return new bm},t.prototype.buildPath=function(e,t){_m(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Uo);xm.prototype.type="sector";var wm=xm,Mm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Sm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultShape=function(){return new Mm},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Uo);Sm.prototype.type="ring";var Tm=Sm;function km(e,t,n,r){var i,a,o,s,l=[],u=[],c=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,m=e.length;f<m;f++)L(o,o,e[f]),O(s,s,e[f]);L(o,o,r[0]),O(s,s,r[1])}for(f=0,m=e.length;f<m;f++){var y=e[f];if(n)i=e[f?f-1:m-1],a=e[(f+1)%m];else{if(0===f||f===m-1){l.push(h(e[f]));continue}i=e[f-1],a=e[f+1]}g(u,a,i),_(u,u,t);var v=x(y,i),b=x(y,a),w=v+b;0!==w&&(v/=w,b/=w),_(c,u,-v),_(d,u,b);var M=p([],y,c),S=p([],y,d);r&&(O(M,M,o),L(M,M,s),O(S,S,o),L(S,S,s)),l.push(M),l.push(S)}return n&&l.push(l.shift()),l}function Lm(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=km(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Om=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Dm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultShape=function(){return new Om},t.prototype.buildPath=function(e,t){Lm(e,t,!0)},t}(Uo);Dm.prototype.type="polygon";var Am=Dm,Im=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Cm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Im},t.prototype.buildPath=function(e,t){Lm(e,t,!1)},t}(Uo);Cm.prototype.type="polyline";var Em=Cm,Pm={},Ym=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),jm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ym},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=rs(Pm,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Uo);jm.prototype.type="line";var Nm=jm,Rm=[],Hm=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Fm(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?wt:xt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?wt:xt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Dt:Ot)(e.x1,e.cpx1,e.x2,t),(n?Dt:Ot)(e.y1,e.cpy1,e.y2,t)]}var zm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hm},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(Ct(n,o,i,c,Rm),o=Rm[1],i=Rm[2],Ct(r,s,a,c,Rm),s=Rm[1],a=Rm[2]),e.quadraticCurveTo(o,s,i,a)):(c<1&&(Tt(n,o,l,i,c,Rm),o=Rm[1],l=Rm[2],i=Rm[3],Tt(r,s,u,a,c,Rm),s=Rm[1],u=Rm[2],a=Rm[3]),e.bezierCurveTo(o,s,l,u,i,a)))},t.prototype.pointAt=function(e){return Fm(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Fm(this.shape,e,!0);return b(t,t)},t}(Uo);zm.prototype.type="bezier-curve";var Bm=zm,Wm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Vm=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Wm},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,a,o,!s)},t}(Uo);Vm.prototype.type="arc";var Gm=Vm,Um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return u(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Uo.prototype.getBoundingRect.call(this)},t}(Uo),qm=Um,Xm=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Zm=Xm,Km=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return u(t,e),t}(Zm),Jm=Km,$m=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=null==t?.5:t,o.y=null==n?.5:n,o.r=null==r?.5:r,o.type="radial",o.global=a||!1,o}return u(t,e),t}(Zm),Qm=$m,eg=[0,0],tg=[0,0],ng=new _e,rg=new _e,ig=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new _e;for(n=0;n<2;n++)this._axes[n]=new _e;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);_e.sub(r[0],n[1],n[0]),_e.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return ng.set(1/0,1/0),rg.set(0,0),!this._intersectCheckOneSide(this,e,ng,rg,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,ng,rg,r,-1)&&(n=!1,r)||r||_e.copy(t,n?ng:rg),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,eg),this._getProjMinMaxOnAxis(s,t._corners,tg),eg[1]<tg[0]||eg[0]>tg[1]){if(o=!1,i)return o;var u=Math.abs(tg[0]-eg[1]),c=Math.abs(eg[0]-tg[1]);Math.min(u,c)>r.len()&&(u<c?_e.scale(r,l,-u*a):_e.scale(r,l,c*a))}else if(n){u=Math.abs(tg[0]-eg[1]),c=Math.abs(eg[0]-tg[1]);Math.min(u,c)<n.len()&&(u<c?_e.scale(n,l,u*a):_e.scale(n,l,-c*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}(),ag=ig,og=[],sg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return u(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new De(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(og)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var a=this._displayables[i];if(a.contain(e,t))return!0}return!1},t}(Ra),lg=sg,ug=Math.max,cg=Math.min,dg={};function hg(e){return Uo.extend(e)}var fg=Kp;function pg(e,t){return fg(e,t)}function mg(e,t){dg[e]=t}function gg(e){if(dg.hasOwnProperty(e))return dg[e]}function yg(e,t,n,r){var i=Zp(e,t);return n&&("center"===r&&(n=_g(n,i.getBoundingRect())),xg(i,n)),i}function vg(e,t,n){var r=new es({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(_g(t,i))}}});return r}function _g(e,t){var n,r=t.width/t.height,i=e.height*r;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var bg=Jp;function xg(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function wg(e,t){return rs(e,e,{lineWidth:t}),e}function Mg(e){return is(e.shape,e.shape,e.style),e}var Sg=as;function Tg(e,t){var n=ce([]);while(e&&e!==t)he(n,e.getLocalTransform(),n),e=e.parent;return n}function kg(e,t,n){return t&&!Object(s["u"])(t)&&(t=Jn.getLocalTransform(t)),n&&(t=ge([],t)),k([],e,t)}function Lg(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return a=kg(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Og(e){return!e.isGroup}function Dg(e){return null!=e.shape}function Ag(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if(Og(e)&&e.anid){var t=r[e.anid];if(t){var i=a(e);e.attr(a(t)),Gl(e,i,n,Os(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){Og(e)&&e.anid&&(t[e.anid]=e)})),t}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Dg(e)&&(t.shape=Object(s["m"])({},e.shape)),t}}function Ig(e,t){return Object(s["H"])(e,(function(e){var n=e[0];n=ug(n,t.x),n=cg(n,t.x+t.width);var r=e[1];return r=ug(r,t.y),r=cg(r,t.y+t.height),[n,r]}))}function Cg(e,t){var n=ug(e.x,t.x),r=cg(e.x+e.width,t.x+t.width),i=ug(e.y,t.y),a=cg(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Eg(e,t,n){var r=Object(s["m"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(s["i"])(i,n),new es(r)):yg(e.replace("path://",""),r,n,"center")}function Pg(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Yg(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Yg(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,h=jg(c,d,l,u);if(Ng(h))return!1;var f=e-i,p=t-a,m=jg(f,p,l,u)/h;if(m<0||m>1)return!1;var g=jg(f,p,c,d)/h;return!(g<0||g>1)}function jg(e,t,n,r){return e*r-n*t}function Ng(e){return e<=1e-6&&e>=-1e-6}function Rg(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(s["C"])(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=o;var u=e.formatterParamsExtra;u&&Object(s["k"])(Object(s["F"])(u),(function(e){Object(s["q"])(l,e)||(l[e]=u[e],l.$vars.push(e))}));var c=Os(e.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:r,option:Object(s["i"])({content:r,encodeHTMLContent:!0,formatterParams:l},i)}}function Hg(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Fg(e,t){if(e)if(Object(s["t"])(e))for(var n=0;n<e.length;n++)Hg(e[n],t);else Hg(e,t)}mg("circle",tm),mg("ellipse",im),mg("sector",wm),mg("ring",Tm),mg("polygon",Am),mg("polyline",Em),mg("rect",us),mg("line",Nm),mg("bezierCurve",Bm),mg("arc",Gm);var zg=Ei(),Bg=Dp(),Wg=function(){function e(){this.group=new Sr,this.uid=Au("viewChart"),this.renderTask=of({plan:Ug,reset:qg}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Gg(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Gg(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Fg(this.group,e)},e.markUpdateMethod=function(e,t){zg(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Vg(e,t,n){e&&jl(e)&&("emphasis"===t?dl:hl)(e,n)}function Gg(e,t,n){var r=Ci(e,t),i=t&&null!=t.highlightKey?Rl(t.highlightKey):null;null!=r?Object(s["k"])(di(r),(function(t){Vg(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){Vg(e,n,i)}))}function Ug(e){return Bg(e.model)}function qg(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&zg(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),Xg[l]}Ji(Wg,["dispose"]),ia(Wg);var Xg={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Zg=Wg,Kg="\0__throttleOriginMethod",Jg="\0__throttleRate",$g="\0__throttleType";function Qg(e,t,n){var r,i,a,o,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(a,o||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=(new Date).getTime(),a=this,o=e;var f=s||t,p=s||n;s=null,i=r-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(d,f):i>=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function ey(e,t,n,r){var i=e[t];if(i){var a=i[Kg]||i,o=i[$g],s=i[Jg];if(s!==n||o!==r){if(null==n||!r)return e[t]=a;i=e[t]=Qg(a,n,"debounce"===r),i[Kg]=a,i[$g]=r,i[Jg]=n}return i}}function ty(e,t){var n=e[t];n&&n[Kg]&&(n.clear&&n.clear(),e[t]=n[Kg])}var ny=Ei(),ry={itemStyle:aa(Su,!0),lineStyle:aa(xu,!0)},iy={lineStyle:"stroke",itemStyle:"fill"};function ay(e,t){var n=e.visualStyleMapper||ry[t];return n||(console.warn("Unknown style type '"+t+"'."),ry.itemStyle)}function oy(e,t){var n=e.visualDrawType||iy[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var sy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=ay(e,r),o=a(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=oy(e,r),c=o[u],d=Object(s["w"])(c)?c:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[u]||d||h){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=f,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(s["w"])(o.fill)?f:o.fill,o.stroke="auto"===o.stroke||Object(s["w"])(o.stroke)?f:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",u),!t.isSeriesFiltered(e)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(s["m"])({},o);i[u]=d(r),t.setItemVisual(n,"style",i)}}}},ly=new Ou,uy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=ay(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){ly.option=n[r];var o=i(ly),l=e.ensureUniqueItemVisual(t,"style");Object(s["m"])(l,o),ly.option.decal&&(e.setItemVisual(t,"decal",ly.option.decal),ly.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},cy={performRawSeries:!0,overallReset:function(e){var t=Object(s["f"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),ny(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=ny(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=oy(t,o);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var o=r[e],l=i.getItemVisual(o,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(o,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,a,d)}}))}}))}},dy=Math.PI;function hy(e,t){t=t||{},s["i"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Sr,r=new us({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new Ls({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new us({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&(i=new Gm({shape:{startAngle:-dy/2,endAngle:-dy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*dy/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*dy/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var fy=function(){function e(e,t,n,r){this._stageTaskMap=Object(s["f"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,a=i?n.step:null,o=r&&r.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),a=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(s["f"])();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(s["k"])(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a="";Object(s["b"])(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(s["k"])(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){o(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),a.updatePayload(c,n);var f=a.getPerformArgs(c,r.block);h.each((function(e){e.perform(f)})),c.perform(f)&&(i=!0)}else u&&u.each((function(s,l){o(r,s)&&s.dirty();var u=a.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Object(s["f"])(),l=e.seriesType,u=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,a&&a.get(s)||of({plan:vy,reset:_y,count:wy}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||of({reset:py});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,l=a.agentStubMap=Object(s["f"])(),u=e.seriesType,c=e.getTargetSeries,d=!0,h=!1,f="";function p(e){var t=e.uid,n=l.set(t,o&&o.get(t)||(h=!0,of({reset:my,onDirty:yy})));n.context={model:e,overallProgress:d},n.agent=a,n.__block=d,i._pipe(e,n)}Object(s["b"])(!e.createOnAllSeries,f),u?n.eachRawSeriesByType(u,p):c?c(n,r).each(p):(d=!1,Object(s["k"])(n.getSeries(),p)),h&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(s["w"])(e)&&(e={overallReset:e,seriesType:My(e)}),e.uid=Au("stageHandler"),t&&(e.visualType=t),e},e}();function py(e){e.overallReset(e.ecModel,e.api,e.payload)}function my(e){return e.overallProgress&&gy}function gy(){this.agent.dirty(),this.getDownstream().dirty()}function yy(){this.agent&&this.agent.dirty()}function vy(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function _y(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=di(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(s["H"])(t,(function(e,t){return xy(t)})):by}var by=xy(0);function xy(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function wy(e){return e.data.count()}function My(e){Sy=null;try{e(Ty,ky)}catch(t){}return Sy}var Sy,Ty={},ky={};function Ly(e,t){for(var n in t.prototype)e[n]=s["L"]}Ly(Ty,Bd),Ly(ky,Gd),Ty.eachSeriesByType=Ty.eachRawSeriesByType=function(e){Sy=e},Ty.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Sy=e.subType)};var Oy=fy,Dy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Ay={color:Dy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Dy]},Iy="#B9B8CE",Cy="#100C2A",Ey=function(){return{axisLine:{lineStyle:{color:Iy}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Py=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Yy={darkMode:!0,color:Py,backgroundColor:Cy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Iy},pageTextStyle:{color:Iy}},textStyle:{color:Iy},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Iy}},dataZoom:{borderColor:"#71708A",textStyle:{color:Iy},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Iy}},timeline:{lineStyle:{color:Iy},label:{color:Iy},controlStyle:{color:Iy,borderColor:Iy}},calendar:{itemStyle:{color:Cy},dayLabel:{color:Iy},monthLabel:{color:Iy},yearLabel:{color:Iy}},timeAxis:Ey(),logAxis:Ey(),valueAxis:Ey(),categoryAxis:Ey(),line:{symbol:"circle"},graph:{color:Py},gauge:{title:{color:Iy},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Iy},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Yy.categoryAxis.splitLine.show=!1;var jy=Yy,Ny=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(s["C"](e)){var i=Xi(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};s["k"](e,(function(e,i){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Ry=["symbol","symbolSize","symbolRotate","symbolOffset"],Hy=Ry.concat(["symbolKeepAspect"]),Fy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<Ry.length;o++){var l=Ry[o],u=e.get(l);Object(s["w"])(u)?(a=!0,i[l]=u):r[l]=u}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Object(s["m"])({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=Object(s["F"])(i);return{dataEach:a?d:null}}}function d(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<c.length;o++){var s=c[o];t.setItemVisual(n,s,i[s](r,a))}}}},zy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?r:null}}function r(e,t){for(var n=e.getItemModel(t),r=0;r<Hy.length;r++){var i=Hy[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}}};function By(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function Wy(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function Vy(e,t,n,r){switch(n){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}function Gy(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(s["k"])([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,i){t=Object(s["m"])({},t),i.dispatchAction(Object(s["m"])(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function Uy(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,l=0;l<o.length;l++)if(o[l].seriesIndex===t){var u=e.getData(),c=Ci(u,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:Object(s["t"])(c)?u.getName(c[0]):u.getName(c),selected:Object(s["C"])(r)?r:Object(s["m"])({},r)})}}))}function qy(e,t,n){e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(Uy("map","selectchanged",t,r,e),Uy("pie","selectchanged",t,r,e)):"select"===e.fromAction?(Uy("map","selected",t,r,e),Uy("pie","selected",t,r,e)):"unselect"===e.fromAction&&(Uy("map","unselected",t,r,e),Uy("pie","unselected",t,r,e))}))}function Xy(e,t,n){var r;while(e){if(t(e)&&(r=e,n))break;e=e.__hostTarget||e.parent}return r}var Zy=Math.round(9*Math.random()),Ky="function"===typeof Object.defineProperty,Jy=function(){function e(){this._id="__ec_inner_"+Zy++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Ky?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),$y=Jy,Qy=Uo.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),ev=Uo.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),tv=Uo.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),f=.6*o,p=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*f,l+s+h*f,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+d*f,l+s+h*f,n-c,l+s),e.closePath()}}),nv=Uo.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),rv={line:Nm,rect:us,roundRect:us,square:us,circle:tm,diamond:ev,pin:tv,arrow:nv,triangle:Qy},iv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},av={};Object(s["k"])(rv,(function(e,t){av[t]=new e}));var ov=Uo.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=lr(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=av[r];i||(r="rect",i=av[r]),iv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function sv(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function lv(e,t,n,r,i,a,o){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?vg(e.slice(8),new De(t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?yg(e.slice(7),{},new De(t,n,r,i),o?"center":"cover"):new ov({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=sv,a&&s.setColor(a),s}function uv(e){return Object(s["t"])(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function cv(e,t){if(null!=e)return Object(s["t"])(e)||(e=[e,e]),[Hr(e[0],t[0])||0,Hr(Object(s["P"])(e[1],e[0]),t[1])||0]}function dv(e){return isFinite(e)}function hv(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,a=null==t.y?0:t.y,o=null==t.y2?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=dv(r)?r:0,i=dv(i)?i:1,a=dv(a)?a:0,o=dv(o)?o:0;var s=e.createLinearGradient(r,a,i,o);return s}function fv(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=dv(o)?o:.5,s=dv(s)?s:.5,l=l>=0&&dv(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function pv(e,t,n){for(var r="radial"===t.type?fv(e,t,n):hv(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function mv(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function gv(e){return parseInt(e,10)}function yv(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||gv(s[r])||gv(e.style[r]))-(gv(s[a])||0)-(gv(s[o])||0)|0}function vv(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(s["z"])(e)?[e]:Object(s["t"])(e)?e:null:null}function _v(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&vv(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&1!==i&&(n=Object(s["H"])(n,(function(e){return e/i})),r/=i)}return[n,r]}var bv=new bo(!0);function xv(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function wv(e){return"string"===typeof e&&"none"!==e}function Mv(e){var t=e.fill;return null!=t&&"none"!==t}function Sv(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Tv(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function kv(e,t,n){var r=da(t.image,t.__image,n);if(fa(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*s["a"]),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Lv(e,t,n,r){var i,a=xv(n),o=Mv(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||bv,d=t.__dirty;if(!r){var h=n.fill,f=n.stroke,p=o&&!!h.colorStops,m=a&&!!f.colorStops,g=o&&!!h.image,y=a&&!!f.image,v=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(p||m)&&(w=t.getBoundingRect()),p&&(v=d?pv(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=v),m&&(_=d?pv(e,f,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=d||!t.__canvasFillPattern?kv(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),y&&(x=d||!t.__canvasStrokePattern?kv(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),p?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),m?e.strokeStyle=_:y&&(x?e.strokeStyle=x:a=!1)}var M,S,T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=_v(t),M=i[0],S=i[1]);var k=!0;(u||d&et)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),k=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,l?s:1),M&&(e.setLineDash(M),e.lineDashOffset=S),r||(n.strokeFirst?(a&&Tv(e,n),o&&Sv(e,n)):(o&&Sv(e,n),a&&Tv(e,n))),M&&e.setLineDash([])}function Ov(e,t,n){var r=t.__image=da(n.image,t.__image,t,t.onload);if(r&&fa(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=o-u,h=s-c;e.drawImage(r,u,c,d,h,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Dv(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||Qn["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=_v(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(xv(n)&&e.strokeText(i,n.x,n.y),Mv(n)&&e.fillText(i,n.x,n.y)):(Mv(n)&&e.fillText(i,n.x,n.y),xv(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Av=["shadowBlur","shadowOffsetX","shadowOffsetY"],Iv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Cv(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Wv(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Aa.opacity:o}(r||t.blend!==n.blend)&&(a||(Wv(e,i),a=!0),e.globalCompositeOperation=t.blend||Aa.blend);for(var s=0;s<Av.length;s++){var l=Av[s];(r||t[l]!==n[l])&&(a||(Wv(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(Wv(e,i),a=!0),e.shadowColor=t.shadowColor||Aa.shadowColor),a}function Ev(e,t,n,r,i){var a=Vv(t,i.inHover),o=r?null:n&&Vv(n,i.inHover)||{};if(a===o)return!1;var s=Cv(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(Wv(e,i),s=!0),wv(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(Wv(e,i),s=!0),wv(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(Wv(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Wv(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<Iv.length;c++){var d=Iv[c],h=d[0];(r||a[h]!==o[h])&&(s||(Wv(e,i),s=!0),e[h]=a[h]||d[1])}return s}function Pv(e,t,n,r,i){return Cv(e,Vv(t,i.inHover),n&&Vv(n,i.inHover),r,i)}function Yv(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function jv(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),Yv(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Nv(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Rv=1,Hv=2,Fv=3,zv=4;function Bv(e){var t=Mv(e),n=xv(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Wv(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Vv(e,t){return t&&e.__hoverStyle||e.style}function Gv(e,t){Uv(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Uv(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~$e,void(t.__isRendered=!1);var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if(o&&!mv(a,o)||(o&&o.length&&(Wv(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(Wv(e,n),e.save(),jv(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Uo&&t.autoBatch&&Bv(t.style);s||Nv(i,u.transform)?(Wv(e,n),Yv(e,t)):c||Wv(e,n);var d=Vv(t,n.inHover);t instanceof Uo?(n.lastDrawType!==Rv&&(l=!0,n.lastDrawType=Rv),Ev(e,t,u,l,n),c&&(n.batchFill||n.batchStroke)||e.beginPath(),Lv(e,t,d,c),c&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof Zo?(n.lastDrawType!==Fv&&(l=!0,n.lastDrawType=Fv),Ev(e,t,u,l,n),Dv(e,t,d)):t instanceof es?(n.lastDrawType!==Hv&&(l=!0,n.lastDrawType=Hv),Pv(e,t,u,l,n),Ov(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==zv&&(l=!0,n.lastDrawType=zv),qv(e,t,n)),c&&r&&Wv(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function qv(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=t.getCursor(),o=r.length;a<o;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Uv(e,l,s,a===o-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Uv(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Xv=new $y,Zv=new $n["a"](100),Kv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Jv(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Xv["delete"](e);var a=Xv.get(e);if(a)return a;var o=Object(s["i"])(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var l={repeat:"repeat"};return u(l),l.rotation=o.rotation,l.scaleX=l.scaleY=i?1:1/n,Xv.set(e,l),e.dirty=!1,l;function u(e){for(var t,a=[n],l=!0,u=0;u<Kv.length;++u){var c=o[Kv[u]];if(null!=c&&!Object(s["t"])(c)&&!Object(s["C"])(c)&&!Object(s["z"])(c)&&"boolean"!==typeof c){l=!1;break}a.push(c)}if(l){t=a.join(",")+(i?"-svg":"");var d=Zv.get(t);d&&(i?e.svgElement=d:e.image=d)}var h,f=Qv(o.dashArrayX),p=e_(o.dashArrayY),m=$v(o.symbol),g=t_(f),y=n_(p),v=!i&&Qn["d"].createCanvas(),_=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=x();function x(){for(var e=1,t=0,n=g.length;t<n;++t)e=si(e,g[t]);var r=1;for(t=0,n=m.length;t<n;++t)r=si(r,m[t].length);e*=r;var i=y*g.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function w(){h&&(h.clearRect(0,0,v.width,v.height),o.backgroundColor&&(h.fillStyle=o.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0)){var a=-y,s=0,l=0,u=0;while(a<b.height){if(s%2===0){var c=l/2%m.length,d=0,g=0,x=0;while(d<2*b.width){var w=0;for(t=0;t<f[u].length;++t)w+=f[u][t];if(w<=0)break;if(g%2===0){var M=.5*(1-o.symbolSize),S=d+f[u][g]*M,T=a+p[s]*M,k=f[u][g]*o.symbolSize,L=p[s]*o.symbolSize,O=x/2%m[c].length;D(S,T,k,L,m[c][O])}d+=f[u][g],++x,++g,g===f[u].length&&(g=0)}++u,u===f.length&&(u=0)}a+=p[s],++l,++s,s===p.length&&(s=0)}}function D(e,t,a,s,l){var u=i?1:n,c=lv(l,e*u,t*u,a*u,s*u,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&_.children.push(d)}else Gv(h,c)}}v&&(v.width=b.width*n,v.height=b.height*n,h=v.getContext("2d")),w(),l&&Zv.put(t,v||_),e.image=v,e.svgElement=_,e.svgWidth=b.width,e.svgHeight=b.height}}function $v(e){if(!e||0===e.length)return[["rect"]];if(Object(s["C"])(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Object(s["C"])(e[n])){t=!1;break}if(t)return $v([e]);var r=[];for(n=0;n<e.length;++n)Object(s["C"])(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Qv(e){if(!e||0===e.length)return[[0,0]];if(Object(s["z"])(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Object(s["z"])(e[r])){n=!1;break}if(n)return Qv([e]);var i=[];for(r=0;r<e.length;++r)if(Object(s["z"])(e[r])){t=Math.ceil(e[r]);i.push([t,t])}else{t=Object(s["H"])(e[r],(function(e){return Math.ceil(e)}));t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function e_(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(Object(s["z"])(e)){var t=Math.ceil(e);return[t,t]}var n=Object(s["H"])(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function t_(e){return Object(s["H"])(e,(function(e){return n_(e)}))}function n_(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}function r_(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");if(n){var i=r.ensureUniqueItemVisual(e,"style");i.decal=Jv(n,t)}}));var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=Jv(i,t)}}}))}var i_=new E,a_=i_,o_={};function s_(e,t){o_[e]=t}function l_(e){return o_[e]}var u_=1,c_=800,d_=900,h_=1e3,f_=2e3,p_=5e3,m_=1e3,g_=1100,y_=2e3,v_=3e3,__=4e3,b_=4500,x_=4600,w_=5e3,M_=6e3,S_=7e3,T_={PROCESSOR:{FILTER:h_,SERIES_FILTER:c_,STATISTIC:p_},VISUAL:{LAYOUT:m_,PROGRESSIVE_LAYOUT:g_,GLOBAL:y_,CHART:v_,POST_CHART_LAYOUT:x_,COMPONENT:__,BRUSH:w_,CHART_ITEM:b_,ARIA:M_,DECAL:S_}},k_="__flagInMainProcess",L_="__pendingUpdate",O_="__needsUpdateStatus",D_=/^[a-zA-Z0-9_]+$/,A_="__connectUpdateStatus",I_=0,C_=1,E_=2;function P_(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return j_(this,e,t);ob(this.id)}}function Y_(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return j_(this,e,t)}}function j_(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),E.prototype[t].apply(e,n)}var N_,R_,H_,F_,z_,B_,W_,V_,G_,U_,q_,X_,Z_,K_,J_,$_,Q_,eb,tb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(E),nb=tb.prototype;nb.on=Y_("on"),nb.off=Y_("off");var rb=function(e){function t(t,n,r){var i=e.call(this,new Ny)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(s["C"])(n)&&(n=hb[n]),i._dom=t;var a="canvas",o="auto",l=!1;r.ssr&&Pr((function(e){var t=Os(e),n=t.dataIndex;if(null!=n){var r=Object(s["f"])();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}}));var u=i._zr=Ir(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(s["P"])(r.useDirtyRect,l),useCoarsePointer:Object(s["P"])(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Qg(Object(s["c"])(u.flush,u),17),n=Object(s["d"])(n),n&&Th(n,!0),i._theme=n,i._locale=Wu(r.locale||zu),i._coordSysMgr=new Xd;var c=i._api=J_(i);function d(e,t){return e.__prio-t.__prio}return Je(db,d),Je(ub,d),i._scheduler=new Oy(i,c,ub,db),i._messageCenter=new tb,i._initEvents(),i.resize=Object(s["c"])(i.resize,i),u.animation.on("frame",i._onframe,i),U_(u,i),q_(u,i),Object(s["R"])(i),i}return a(t,e),t.prototype._onframe=function(){if(!this._disposed){eb(this);var e=this._scheduler;if(this[L_]){var t=this[L_].silent;this[k_]=!0;try{N_(this),F_.update.call(this,null,this[L_].updateParams)}catch(o){throw this[k_]=!1,this[L_]=null,o}this._zr.flush(),this[k_]=!1,this[L_]=null,V_.call(this,t),G_.call(this,t)}else if(e.unfinished){var n=u_,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),B_(this,r),e.performVisualTasks(r),K_(this,this._model,i,"remain",{}),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[k_])if(this._disposed)ob(this.id);else{var r,i,a;if(Object(s["A"])(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[k_]=!0,!this._model||t){var o=new th(this._api),l=this._theme,u=this._model=new Bd;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,o)}this._model.setOption(e,{replaceMerge:i},cb);var c={seriesTransition:a,optionChanged:!0};if(n)this[L_]={silent:r,updateParams:c},this[k_]=!1,this.getZr().wakeUp();else{try{N_(this),F_.update.call(this,null,c)}catch(d){throw this[L_]=null,this[k_]=!1,d}this._ssr||this._zr.flush(),this[L_]=null,this[k_]=!1,V_.call(this,r),G_.call(this,r)}}},t.prototype.setTheme=function(){Cd("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||o["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(o["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(s["k"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;Object(s["k"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(s["k"])(r,(function(e){e.group.ignore=!1})),a}ob(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(mb[n]){var o=a,l=a,u=-a,c=-a,d=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();Object(s["k"])(pb,(function(a,h){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Object(s["d"])(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),l=r(p.top,l),u=i(p.right,u),c=i(p.bottom,c),d.push({dom:f,left:p.left,top:p.top})}})),o*=h,l*=h,u*=h,c*=h;var f=u-o,p=c-l,m=Qn["d"].createCanvas(),g=Ir(m,{renderer:t?"svg":"canvas"});if(g.resize({width:f,height:p}),t){var y="";return Object(s["k"])(d,(function(e){var t=e.left-o,n=e.top-l;y+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new us({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Object(s["k"])(d,(function(e){var t=new es({style:{x:e.left*h-o,y:e.top*h-l,image:e.dom}});g.add(t)})),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}ob(this.id)},t.prototype.convertToPixel=function(e,t){return z_(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return z_(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=Yi(r,e);return Object(s["k"])(i,(function(e,r){r.indexOf("Models")>=0&&Object(s["k"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0}),this)}),this),!!n}ob(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=Yi(n,e,{defaultMainType:"series"}),i=r.seriesModel;var a=i.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return null!=o?By(a,o,t):Wy(a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(s["k"])(ab,(function(t){var n=function(n){var r,i=e.getModel(),a=n.target,o="globalout"===t;if(o?r={}:a&&Xy(a,(function(e){var t=Os(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return r=Object(s["m"])({},t.eventData),!0}),!0),r){var l=r.componentType,u=r.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=r.seriesIndex);var c=l&&null!=u&&i.getComponent(l,u),d=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:d},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(s["k"])(lb,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(s["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),qy(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?ob(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)ob(this.id);else{this._disposed=!0;var e=this.getDom();e&&Fi(this.getDom(),yb,"");var t=this,n=t._api,r=t._model;Object(s["k"])(t._componentsViews,(function(e){e.dispose(r,n)})),Object(s["k"])(t._chartsViews,(function(e){e.dispose(r,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete pb[t.id]}},t.prototype.resize=function(e){if(!this[k_])if(this._disposed)ob(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[L_]&&(null==r&&(r=this[L_].silent),n=!0,this[L_]=null),this[k_]=!0;try{n&&N_(this),F_.update.call(this,{type:"resize",animation:Object(s["m"])({duration:0},e&&e.animation)})}catch(i){throw this[k_]=!1,i}this[k_]=!1,V_.call(this,r),G_.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)ob(this.id);else if(Object(s["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),fb[e]){var n=fb[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?ob(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(s["m"])({},e);return t.type=lb[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)ob(this.id);else if(Object(s["A"])(t)||(t={silent:!!t}),sb[e.type]&&this._model)if(this[k_])this._pendingActions.push(e);else{var n=t.silent;W_.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&o["a"].browser.weChat&&this._throttledZrFlush(),V_.call(this,n),G_.call(this,n)}},t.prototype.updateLabelLayout=function(){a_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)ob(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var a=i.get("zlevel")||0,o=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})})),r){var i,a,o=t.concat(n);Je(o,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(s["k"])(o,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===js&&e.states.emphasis?t.push("emphasis"):e.hoverState===Ys&&e.states.blur&&t.push("blur"),e.useStates(t)}function r(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!o["a"].node&&!o["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function i(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function l(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return u(e,n,r,-1/0),!0}))}}function u(e,t,n,r){var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(u(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function c(e,t){t.eachRendered((function(e){if(!ql(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function d(e,t){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(ql(e))return;if(e instanceof Uo&&zl(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&n(e)}}))}N_=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),R_(e,!0),R_(e,!1),t.plan()},R_=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var d=Xi(e.type),h=t?Op.getClass(d.main,d.sub):Zg.getClass(d.sub);0,c=new h,c.init(n,s),a[u]=c,i.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),i.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},H_=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var o={};o[r+"Id"]=n[r+"Id"],o[r+"Index"]=n[r+"Index"],o[r+"Name"]=n[r+"Name"];var l={mainType:r,query:o};i&&(l.subType=i);var u,c=n.excludeSeriesId;null!=c&&(u=Object(s["f"])(),Object(s["k"])(di(c),(function(e){var t=Ti(e,null);null!=t&&u.set(t,!0)}))),a&&a.eachComponent(l,(function(t){var r=u&&null!=u.get(t.id);if(!r)if(Fl(n))if(t instanceof kp)n.type!==zs||n.notBlur||t.get(["emphasis","disabled"])||xl(t,n,e._api);else{var i=wl(t.mainType,t.componentIndex,n.name,e._api),a=i.focusSelf,o=i.dispatchers;n.type===zs&&a&&!n.notBlur&&bl(t.mainType,t.componentIndex,e._api),o&&Object(s["k"])(o,(function(e){n.type===zs?dl(e):hl(e)}))}else Hl(n)&&t instanceof kp&&(Tl(t,n,e._api),kl(t),Q_(e))}),e),a&&a.eachComponent(l,(function(t){var n=u&&null!=u.get(t.id);n||d(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(s["k"])([].concat(e._componentsViews).concat(e._chartsViews),d);function d(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},F_={prepareAndUpdate:function(e){N_(this),F_.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),B_(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),X_(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),a_.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent((function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}}));var o=Object(s["f"])();r.eachSeries((function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),K_(this,r,i,t,{},o),a_.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),Zg.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),X_(this,n,this._api,t,{}),a_.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),Zg.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){var i=n._chartsMap[e.__viewId];i.updateVisual(e,r,n._api,t)})),a_.trigger("afterupdate",r,this._api))},updateLayout:function(e){F_.update.call(this,e)}},z_=function(e,t,n,r){if(e._disposed)ob(e.id);else{for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=Yi(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(i=u[t](a,s,r)))return i}0}},B_=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},W_=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=sb[i],l=o.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),d=null!=u[0]&&Xi(u[0]);this[k_]=!0;var h=[e],f=!1;e.batch&&(f=!0,h=Object(s["H"])(e.batch,(function(t){return t=Object(s["i"])(Object(s["m"])({},t),e),t.batch=null,t})));var p,m=[],g=Hl(e),y=Fl(e);if(y&&vl(this._api),Object(s["k"])(h,(function(t){if(p=o.action(t,n._model,n._api),p=p||Object(s["m"])({},t),p.type=l.event||p.type,m.push(p),y){var r=ji(e),i=r.queryOptionMap,a=r.mainTypeSpecified,u=a?i.keys()[0]:"series";H_(n,c,t,u),Q_(n)}else g?(H_(n,c,t,"series"),Q_(n)):d&&H_(n,c,t,d.main,d.sub)})),"none"!==c&&!y&&!g&&!d)try{this[L_]?(N_(this),F_.update.call(this,e),this[L_]=null):F_[c].call(this,e)}catch(b){throw this[k_]=!1,b}if(p=f?{type:l.event||i,escapeConnect:a,batch:m}:m[0],this[k_]=!1,!t){var v=this._messageCenter;if(v.trigger(p.type,p),g){var _={type:"selectchanged",escapeConnect:a,selected:Ll(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(_.type,_)}}},V_=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();W_.call(this,n,e)}},G_=function(e){!e&&this.trigger("updated")},U_=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[L_]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},q_=function(e,t){e.on("mouseover",(function(e){var n=e.target,r=Xy(n,jl);r&&(Ml(r,e,t._api),Q_(t))})).on("mouseout",(function(e){var n=e.target,r=Xy(n,jl);r&&(Sl(r,e,t._api),Q_(t))})).on("click",(function(e){var n=e.target,r=Xy(n,(function(e){return null!=Os(e).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",a=Os(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},X_=function(e,n,r,i,a){t(n),Z_(e,n,r,i,a),Object(s["k"])(e._chartsViews,(function(e){e.__alive=!1})),K_(e,n,r,i,a),Object(s["k"])(e._chartsViews,(function(e){e.__alive||e.remove(n,r)}))},Z_=function(e,t,n,r,i,a){Object(s["k"])(a||e._componentsViews,(function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),l(i,e),d(i,e)}))},K_=function(e,t,n,a,o,u){var h=e._scheduler;o=Object(s["m"])(o||{},{updatedSeries:t.getSeries()}),a_.trigger("series:beforeupdate",t,n,o);var f=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,a),c(t,n),u&&u.get(t.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(f=!0),n.group.silent=!!t.get("silent"),i(t,n),kl(t)})),h.unfinished=f||h.unfinished,a_.trigger("series:layoutlabels",t,n,o),a_.trigger("series:transition",t,n,o),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];l(t,n),d(t,n)})),r(e,t),a_.trigger("series:afterupdate",t,n,o)},Q_=function(e){e[O_]=!0,e.getZr().wakeUp()},eb=function(e){e[O_]&&(e.getZr().storage.traverse((function(e){ql(e)||n(e)})),e[O_]=!1)},J_=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){dl(t,n),Q_(e)},n.prototype.leaveEmphasis=function(t,n){hl(t,n),Q_(e)},n.prototype.enterBlur=function(t){fl(t),Q_(e)},n.prototype.leaveBlur=function(t){pl(t),Q_(e)},n.prototype.enterSelect=function(t){ml(t),Q_(e)},n.prototype.leaveSelect=function(t){gl(t),Q_(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Gd))(e)},$_=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[A_]=t}}Object(s["k"])(lb,(function(n,r){e._messageCenter.on(r,(function(n){if(mb[e.group]&&e[A_]!==I_){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Object(s["k"])(pb,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,I_),Object(s["k"])(i,(function(e){e[A_]!==C_&&e.dispatchAction(r)})),t(i,E_)}}))}))}}(),t}(E),ib=rb.prototype;ib.on=P_("on"),ib.off=P_("off"),ib.one=function(e,t,n){var r=this;function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}Cd("ECharts#one is deprecated."),this.on.call(this,e,i,n)};var ab=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ob(e){0}var sb={},lb={},ub=[],cb=[],db=[],hb={},fb={},pb={},mb={},gb=+new Date-0,yb=(new Date,"_echarts_instance_");function vb(e,t,n){var r=!(n&&n.ssr);if(r){0;var i=_b(e);if(i)return i;0}var a=new rb(e,t,n);return a.id="ec_"+gb++,pb[a.id]=a,r&&Fi(e,yb,a.id),$_(a),a_.trigger("afterinit",a),a}function _b(e){return pb[zi(e,yb)]}function bb(e,t){hb[e]=t}function xb(e){Object(s["r"])(cb,e)<0&&cb.push(e)}function wb(e,t){Ib(ub,e,t,f_)}function Mb(e){Tb("afterinit",e)}function Sb(e){Tb("afterupdate",e)}function Tb(e,t){a_.on(e,t)}function kb(e,t,n){Object(s["w"])(t)&&(n=t,t="");var r=Object(s["A"])(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,lb[t]||(Object(s["b"])(D_.test(r)&&D_.test(t)),sb[r]||(sb[r]={action:n,actionInfo:e}),lb[t]=r)}function Lb(e,t){Xd.register(e,t)}function Ob(e,t){Ib(db,e,t,m_,"layout")}function Db(e,t){Ib(db,e,t,v_,"visual")}var Ab=[];function Ib(e,t,n,r,i){if((Object(s["w"])(t)||Object(s["A"])(t))&&(n=t,t=r),!(Object(s["r"])(Ab,n)>=0)){Ab.push(n);var a=Oy.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function Cb(e,t){fb[e]=t}function Eb(e,t,n){var r=l_("registerMap");r&&r(e,t,n)}var Pb=Sf;Db(y_,sy),Db(b_,uy),Db(b_,cy),Db(y_,Fy),Db(b_,zy),Db(S_,r_),xb(Th),wb(d_,kh),Cb("default",hy),kb({type:zs,event:zs,update:zs},s["L"]),kb({type:Bs,event:Bs,update:Bs},s["L"]),kb({type:Ws,event:Ws,update:Ws},s["L"]),kb({type:Vs,event:Vs,update:Vs},s["L"]),kb({type:Gs,event:Gs,update:Gs},s["L"]),bb("light",Ay),bb("dark",jy);var Yb=[],jb={registerPreprocessor:xb,registerProcessor:wb,registerPostInit:Mb,registerPostUpdate:Sb,registerUpdateLifecycle:Tb,registerAction:kb,registerCoordinateSystem:Lb,registerLayout:Ob,registerVisual:Db,registerTransform:Pb,registerLoading:Cb,registerMap:Eb,registerImpl:s_,PRIORITY:T_,ComponentModel:Jc,ComponentView:Op,SeriesModel:kp,ChartView:Zg,registerComponentModel:function(e){Jc.registerClass(e)},registerComponentView:function(e){Op.registerClass(e)},registerSeriesModel:function(e){kp.registerClass(e)},registerChartView:function(e){Zg.registerClass(e)},registerSubTypeDefaulter:function(e,t){Jc.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Cr(e,t)}};function Nb(e){Object(s["t"])(e)?Object(s["k"])(e,(function(e){Nb(e)})):Object(s["r"])(Yb,e)>=0||(Yb.push(e),Object(s["w"])(e)&&(e={install:e}),e.install(jb))}var Rb=2*Math.PI,Hb=bo.CMD,Fb=["top","right","bottom","left"];function zb(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function Bb(e,t,n,r,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+e,d=s*n+t;if(Math.abs(r-i)%Rb<1e-4)return l[0]=c,l[1]=d,u-n;if(a){var h=r;r=To(i),i=To(h)}else r=To(r),i=To(i);r>i&&(i+=Rb);var f=Math.atan2(s,o);if(f<0&&(f+=Rb),f>=r&&f<=i||f+Rb>=r&&f+Rb<=i)return l[0]=c,l[1]=d,u-n;var p=n*Math.cos(r)+e,m=n*Math.sin(r)+t,g=n*Math.cos(i)+e,y=n*Math.sin(i)+t,v=(p-o)*(p-o)+(m-s)*(m-s),_=(g-o)*(g-o)+(y-s)*(y-s);return v<_?(l[0]=p,l[1]=m,Math.sqrt(v)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Wb(e,t,n,r,i,a,o,s){var l=i-e,u=a-t,c=n-e,d=r-t,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var f=l*c+u*d,p=f/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var m=o[0]=e+p*c,g=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(g-a)*(g-a))}function Vb(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Gb=[];function Ub(e,t,n){var r=Vb(t.x,t.y,t.width,t.height,e.x,e.y,Gb);return n.set(Gb[0],Gb[1]),r}function qb(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,f=0;f<c.length;){var p=c[f++];1===f&&(a=c[f],o=c[f+1],s=a,l=o);var m=u;switch(p){case Hb.M:s=c[f++],l=c[f++],a=s,o=l;break;case Hb.L:m=Wb(a,o,c[f],c[f+1],d,h,Gb,!0),a=c[f++],o=c[f++];break;case Hb.C:m=kt(a,o,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],d,h,Gb),a=c[f++],o=c[f++];break;case Hb.Q:m=Et(a,o,c[f++],c[f++],c[f],c[f+1],d,h,Gb),a=c[f++],o=c[f++];break;case Hb.A:var g=c[f++],y=c[f++],v=c[f++],_=c[f++],b=c[f++],x=c[f++];f+=1;var w=!!(1-c[f++]);r=Math.cos(b)*v+g,i=Math.sin(b)*_+y,f<=1&&(s=r,l=i);var M=(d-g)*_/v+g;m=Bb(g,y,_,b,b+x,w,M,h,Gb),a=Math.cos(b+x)*v+g,o=Math.sin(b+x)*_+y;break;case Hb.R:s=a=c[f++],l=o=c[f++];var S=c[f++],T=c[f++];m=Vb(s,l,S,T,d,h,Gb);break;case Hb.Z:m=Wb(a,o,s,l,d,h,Gb,!0),a=s,o=l;break}m<u&&(u=m,n.set(Gb[0],Gb[1]))}return u}var Xb=new _e,Zb=new _e,Kb=new _e,Jb=new _e,$b=new _e;function Qb(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Fb,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),d=c&&ge([],c),h=t.get("length2")||0;u&&Kb.copy(u);for(var f=0;f<o.length;f++){var p=o[f];zb(p,0,s,Xb,Jb),_e.scaleAndAdd(Zb,Xb,Jb,h),Zb.transform(d);var m=e.getBoundingRect(),g=u?u.distance(Zb):e instanceof Uo?qb(Zb,e.path,Kb):Ub(Zb,m,Kb);g<l&&(l=g,Zb.transform(c),Kb.transform(c),Kb.toArray(a[0]),Zb.toArray(a[1]),Xb.toArray(a[2]))}nx(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var ex=[],tx=new _e;function nx(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Xb.fromArray(e[0]),Zb.fromArray(e[1]),Kb.fromArray(e[2]),_e.sub(Jb,Xb,Zb),_e.sub($b,Kb,Zb);var n=Jb.len(),r=$b.len();if(!(n<.001||r<.001)){Jb.scale(1/n),$b.scale(1/r);var i=Jb.dot($b),a=Math.cos(t);if(a<i){var o=Wb(Zb.x,Zb.y,Kb.x,Kb.y,Xb.x,Xb.y,ex,!1);tx.fromArray(ex),tx.scaleAndAdd($b,o/Math.tan(Math.PI-t));var s=Kb.x!==Zb.x?(tx.x-Zb.x)/(Kb.x-Zb.x):(tx.y-Zb.y)/(Kb.y-Zb.y);if(isNaN(s))return;s<0?_e.copy(tx,Zb):s>1&&_e.copy(tx,Kb),tx.toArray(e[1])}}}}function rx(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Xb.fromArray(e[0]),Zb.fromArray(e[1]),Kb.fromArray(e[2]),_e.sub(Jb,Zb,Xb),_e.sub($b,Kb,Zb);var r=Jb.len(),i=$b.len();if(!(r<.001||i<.001)){Jb.scale(1/r),$b.scale(1/i);var a=Jb.dot(t),o=Math.cos(n);if(a<o){var s=Wb(Zb.x,Zb.y,Kb.x,Kb.y,Xb.x,Xb.y,ex,!1);tx.fromArray(ex);var l=Math.PI/2,u=Math.acos($b.dot(t)),c=l+u-n;if(c>=l)_e.copy(tx,Kb);else{tx.scaleAndAdd($b,s/Math.tan(Math.PI/2-c));var d=Kb.x!==Zb.x?(tx.x-Zb.x)/(Kb.x-Zb.x):(tx.y-Zb.y)/(Kb.y-Zb.y);if(isNaN(d))return;d<0?_e.copy(tx,Zb):d>1&&_e.copy(tx,Kb)}tx.toArray(e[1])}}}}function ix(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function ax(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=w(r[0],r[1]),a=w(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=T([],r[1],r[0],o/i),l=T([],r[1],r[2],o/a),u=T([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function ox(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var a=t.normal,o=a.get("show"),l=i.ignore,u=0;u<Rs.length;u++){var c=Rs[u],d=t[c],h="normal"===c;if(d){var f=d.get("show"),p=h?l:Object(s["P"])(i.states[c]&&i.states[c].ignore,l);if(p||!Object(s["P"])(f,o)){var m=h?r:r&&r.states[c];m&&(m.ignore=!0),r&&ix(r,!0,c,d);continue}r||(r=new Em,e.setTextGuideLine(r),h||!l&&o||ix(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),ix(r,!1,c,d)}}if(r){Object(s["i"])(r.style,n),r.style.fill=null;var g=a.get("showAbove"),y=e.textGuideLineConfig=e.textGuideLineConfig||{};y.showAbove=g||!1,r.buildPath=ax}}else r&&e.removeTextGuideLine()}function sx(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<Ns.length;r++){var i=Ns[r];n[i]=e.getModel([i,t])}return n}function lx(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new ag(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}function ux(e,t,n,r,i,a){var o=e.length;if(!(o<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],d=0,h=0;h<o;h++){var f=e[h],p=f.rect;s=p[t]-l,s<0&&(p[t]-=s,f.label[t]-=s,u=!0);var m=Math.max(-s,0);c.push(m),d+=m,l=p[t]+p[n]}d>0&&a&&w(-d/o,0,o);var g,y,v=e[0],_=e[o-1];return b(),g<0&&M(-g,.8),y<0&&M(y,.8),b(),x(g,y,1),x(y,g,-1),b(),g<0&&S(-g),y<0&&S(y),u}function b(){g=v.rect[t]-r,y=i-_.rect[t]-_.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,o);var i=r+e;i<0&&M(-i*n,1)}else M(-e*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function M(r,i){for(var a=[],s=0,l=1;l<o;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);a.push(c),s+=c}if(s){var d=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<o-1;l++){var h=a[l]*d;w(h,0,l+1)}else for(l=o-1;l>0;l--){h=a[l-1]*d;w(-h,l,o)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?w(n,0,r+1):w(-n,o-r-1,o),e-=n,e<=0)return}}function cx(e,t,n,r){return ux(e,"x","width",t,n,r)}function dx(e,t,n,r){return ux(e,"y","height",t,n,r)}function hx(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new De(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,h=!1,f=0;f<t.length;f++){var p=t[f];if(n.intersect(p.rect)){if(o&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new ag(p.localRect,p.transform)),d||(d=new ag(s,l)),d.intersect(p.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function fx(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function px(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:fx(r&&r.shape.points)}}var mx=["align","verticalAlign","width","height","fontSize"],gx=new Jn,yx=Ei(),vx=Ei();function _x(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var bx=["x","y","rotation"],xx=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget,s=o.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();De.applyTransform(u,u,l),l?gx.setLocalTransform(l):(gx.x=gx.y=gx.rotation=gx.originX=gx.originY=0,gx.scaleX=gx.scaleY=1),gx.rotation=To(gx.rotation);var c,d=r.__hostTarget;if(d){c=d.getBoundingRect().plain();var h=d.getComputedTransform();De.applyTransform(c,c,h)}var f=c&&d.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:gx.x,y:gx.y,scaleX:gx.scaleX,scaleY:gx.scaleY,rotation:gx.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(Object(s["w"])(r)||Object(s["F"])(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Os(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Qb(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,l=o.__hostTarget,u=a.defaultAttr,c=void 0;c=Object(s["w"])(a.layoutOption)?a.layoutOption(px(a,l)):a.layoutOption,c=c||{},a.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:u.attachedPos,rotation:null!=c.rotate?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(null!=c.x?(o.x=Hr(c.x,t),o.setStyle("x",0),h=!0):(o.x=u.x,o.setStyle("x",u.style.x)),null!=c.y?(o.y=Hr(c.y,n),o.setStyle("y",0),h=!0):(o.y=u.y,o.setStyle("y",u.style.y)),c.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:c.labelLinePoints}),h=!1)}var p=yx(o);p.needsUpdateLabelLine=h,o.rotation=null!=c.rotate?c.rotate*d:u.rotation,o.scaleX=u.scaleX,o.scaleY=u.scaleY;for(var m=0;m<mx.length;m++){var g=mx[m];o.setStyle(g,null!=c[g]?c[g]:u.style[g])}if(c.draggable){if(o.draggable=!0,o.cursor="move",l){var y=a.seriesModel;if(null!=a.dataIndex){var v=a.seriesModel.getData(a.dataType);y=v.getItemModel(a.dataIndex)}o.on("drag",r(l,y.getModel("labelLine")))}}else o.off("drag"),o.cursor=u.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=lx(this._labelList),i=Object(s["n"])(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=Object(s["n"])(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));cx(i,0,t),dx(a,0,n);var o=Object(s["n"])(r,(function(e){return e.layoutOption.hideOverlap}));hx(o)},e.prototype.processLabelsOverall=function(){var e=this;Object(s["k"])(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=yx(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Os(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");if(l){var u=a.getVisual("drawType");s.stroke=l[u]}var c=o.getModel("labelLine");ox(e,sx(o),s),Qb(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!ql(e))){var i=yx(n),a=i.oldLayout,o=Os(e),l=o.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(o.dataType);if(a){n.attr(a);var d=e.prevStates;d&&(Object(s["r"])(d,"select")>=0&&n.attr(i.oldLayoutSelect),Object(s["r"])(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Gl(n,u,t,l)}else if(n.attr(u),!fu(n).valueAnimation){var h=Object(s["P"])(n.style.opacity,1);n.style.opacity=0,Ul(n,{style:{opacity:h}},t,l)}if(i.oldLayout=u,n.states.select){var f=i.oldLayoutSelect={};_x(f,u,bx),_x(f,n.states.select,bx)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};_x(p,u,bx),_x(p,n.states.emphasis,bx)}mu(n,l,c,t,t)}if(r&&!r.ignore&&!r.invisible){i=vx(r),a=i.oldLayout;var m={points:r.shape.points};a?(r.attr({shape:a}),Gl(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Ul(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),wx=xx,Mx=Ei();function Sx(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=Mx(t).labelManager;r||(r=Mx(t).labelManager=new wx),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=Mx(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function Tx(e,t,n){var r=Qn["d"].createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=a*n,r}Nb(Sx);var kx=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||jn,"string"===typeof t?i=Tx(t,n,r):s["A"](t)&&(i=t,t=i.id),a.id=t,a.dom=i;var o=i.style;return o&&(s["j"](i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return u(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Tx("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new De(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===a.length){var t=new De(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,u=0;u<a.length;++u){var c=a[u];if(c.intersect(e)){var d=new De(0,0,0,0);d.copy(c),d.union(e),a[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,f=c.width*c.height,p=l.width*l.height,m=p-h-f;m<r&&(r=m,i=u)}}if(s&&(a[i].union(e),n=!0),!n){t=new De(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,r,!0,!0),f=d.__isRendered&&(d.__dirty&$e||!h)?d.getPrevPaintRect():null;f&&u(f);var p=h&&(d.__dirty&$e||!d.__isRendered)?d.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){d=t[c],h=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){f=d.getPrevPaintRect();f&&u(f)}}do{i=!1;for(c=0;c<a.length;)if(a[c].isZero())a.splice(c,1);else{for(var m=c+1;m<a.length;)a[c].intersect(a[m])?(i=!0,a[c].union(a[m]),a.splice(m,1)):m++;c++}}while(i);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t=t||this.clearColor;var l=this.motionBlur&&!e,u=this.lastFrameAlpha,c=this.dpr,d=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,o/c));var h=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;if(s["x"](t)){var f=t.global||t.__width===r&&t.__height===a;o=f&&t.__canvasGradient||pv(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a}else s["y"](t)&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,o=kv(i,t,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}l&&(i.save(),i.globalAlpha=u,i.drawImage(h,e,n,r,a),i.restore())}!n||l?f(0,0,a,o):n.length&&s["k"](n,(function(e){f(e.x*c,e.y*c,e.width*c,e.height*c)}))},t}(E),Lx=kx,Ox=1e5,Dx=314159,Ax=.01,Ix=.001;function Cx(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function Ex(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Px=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=s["m"]({},n||{}),this.dpr=n.devicePixelRatio||jn,this._singleCanvas=i,this.root=e;var a=e.style;a&&(s["j"](e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var u=e,c=u.width,d=u.height;null!=n.width&&(c=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,u.width=c*this.dpr,u.height=d*this.dpr,this._width=c,this._height=d;var h=new Lx(u,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Dx]=h,h.zlevel=Dx,o.push(Dx),this._domRoot=e}else{this._width=yv(e,0,n),this._height=yv(e,1,n);var f=this._domRoot=Ex(this._width,this._height);e.appendChild(f)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<t;a++){var o=e[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ox)),r||(r=n.ctx,r.save()),Uv(r,o,i,a===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Ox)},e.prototype.paintOne=function(e,t){Gv(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;st((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(Dx).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var u=this._zlevelList[l],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var d=!0,h=!1,f=function(o){var s,l=i[o],u=l.ctx,c=a&&l.createRepaintRects(e,t,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,g=m&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,c);else if(f===l.__startIndex){var v=e[f];v.incremental&&v.notClear&&!n||l.clear(!1,y,c)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(h=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),m){var o=Date.now()-g;if(o>15)break}}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var b=p.dpr,x=0;x<c.length;++x){var w=c[x];u.save(),u.beginPath(),u.rect(w.x*b,w.y*b,w.width*b,w.height*b),u.clip(),_(w),u.restore()}else u.save(),_(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(d=!1)},p=this,m=0;m<i.length;m++)f(m);return o["a"].wxa&&s["k"](this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:d,needsRefreshHover:h}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Uv(o,e,i,a),e.setPrevPaintRect(s))}else Uv(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Dx);var n=this._layers[e];return n||(n=new Lx("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?s["I"](n,this._layerConfig[e],!0):this._layerConfig[e-Ax]&&s["I"](n,this._layerConfig[e-Ax],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&Cx(t)){if(i>0&&e>r[0]){for(s=0;s<i-1;s++)if(r[s]<e&&r[s+1]>e)break;o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,a,o=null,l=0;for(a=0;a<e.length;a++){r=e[a];var u=r.zlevel,c=void 0;i!==u&&(i=u,l=0),r.incremental?(c=this.getLayer(u+Ix,this._needsManuallyCompositing),c.incremental=!0,l=1):c=this.getLayer(u+(l>0?Ax:0),this._needsManuallyCompositing),c.__builtin__||s["G"]("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==a&&(c.__dirty=!0),c.__startIndex=a,c.incremental?c.__drawIndex=-1:c.__drawIndex=a,t(a),o=c),r.__dirty&$e&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=a))}t(a),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,s["k"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?s["I"](n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+Ax){var a=this._layers[i];s["I"](a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(s["r"](n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=yv(i,0,r),t=yv(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(Dx).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Dx].dom;var t=new Lx("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var u=o[s];Uv(n,u,a,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),Yx=Px;function jx(e){e.registerPainter("canvas",Yx)}var Nx=Math.sin,Rx=Math.cos,Hx=Math.PI,Fx=2*Math.PI,zx=180/Hx,Bx=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add("C",e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var l=o-a,u=!s,c=Math.abs(l),d=Object(Ft["j"])(c-Fx)||(u?l>=Fx:-l>=Fx),h=l>0?l%Fx:l%Fx+Fx,f=!1;f=!!d||!Object(Ft["j"])(c)&&h>=Hx===!!u;var p=e+n*Rx(a),m=t+r*Nx(a);this._start&&this._add("M",p,m);var g=Math.round(i*zx);if(d){var y=1/this._p,v=(u?1:-1)*(Fx-y);this._add("A",n,r,g,1,+u,e+n*Rx(a+v),t+r*Nx(a+v)),y>.01&&this._add("A",n,r,g,0,+u,p,m)}else{var _=e+n*Rx(o),b=t+r*Nx(o);this._add("A",n,r,g,+f,+u,_,b)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h))return void(this._invalid=!0);u.push(Math.round(h*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Wx=Bx,Vx="none",Gx=Math.round;function Ux(e){var t=e.fill;return null!=t&&t!==Vx}function qx(e){var t=e.stroke;return null!=t&&t!==Vx}var Xx=["lineCap","miterLimit","lineJoin"],Zx=Object(s["H"])(Xx,(function(e){return"stroke-"+e.toLowerCase()}));function Kx(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof es)e("opacity",i);else{if(Ux(t)){var a=Object(Ft["p"])(t.fill);e("fill",a.color);var o=null!=t.fillOpacity?t.fillOpacity*a.opacity*i:a.opacity*i;(r||o<1)&&e("fill-opacity",o)}else e("fill",Vx);if(qx(t)){var s=Object(Ft["p"])(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if((r||1!==u)&&e("stroke-width",u),(r||d)&&e("paint-order",d?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var h=_v(n),f=h[0],p=h[1];f&&(p=Gx(p||0),e("stroke-dasharray",f.join(",")),(p||r)&&e("stroke-dashoffset",p))}else r&&e("stroke-dasharray",Vx);for(var m=0;m<Xx.length;m++){var g=Xx[m];if(r||t[g]!==Bo[g]){var y=t[g]||Bo[g];y&&e(Zx[m],y)}}}else r&&e("stroke",Vx)}}var Jx="http://www.w3.org/2000/svg",$x="http://www.w3.org/1999/xlink",Qx="http://www.w3.org/2000/xmlns/",ew="http://www.w3.org/XML/1998/namespace",tw="ecmeta_";function nw(e){return document.createElementNS(Jx,e)}function rw(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function iw(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;!1!==i&&(!0!==i&&null!=i&&(a+='="'+i+'"'),n.push(a))}return"<"+e+" "+n.join(" ")+">"}function aw(e){return"</"+e+">"}function ow(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return iw(i,a)+("style"!==i?U(o):o||"")+(t?""+n+Object(s["H"])(t,(function(e){return r(e)})).join(n)+n:"")+aw(i)}return r(e)}function sw(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,a=r+"}",o=Object(s["H"])(Object(s["F"])(e),(function(t){return t+i+Object(s["H"])(Object(s["F"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+a})).join(r),l=Object(s["H"])(Object(s["F"])(t),(function(e){return"@keyframes "+e+i+Object(s["H"])(Object(s["F"])(t[e]),(function(n){return n+i+Object(s["H"])(Object(s["F"])(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+a})).join(r)+a})).join(r);return o||l?["<![CDATA[",o,l,"]]>"].join(r):""}function lw(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function uw(e,t,n,r){return rw("svg","root",{width:e,height:t,xmlns:Jx,"xmlns:xlink":$x,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var cw=0;function dw(){return cw++}var hw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},fw="transform-origin";function pw(e,t,n){var r=Object(s["m"])({},e.shape);Object(s["m"])(r,t),e.buildPath(n,r);var i=new Wx;return i.reset(Object(Ft["f"])(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function mw(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[fw]=n+"px "+r+"px")}var gw={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function yw(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function vw(e,t,n){var r,i,a=e.shape.paths,o={};if(Object(s["k"])(a,(function(e){var t=lw(n.zrId);t.animation=!0,bw(e,{},t,!0);var a=t.cssAnims,l=t.cssNodes,u=Object(s["F"])(a),c=u.length;if(c){i=u[c-1];var d=a[i];for(var h in d){var f=d[h];o[h]=o[h]||{d:""},o[h].d+=f.d||""}for(var p in l){var m=l[p].animation;m.indexOf(i)>=0&&(r=m)}}})),r){t.d=!1;var l=yw(o,n);return r.replace(i,l)}}function _w(e){return Object(s["C"])(e)?hw[e]?"cubic-bezier("+hw[e]+")":jt(e)?e:"":""}function bw(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof qm){var l=vw(e,t,n);if(l)o.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;c<a;c++){var d=i[c],h=[d.getMaxTime()/1e3+"s"],f=_w(d.getClip().easing),p=d.getDelay();f?h.push(f):h.push("linear"),p&&h.push(p/1e3+"s"),d.getLoop()&&h.push("infinite");var m=h.join(" ");u[m]=u[m]||[m,[]],u[m][1].push(d)}function g(i){var a,o=i[1],l=o.length,u={},c={},d={},h="animation-timing-function";function f(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var l=o.keyframes,u=o.propName;if(n&&(u=n(u)),u)for(var c=0;c<l.length;c++){var d=l[c],f=Math.round(d.time/i*100)+"%",p=_w(d.easing),m=d.rawValue;(Object(s["C"])(m)||Object(s["z"])(m))&&(t[f]=t[f]||{},t[f][u]=d.rawValue,p&&(t[f][h]=p))}}}}for(var p=0;p<l;p++){var m=o[p],g=m.targetName;g?"shape"===g&&f(m,c):!r&&f(m,u)}for(var y in u){var v={};Kn(v,e),Object(s["m"])(v,u[y]);var _=Object(Ft["g"])(v),b=u[y][h];d[y]=_?{transform:_}:{},mw(d[y],v),b&&(d[y][h]=b)}var x=!0;for(var y in c){d[y]=d[y]||{};var w=!a;b=c[y][h];w&&(a=new bo);var M=a.len();a.reset(),d[y].d=pw(e,c[y],a);var S=a.len();if(!w&&M!==S){x=!1;break}b&&(d[y][h]=b)}if(!x)for(var y in d)delete d[y].d;if(!r)for(p=0;p<l;p++){m=o[p],g=m.targetName;"style"===g&&f(m,d,(function(e){return gw[e]}))}var T,k=Object(s["F"])(d),L=!0;for(p=1;p<k.length;p++){var O=k[p-1],D=k[p];if(d[O][fw]!==d[D][fw]){L=!1;break}T=d[O][fw]}if(L&&T){for(var y in d)d[y][fw]&&delete d[y][fw];t[fw]=T}if(Object(s["n"])(k,(function(e){return Object(s["F"])(d[e]).length>0})).length){var A=yw(d,n);return A+" "+i[0]+" both"}}for(var y in u){l=g(u[y]);l&&o.push(l)}if(o.length){var v=n.zrId+"-cls-"+dw();n.cssNodes["."+v]={animation:o.join(",")},t["class"]=v}}function xw(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};ww(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=Object(Ht["d"])(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u/=c}r={cursor:"pointer"};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),ww(r,t,n,!0)}}function ww(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+"-cls-"+dw(),n.cssStyleCache[i]=a,n.cssNodes["."+a+(r?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+a:a}var Mw=Math.round;function Sw(e){return e&&Object(s["C"])(e.src)}function Tw(e){return e&&Object(s["w"])(e.toDataURL)}function kw(e,t,n,r){Kx((function(i,a){var o="fill"===i||"stroke"===i;o&&Object(Ft["k"])(a)?zw(t,e,i,r):o&&Object(Ft["n"])(a)?Bw(n,e,i,r):e[i]=a,o&&r.ssr&&"none"===a&&(e["pointer-events"]="visible")}),t,n,!1),Fw(n,e,r)}function Lw(e,t){var n=Er(t);n&&(n.each((function(t,n){null!=t&&(e[(tw+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[tw+"silent"]="true"))}function Ow(e){return Object(Ft["j"])(e[0]-1)&&Object(Ft["j"])(e[1])&&Object(Ft["j"])(e[2])&&Object(Ft["j"])(e[3]-1)}function Dw(e){return Object(Ft["j"])(e[4])&&Object(Ft["j"])(e[5])}function Aw(e,t,n){if(t&&(!Dw(t)||!Ow(t))){var r=n?10:1e4;e.transform=Ow(t)?"translate("+Mw(t[4]*r)/r+" "+Mw(t[5]*r)/r+")":Object(Ft["e"])(t)}}function Iw(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(Mw(r[a][0]*n)/n),i.push(Mw(r[a][1]*n)/n);t.points=i.join(" ")}function Cw(e){return!e.smooth}function Ew(e){var t=Object(s["H"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];null!=o&&(n[a[1]]=Mw(o*r)/r)}}}var Pw={circle:[Ew(["cx","cy","r"])],polyline:[Iw,Cw],polygon:[Iw,Cw]};function Yw(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function jw(e,t){var n=e.style,r=e.shape,i=Pw[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Object(Ft["f"])(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||o&&Yw(e)||l<1){var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;c&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),f=e,p=f.__svgPathBuilder;f.__svgPathVersion===h&&p&&l===f.__svgPathStrokePercent||(p||(p=f.__svgPathBuilder=new Wx),p.reset(u),d.rebuildPath(p,l),p.generateStr(),f.__svgPathVersion=h,f.__svgPathStrokePercent=l),a.d=p.getStr()}else{s=e.type;var m=Math.pow(10,u);i[0](r,a,m)}return Aw(a,e.transform),kw(a,n,e,t),Lw(a,e),t.animation&&bw(e,a,t),t.emphasis&&xw(e,a,t),rw(s,e.id+"",a)}function Nw(e,t){var n=e.style,r=n.image;if(r&&!Object(s["C"])(r)&&(Sw(r)?r=r.src:Tw(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,l=n.height,u={href:r,width:o,height:l};return i&&(u.x=i),a&&(u.y=a),Aw(u,e.transform),kw(u,n,e,t),Lw(u,e),t.animation&&bw(e,u,t),rw("image",e.id+"",u)}}function Rw(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||Qn["a"],a=n.x||0,o=Object(Ft["b"])(n.y||0,or(i),n.textBaseline),s=Ft["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(_s(n)){var u="",c=n.fontStyle,d=ys(n.fontSize);if(!parseFloat(d))return;var h=n.fontFamily||Qn["b"],f=n.fontWeight;u+="font-size:"+d+";font-family:"+h+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),f&&"normal"!==f&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Aw(l,e.transform),kw(l,n,e,t),Lw(l,e),t.animation&&bw(e,l,t),rw("text",e.id+"",l,void 0,r)}}function Hw(e,t){return e instanceof Uo?jw(e,t):e instanceof es?Nw(e,t):e instanceof Zo?Rw(e,t):void 0}function Fw(e,t,n){var r=e.style;if(Object(Ft["i"])(r)){var i=Object(Ft["h"])(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,d=r.shadowOffsetY||0,h=r.shadowBlur,f=Object(Ft["p"])(r.shadowColor),p=f.opacity,m=f.color,g=h/2/l,y=h/2/u,v=g+" "+y;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=rw("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[rw("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:v,"flood-color":m,"flood-opacity":p})]),a[i]=o}t.filter=Object(Ft["d"])(o)}}function zw(e,t,n,r){var i,a=e[n],o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Ft["m"])(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!Object(Ft["o"])(a))return void 0;i="radialGradient",o.cx=Object(s["P"])(a.x,.5),o.cy=Object(s["P"])(a.y,.5),o.r=Object(s["P"])(a.r,.5)}for(var l=a.colorStops,u=[],c=0,d=l.length;c<d;++c){var h=100*Object(Ft["q"])(l[c].offset)+"%",f=l[c].color,p=Object(Ft["p"])(f),m=p.color,g=p.opacity,y={offset:h};y["stop-color"]=m,g<1&&(y["stop-opacity"]=g),u.push(rw("stop",c+"",y))}var v=rw(i,"",o,u),_=ow(v),b=r.gradientCache,x=b[_];x||(x=r.zrId+"-g"+r.gradientIdx++,b[_]=x,o.id=x,r.defs[x]=rw(i,x,o,u)),t[n]=Object(Ft["d"])(x)}function Bw(e,t,n,r){var i,a=e.style[n],o=e.getBoundingRect(),l={},u=a.repeat,c="no-repeat"===u,d="repeat-x"===u,h="repeat-y"===u;if(Object(Ft["l"])(a)){var f=a.imageWidth,p=a.imageHeight,m=void 0,g=a.image;if(Object(s["C"])(g)?m=g:Sw(g)?m=g.src:Tw(g)&&(m=g.toDataURL()),"undefined"===typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Object(s["b"])(f,y),Object(s["b"])(p,y)}else if(null==f||null==p){var v=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;"pattern"===e.tag&&(d?(i=1,r/=o.width):h&&(r=1,i/=o.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},_=da(m,null,e,(function(e){c||v(M,e),v(i,e)}));_&&_.width&&_.height&&(f=f||_.width,p=p||_.height)}i=rw("image","img",{href:m,width:f,height:p}),l.width=f,l.height=p}else a.svgElement&&(i=Object(s["d"])(a.svgElement),l.width=a.svgWidth,l.height=a.svgHeight);if(i){var b,x;c?b=x=1:d?(x=1,b=l.width/o.width):h?(b=1,x=l.height/o.height):l.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(l.width=b),null==x||isNaN(x)||(l.height=x);var w=Object(Ft["g"])(a);w&&(l.patternTransform=w);var M=rw("pattern","",l,[i]),S=ow(M),T=r.patternCache,k=T[S];k||(k=r.zrId+"-p"+r.patternIdx++,T[S]=k,l.id=k,M=r.defs[k]=rw("pattern",k,l,[i])),t[n]=Object(Ft["d"])(k)}}function Ww(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=rw("clipPath",a,o,[jw(e,n)])}t["clip-path"]=Object(Ft["d"])(a)}function Vw(e){return document.createTextNode(e)}function Gw(e,t,n){e.insertBefore(t,n)}function Uw(e,t){e.removeChild(t)}function qw(e,t){e.appendChild(t)}function Xw(e){return e.parentNode}function Zw(e){return e.nextSibling}function Kw(e,t){e.textContent=t}var Jw=58,$w=120,Qw=rw("","");function eM(e){return void 0===e}function tM(e){return void 0!==e}function nM(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;void 0!==a&&(r[a]=i)}return r}function rM(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function iM(e){var t,n=e.children,r=e.tag;if(tM(r)){var i=e.elm=nw(r);if(sM(Qw,e),Object(s["t"])(n))for(t=0;t<n.length;++t){var a=n[t];null!=a&&qw(i,iM(a))}else tM(e.text)&&!Object(s["A"])(e.text)&&qw(i,Vw(e.text))}else e.elm=Vw(e.text);return e.elm}function aM(e,t,n,r,i){for(;r<=i;++r){var a=n[r];null!=a&&Gw(e,iM(a),t)}}function oM(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(tM(i.tag)){var a=Xw(i.elm);Uw(a,i.elm)}else Uw(e,i.elm)}}function sM(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n],s=i[n];s!==o&&(!0===o?r.setAttribute(n,""):!1===o?r.removeAttribute(n):"style"===n?r.style.cssText=o:n.charCodeAt(0)!==$w?r.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(Qx,n,o):n.charCodeAt(3)===Jw?r.setAttributeNS(ew,n,o):n.charCodeAt(5)===Jw?r.setAttributeNS($x,n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function lM(e,t,n){var r,i,a,o,s=0,l=0,u=t.length-1,c=t[0],d=t[u],h=n.length-1,f=n[0],p=n[h];while(s<=u&&l<=h)null==c?c=t[++s]:null==d?d=t[--u]:null==f?f=n[++l]:null==p?p=n[--h]:rM(c,f)?(uM(c,f),c=t[++s],f=n[++l]):rM(d,p)?(uM(d,p),d=t[--u],p=n[--h]):rM(c,p)?(uM(c,p),Gw(e,c.elm,Zw(d.elm)),c=t[++s],p=n[--h]):rM(d,f)?(uM(d,f),Gw(e,d.elm,c.elm),d=t[--u],f=n[++l]):(eM(r)&&(r=nM(t,s,u)),i=r[f.key],eM(i)?Gw(e,iM(f),c.elm):(a=t[i],a.tag!==f.tag?Gw(e,iM(f),c.elm):(uM(a,f),t[i]=void 0,Gw(e,a.elm,c.elm))),f=n[++l]);(s<=u||l<=h)&&(s>u?(o=null==n[h+1]?null:n[h+1].elm,aM(e,o,n,l,h)):oM(e,t,s,u))}function uM(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(sM(e,t),eM(t.text)?tM(r)&&tM(i)?r!==i&&lM(n,r,i):tM(i)?(tM(e.text)&&Kw(n,""),aM(n,null,i,0,i.length-1)):tM(r)?oM(n,r,0,r.length-1):tM(e.text)&&Kw(n,""):e.text!==t.text&&(tM(r)&&oM(n,r,0,r.length-1),Kw(n,t.text)))}function cM(e,t){if(rM(e,t))uM(e,t);else{var n=e.elm,r=Xw(n);iM(t),null!==r&&(Gw(r,t.elm,Zw(n)),oM(r,[e],0,0))}return t}var dM=0,hM=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=fM("refreshHover"),this.configLayer=fM("configLayer"),this.storage=t,this._opts=n=Object(s["m"])({},n),this.root=e,this._id="zr"+dM++,this._oldVNode=uw(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=nw("svg");sM(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",cM(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Hw(e,lw(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=lw(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=pM(n,r,this._backgroundColor,i);o&&a.push(o);var l=e.compress?null:this._mainVNode=rw("g","main",{},[]);this._paintList(t,i,l?l.children:a),l&&a.push(l);var u=Object(s["H"])(Object(s["F"])(i.defs),(function(e){return i.defs[e]}));if(u.length&&a.push(rw("defs","defs",{},u)),e.animation){var c=sw(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=rw("style","stl",{},[],c);a.push(d)}}return uw(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ow(this.renderToVNode({animation:Object(s["P"])(e.cssAnimation,!0),emphasis:Object(s["P"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(s["P"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,a=e.length,o=[],s=0,l=0,u=0;u<a;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,h=d&&d.length||0,f=i&&i.length||0,p=void 0;for(p=Math.max(h-1,f-1);p>=0;p--)if(d&&i&&d[p]===i[p])break;for(var m=f-1;m>p;m--)s--,r=o[s-1];for(var g=p+1;g<h;g++){var y={};Ww(d[g],y,t);var v=rw("g","clip-g-"+l++,y,[]);(r?r.children:n).push(v),o[s++]=v,r=v}i=d;var _=Hw(c,t);_&&(r?r.children:n).push(_)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=yv(r,0,n),t=yv(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+"px",a.height=t+"px"}if(Object(Ft["n"])(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",e),o.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Object(Ft["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function fM(e){return function(){0}}function pM(e,t,n,r){var i;if(n&&"none"!==n)if(i=rw("rect","bg",{width:e,height:t,x:"0",y:"0"}),Object(Ft["k"])(n))zw({fill:n},i.attrs,"fill",r);else if(Object(Ft["n"])(n))Bw({style:{fill:n},dirty:s["L"],getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var a=Object(Ft["p"])(n),o=a.color,l=a.opacity;i.attrs.fill=o,l<1&&(i.attrs["fill-opacity"]=l)}return i}var mM=hM;function gM(e){e.registerPainter("svg",mM)}function yM(e){return null==e?0:e.length||1}function vM(e){return e}var _M=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||vM,this._newKeyGetter=r||vM,this.context=i,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var a=0;a<e.length;a++){var o=r[a],s=n[o],l=yM(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,a,"_newKeyGetter");for(var o=0;o<i.length;o++){var s=i[o],l=n[s],u=r[s],c=yM(l),d=yM(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=yM(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o="_ec_"+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],l=yM(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),bM=_M,xM=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function wM(e,t){var n={},r=n.encode={},i=Object(s["f"])(),a=[],o=[],l={};Object(s["k"])(e.dimensions,(function(t){var n=e.getDimensionInfo(t),s=n.coordDim;if(s){0;var u=n.coordDimIndex;MM(r,s)[u]=t,n.isExtraCoord||(i.set(s,1),TM(n.type)&&(a[0]=t),MM(l,s)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}td.each((function(e,t){var i=MM(r,t),a=n.otherDims[t];null!=a&&!1!==a&&(i[a]=n.name)}))}));var u=[],c={};i.each((function(e,t){var n=r[t];c[t]=n[0],u=u.concat(n)})),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=Object(s["H"])(u,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=c;var d=r.label;d&&d.length&&(a=d.slice());var h=r.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new xM(l,t),n}function MM(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function SM(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function TM(e){return!("ordinal"===e||"time"===e)}var kM=function(){function e(e){this.otherDims={},null!=e&&s["m"](this,e)}return e}(),LM=kM,OM=Ei(),DM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},AM=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=EM(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(s["P"])(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Wh(this.source),n=!PM(e),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=t?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=DM[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source,f=[h.seriesLayoutBy,h.startIndex,r].join("$$");return{dimensions:i,hash:f}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function IM(e){return e instanceof AM}function CM(e){for(var t=Object(s["f"])(),n=0;n<(e||[]).length;n++){var r=e[n],i=Object(s["A"])(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function EM(e){var t=OM(e);return t.dimNameMap||(t.dimNameMap=CM(e.dimensionsDefine))}function PM(e){return e>30}var YM,jM,NM,RM,HM,FM,zM,BM=s["A"],WM=s["H"],VM="undefined"===typeof Int32Array?Array:Int32Array,GM="e\0\0",UM=-1,qM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XM=["_approximateExtent"],ZM=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;IM(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},l=!1,u={},c=0;c<n.length;c++){var d=n[c],h=s["C"](d)?new LM({name:d}):d instanceof LM?d:new LM(d),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};a.push(f),i[f]=h,null!=u[f]&&(l=!0),h.createInvertedIndices&&(o[f]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),r&&(h.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=s["f"]();s["k"](a,(function(e){m.set(i[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(s["z"](e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Ff&&(r=e),!r){var a=this.dimensions,o=Ph(e)||s["u"](e)?new Vh(e,a.length):e;r=new Ff;var l=WM(a,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(o,l,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=wM(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&zM(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==od&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList,o=r.getSource().sourceFormat,s=o===nd;if(s&&!r.pure)for(var l=[],u=e;u<t;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&mi(c)&&(this.hasItemOption=!0),c){var d=c.name;null==i[u]&&null!=d&&(i[u]=Ti(d,null));var h=c.id;null==a[u]&&null!=h&&(a[u]=Ti(h,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)zM(this,u);YM(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){BM(e)?s["m"](this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=NM(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return jM(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return s["t"](e)?r.getValues(WM(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n&&n[t];return null==r||isNaN(r)?UM:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){s["w"](e)&&(n=t,t=e,e=[]);var r=n||this,i=WM(RM(e),this._getStoreDimIndex,this);this._store.each(i,r?s["c"](t,r):t)},e.prototype.filterSelf=function(e,t,n){s["w"](e)&&(n=t,t=e,e=[]);var r=n||this,i=WM(RM(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?s["c"](t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=s["F"](e),i=[];return s["k"](r,(function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){s["w"](e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=WM(RM(e),this._getStoreDimIndex,this),o=FM(this);return o._store=this._store.map(a,i?s["c"](t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this;var a=WM(RM(e),this._getStoreDimIndex,this);this._store.modify(a,i?s["c"](t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=FM(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=FM(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=FM(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ou(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new bM(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return jM(e,t)}),(function(e){return jM(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},BM(e)?s["m"](this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),s["t"](i)?i=i.slice():BM(i)&&(i=s["m"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,BM(t)?s["m"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){BM(e)?s["m"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?s["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Ds(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){s["k"](this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:WM(this.dimensions,this._getDimInfo,this),this.hostModel)),HM(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];s["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(s["S"](arguments)))})},e.internalField=function(){YM=function(e){var t=e._invertedIndicesMap;s["k"](t,(function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new VM(a.categories.length);for(var s=0;s<n.length;s++)n[s]=UM;for(s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}}))},NM=function(e,t,n){return Ti(e._getCategory(t,n),null)},jM=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=NM(e,e._idDimIdx,t)),null==n&&(n=GM+t),n},RM=function(e){return s["t"](e)||(e=null!=e?[e]:[]),e},FM=function(t){var n=new e(t._schema?t._schema:WM(t.dimensions,t._getDimInfo,t),t.hostModel);return HM(n,t),n},HM=function(e,t){s["k"](qM.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,s["k"](XM,(function(n){e[n]=s["d"](t[n])})),e._calculationInfo=s["m"]({},t._calculationInfo)},zM=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=NM(e,i,t)),null==s&&null!=a&&(r[t]=s=NM(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[t]=s}}}(),e}(),KM=ZM;function JM(e,t){Ph(e)||(e=jh(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(s["f"])(),a=[],o=QM(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&PM(o),u=r===e.dimensionsDefine,c=u?EM(e):CM(r),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(e,o));for(var h=Object(s["f"])(d),f=new Cf(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=Object(s["A"])(n)?n:{name:n},o=new LM,l=i.name;null!=l&&null!=c.get(l)&&(o.name=o.displayName=l),null!=i.type&&(o.type=i.type),null!=i.displayName&&(o.displayName=i.displayName);var u=a.length;return f[e]=u,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!l)for(p=0;p<o;p++)m(p);h.each((function(e,t){var n=di(e).slice();if(1===n.length&&!Object(s["C"])(n[0])&&n[0]<0)h.set(t,!1);else{var r=h.set(t,[]);Object(s["k"])(n,(function(e,n){var i=Object(s["C"])(e)?c.get(e):e;null!=i&&i<o&&(r[n]=i,y(m(i),t,n))}))}}));var g=0;function y(e,t,n){null!=td.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}Object(s["k"])(n,(function(e){var t,n,r,i;if(Object(s["C"])(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=Object(s["m"])({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var l=h.get(t);if(!1!==l){if(l=di(l),!l.length)for(var c=0;c<(n&&n.length||1);c++){while(g<o&&null!=m(g).coordDim)g++;g<o&&l.push(g++)}Object(s["k"])(l,(function(e,a){var o=m(e);if(u&&null!=i.type&&(o.type=i.type),y(Object(s["i"])(o,i),t,a),null==o.name&&n){var l=n[a];!Object(s["A"])(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}r&&Object(s["i"])(o.otherDims,r)}))}}));var v=t.generateCoord,_=t.generateCoordCount,b=null!=_;_=v?_||1:0;var x=v||"value";function w(e){null==e.name&&(e.name=e.coordDim)}if(l)Object(s["k"])(a,(function(e){w(e)})),a.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var M=0;M<o;M++){var S=m(M),T=S.coordDim;null==T&&(S.coordDim=eS(x,i,b),S.coordDimIndex=0,(!v||_<=0)&&(S.isExtraCoord=!0),_--),w(S),null!=S.type||yd(e,M)!==cd.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return $M(a),new AM({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:l})}function $M(e){for(var t=Object(s["f"])(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function QM(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(s["k"])(t,(function(e){var t;Object(s["A"])(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}function eS(e,t,n){if(n||t.hasKey(e)){var r=0;while(t.hasKey(e+r))r++;e+=r}return t.set(e,!0),e}var tS=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(s["f"])(),this.categoryAxisMap=Object(s["f"])(),this.coordSysName=e}return e}();function nS(e){var t=e.get("coordinateSystem"),n=new tS(t),r=rS[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rS={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ni).models[0],a=e.getReferringComponents("yAxis",Ni).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),iS(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),iS(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ni).models[0];t.coordSysDims=["single"],n.set("single",i),iS(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ni).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),iS(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),iS(o)&&(r.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();Object(s["k"])(a.parallelAxisIndex,(function(e,a){var s=i.getComponent("parallelAxis",e),l=o[a];n.set(l,s),iS(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=a))}))}};function iS(e){return"category"===e.get("type")}function aS(e,t,n){n=n||{};var r,i,a,o=n.byIndex,l=n.stackedCoordDimension;oS(t)?r=t:(i=t.schema,r=i.dimensions,a=t.store);var u,c,d,h,f=!(!e||!e.get("stack"));if(Object(s["k"])(r,(function(e,t){Object(s["C"])(e)&&(r[t]=e={name:e}),f&&!e.isExtraCoord&&(o||u||!e.ordinalMeta||(u=e),c||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(c=e))})),!c||o||u||(o=!0),c){d="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,m=c.type,g=0;Object(s["k"])(r,(function(e){e.coordDim===p&&g++}));var y={name:d,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:h,coordDim:h,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(y.storeDimIndex=a.ensureCalculationDimension(h,m),v.storeDimIndex=a.ensureCalculationDimension(d,m)),i.appendCalculationDimension(y),i.appendCalculationDimension(v)):(r.push(y),r.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:d}}function oS(e){return!IM(e.schema)}function sS(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function lS(e,t){return sS(e,t)?e.getCalculationInfo("stackResultDimension"):t}function uS(e,t){var n,r=e.get("coordinateSystem"),i=Xd.get(r);return t&&t.coordSysDims&&(n=s["H"](t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=SM(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function cS(e,t,n){var r,i;return n&&s["k"](e,(function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=a),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}function dS(e,t,n){n=n||{};var r,i=t.getSourceManager(),a=!1;e?(a=!0,r=jh(e)):(r=i.getSource(),a=r.sourceFormat===nd);var o=nS(t),l=uS(t,o),u=n.useEncodeDefaulter,c=s["w"](u)?u:u?s["h"](fd,l,t):null,d={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},h=JM(r,d),f=cS(h.dimensions,n.createInvertedIndices,o),p=a?null:i.getSharedDataStore(h),m=aS(t,{schema:h,store:p}),g=new KM(h,t);g.setCalculationInfo(m);var y=null!=f&&hS(r)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return g.hasItemOption=!1,g.initData(a?r:p,null,y),g}function hS(e){if(e.sourceFormat===nd){var t=fS(e.data||[]);return!s["t"](pi(t))}}function fS(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var pS=dS,mS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e){return pS(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Sr,n=lv("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),a="none"===r?"circle":r,o=.8*e.itemHeight,s=lv(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(kp),gS=mS;function yS(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=tf(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(tf(e,t,n[o]));return a.join(" ")}}function vS(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(s["t"])(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(" ")}var _S=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return a(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=lv(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=bS,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){dl(this.childAt(0))},t.prototype.downplay=function(){hl(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Gl(d,h,o,n),Jl(d)}if(this._updateCommon(e,n,s,r,i),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ul(d,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,l,u,c,d,h,f,p,m=this.childAt(0),g=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,c=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,p=r.cursorStyle,d=r.emphasisDisabled),!r||e.hasItemOption){var y=r&&r.itemModel?r.itemModel:e.getItemModel(t),v=y.getModel("emphasis");a=v.getModel("itemStyle").getItemStyle(),l=y.getModel(["select","itemStyle"]).getItemStyle(),o=y.getModel(["blur","itemStyle"]).getItemStyle(),u=v.get("focus"),c=v.get("blurScope"),d=v.get("disabled"),h=ru(y),f=v.getShallow("scale"),p=y.getShallow("cursor")}var _=e.getItemVisual(t,"symbolRotate");m.attr("rotation",(_||0)*Math.PI/180||0);var b=cv(e.getItemVisual(t,"symbolOffset"),n);b&&(m.x=b[0],m.y=b[1]),p&&m.attr("cursor",p);var x=e.getItemVisual(t,"style"),w=x.fill;if(m instanceof es){var M=m.style;m.useStyle(Object(s["m"])({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},x))}else m.__isEmptyBrush?m.useStyle(Object(s["m"])({},x)):m.useStyle(x),m.style.decal=null,m.setColor(w,i&&i.symbolInnerColor),m.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),T=this._z2;null!=S?null==T&&(this._z2=m.z2,m.z2+=S):null!=T&&(m.z2=T,this._z2=null);var k=i&&i.useNameLabel;function L(t){return k?e.getName(t):yS(e,t)}nu(m,h,{labelFetcher:g,labelDataIndex:t,defaultText:L,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var O=m.ensureState("emphasis");O.style=a,m.ensureState("select").style=l,m.ensureState("blur").style=o;var D=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;O.scaleX=this._sizeX*D,O.scaleY=this._sizeY*D,this.setSymbolScale(1),Al(this,u,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Os(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Xl(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Xl(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return uv(e.getItemVisual(t,"symbolSize"))},t}(Sr);function bS(e,t){this.parent.drift(e,t)}var xS=_S;function wS(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function MS(e){return null==e||Object(s["A"])(e)||(e={isIgnore:e}),e||{}}function SS(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:ru(t),cursorStyle:t.get("cursor")}}var TS=function(){function e(e){this.group=new Sr,this._SymbolCtor=e||xS}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=MS(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=SS(e),l={disableAnimation:o},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(wS(e,i,r,t)){var o=new a(e,r,s,l);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,d){var h=i.getItemGraphicEl(d),f=u(c);if(wS(e,f,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)n.remove(h),h=new a(e,c,s,l),h.setPosition(f);else{h.updateData(e,c,s,l);var g={x:f[0],y:f[1]};o?h.attr(g):Gl(h,g,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=SS(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=MS(n);for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(wS(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){Fg(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),kS=TS;function LS(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=OS(i,n),o=r.dim,l=i.dim,u=t.mapDimension(l),c=t.mapDimension(o),d="x"===l||"radius"===l?1:0,h=Object(s["H"])(e.dimensions,(function(e){return t.mapDimension(e)})),f=!1,p=t.getCalculationInfo("stackResultDimension");return sS(t,h[0])&&(f=!0,h[0]=p),sS(t,h[1])&&(f=!0,h[1]=p),{dataDimsForPoint:h,valueStart:a,valueAxisDim:l,baseAxisDim:o,stacked:!!f,valueDim:u,baseDim:c,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function OS(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:Object(s["z"])(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function DS(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}var AS="undefined"!==typeof Float32Array,IS=AS?Float32Array:Array;function CS(e){return Object(s["t"])(e)?AS?new Float32Array(e):e:new IS(e)}function ES(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function PS(e,t,n,r,i,a,o,s){for(var l=ES(e,t),u=[],c=[],d=[],h=[],f=[],p=[],m=[],g=LS(i,t,o),y=e.getLayout("points")||[],v=t.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],x=!0,w=void 0,M=void 0;switch(b.cmd){case"=":w=2*b.idx,M=2*b.idx1;var S=y[w],T=y[w+1],k=v[M],L=v[M+1];(isNaN(S)||isNaN(T))&&(S=k,T=L),u.push(S,T),c.push(k,L),d.push(n[w],n[w+1]),h.push(r[M],r[M+1]),m.push(t.getRawIndex(b.idx1));break;case"+":var O=b.idx,D=g.dataDimsForPoint,A=i.dataToPoint([t.get(D[0],O),t.get(D[1],O)]);M=2*O,u.push(A[0],A[1]),c.push(v[M],v[M+1]);var I=DS(g,i,t,O);d.push(I[0],I[1]),h.push(r[M],r[M+1]),m.push(t.getRawIndex(O));break;case"-":x=!1}x&&(f.push(b),p.push(p.length))}p.sort((function(e,t){return m[e]-m[t]}));var C=u.length,E=CS(C),P=CS(C),Y=CS(C),j=CS(C),N=[];for(_=0;_<p.length;_++){var R=p[_],H=2*_,F=2*R;E[H]=u[F],E[H+1]=u[F+1],P[H]=c[F],P[H+1]=c[F+1],Y[H]=d[F],Y[H+1]=d[F+1],j[H]=h[F],j[H+1]=h[F+1],N[_]=f[R]}return{current:E,next:P,stackedOnCurrent:Y,stackedOnNext:j,status:N}}var YS=Math.min,jS=Math.max;function NS(e,t){return isNaN(e)||isNaN(t)}function RS(e,t,n,r,i,a,o,s,l){for(var u,c,d,h,f,p,m=n,g=0;g<r;g++){var y=t[2*m],v=t[2*m+1];if(m>=i||m<0)break;if(NS(y,v)){if(l){m+=a;continue}break}if(m===n)e[a>0?"moveTo":"lineTo"](y,v),d=y,h=v;else{var _=y-u,b=v-c;if(_*_+b*b<.5){m+=a;continue}if(o>0){var x=m+a,w=t[2*x],M=t[2*x+1];while(w===y&&M===v&&g<r)g++,x+=a,m+=a,w=t[2*x],M=t[2*x+1],y=t[2*m],v=t[2*m+1],_=y-u,b=v-c;var S=g+1;if(l)while(NS(w,M)&&S<r)S++,x+=a,w=t[2*x],M=t[2*x+1];var T=.5,k=0,L=0,O=void 0,D=void 0;if(S>=r||NS(w,M))f=y,p=v;else{k=w-u,L=M-c;var A=y-u,I=w-y,C=v-c,E=M-v,P=void 0,Y=void 0;if("x"===s){P=Math.abs(A),Y=Math.abs(I);var j=k>0?1:-1;f=y-j*P*o,p=v,O=y+j*Y*o,D=v}else if("y"===s){P=Math.abs(C),Y=Math.abs(E);var N=L>0?1:-1;f=y,p=v-N*P*o,O=y,D=v+N*Y*o}else P=Math.sqrt(A*A+C*C),Y=Math.sqrt(I*I+E*E),T=Y/(Y+P),f=y-k*o*(1-T),p=v-L*o*(1-T),O=y+k*o*T,D=v+L*o*T,O=YS(O,jS(w,y)),D=YS(D,jS(M,v)),O=jS(O,YS(w,y)),D=jS(D,YS(M,v)),k=O-y,L=D-v,f=y-k*P/Y,p=v-L*P/Y,f=YS(f,jS(u,y)),p=YS(p,jS(c,v)),f=jS(f,YS(u,y)),p=jS(p,YS(c,v)),k=y-f,L=v-p,O=y+k*Y/P,D=v+L*Y/P}e.bezierCurveTo(d,h,f,p,y,v),d=O,h=D}else e.lineTo(y,v)}u=y,c=v,m+=a}return g}var HS=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),FS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HS},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!NS(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!NS(n[2*r],n[2*r+1]))break}while(r<i)r+=RS(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,a=i.data,o=bo.CMD,s="x"===t,l=[],u=0;u<a.length;){var c=a[u++],d=void 0,h=void 0,f=void 0,p=void 0,m=void 0,g=void 0,y=void 0;switch(c){case o.M:n=a[u++],r=a[u++];break;case o.L:if(d=a[u++],h=a[u++],y=s?(e-n)/(d-n):(e-r)/(h-r),y<=1&&y>=0){var v=s?(h-r)*y+r:(d-n)*y+n;return s?[e,v]:[v,e]}n=d,r=h;break;case o.C:d=a[u++],h=a[u++],f=a[u++],p=a[u++],m=a[u++],g=a[u++];var _=s?Mt(n,d,f,m,e,l):Mt(r,h,p,g,e,l);if(_>0)for(var b=0;b<_;b++){var x=l[b];if(x<=1&&x>=0){v=s?xt(r,h,p,g,x):xt(n,d,f,m,x);return s?[e,v]:[v,e]}}n=m,r=g;break}}},t}(Uo),zS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(HS),BS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return a(t,e),t.prototype.getDefaultShape=function(){return new zS},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0;a--)if(!NS(n[2*a-2],n[2*a-1]))break;for(;i<a;i++)if(!NS(n[2*i],n[2*i+1]))break}while(i<a){var s=RS(e,n,i,a,a,1,t.smooth,o,t.connectNulls);RS(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Uo);function WS(e,t,n,r,i){var a=e.getArea(),o=a.x,l=a.y,u=a.width,c=a.height,d=n.get(["lineStyle","width"])||0;o-=d/2,l-=d/2,u+=d,c+=d,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new us({shape:{x:o,y:l,width:u,height:c}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(h.shape.x+=u),h.shape.width=0):(m||(h.shape.y+=c),h.shape.height=0);var g=Object(s["w"])(i)?function(e){i(e,h)}:null;Ul(h,{shape:{width:u,height:c,x:o,y:l}},n,null,r,g)}return h}function VS(e,t,n){var r=e.getArea(),i=Fr(r.r0,1),a=Fr(r.r,1),o=new wm({shape:{cx:Fr(e.cx,1),cy:Fr(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?o.shape.endAngle=r.startAngle:o.shape.r=i,Ul(o,{shape:{endAngle:r.endAngle,r:a}},n)}return o}function GS(e,t,n,r,i){return e?"polar"===e.type?VS(e,t,n):"cartesian2d"===e.type?WS(e,t,n,r,i):null:null}function US(e,t){return e.type===t}function qS(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function XS(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function ZS(e,t){var n=XS(e),r=n[0],i=n[1],a=XS(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function KS(e){return s["z"](e)?e:e?.5:0}function JS(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=CS(2*r),a=0;a<r;a++){var o=DS(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}function $S(e,t,n,r,i){var a=n.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,s=[],l=0,u=[],c=[],d=[],h=[];if(i){for(l=0;l<e.length;l+=2){var f=t||e;isNaN(f[l])||isNaN(f[l+1])||h.push(e[l],e[l+1])}e=h}for(l=0;l<e.length-2;l+=2)switch(d[0]=e[l+2],d[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[o]=d[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var p=(c[o]+d[o])/2,m=[];u[o]=m[o]=p,u[1-o]=c[1-o],m[1-o]=d[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=c[o],u[1-o]=d[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function QS(e,t){var n,r,i=[],a=e.length;function o(e,t,n){var r=e.coord,i=(n-r)/(t.coord-r),a=Object(Ht["b"])(i,[e.color,t.color]);return{coord:n,color:a}}for(var s=0;s<a;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(o(r,l,t)):n&&i.push(o(n,l,0),o(n,l,t));break}n&&(i.push(o(n,l,0)),n=null),i.push(l),r=l}}return i}function eT(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,a,o=r.length-1;o>=0;o--){var l=e.getDimensionInfo(r[o].dimension);if(i=l&&l.coordDim,"x"===i||"y"===i){a=r[o];break}}if(a){var u=t.getAxis(i),c=s["H"](a.stops,(function(e){return{coord:u.toGlobalCoord(u.dataToCoord(e.value)),color:e.color}})),d=c.length,h=a.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),h.reverse());var f=QS(c,"x"===i?n.getWidth():n.getHeight()),p=f.length;if(!p&&d)return c[0].coord<0?h[1]?h[1]:c[d-1].color:h[0]?h[0]:c[0].color;var m=10,g=f[0].coord-m,y=f[p-1].coord+m,v=y-g;if(v<.001)return"transparent";s["k"](f,(function(e){e.offset=(e.coord-g)/v})),f.push({offset:p?f[p-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:h[0]||"transparent"});var _=new Jm(0,0,0,0,f,!0);return _[i]=g,_[i+"2"]=y,_}}}function tT(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!nT(a,t))){var o=t.mapDimension(a.dim),l={};return s["k"](a.getViewLabels(),(function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);l[t]=1})),function(e){return!l.hasOwnProperty(t.get(o,e))}}}}function nT(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*xS.getSymbolSize(t,o)[e.isHorizontal()?1:0]>r)return!1;return!0}function rT(e,t){return isNaN(e)||isNaN(t)}function iT(e){for(var t=e.length/2;t>0;t--)if(!rT(e[2*t-2],e[2*t-1]))break;return t-1}function aT(e,t){return[e[2*t],e[2*t+1]]}function oT(e,t,n){for(var r,i,a=e.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(i=e[2*u+o],!isNaN(i)&&!isNaN(e[2*u+1-o]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function sT(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ns.length;t++)if(e.get([Ns[t],"endLabel","show"]))return!0;return!1}function lT(e,t,n,r){if(US(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=sT(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=WS(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return VS(t,n,r)}function uT(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var cT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(){var e=new Sr,t=new kS;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=s["c"](this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,d=this._coordSys,h=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,g=!t.ssr&&e.get("animation"),y=!l.isEmpty(),v=l.get("origin"),_=LS(r,a,v),b=y&&JS(r,a,_),x=e.get("showSymbol"),w=e.get("connectNulls"),M=x&&!c&&tT(e,a,r),S=this._data;S&&S.eachItemGraphicEl((function(e,t){e.__temp&&(i.remove(e),S.setItemGraphicEl(t,null))})),x||h.remove(),i.add(m);var T,k=!c&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(T=r.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var L=eT(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&d.type===r.type&&k===this._step){y&&!p?p=this._newPolygon(u,b):p&&!y&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Ec(L));var O=m.getClipPath();if(O){var D=lT(this,r,!1,e);Ul(O,{shape:D.shape},e)}else m.setClipPath(lT(this,r,!0,e));x&&h.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),qS(this._stackedOnPoints,b)&&qS(this._points,u)||(g?this._doUpdateAnimation(a,b,r,n,k,v,w):(k&&(b&&(b=$S(b,u,r,k,w)),u=$S(u,null,r,k,w)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))}else x&&h.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),g&&this._initSymbolLabelAnimation(a,r,T),k&&(b&&(b=$S(b,u,r,k,w)),u=$S(u,null,r,k,w)),f=this._newPolyline(u),y?p=this._newPolygon(u,b):p&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Ec(L)),m.setClipPath(lT(this,r,!0,e));var A=e.getModel("emphasis"),I=A.get("focus"),C=A.get("blurScope"),E=A.get("disabled");if(f.useStyle(s["i"](o.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Pl(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=f.getState("emphasis").style;P.lineWidth=+f.style.lineWidth+1}Os(f).seriesIndex=e.seriesIndex,Al(f,I,C,E);var Y=KS(e.get("smooth")),j=e.get("smoothMonotone");if(f.setShape({smooth:Y,smoothMonotone:j,connectNulls:w}),p){var N=a.getCalculationInfo("stackedOnSeries"),R=0;p.useStyle(s["i"](l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(R=KS(N.get("smooth"))),p.setShape({smooth:Y,stackedOnSmooth:R,smoothMonotone:j,connectNulls:w}),Pl(p,e,"areaStyle"),Os(p).seriesIndex=e.seriesIndex,Al(p,I,C,E)}var H=this._changePolyState;a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=H)})),this._polyline.onHoverStateChange=H,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=k,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Os(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Ci(i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;s=new xS(i,a),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Zg.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Ci(i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Zg.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;nl(this._polyline,e),t&&nl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new FS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new BS({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;"cartesian2d"===t.type?(r=a.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===a.dim,i=!0);var l=e.hostModel,u=l.get("animationDuration");s["w"](u)&&(u=u(null));var c=l.get("animationDelay")||0,d=s["w"](c)?c(null):c;e.eachItemGraphicEl((function(e,a){var l=e;if(l){var h=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var g=n,y=t.pointToCoord(h);r?(f=g.startAngle,p=g.endAngle,m=-y[1]/180*Math.PI):(f=g.r0,p=g.r,m=y[0])}else{var v=n;r?(f=v.x,p=v.x+v.width,m=e.x):(f=v.y+v.height,p=v.y,m=e.y)}var _=p===f?0:(m-f)/(p-f);o&&(_=1-_);var b=s["w"](c)?c(a):u*_+d,x=l.getSymbolPath(),w=x.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(sT(e)){var i=e.getData(),a=this._polyline,o=i.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Ls({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=iT(o);l>=0&&(nu(a,ru(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?vS(i,n):yS(i,e)},enableTextSetter:!0},uT(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=a.get("precision"),f=a.get("distance")||0,p=o.getBaseAxis(),m=p.isHorizontal(),g=p.inverse,y=t.shape,v=g?m?y.x:y.y+y.height:m?y.x+y.width:y.y,_=(m?f:0)*(g?-1:1),b=(m?0:-f)*(g?-1:1),x=m?"x":"y",w=oT(u,v,x),M=w.range,S=M[1]-M[0],T=void 0;if(S>=1){if(S>1&&!d){var k=aT(u,M[0]);s.attr({x:k[0]+_,y:k[1]+b}),i&&(T=c.getRawValue(M[0]))}else{k=l.getPointOn(v,x);k&&s.attr({x:k[0]+_,y:k[1]+b});var L=c.getRawValue(M[0]),O=c.getRawValue(M[1]);i&&(T=Vi(n,h,L,O,w.t))}r.lastFrameIndex=M[0]}else{var D=1===e||r.lastFrameIndex>0?M[0]:0;k=aT(u,D);i&&(T=c.getRawValue(D)),s.attr({x:k[0]+_,y:k[1]+b})}if(i){var A=fu(s);"function"===typeof A.setLabelText&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,l=this._polygon,u=e.hostModel,c=PS(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=c.current,h=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(i&&(h=$S(c.stackedOnCurrent,c.current,n,i,o),d=$S(c.current,null,n,i,o),p=$S(c.stackedOnNext,c.next,n,i,o),f=$S(c.next,null,n,i,o)),ZS(d,f)>3e3||l&&ZS(h,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=d;var m={shape:{points:f}};c.current!==d&&(m.shape.__points=c.next),s.stopAnimation(),Gl(s,m,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),Gl(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var g=[],y=c.status,v=0;v<y.length;v++){var _=y[v].cmd;if("="===_){var b=e.getItemGraphicEl(y[v].idx1);b&&g.push({el:b,ptIdx:v})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Zg),dT=cT;function hT(e,t){return{seriesType:e,plan:Dp(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=Object(s["H"])(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),l=o.length,u=n.getCalculationInfo("stackResultDimension");sS(n,o[0])&&(o[0]=u),sS(n,o[1])&&(o[1]=u);var c=n.getStore(),d=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return l&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&CS(n*l),o=[],s=[],u=e.start,f=0;u<e.end;u++){var p=void 0;if(1===l){var m=c.get(d,u);p=r.dataToPoint(m,null,s)}else o[0]=c.get(d,u),o[1]=c.get(h,u),p=r.dataToPoint(o,null,s);a?(i[f++]=p[0],i[f++]=p[1]):t.setItemLayout(u,p.slice())}a&&t.setLayout("points",i)}}}}}}var fT={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},pT=function(e){return Math.round(e.length/2)};function mT(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),a=e.coordinateSystem,o=r.count();if(o>10&&"cartesian2d"===a.type&&i){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),d=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(d||1),f=Math.round(o/h);if(isFinite(f)&&f>1){"lttb"===i?e.setData(r.lttbDownSample(r.mapDimension(u.dim),1/f)):"minmax"===i&&e.setData(r.minmaxDownSample(r.mapDimension(u.dim),1/f));var p=void 0;Object(s["C"])(i)?p=fT[i]:Object(s["w"])(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(u.dim),1/f,p,pT))}}}}}function gT(e){e.registerChartView(dT),e.registerSeriesModel(gS),e.registerLayout(hT("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mT("line"))}var yT="__ec_stack_";function vT(e){return e.get("stack")||yT+e.seriesIndex}function _T(e){return e.dim+e.index}function bT(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),a=0;a<e.count;a++)t.push(Object(s["i"])({bandWidth:i,axisKey:r,stackId:yT+a},e));var o=ST(t),l=[];for(a=0;a<e.count;a++){var u=o[r][yT+a];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function xT(e,t){var n=[];return t.eachSeriesByType(e,(function(e){OT(e)&&n.push(e)})),n}function wT(e){var t={};Object(s["k"])(e,(function(e){var n=e.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=e.getData(),a=r.dim+"_"+r.index,o=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(o,l);t[a]?t[a].push(c):t[a]=[c]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var a=null,o=1;o<i.length;++o){var l=i[o]-i[o-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}function MT(e){var t=wT(e),n=[];return Object(s["k"])(e,(function(e){var r,i=e.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent();if("category"===a.type)r=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=t[s],u=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);r=l?u/d*l:u}else{var h=e.getData();r=Math.abs(o[1]-o[0])/h.count()}var f=Hr(e.get("barWidth"),r),p=Hr(e.get("barMaxWidth"),r),m=Hr(e.get("barMinWidth")||(DT(e)?.5:1),r),g=e.get("barGap"),y=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:f,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:_T(a),stackId:vT(e)})})),ST(n)}function ST(e){var t={};Object(s["k"])(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var d=e.barGap;null!=d&&(a.gap=d);var h=e.barCategoryGap;null!=h&&(a.categoryGap=h)}));var n={};return Object(s["k"])(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(null==a){var o=Object(s["F"])(r).length;a=Math.max(35-4*o,15)+"%"}var l=Hr(a,i),u=Hr(e.gap,1),c=e.remainedWidth,d=e.autoWidthCount,h=(c-l)/(d+(d-1)*u);h=Math.max(h,0),Object(s["k"])(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,c-=r+u*r,d--}else{var r=h;t&&t<r&&(r=Math.min(t,c)),n&&n>r&&(r=n),r!==h&&(e.width=r,c-=r+u*r,d--)}})),h=(c-l)/(d+(d-1)*u),h=Math.max(h,0);var f,p=0;Object(s["k"])(r,(function(e,t){e.width||(e.width=h),f=e,p+=e.width*(1+u)})),f&&(p-=f.width*u);var m=-p/2;Object(s["k"])(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+u)}))})),n}function TT(e,t,n){if(e&&t){var r=e[_T(t)];return null!=r&&null!=n?r[vT(n)]:r}}function kT(e,t){var n=xT(e,t),r=MT(n);Object(s["k"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=vT(e),o=r[_T(i)][a],s=o.offset,l=o.width;t.setLayout({bandWidth:o.bandWidth,offset:s,size:l})}))}function LT(e){return{seriesType:e,plan:Dp(),reset:function(e){if(OT(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=sS(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=AT(r,i),f=DT(e),p=e.get("barMinHeight")||0,m=u&&t.getDimensionIndex(u),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(e,t){var r,i=e.count,l=f&&CS(3*i),u=f&&s&&CS(3*i),v=f&&CS(i),_=n.master.getRect(),b=d?_.width:_.height,x=t.getStore(),w=0;while(null!=(r=e.next())){var M=x.get(c?m:a,r),S=x.get(o,r),T=h,k=void 0;c&&(k=+M-x.get(a,r));var L=void 0,O=void 0,D=void 0,A=void 0;if(d){var I=n.dataToPoint([M,S]);if(c){var C=n.dataToPoint([k,S]);T=C[0]}L=T,O=I[1]+y,D=I[0]-T,A=g,Math.abs(D)<p&&(D=(D<0?-1:1)*p)}else{I=n.dataToPoint([S,M]);if(c){C=n.dataToPoint([S,k]);T=C[1]}L=I[0]+y,O=T,D=g,A=I[1]-T,Math.abs(A)<p&&(A=(A<=0?-1:1)*p)}f?(l[w]=L,l[w+1]=O,l[w+2]=d?D:A,u&&(u[w]=d?_.x:L,u[w+1]=d?O:_.y,u[w+2]=b),v[r]=r):t.setItemLayout(r,{x:L,y:O,width:D,height:A}),w+=3}f&&t.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function OT(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function DT(e){return e.pipelineContext&&e.pipelineContext.large}function AT(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}var IT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pS(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)Object(s["k"])(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),o=e.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===t[n]||"y1"===t[n];if(l&&!o&&(s+=1),r.length<2)return;if(2===r.length)return void(a[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,h=0;h<r.length;h++){var f=r[h].coord,p=h===r.length-1?r[h-1].tickValue+d:r[h].tickValue;if(p===s){c=f;break}if(p<s)u=f;else if(null!=u&&p>s){c=(f+u)/2;break}1===h&&(d=p-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),a[n]=e.toGlobalCoord(c)}}));else{var o=this.getData(),l=o.getLayout("offset"),u=o.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;a[c]+=l+u/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(kp);kp.registerClass(IT);var CT=IT,ET=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(){return pS(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Eu(CT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(CT),PT=ET,YT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),jT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return a(t,e),t.prototype.getDefaultShape=function(){return new YT},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,h=c?u-l<d:l-u<d;h||(l=u-(c?d:-d));var f=Math.cos(l),p=Math.sin(l),m=Math.cos(u),g=Math.sin(u);h?(e.moveTo(f*i+n,p*i+r),e.arc(f*s+n,p*s+r,o,-Math.PI+l,l,!c)):e.moveTo(f*a+n,p*a+r),e.arc(n,r,a,l,u,!c),e.arc(m*s+n,g*s+r,o,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(Uo),NT=jT;function RT(e,t){t=t||{};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return lr(t,r,i);var o=e(a),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,d=l.r,h=l.r0,f=(d+h)/2,p=l.startAngle,m=l.endAngle,g=(p+m)/2,y=n?Math.abs(d-h)/2:0,v=Math.cos,_=Math.sin,b=u+d*v(p),x=c+d*_(p),w="left",M="top";switch(o){case"startArc":b=u+(h-s)*v(g),x=c+(h-s)*_(g),w="center",M="top";break;case"insideStartArc":b=u+(h+s)*v(g),x=c+(h+s)*_(g),w="center",M="bottom";break;case"startAngle":b=u+f*v(p)+FT(p,s+y,!1),x=c+f*_(p)+zT(p,s+y,!1),w="right",M="middle";break;case"insideStartAngle":b=u+f*v(p)+FT(p,-s+y,!1),x=c+f*_(p)+zT(p,-s+y,!1),w="left",M="middle";break;case"middle":b=u+f*v(g),x=c+f*_(g),w="center",M="middle";break;case"endArc":b=u+(d+s)*v(g),x=c+(d+s)*_(g),w="center",M="bottom";break;case"insideEndArc":b=u+(d-s)*v(g),x=c+(d-s)*_(g),w="center",M="top";break;case"endAngle":b=u+f*v(m)+FT(m,s+y,!0),x=c+f*_(m)+zT(m,s+y,!0),w="left",M="middle";break;case"insideEndAngle":b=u+f*v(m)+FT(m,-s+y,!0),x=c+f*_(m)+zT(m,-s+y,!0),w="right",M="middle";break;default:return lr(t,r,i)}return t=t||{},t.x=b,t.y=x,t.align=w,t.verticalAlign=M,t}}function HT(e,t,n,r){if(Object(s["z"])(r))e.setTextConfig({rotation:r});else if(Object(s["t"])(t))e.setTextConfig({rotation:0});else{var i,a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=(o+l)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=u;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=l;break;default:return void e.setTextConfig({rotation:0})}var d=1.5*Math.PI-i;"middle"===c&&d>Math.PI/2&&d<1.5*Math.PI&&(d-=Math.PI),e.setTextConfig({rotation:d})}}function FT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function zT(e,t,n){return t*Math.cos(e)*(n?1:-1)}function BT(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(s["t"])(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(s["H"])(r,(function(e){return sr(e,i)}))}}var WT=Math.max,VT=Math.min;function GT(e,t){var n=e.getArea&&e.getArea();if(US(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var UT=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return a(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Fg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=ZT(e,l);d&&this._enableRealtimeSort(d,o,n);var h=e.get("clip",!0)||d,f=GT(l,o);a.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),y=g.get("borderRadius")||0,v=[],_=this._backgroundEls,b=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(e){var t=tk[l.type](o,e),n=hk(l,i,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",y):n.setShape("cornerRadius",y),v[e]=n,n}o.diff(s).add((function(t){var n=o.getItemModel(t),r=tk[l.type](o,t,n);if(m&&w(t),o.hasValue(t)&&ek[l.type](r)){var s=!1;h&&(s=qT[l.type](f,r));var g=XT[l.type](e,o,t,r,i,c,u.model,!1,p);d&&(g.forceLabelAnimation=!0),ik(g,o,t,n,r,e,i,"polar"===l.type),b?g.attr({shape:r}):d?KT(d,c,g,r,t,i,!1,!1):Ul(g,{shape:r},e,t),o.setItemGraphicEl(t,g),a.add(g),g.ignore=s}})).update((function(t,n){var r=o.getItemModel(t),M=tk[l.type](o,t,r);if(m){var S=void 0;0===_.length?S=w(n):(S=_[n],S.useStyle(g.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",y):S.setShape("cornerRadius",y),v[t]=S);var T=tk[l.type](o,t),k=dk(i,T,l);Gl(S,{shape:k},c,t)}var L=s.getItemGraphicEl(n);if(o.hasValue(t)&&ek[l.type](M)){var O=!1;if(h&&(O=qT[l.type](f,M),O&&a.remove(L)),L?Jl(L):L=XT[l.type](e,o,t,M,i,c,u.model,!!L,p),d&&(L.forceLabelAnimation=!0),x){var D=L.getTextContent();if(D){var A=fu(D);null!=A.prevValue&&(A.prevValue=A.value)}}else ik(L,o,t,r,M,e,i,"polar"===l.type);b?L.attr({shape:M}):d?KT(d,c,L,M,t,i,!0,x):Gl(L,{shape:M},e,t,null),o.setItemGraphicEl(t,L),L.ignore=O,a.add(L)}else a.remove(L)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Kl(n,e,t)})).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Sr);M.removeAll();for(var S=0;S<v.length;++S)M.add(v[S]);a.add(M),this._backgroundEls=v,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),lk(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),lk(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&GS(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(s["H"])(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Kl(t,e,Os(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Zg),qT={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=WT(t.x,e.x),s=VT(t.x+t.width,i),l=WT(t.y,e.y),u=VT(t.y+t.height,a),c=s<o,d=u<l;return t.x=c&&o>i?s:o,t.y=d&&l>a?u:l,t.width=c?0:s-o,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=VT(t.r,e.r),a=WT(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},XT={cartesian2d:function(e,t,n,r,i,a,o,l,u){var c=new us({shape:Object(s["m"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",a){var d=c.shape,h=i?"height":"width";d[h]=0}return c},polar:function(e,t,n,r,i,a,o,s,l){var u=!i&&l?NT:wm,c=new u({shape:r,z2:1});c.name="item";var d=rk(i);if(c.calculateTextPosition=RT(d,{isRoundCap:u===NT}),a){var h=c.shape,f=i?"r":"endAngle",p={};h[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Gl:Ul)(c,{shape:p},a)}return c}};function ZT(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function KT(e,t,n,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?Gl:Ul)(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Gl:Ul)(n,{shape:u},c,i)}function JT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var $T=["x","y","width","height"],QT=["cx","cy","r","startAngle","endAngle"],ek={cartesian2d:function(e){return!JT(e,$T)},polar:function(e){return!JT(e,QT)}},tk={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?ak(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function nk(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rk(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ik(e,t,n,r,i,a,o,l){var u=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var c=e.shape,d=BT(r.getModel("itemStyle"),c,!0);Object(s["m"])(c,d),e.setShape(c)}}else{var h=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(u);var f=r.getShallow("cursor");f&&e.attr("cursor",f);var p=l?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",m=ru(r);nu(e,m,{labelFetcher:a,labelDataIndex:n,defaultText:yS(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(l&&g){var y=r.get(["label","position"]);e.textConfig.inside="middle"===y||null,HT(e,"outside"===y?p:y,rk(o),r.get(["label","rotate"]))}pu(g,m,a.getRawValue(n),(function(e){return vS(t,e)}));var v=r.getModel(["emphasis"]);Al(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Pl(e,r),nk(i)&&(e.style.fill="none",e.style.stroke="none",Object(s["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ak(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var ok=function(){function e(){}return e}(),sk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return a(t,e),t.prototype.getDefaultShape=function(){return new ok},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[r]=s,o[i]=n[l+2],a[r]=n[l+r],a[i]=n[l+i],e.rect(a[0],a[1],o[0],o[1])},t}(Uo);function lk(e,t,n,r){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new sk({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new sk({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,Os(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",uk),d.on("mousemove",uk)),n&&n.push(d)}var uk=Qg((function(e){var t=this,n=ck(t,e.offsetX,e.offsetY);Os(t).dataIndex=n>=0?n:null}),30,!1);function ck(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=a.length/3;c<d;c++){var h=3*c;if(l[r]=u,l[i]=a[h+2],s[r]=a[h+r],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function dk(e,t,n){if(US(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}function hk(e,t,n){var r="polar"===e.type?wm:us;return new r({shape:dk(t,n,e),silent:!0,z2:0})}var fk=UT;function pk(e){e.registerChartView(fk),e.registerSeriesModel(PT),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,s["h"](kT,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LT("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mT("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var mk=2*Math.PI,gk=Math.PI/180;function yk(e,t){return zc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vk(e,t){var n=yk(e,t),r=e.get("center"),i=e.get("radius");s["t"](i)||(i=[0,i]);var a,o,l=Hr(n.width,t.getWidth()),u=Hr(n.height,t.getHeight()),c=Math.min(l,u),d=Hr(i[0],c/2),h=Hr(i[1],c/2),f=e.coordinateSystem;if(f){var p=f.dataToPoint(r);a=p[0]||0,o=p[1]||0}else s["t"](r)||(r=[r,r]),a=Hr(r[0],l)+n.x,o=Hr(r[1],u)+n.y;return{cx:a,cy:o,r0:d,r:h}}function _k(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=yk(e,n),a=vk(e,n),o=a.cx,s=a.cy,l=a.r,u=a.r0,c=-e.get("startAngle")*gk,d=e.get("endAngle"),h=e.get("padAngle")*gk;d="auto"===d?c-mk:-d*gk;var f=e.get("minAngle")*gk,p=f+h,m=0;t.each(r,(function(e){!isNaN(e)&&m++}));var g=t.getSum(r),y=Math.PI/(g||m)*2,v=e.get("clockwise"),_=e.get("roseType"),b=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var w=v?1:-1,M=[c,d],S=w*h/2;vo(M,!v),c=M[0],d=M[1];var T=bk(e);T.startAngle=c,T.endAngle=d,T.clockwise=v;var k=Math.abs(d-c),L=k,O=0,D=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:o,cy:s,r0:u,r:_?NaN:l});else{r="area"!==_?0===g&&b?y:e*y:k/m,r<p?(r=p,L-=p):O+=e;var i=D+w*r,a=0,c=0;h>r?(a=D+w*r/2,c=a):(a=D+S,c=i-S),t.setItemLayout(n,{angle:r,startAngle:a,endAngle:c,clockwise:v,cx:o,cy:s,r0:u,r:_?Rr(e,x,[u,l]):l}),D=i}})),L<mk&&m)if(L<=.001){var A=k/m;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=A;var i=0,a=0;A<h?(i=c+w*(n+.5)*A,a=i):(i=c+w*n*A+S,a=c+w*(n+1)*A-S),r.startAngle=i,r.endAngle=a}}))}else y=L/O,D=c,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*y,a=0,o=0;i<h?(a=D+w*i/2,o=a):(a=D+S,o=D+w*i-S),r.startAngle=a,r.endAngle=o,D+=w*i}}))}))}var bk=Ei();function xk(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var wk=Math.PI/180;function Mk(e,t,n,r,i,a,o,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var h=e[d].label.x-u;e[d].linePoints[1][0]+=h,e[d].label.x=u}dx(e,l,l+o)&&p(e)}function f(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,d=c*c,h=Math.sqrt(Math.abs((1-u*u/o)*d)),f=t+(h+l.len2)*i,p=f-l.label.x,m=l.targetTextWidth-p*i;Tk(l,m,!0),l.label.x=f}}function p(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,h=r+l.len,p=Math.abs(d)<h?Math.sqrt(c*c/(1-d*d/h/h)):h;u.rB=p,u.maxY=c}u.list.push(l)}f(a),f(o)}}function Sk(e,t,n,r,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<e.length;h++){var f=e[h].label;kk(e[h])||(f.x<t?(c=Math.min(c,f.x),l.push(e[h])):(d=Math.max(d,f.x),u.push(e[h])))}for(h=0;h<e.length;h++){var p=e[h];if(!kk(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;f=p.label;var m=p.linePoints,g=void 0;g="edge"===p.labelAlignTo?f.x<t?m[2][0]-p.labelDistance-o-p.edgeDistance:o+i-p.edgeDistance-m[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?f.x<t?c-o-p.bleedMargin:o+i-d-p.bleedMargin:f.x<t?f.x-o-p.bleedMargin:o+i-f.x-p.bleedMargin,p.targetTextWidth=g,Tk(p,g)}}Mk(u,t,n,r,1,i,a,o,s,d),Mk(l,t,n,r,-1,i,a,o,s,c);for(h=0;h<e.length;h++){p=e[h];if(!kk(p)&&p.linePoints){f=p.label,m=p.linePoints;var y="edge"===p.labelAlignTo,v=f.style.padding,_=v?v[1]+v[3]:0,b=f.style.backgroundColor?0:_,x=p.rect.width+b,w=m[1][0]-m[2][0];y?f.x<t?m[2][0]=o+p.edgeDistance+x+p.labelDistance:m[2][0]=o+i-p.edgeDistance-x-p.labelDistance:(f.x<t?m[2][0]=f.x+p.labelDistance:m[2][0]=f.x-p.labelDistance,m[1][0]=m[2][0]+w),m[1][1]=m[2][1]=f.y}}}function Tk(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||n){var d=a.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",o)}else{var f=t-l,p=t<c?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle("width",p)}var m=r.getBoundingRect();a.width=m.width;var g=(r.style.margin||0)+2.1;a.height=m.height+g,a.y-=(a.height-d)/2}}}function kk(e){return"center"===e.position}function Lk(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*wk,l=r.getLayout("viewRect"),u=r.getLayout("r"),c=l.width,d=l.x,h=l.y,f=l.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var l=r.getItemGraphicEl(e),h=l.shape,f=l.getTextContent(),g=l.getTextGuideLine(),y=r.getItemModel(e),v=y.getModel("label"),_=v.get("position")||y.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),x=v.get("alignTo"),w=Hr(v.get("edgeDistance"),c),M=v.get("bleedMargin"),S=y.getModel("labelLine"),T=S.get("length");T=Hr(T,c);var k=S.get("length2");if(k=Hr(k,c),Math.abs(h.endAngle-h.startAngle)<o)return Object(s["k"])(f.states,p),f.ignore=!0,void(g&&(Object(s["k"])(g.states,p),g.ignore=!0));if(m(f)){var L,O,D,A,I=(h.startAngle+h.endAngle)/2,C=Math.cos(I),E=Math.sin(I);t=h.cx,n=h.cy;var P="inside"===_||"inner"===_;if("center"===_)L=h.cx,O=h.cy,A="center";else{var Y=(P?(h.r+h.r0)/2*C:h.r*C)+t,j=(P?(h.r+h.r0)/2*E:h.r*E)+n;if(L=Y+3*C,O=j+3*E,!P){var N=Y+C*(T+u-h.r),R=j+E*(T+u-h.r),H=N+(C<0?-1:1)*k,F=R;L="edge"===x?C<0?d+w:d+c-w:H+(C<0?-b:b),O=F,D=[[Y,j],[N,R],[H,F]]}A=P?"center":"edge"===x?C>0?"right":"left":C>0?"left":"right"}var z=Math.PI,B=0,W=v.get("rotate");if(Object(s["z"])(W))B=W*(z/180);else if("center"===_)B=0;else if("radial"===W||!0===W){var V=C<0?-I+z:-I;B=V}else if("tangential"===W&&"outside"!==_&&"outer"!==_){var G=Math.atan2(C,E);G<0&&(G=2*z+G);var U=E>0;U&&(G=z+G),B=G-z}if(a=!!B,f.x=L,f.y=O,f.rotation=B,f.setStyle({verticalAlign:"middle"}),P){f.setStyle({align:A});var q=f.states.select;q&&(q.x+=f.x,q.y+=f.y)}else{var X=f.getBoundingRect().clone();X.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,i.push({label:f,labelLine:g,position:_,len:T,len2:k,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new _e(C,E),linePoints:D,textAlign:A,labelDistance:b,labelAlignTo:x,edgeDistance:w,bleedMargin:M,rect:X,unconstrainedWidth:X.width,labelStyleWidth:f.style.width})}l.setTextConfig({inside:P})}})),!a&&e.get("avoidLabelOverlap")&&Sk(i,t,n,u,c,f,d,h);for(var g=0;g<i.length;g++){var y=i[g],v=y.label,_=y.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),b&&(Object(s["k"])(v.states,p),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(_){var w=y.linePoints;b||!w?(Object(s["k"])(_.states,p),_.ignore=!0):(nx(w,y.minTurnAngle),rx(w,y.surfaceNormal,y.maxSurfaceAngle),_.setShape({points:w}),v.__hostTarget.textGuideLineConfig={anchor:new _e(w[0][0],w[0][1])})}}}var Ok=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Ls;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return a(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),l=o.getModel("emphasis"),u=e.getItemLayout(t),c=Object(s["m"])(BT(o.getModel("itemStyle"),u,!0),u);if(isNaN(c.startAngle))i.setShape(c);else{if(r){i.setShape(c);var d=a.getShallow("animationType");a.ecModel.ssr?(Ul(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=c.cx,i.originY=c.cy):"scale"===d?(i.shape.r=u.r0,Ul(i,{shape:{r:u.r}},a,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Ul(i,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},a,t)):(i.shape.endAngle=u.startAngle,Gl(i,{shape:{endAngle:u.endAngle}},a,t))}else Jl(i),Gl(i,{shape:c},a,t);i.useStyle(e.getItemVisual(t,"style")),Pl(i,o);var h=(u.startAngle+u.endAngle)/2,f=a.get("selectedOffset"),p=Math.cos(h)*f,m=Math.sin(h)*f,g=o.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(a,e,t),i.ensureState("emphasis").shape=Object(s["m"])({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},BT(l.getModel("itemStyle"),u)),Object(s["m"])(i.ensureState("select"),{x:p,y:m,shape:BT(o.getModel(["select","itemStyle"]),u)}),Object(s["m"])(i.ensureState("blur"),{shape:BT(o.getModel(["blur","itemStyle"]),u)});var y=i.getTextGuideLine(),v=i.getTextContent();y&&Object(s["m"])(y.ensureState("select"),{x:p,y:m}),Object(s["m"])(v.ensureState("select"),{x:p,y:m}),Al(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel("labelLine"),o=t.getItemVisual(n,"style"),l=o&&o.fill,u=o&&o.opacity;nu(r,ru(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:u,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=r.getTextContent();r.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=e.get(["label","position"]);if("outside"!==d&&"outer"!==d)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Em,this.setTextGuideLine(h)),ox(this,sx(i),{stroke:l,opacity:Object(s["Q"])(a.get(["lineStyle","opacity"]),u,1)})}},t}(wm),Dk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return a(t,e),t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,l=this.group;if(!o&&a.count()>0){for(var u=a.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c<a.count();++c)u=a.getItemLayout(c);u&&(i=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")){var d=bk(e),h=new wm({shape:Object(s["m"])(vk(e,n),d)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}a.diff(o).add((function(e){var t=new Ok(a,e,i);a.setItemGraphicEl(e,t),l.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off("click"),l.add(n),a.setItemGraphicEl(e,n)})).remove((function(t){var n=o.getItemGraphicEl(t);Kl(n,e,t)})).execute(),Lk(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,a=e[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},t.type="pie",t}(Zg),Ak=Dk;function Ik(e,t,n){t=Object(s["t"])(t)&&{coordDimensions:t}||Object(s["m"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=JM(r,t).dimensions,a=new KM(i,e);return a.initData(r,n),a}var Ck=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),Ek=Ck,Pk=Ei(),Yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ek(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ik(this,{coordDimensions:["value"],encodeDefaulter:s["h"](pd,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=Pk(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension("value"),(function(e){a.push(e)})),i=r.seats=Gr(a,n.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){hi(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(kp),jk=Yk;function Nk(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(s["z"])(r)&&!isNaN(r)&&r<0)}))}}}function Rk(e){e.registerChartView(Ak),e.registerSeriesModel(jk),Gy("pie",e.registerAction),e.registerLayout(Object(s["h"])(_k,"pie")),e.registerProcessor(xk("pie")),e.registerProcessor(Nk("pie"))}var Hk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pS(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(kp),Fk=Hk,zk=4,Bk=function(){function e(){}return e}(),Wk=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(t,e),t.prototype.getDefaultShape=function(){return new Bk},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,a=this.symbolProxy,o=a.shape,s=e.getContext?e.getContext():e,l=s&&i[0]<zk,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],d=r[n++];isNaN(c)||isNaN(d)||(u&&!u.contain(c,d)||(o.x=c-i[0]/2,o.y=d-i[1]/2,o.width=i[0],o.height=i[1],a.buildPath(e,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,i=this._ctx,a=this.softClipShape;if(i){for(e=this._off;e<n.length;){var o=n[e++],s=n[e++];isNaN(o)||isNaN(s)||(a&&!a.contain(o,s)||i.fillRect(o-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-a/2,c=r[l+1]-o/2;if(e>=u&&t>=c&&e<=u+a&&t<=c+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],h=n[c++];o=Math.min(d,o),l=Math.max(d,l),s=Math.min(h,s),u=Math.max(h,u)}e=this._rect=new De(o-i/2,s-a/2,l-o+i,u-s+a)}return e},t}(Uo),Vk=function(){function e(){this.group=new Sr}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Wk({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=lv(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<zk;e.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=t.getVisual("style"),s=o&&o.fill;s&&e.setColor(s);var l=Os(e);l.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Gk=Vk,Uk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=hT("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new Gk:new kS,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Zg),qk=Uk,Xk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Jc),Zk=Xk,Kk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),Jk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ni).models[0]},t.type="cartesian2dAxis",t}(Jc);s["K"](Jk,Kk);var $k={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Qk=s["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$k),eL=s["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},$k),tL=s["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eL),nL=s["i"]({logBase:10},eL),rL={category:Qk,value:eL,time:tL,log:nL},iL=0,aL=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iL}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(s["H"])(r,oL);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(s["C"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(s["f"])(this.categories))},e}();function oL(e){return Object(s["A"])(e)&&null!=e.value?e.value:e+""}var sL=aL,lL={value:1,category:1,time:1,log:1};function uL(e,t,n,r){Object(s["k"])(lL,(function(i,o){var l=Object(s["I"])(Object(s["I"])({},rL[o],!0),r,!0),u=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return a(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Vc(this),r=n?Uc(e):{},i=t.getTheme();Object(s["I"])(e,i.get(o+"Axis")),Object(s["I"])(e,this.getDefaultOption()),e.type=cL(e),n&&Gc(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sL.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=l,n}(n);e.registerComponentModel(u)})),e.registerSubTypeDefaulter(t+"Axis",cL)}function cL(e){return e.type||(e.data?"category":"value")}var dL=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ia(dL);var hL=dL;function fL(e){return"interval"===e.type||"log"===e.type}function pL(e,t,n,r){var i={},a=e[1]-e[0],o=i.interval=ei(a/t,!0);null!=n&&o<n&&(o=i.interval=n),null!=r&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=gL(o),l=i.niceTickExtent=[Fr(Math.ceil(e[0]/o)*o,s),Fr(Math.floor(e[1]/o)*o,s)];return vL(l,e),i}function mL(e){var t=Math.pow(10,Qr(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Fr(n*t)}function gL(e){return Br(e)+2}function yL(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function vL(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),yL(e,0,t),yL(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function _L(e,t){return e>=t[0]&&e<=t[1]}function bL(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function xL(e,t){return e*(t[1]-t[0])+t[0]}var wL=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new sL({})),Object(s["t"])(r)&&(r=new sL({categories:Object(s["H"])(r,(function(e){return Object(s["A"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return a(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(s["C"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),_L(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),bL(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(xL(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<a;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hL);hL.registerClass(wL);var ML=wL,SL=Fr,TL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return a(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return _L(e,this._extent)},t.prototype.normalize=function(e){return bL(e,this._extent)},t.prototype.scale=function(e){return xL(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=gL(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;var o=1e4;n[0]<r[0]&&(e?a.push({value:SL(r[0]-t,i)}):a.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(a.push({value:s}),s=SL(s+t,i),s===a[a.length-1].value)break;if(a.length>o)return[]}var l=a.length?a[a.length-1].value:r[1];return n[1]>l&&(e?a.push({value:SL(l+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1],s=0,l=[],u=a.value-o.value,c=u/e;while(s<e-1){var d=SL(o.value+(s+1)*c);d>r[0]&&d<r[1]&&l.push(d),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=Br(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=SL(e.value,n,!0);return Sc(r)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a=pL(r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=SL(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=SL(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(hL);hL.registerClass(TL);var kL=TL,LL=function(e,t,n,r){while(n<r){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},OL=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return a(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return oc(e.value,Qu[ac(rc(this._minLevelUnit))]||Qu.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return sc(e,t,n,i,r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=NL(this._minLevelUnit,this._approxInterval,r,t);return n=n.concat(i),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Zu,t[1]+=Zu),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Zu}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=DL.length,o=Math.min(LL(DL,this._approxInterval,0,a),a-1);this._interval=DL[o][1],this._minLevelUnit=DL[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return Object(s["z"])(e)?e:+Jr(e)},t.prototype.contain=function(e){return _L(this.parse(e),this._extent)},t.prototype.normalize=function(e){return bL(this.parse(e),this._extent)},t.prototype.scale=function(e){return xL(e,this._extent)},t.type="time",t}(kL),DL=[["second",Uu],["minute",qu],["hour",Xu],["quarter-day",6*Xu],["half-day",12*Xu],["day",1.2*Zu],["half-week",3.5*Zu],["week",7*Zu],["month",31*Zu],["quarter",95*Zu],["half-year",Ku/2],["year",Ku]];function AL(e,t,n,r){var i=Jr(t),a=Jr(n),o=function(e){return uc(i,e,r)===uc(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")},f=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return f()}}function IL(e,t){return e/=Zu,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function CL(e){var t=30*Zu;return e/=t,e>6?6:e>3?3:e>2?2:1}function EL(e){return e/=Xu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function PL(e,t){return e/=t?qu:Uu,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function YL(e){return ei(e,!0)}function jL(e,t,n){var r=new Date(e);switch(rc(t)){case"year":case"month":r[vc(n)](0);case"day":r[_c(n)](1);case"hour":r[bc(n)](0);case"minute":r[xc(n)](0);case"second":r[wc(n)](0),r[Mc(n)](0)}return r.getTime()}function NL(e,t,n,r){var i=1e4,a=tc,o=0;function l(e,t,n,i,a,o,s){var l=new Date(t),u=t,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!AL(rc(e),r[0],r[1],n)){s&&(i=[{value:jL(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var h=void 0,f=void 0,p=void 0,m=!1;switch(e){case"year":h=Math.max(1,Math.round(t/Zu/365)),f=cc(n),p=yc(n);break;case"half-year":case"quarter":case"month":h=CL(t),f=dc(n),p=vc(n);break;case"week":case"half-week":case"day":h=IL(t,31),f=hc(n),p=_c(n),m=!0;break;case"half-day":case"quarter-day":case"hour":h=EL(t),f=fc(n),p=bc(n);break;case"minute":h=PL(t,!0),f=pc(n),p=xc(n);break;case"second":h=PL(t,!1),f=mc(n),p=wc(n);break;case"millisecond":h=YL(t),f=gc(n),p=Mc(n);break}l(h,c,d,f,p,m,o),"year"===e&&a.length>1&&0===u&&a.unshift({value:a[0].value-h})}}for(u=0;u<o.length;u++)a.push(o[u]);return o}}for(var c=[],d=[],h=0,f=0,p=0;p<a.length&&o++<i;++p){var m=rc(a[p]);if(ic(a[p])){u(a[p],c[c.length-1]||[],d);var g=a[p+1]?rc(a[p+1]):null;if(m!==g){if(d.length){f=h,d.sort((function(e,t){return e.value-t.value}));for(var y=[],v=0;v<d.length;++v){var _=d[v].value;0!==v&&d[v-1].value===_||(y.push(d[v]),_>=r[0]&&_<=r[1]&&h++)}var b=(r[1]-r[0])/t;if(h>1.5*b&&f>b/1.5)break;if(c.push(y),h>b||e===a[p])break}d=[]}}}var x=Object(s["n"])(Object(s["H"])(c,(function(e){return Object(s["n"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),w=[],M=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],T=0;T<S.length;++T)w.push({value:S[T].value,level:M-p});w.sort((function(e,t){return e.value-t.value}));var k=[];for(p=0;p<w.length;++p)0!==p&&w[p].value===w[p-1].value||k.push(w[p]);return k}hL.registerClass(OL);var RL=OL,HL=hL.prototype,FL=kL.prototype,zL=Fr,BL=Math.floor,WL=Math.ceil,VL=Math.pow,GL=Math.log,UL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new kL,t._interval=0,t}return a(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),i=FL.getTicks.call(this,e);return s["H"](i,(function(e){var t=e.value,i=Fr(VL(this.base,t));return i=t===n[0]&&this._fixMin?XL(i,r[0]):i,i=t===n[1]&&this._fixMax?XL(i,r[1]):i,{value:i}}),this)},t.prototype.setExtent=function(e,t){var n=GL(this.base);e=GL(Math.max(0,e))/n,t=GL(Math.max(0,t))/n,FL.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=HL.getExtent.call(this);t[0]=VL(e,t[0]),t[1]=VL(e,t[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(t[0]=XL(t[0],r[0])),this._fixMax&&(t[1]=XL(t[1],r[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=GL(e[0])/GL(t),e[1]=GL(e[1])/GL(t),HL.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=$r(n),i=e/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var a=[Fr(WL(t[0]/r)*r),Fr(BL(t[1]/r)*r)];this._interval=r,this._niceExtent=a}},t.prototype.calcNiceExtent=function(e){FL.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=GL(e)/GL(this.base),_L(e,this._extent)},t.prototype.normalize=function(e){return e=GL(e)/GL(this.base),bL(e,this._extent)},t.prototype.scale=function(e){return e=xL(e,this._extent),VL(this.base,e)},t.type="log",t}(hL),qL=UL.prototype;function XL(e,t){return zL(e,Br(t))}qL.getMinorTicks=FL.getMinorTicks,qL.getLabel=FL.getLabel,hL.registerClass(UL);var ZL=UL,KL=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var a=this._modelMinRaw=i;Object(s["w"])(a)?this._modelMinNum=eO(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=eO(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(Object(s["w"])(o)?this._modelMaxNum=eO(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=eO(e,o)),r)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=Object(s["t"])(l)?l:[l||0,l||0];"boolean"===typeof u[0]||"boolean"===typeof u[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[sr(u[0],1),sr(u[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=o,c=null!=l;null==o&&(o=e?r?0:NaN:t-i[0]*a),null==l&&(l=e?r?r-1:NaN:n+i[1]*a),(null==o||!isFinite(o))&&(o=NaN),(null==l||!isFinite(l))&&(l=NaN);var d=Object(s["l"])(o)||Object(s["l"])(l)||e&&!r;this._needCrossZero&&(o>0&&l>0&&!u&&(o=0),o<0&&l<0&&!c&&(l=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(o=h,u=!0),null!=f&&(l=f,c=!0),{min:o,max:l,minFixed:u,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(e,t){this[$L[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=JL[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),JL={min:"_determinedMin",max:"_determinedMax"},$L={min:"_dataMin",max:"_dataMax"};function QL(e,t,n){var r=e.rawExtentInfo;return r||(r=new KL(e,t,n),e.rawExtentInfo=r,r)}function eO(e,t){return null==t?null:Object(s["l"])(t)?NaN:e.parse(t)}function tO(e,t){var n=e.type,r=QL(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&"time"===n){var l=xT("bar",o),u=!1;if(s["k"](l,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var c=MT(l),d=nO(i,a,t,c);i=d.min,a=d.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function nO(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=TT(r,n.axis);if(void 0===o)return{min:e,max:t};var l=1/0;s["k"](o,(function(e){l=Math.min(e.offset,l)}));var u=-1/0;s["k"](o,(function(e){u=Math.max(e.offset+e.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=t-e,h=1-(l+u)/a,f=d/h-d;return t+=f*(u/c),e-=f*(l/c),{min:e,max:t}}function rO(e,t){var n=t,r=tO(e,n),i=r.extent,a=n.get("splitNumber");e instanceof ZL&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l="interval"===o||"time"===o;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function iO(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ML({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new RL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hL.getClass(t)||kL)}}function aO(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function oO(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):s["C"](t)?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):s["w"](t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(sO(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function sO(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function lO(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,a=n.getExtent();n instanceof ML?i=n.count():(r=n.getTicks(),i=r.length);var o,s=e.getLabelModel(),l=oO(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=r?r[c]:{value:a[0]+c},h=l(d,c),f=s.getTextRect(h),p=uO(f,s.get("rotate")||0);o?o.union(p):o=p}return o}}function uO(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new De(e.x,e.y,a,o);return s}function cO(e){var t=e.get("interval");return null==t?"auto":t}function dO(e){return"category"===e.type&&0===cO(e.getLabelModel())}function hO(e,t){var n={};return s["k"](e.mapDimensionsAll(t),(function(t){n[lS(e,t)]=!0})),s["F"](n)}function fO(e,t,n){t&&s["k"](hO(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}var pO=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return s["H"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),s["n"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),mO=pO,gO=["x","y"];function yO(e){return"interval"===e.type||"time"===e.type}var vO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=gO,t}return a(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(yO(e)&&yO(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var l=(a[0]-i[0])/o,u=(a[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=ge([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new De(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return k(n,e,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return k(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,a=Math.max(t[0],t[1])-r+e,o=Math.max(n[0],n[1])-i+e;return new De(r,i,a,o)},t}(mO),_O=vO,bO=Ei();function xO(e,t){var n=s["H"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function wO(e){var t=e.getLabelModel().get("customValues");if(t){var n=oO(e),r=e.scale.getExtent(),i=xO(e,t),a=s["n"](i,(function(e){return e>=r[0]&&e<=r[1]}));return{labels:s["H"](a,(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}return"category"===e.type?SO(e):LO(e)}function MO(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=xO(e,n);return{ticks:s["n"](i,(function(e){return e>=r[0]&&e<=r[1]}))}}return"category"===e.type?kO(e,t):{ticks:s["H"](e.scale.getTicks(),(function(e){return e.value}))}}function SO(e){var t=e.getLabelModel(),n=TO(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function TO(e,t){var n,r,i=OO(e,"labels"),a=cO(t),o=DO(i,a);return o||(s["w"](a)?n=YO(e,a):(r="auto"===a?IO(e):a,n=PO(e,r)),AO(i,a,{labels:n,labelCategoryInterval:r}))}function kO(e,t){var n,r,i=OO(e,"ticks"),a=cO(t),o=DO(i,a);if(o)return o;if(t.get("show")&&!e.scale.isBlank()||(n=[]),s["w"](a))n=YO(e,a,!0);else if("auto"===a){var l=TO(e,e.getLabelModel());r=l.labelCategoryInterval,n=s["H"](l.labels,(function(e){return e.tickValue}))}else r=a,n=PO(e,r,!0);return AO(i,a,{ticks:n,tickCategoryInterval:r})}function LO(e){var t=e.scale.getTicks(),n=oO(e);return{labels:s["H"](t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function OO(e,t){return bO(e)[t]||(bO(e)[t]=[])}function DO(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function AO(e,t,n){return e.push({key:t,value:n}),n}function IO(e){var t=bO(e).autoInterval;return null!=t?t:bO(e).autoInterval=e.calculateCategoryInterval()}function CO(e){var t=EO(e),n=oO(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,f=0;l<=a[1];l+=s){var p=0,m=0,g=rr(n({value:l}),t.font,"center","top");p=1.3*g.width,m=1.3*g.height,h=Math.max(h,p,7),f=Math.max(f,m,7)}var y=h/c,v=f/d;isNaN(y)&&(y=1/0),isNaN(v)&&(v=1/0);var _=Math.max(0,Math.floor(Math.min(y,v))),b=bO(e.model),x=e.getExtent(),w=b.lastAutoInterval,M=b.lastTickCount;return null!=w&&null!=M&&Math.abs(w-_)<=1&&Math.abs(M-o)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function EO(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function PO(e,t,n){var r=oO(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=dO(e),h=o.get("showMinLabel")||d,f=o.get("showMaxLabel")||d;h&&u!==a[0]&&m(a[0]);for(var p=u;p<=a[1];p+=l)m(p);function m(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return f&&p-l!==a[1]&&m(a[1]),s}function YO(e,t,n){var r=e.scale,i=oO(e),a=[];return s["k"](r.getTicks(),(function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s})})),a}var jO=[0,1],NO=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Vr(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),RO(n,r.count())),Rr(e,jO,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),RO(n,r.count()));var i=Rr(e,n,jO,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=MO(this,t),r=n.ticks,i=Object(s["H"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),a=t.get("alignWithLabel");return HO(this,i,a,e.clamp),i},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),r=Object(s["H"])(n,(function(e){return Object(s["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return wO(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return CO(this)},e}();function RO(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function HO(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var a,o,l=e.getExtent();if(1===i)t[0].coord=l[0],a=t[1]={coord:l[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/u;Object(s["k"])(t,(function(e){e.coord-=c/2}));var d=e.scale.getExtent();o=1+d[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*o,tickValue:d[1]+1},t.push(a)}var h=l[0]>l[1];f(t[0].coord,l[0])&&(r?t[0].coord=l[0]:t.shift()),r&&f(l[0],t[0].coord)&&t.unshift({coord:l[0]}),f(l[1],a.coord)&&(r?a.coord=l[1]:t.pop()),r&&f(a.coord,l[1])&&t.push({coord:l[1]})}function f(e,t){return e=Fr(e),t=Fr(t),h?e>t:e<t}}var FO=NO,zO=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return a(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(FO),BO=zO;function WO(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],l=i.position,u=o?"onZero":l,c=i.dim,d=r.getRect(),h=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,m="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));m[f.onZero]=Math.max(Math.min(g,m[1]),m[0])}a.position=["y"===c?m[f[u]]:h[0],"x"===c?m[f[u]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[l],a.labelOffset=o?m[f[l]]-m[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),s["O"](n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-v:v,a.z2=1,a}function VO(e){return"cartesian2d"===e.get("coordinateSystem")}function GO(e){var t={xAxisModel:null,yAxisModel:null};return s["k"](t,(function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,Ni).models[0];t[r]=a})),t}var UO=Math.log;function qO(e,t,n){var r=kL.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),l=tO(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=UO(e.base);u=[UO(u[0])/h,UO(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var f=r.getExtent.call(e);c&&(u[0]=f[0]),d&&(u[1]=f[1]);var p=r.getInterval.call(e),m=u[0],g=u[1];if(c&&d)p=(g-m)/o;else if(c){g=u[0]+p*o;while(g<u[1]&&isFinite(g)&&isFinite(u[1]))p=mL(p),g=u[0]+p*o}else if(d){m=u[1]-p*o;while(m>u[0]&&isFinite(m)&&isFinite(u[0]))p=mL(p),m=u[1]-p*o}else{var y=e.getTicks().length-1;y>o&&(p=mL(p));var v=p*o;g=Math.ceil(u[1]/p)*p,m=Fr(g-v),m<0&&u[0]>=0?(m=0,g=Fr(v)):g>0&&u[1]<=0&&(g=0,m=-Fr(v))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+p*_,g+p*b),r.setInterval.call(e,p),(_||b)&&r.setNiceExtent.call(e,m+p,g-p)}var XO=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gO,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(s["F"])(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=+n[a],l=e[o],u=l.model,c=l.scale;fL(c)&&u.get("alignTicks")&&null==u.get("interval")?i.push(l):(rO(c,u),fL(c)&&(t=l))}i.length&&(t||(t=i.pop(),rO(t.scale,t.model)),Object(s["k"])(i,(function(e){qO(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(s["k"])(n.x,(function(e){KO(n,"y",e,i)})),Object(s["k"])(n.y,(function(e){KO(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),a=zc(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function l(){Object(s["k"])(o,(function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),$O(e,t?a.x:a.y)}))}l(),i&&(Object(s["k"])(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=lO(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);a[n]-=t[n]+r,"top"===e.position?a.y+=t.height+r:"left"===e.position&&(a.x+=t.width+r)}}})),l()),Object(s["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(s["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Ni).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ni).models[0],o=e.gridModel,l=this._coordsList;if(r)t=r.coordinateSystem,Object(s["r"])(l,t)<0&&(t=null);else if(i&&a)t=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(t){return function(n,r){if(ZO(n,e)){var s=n.get("position");"x"===t?"top"!==s&&"bottom"!==s&&(s=a.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=a.left?"right":"left"),a[s]=!0;var u=new BO(t,iO(n),[0,0],n.get("type"),s),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,l[t]++}}}this._axesMap=o,Object(s["k"])(o.x,(function(t,n){Object(s["k"])(o.y,(function(i,a){var o="x"+n+"y"+a,s=new _O(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(s["k"])(hO(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(s["k"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(VO(e)){var r=GO(e),i=r.xAxisModel,a=r.yAxisModel;if(!ZO(i,t)||!ZO(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),l=o.getAxis("x"),u=o.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(s["k"])(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Object(s["r"])(t,i)<0&&t.push(i),Object(s["r"])(n,a)<0&&n.push(a)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,a){var o=new e(i,t,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)})),t.eachSeries((function(e){if(VO(e)){var t=GO(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();0;var a=i.coordinateSystem;e.coordinateSystem=a.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=gO,e}();function ZO(e,t){return e.getCoordSysModel()===t}function KO(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=e[t],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)JO(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&JO(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function JO(e){return e&&"category"!==e.type&&"time"!==e.type&&aO(e)}function $O(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}var QO=XO,eD=Math.PI,tD=function(){function e(e,t){this.group=new Sr,this.opt=t,this.axisModel=e,Object(s["i"])(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Sr({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!nD[e]},e.prototype.add=function(e){nD[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,a=Xr(t-e);return Zr(a)?(i=n>0?"top":"bottom",r="center"):Zr(a-eD)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<eD?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),nD={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var a=t.axis.getExtent(),o=r.transform,l=[a[0],0],u=[a[1],0],c=l[0]>u[0];o&&(k(l,l,o),k(u,u,o));var d=Object(s["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Nm({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});wg(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=t.get(["axisLine","symbol"]);if(null!=f){var p=t.get(["axisLine","symbolSize"]);Object(s["C"])(f)&&(f=[f,f]),(Object(s["C"])(p)||Object(s["z"])(p))&&(p=[p,p]);var m=cv(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],y=p[1];Object(s["k"])([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=lv(f[r],-g/2,-y/2,g,y,d.stroke,!0),a=t.r+t.offset,o=c?u:l;i.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=uD(n,r,t,e),a=dD(n,r,t,e);if(iD(t,a,i),cD(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=lx(Object(s["H"])(a,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));hx(o)}},axisName:function(e,t,n,r){var i=Object(s["O"])(e.axisName,t.get("name"));if(i){var a,o,l=t.get("nameLocation"),u=e.nameDirection,c=t.getModel("nameTextStyle"),d=t.get("nameGap")||0,h=t.axis.getExtent(),f=h[0]>h[1]?-1:1,p=["start"===l?h[0]-f*d:"end"===l?h[1]+f*d:(h[0]+h[1])/2,sD(l)?e.labelOffset+u*d:0],m=t.get("nameRotate");null!=m&&(m=m*eD/180),sD(l)?a=tD.innerTextLayout(e.rotation,null!=m?m:e.rotation,u):(a=rD(e.rotation,l,m||0,h),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var g=c.getFont(),y=t.get("nameTruncate",!0)||{},v=y.ellipsis,_=Object(s["O"])(e.nameTruncateMaxWidth,y.maxWidth,o),b=new Ls({x:p[0],y:p[1],rotation:a.rotation,silent:tD.isLabelSilent(t),style:iu(c,{text:i,font:g,overflow:"truncate",width:_,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(Rg({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var x=tD.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Os(b).eventData=x}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function rD(e,t,n,r){var i,a,o=Xr(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return Zr(o-eD/2)?(a=l?"bottom":"top",i="center"):Zr(o-1.5*eD)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*eD&&o>eD/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:i,textVerticalAlign:a}}function iD(e,t,n){if(!dO(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(aD(a),aD(u)):oD(a,o)&&(r?(aD(o),aD(c)):(aD(a),aD(u))),!1===i?(aD(s),aD(d)):oD(l,s)&&(i?(aD(l),aD(h)):(aD(s),aD(d)))}}function aD(e){e&&(e.ignore=!0)}function oD(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=ce([]);return pe(i,i,-e.rotation),n.applyTransform(he([],i,e.getLocalTransform())),r.applyTransform(he([],i,t.getLocalTransform())),n.intersect(r)}}function sD(e){return"middle"===e||"center"===e}function lD(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(k(o,o,t),k(s,s,t));var c=new Nm({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});wg(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function uD(e,t,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if("auto"===o&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),o&&!i.scale.isBlank()){for(var l=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),c=i.getTicksCoords(),d=lD(c,t.transform,u,Object(s["i"])(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<d.length;h++)e.add(d[h]);return d}}function cD(e,t,n,r){var i=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!i.scale.isBlank()){var o=i.getMinorTicksCoords();if(o.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=Object(s["i"])(l.getLineStyle(),Object(s["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<o.length;d++)for(var h=lD(o[d],t.transform,u,c,"minorticks_"+d),f=0;f<h.length;f++)e.add(h[f])}}function dD(e,t,n,r){var i=n.axis,a=Object(s["O"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(a&&!i.scale.isBlank()){var o=n.getModel("axisLabel"),l=o.get("margin"),u=i.getViewLabels(),c=(Object(s["O"])(r.labelRotate,o.get("rotate"))||0)*eD/180,d=tD.innerTextLayout(r.rotation,c,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],p=tD.isLabelSilent(n),m=n.get("triggerEvent");return Object(s["k"])(u,(function(a,c){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,y=a.formattedLabel,v=a.rawLabel,_=o;if(h&&h[g]){var b=h[g];Object(s["A"])(b)&&b.textStyle&&(_=new Ou(b.textStyle,o,n.ecModel))}var x=_.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(g),M=_.getShallow("align",!0)||d.textAlign,S=Object(s["P"])(_.getShallow("alignMinLabel",!0),M),T=Object(s["P"])(_.getShallow("alignMaxLabel",!0),M),k=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||d.textVerticalAlign,L=Object(s["P"])(_.getShallow("verticalAlignMinLabel",!0),k),O=Object(s["P"])(_.getShallow("verticalAlignMaxLabel",!0),k),D=new Ls({x:w,y:r.labelOffset+r.labelDirection*l,rotation:d.rotation,silent:p,z2:10+(a.level||0),style:iu(_,{text:y,align:0===c?S:c===u.length-1?T:M,verticalAlign:0===c?L:c===u.length-1?O:k,fill:Object(s["w"])(x)?x("category"===i.type?v:"value"===i.type?g+"":g,c):x})});if(D.anid="label_"+g,Rg({el:D,componentModel:n,itemName:y,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:v,tickIndex:c}}),m){var A=tD.makeAxisEventDataBase(n);A.targetType="axisLabel",A.value=v,A.tickIndex=c,"category"===i.type&&(A.dataIndex=g),Os(D).eventData=A}t.add(D),D.updateTransform(),f.push(D),e.add(D),D.decomposeTransform()})),f}}var hD=tD;function fD(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pD(n,e,t),n.seriesInvolved&&gD(n,e),n}function pD(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];Object(s["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var l=MD(n.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=n;var c=n.model,d=c.getModel("tooltip",r);if(Object(s["k"])(n.getAxes(),Object(s["h"])(m,!1,null)),n.getTooltipAxes&&r&&d.get("show")){var h="axis"===d.get("trigger"),f="cross"===d.get(["axisPointer","type"]),p=n.getTooltipAxes(d.get(["axisPointer","axis"]));(h||f)&&Object(s["k"])(p.baseAxes,Object(s["h"])(m,!f||"cross",h)),f&&Object(s["k"])(p.otherAxes,Object(s["h"])(m,"cross",!1))}}function m(r,s,l){var c=l.model.getModel("axisPointer",i),h=c.get("show");if(h&&("auto"!==h||r||wD(c))){null==s&&(s=c.get("triggerTooltip")),c=r?mD(l,d,i,t,r,s):c;var f=c.get("snap"),p=c.get("triggerEmphasis"),m=MD(l.model),g=s||f||"category"===l.type,y=e.axesInfo[m]={key:m,axis:l,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:p,involveSeries:g,snap:f,useHandle:wD(c),seriesModels:[],linkGroup:null};u[m]=y,e.seriesInvolved=e.seriesInvolved||g;var v=yD(a,l);if(null!=v){var _=o[v]||(o[v]={axesInfo:{}});_.axesInfo[m]=y,_.mapper=a[v].mapper,y.linkGroup=_}}}}))}function mD(e,t,n,r,i,a){var o=t.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};Object(s["k"])(l,(function(e){u[e]=Object(s["d"])(o.get(e))})),u.snap="category"!==e.type&&!!a,"cross"===o.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===i){var d=o.get(["label","show"]);if(c.show=null==d||d,!a){var h=u.lineStyle=o.get("crossStyle");h&&Object(s["i"])(c,h.textStyle)}}return e.model.getModel("axisPointer",new Ou(u,n,r))}function gD(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(s["k"])(e.coordSysAxesInfo[MD(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function yD(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(vD(a[r+"AxisId"],n.id)||vD(a[r+"AxisIndex"],n.componentIndex)||vD(a[r+"AxisName"],n.name))return i}}function vD(e,t){return"all"===e||Object(s["t"])(e)&&Object(s["r"])(e,t)>=0||e===t}function _D(e){var t=bD(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=wD(n);null==a&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function bD(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[MD(e)]}function xD(e){var t=bD(e);return t&&t.axisPointerModel}function wD(e){return!!e.get(["handle","show"])}function MD(e){return e.type+"||"+e.id}var SD={},TD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&_D(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=xD(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){SD[e]=t},t.getAxisPointerClass=function(e){return e&&SD[e]},t.type="axis",t}(Op),kD=TD,LD=Ei();function OD(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),l=o.get("color"),u=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var d=l.length,h=LD(e).splitAreaColors,f=s["f"](),p=0;if(h)for(var m=0;m<c.length;m++){var g=h.get(c[m].tickValue);if(null!=g){p=(g+(d-1)*m)%d;break}}var y=i.toGlobalCoord(c[0].coord),v=o.getAreaStyle();l=s["t"](l)?l:[l];for(m=1;m<c.length;m++){var _=i.toGlobalCoord(c[m].coord),b=void 0,x=void 0,w=void 0,M=void 0;i.isHorizontal()?(b=y,x=u.y,w=_-b,M=u.height,y=b+w):(b=u.x,x=y,w=u.width,M=_-x,y=x+M);var S=c[m-1].tickValue;null!=S&&f.set(S,p),t.add(new us({anid:null!=S?"area_"+S:null,shape:{x:b,y:x,width:w,height:M},style:s["i"]({fill:l[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%d}LD(e).splitAreaColors=f}}}function DD(e){LD(e).splitAreaColors=null}var AD=["axisLine","axisTickLabel","axisName"],ID=["splitArea","splitLine","minorSplitLine"],CD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return a(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Sr,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),l=WO(o,t),u=new hD(t,s["m"]({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(fL(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},l));s["k"](AD,u.add,u),this._axisGroup.add(u.getGroup()),s["k"](ID,(function(e){t.get([e,"show"])&&ED[e](this,this._axisGroup,t,o)}),this);var c=i&&"changeAxisOrder"===i.type&&i.isInitSort;c||Ag(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){DD(this)},t.type="cartesianAxis",t}(kD),ED={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),l=o.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=s["t"](l)?l:[l];for(var d=r.coordinateSystem.getRect(),h=i.isHorizontal(),f=0,p=i.getTicksCoords({tickModel:a}),m=[],g=[],y=o.getLineStyle(),v=0;v<p.length;v++){var _=i.toGlobalCoord(p[v].coord);if((0!==v||u)&&(v!==p.length-1||c)){var b=p[v].tickValue;h?(m[0]=_,m[1]=d.y,g[0]=_,g[1]=d.y+d.height):(m[0]=d.x,m[1]=_,g[0]=d.x+d.width,g[1]=_);var x=f++%l.length,w=new Nm({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:g[0],y2:g[1]},style:s["i"]({stroke:l[x]},y),silent:!0});wg(w.shape,y.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],d=[],h=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var m=i.toGlobalCoord(u[f][p].coord);l?(c[0]=m,c[1]=s.y,d[0]=m,d[1]=s.y+s.height):(c[0]=s.x,c[1]=m,d[0]=s.x+s.width,d[1]=m);var g=new Nm({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0});wg(g.shape,h.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){OD(e,t,n,r)}},PD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="xAxis",t}(CD),YD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=PD.type,t}return a(t,e),t.type="yAxis",t}(CD),jD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return a(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new us({shape:e.coordinateSystem.getRect(),style:Object(s["i"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Op),ND={offset:0};function RD(e){e.registerComponentView(jD),e.registerComponentModel(Zk),e.registerCoordinateSystem("cartesian2d",QO),uL(e,"x",Jk,ND),uL(e,"y",Jk,ND),e.registerComponentView(PD),e.registerComponentView(YD),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function HD(e){Nb(RD),e.registerSeriesModel(Fk),e.registerChartView(qk),e.registerLayout(hT("scatter"))}function FD(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();s["k"](i,(function(e,a){t.each(t.mapDimension(i[a].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=zD(i)?i:BD(r)}))})),t.each((function(e){var i=s["o"](n[e],(function(e){return zD(e)}))||BD(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function zD(e){return!isNaN(e[0])&&!isNaN(e[1])}function BD(e){return[e.cx,e.cy]}function WD(e){var t=e.polar;if(t){s["t"](t)||(t=[t]);var n=[];s["k"](t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],s["t"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}s["k"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var VD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,a=this.group,o=e.getData(),l=this._data;function u(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=uv(e.getItemVisual(t,"symbolSize")),i=lv(n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,i,a,o,s){i.removeAll();for(var l=0;l<n.length-1;l++){var c=u(a,o);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),r[s?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,o)):c.setPosition(n[l]),i.add(c))}}function d(e){return s["H"](e,(function(e){return[i.cx,i.cy]}))}o.diff(l).add((function(t){var n=o.getItemLayout(t);if(n){var r=new Am,i=new Em,a={shape:{points:n}};r.shape.points=d(n),i.shape.points=d(n),Ul(r,a,e,t),Ul(i,a,e,t);var s=new Sr,l=new Sr;s.add(i),s.add(r),s.add(l),c(i.shape.points,n,l,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var r=l.getItemGraphicEl(n),i=r.childAt(0),a=r.childAt(1),s=r.childAt(2),u={shape:{points:o.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,s,o,t,!1),Jl(a),Jl(i),Gl(i,u,e),Gl(a,u,e),o.setItemGraphicEl(t,r))})).remove((function(e){a.remove(l.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),r=e.childAt(0),i=e.childAt(1),l=e.childAt(2),u=o.getItemVisual(t,"style"),c=u.fill;a.add(e),r.useStyle(s["i"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Pl(r,n,"lineStyle"),Pl(i,n,"areaStyle");var d=n.getModel("areaStyle"),h=d.isEmpty()&&d.parentModel.isEmpty();i.ignore=h,s["k"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();i.ensureState(e).ignore=r&&h})),i.useStyle(s["i"](d.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var f=n.getModel("emphasis"),p=f.getModel("itemStyle").getItemStyle();l.eachChild((function(e){if(e instanceof es){var r=e.style;e.useStyle(s["m"]({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},u))}else e.useStyle(u),e.setColor(c),e.style.strokeNoScale=!0;var i=e.ensureState("emphasis");i.style=s["d"](p);var a=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==a||isNaN(a))&&(a=""),nu(e,ru(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,inheritColor:c,defaultOpacity:u.opacity})})),Al(e,f.get("focus"),f.get("blurScope"),f.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Zg),GD=VD,UD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ek(s["c"](this.getData,this),s["c"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Ik(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem,a=i.getIndicatorAxes(),o=this.getData().getName(e),l=""===o?this.name:o,u=up(this,e);return Kf("section",{header:l,sortBlocks:!0,blocks:s["H"](a,(function(t){var n=r.get(r.mapDimension(t.dim),e);return Kf("nameValue",{markerType:"subItem",markerColor:u,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(s["H"](n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(kp),qD=UD,XD=rL.value;function ZD(e,t){return s["i"]({show:t},e)}var KD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),d=this.get("triggerEvent"),h=s["H"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var f=o;null!=h.color&&(f=s["i"]({color:h.color},o));var p=s["I"](s["d"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:h.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:f,triggerEvent:d},!1);if(s["C"](u)){var m=p.name;p.name=u.replace("{value}",null!=m?m:"")}else s["w"](u)&&(p.name=u(p.name,p));var g=new Ou(p,null,this.ecModel);return s["K"](g,Kk.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s["I"]({lineStyle:{color:"#bbb"}},XD.axisLine),axisLabel:ZD(XD.axisLabel,!1),axisTick:ZD(XD.axisTick,!1),splitLine:ZD(XD.splitLine,!0),splitArea:ZD(XD.splitArea,!0),indicator:[]},t}(Jc),JD=KD,$D=["axisLine","axisTickLabel","axisName"],QD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=s["H"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new hD(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));s["k"](r,(function(e){s["k"]($D,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),o=i.getModel("lineStyle"),l=a.getModel("areaStyle"),u=i.get("show"),c=a.get("show"),d=o.get("color"),h=l.get("color"),f=s["t"](d)?d:[d],p=s["t"](h)?h:[h],m=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),v=t.cx,_=t.cy,b=0;b<y.length;b++){if(u){var x=D(m,f,b);m[x].push(new tm({shape:{cx:v,cy:_,r:y[b].coord}}))}if(c&&b<y.length-1){x=D(g,p,b);g[x].push(new Tm({shape:{cx:v,cy:_,r0:y[b].coord,r:y[b+1].coord}}))}}else{var w,M=s["H"](n,(function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),s["H"](r,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(b=0;b<=w;b++){for(var T=[],k=0;k<n.length;k++)T.push(M[k][b]);if(T[0]&&T.push(T[0].slice()),u){x=D(m,f,b);m[x].push(new Em({shape:{points:T}}))}if(c&&S){x=D(g,p,b-1);g[x].push(new Am({shape:{points:T.concat(S)}}))}S=T.slice().reverse()}}var L=o.getLineStyle(),O=l.getAreaStyle();s["k"](g,(function(e,t){this.group.add(bg(e,{style:s["i"]({stroke:"none",fill:p[t%p.length]},O),silent:!0}))}),this),s["k"](m,(function(e,t){this.group.add(bg(e,{style:s["i"]({fill:"none",stroke:f[t%f.length]},L),silent:!0}))}),this)}function D(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(Op),eA=QD,tA=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return a(t,e),t}(FO),nA=tA,rA=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(s["H"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new nA(n,new kL);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,i=this.cx+e*Math.cos(r),a=this.cy-e*Math.sin(r);return[i,a]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,a=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(i=u,s=l,o=c)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i)/2;this.cx=Hr(n[0],r),this.cy=Hr(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(Object(s["C"])(o)||Object(s["z"])(o))&&(o=[0,o]),this.r0=Hr(o[0],a),this.r=Hr(o[1],a),Object(s["k"])(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Object(s["k"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var a=t.getData();Object(s["k"])(n,(function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber"),a=new kL;a.setExtent(0,i),a.setInterval(1),Object(s["k"])(n,(function(e,t){qO(e.scale,e.model,a)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}(),iA=rA;function aA(e){e.registerCoordinateSystem("radar",iA),e.registerComponentModel(JD),e.registerComponentView(eA),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function oA(e){Nb(aA),e.registerChartView(GD),e.registerSeriesModel(qD),e.registerLayout(FD),e.registerProcessor(xk("radar")),e.registerPreprocessor(WD)}var sA="\0_ec_interaction_mutex";function lA(e,t,n){var r=dA(e);r[t]=n}function uA(e,t,n){var r=dA(e),i=r[t];i===n&&(r[t]=null)}function cA(e,t){return!!dA(e)[t]}function dA(e){return e[sA]||(e[sA]={})}kb({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},s["L"]);var hA=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Object(s["c"])(n._mousedownHandler,n),i=Object(s["c"])(n._mousemoveHandler,n),a=Object(s["c"])(n._mouseupHandler,n),o=Object(s["c"])(n._mousewheelHandler,n),l=Object(s["c"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(s["i"])(Object(s["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",l))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",a),t.off("mousewheel",o),t.off("pinch",l)},n}return a(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!ie(e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&mA("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!cA(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&re(e.event),pA(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ie(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=mA("zoomOnMouseWheel",e,this._opt),n=mA("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;fA(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:a,originY:o,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);fA(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!cA(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;fA(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(E);function fA(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(re(r.event),pA(e,t,n,r,i))}function pA(e,t,n,r,i){i.isAvailableBehavior=Object(s["c"])(mA,null,n,r),e.trigger(t,i)}function mA(e,t,n){var r=n[e];return!e||r&&(!Object(s["C"])(r)||t.event[r+"Key"])}var gA=hA;function yA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function vA(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var _A,bA={axisPointer:1,tooltip:1,brush:1};function xA(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!bA.hasOwnProperty(r.mainType)&&i&&i.model!==n}function wA(e){if(Object(s["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var MA={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},SA=Object(s["F"])(MA),TA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kA=Object(s["F"])(TA),LA=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=wA(e);this._defsUsePending=[];var r=new Sr;this._root=r;var i=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),EA(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(NA(this._defs,this._defsUsePending),this._defsUsePending=[],a){var d=HA(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=o&&null!=s&&(u=UA(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var h=r;r=new Sr,r.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==o||null==s||r.setClipPath(new us({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o,l=e.nodeName.toLowerCase(),u=r;if("defs"===l&&(i=!0),"text"===l&&(a=!0),"defs"===l||"switch"===l)o=t;else{if(!i){var c=_A[l];if(c&&Object(s["q"])(_A,l)){o=c.call(this,e,t);var d=e.getAttribute("name");if(d){var h={name:d,namedFrom:null,svgNodeTagLower:l,el:o};n.push(h),"g"===l&&(u=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:l,el:o});t.add(o)}}var f=OA[l];if(f&&Object(s["q"])(OA,l)){var p=f.call(this,e),m=e.getAttribute("id");m&&(this._defs[m]=p)}}if(o&&o.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,o,n,u,i,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new Zo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});IA(t,n),EA(e,n,this._defsUsePending,!1,!1),PA(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=function(){_A={g:function(e,t){var n=new Sr;return IA(t,n),EA(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new us;return IA(t,n),EA(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new tm;return IA(t,n),EA(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Nm;return IA(t,n),EA(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new im;return IA(t,n),EA(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=CA(r));var i=new Am({shape:{points:n||[]},silent:!0});return IA(t,i),EA(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=CA(r));var i=new Em({shape:{points:n||[]},silent:!0});return IA(t,i),EA(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new es;return IA(t,n),EA(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new Sr;return IA(t,o),EA(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",o=new Sr;return IA(t,o),EA(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=e.getAttribute("d")||"",r=Zp(n);return IA(t,r),EA(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),OA={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Jm(t,n,r,i);return DA(e,a),AA(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Qm(t,n,r);return DA(e,i),AA(e,i),i}};function DA(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function AA(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};VA(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function IA(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(s["i"])(t.__inheritedStyle,e.__inheritedStyle))}function CA(e){for(var t=HA(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function EA(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},l={};1===e.nodeType&&(BA(e,t),VA(e,o,l),r||GA(e,o,l)),a.style=a.style||{},null!=o.fill&&(a.style.fill=jA(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=jA(a,"stroke",o.stroke,n)),Object(s["k"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=o[e]&&(a.style[e]=parseFloat(o[e]))})),Object(s["k"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=o[e]&&(a.style[e]=o[e])})),i&&(a.__selfStyle=l),o.lineDash&&(a.style.lineDash=Object(s["H"])(HA(o.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}function PA(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),e.style.textAlign=s)}}var YA=/^url\(\s*#(.*?)\)/;function jA(e,t,n,r){var i=n&&n.match(YA);if(!i)return"none"===n&&(n=null),n;var a=Object(s["T"])(i[1]);r.push([e,t,a])}function NA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var RA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function HA(e){return e.match(RA)||[]}var FA=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,zA=Math.PI/180;function BA(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(FA,(function(e,t,n){return r.push(t,n),""}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],l=HA(o);switch(i=i||ue(),s){case"translate":fe(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":me(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":pe(i,i,-parseFloat(l[0])*zA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*zA);he(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*zA);he(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var WA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function VA(e,t,n){var r=e.getAttribute("style");if(r){var i;WA.lastIndex=0;while(null!=(i=WA.exec(r))){var a=i[1],o=Object(s["q"])(MA,a)?MA[a]:null;o&&(t[o]=i[2]);var l=Object(s["q"])(TA,a)?TA[a]:null;l&&(n[l]=i[2])}}}function GA(e,t,n){for(var r=0;r<SA.length;r++){var i=SA[r],a=e.getAttribute(i);null!=a&&(t[MA[i]]=a)}for(r=0;r<kA.length;r++){i=kA[r],a=e.getAttribute(i);null!=a&&(n[TA[i]]=a)}}function UA(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function qA(e,t){var n=new LA;return n.parse(e,t)}var XA=1e-8;function ZA(e,t){return Math.abs(e-t)<XA}function KA(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Oo(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return ZA(i[0],s[0])&&ZA(i[1],s[1])||(r+=Oo(i[0],i[1],s[0],s[1],t,n)),0!==r}var JA=[];function $A(e,t){for(var n=0;n<e.length;n++)k(e[n],e[n],t)}function QA(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(L(t,t,a),O(n,n,a))}}function eI(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,n+=(a+l)*c,r+=(o+u)*c,a=l,o=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var tI=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),nI=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),rI=function(){function e(e){this.type="linestring",this.points=e}return e}(),iI=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return a(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],a=i.exterior,o=a&&a.length;o>n&&(e=i,n=o)}if(e)return eI(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(s["k"])(i,(function(t){"polygon"===t.type?QA(t.exterior,n,r,e):Object(s["k"])(t.points,(function(t){QA(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new De(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var a=n[r];if("polygon"===a.type){var o=a.exterior,s=a.interiors;if(KA(o,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(KA(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||(r=n/a):n=a*r;for(var o=new De(e,t,n,r),l=i.calculateTransform(o),u=this.geometries,c=0;c<u.length;c++){var d=u[c];"polygon"===d.type?($A(d.exterior,l),Object(s["k"])(d.interiors,(function(e){$A(e,l)}))):Object(s["k"])(d.points,(function(e){$A(e,l)}))}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(tI),aI=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return a(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=ce(JA),i=e;while(i&&!i.isGeoSVGGraphicRoot)he(r,i.getLocalTransform(),r),i=i.parent;return ge(r,r),k(n,n,r),n},t}(tI),oI=Object(s["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),sI=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(s["f"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=wA(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=uI(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&qA(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(s["b"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var r=new Sr;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,h=void 0;if(null!=i?(u=0,d=i):o&&(u=o.x,d=o.width),null!=a?(c=0,h=a):o&&(c=o.y,h=o.height),null==u||null==c){var f=n.getBoundingRect();null==u&&(u=f.x,d=f.width),null==c&&(c=f.y,h=f.height)}l=this._boundingRect=new De(u,c,d,h)}if(o){var p=UA(o,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new us({shape:l.plain()}));var m=[];return Object(s["k"])(t.named,(function(e){null!=oI.get(e.svgNodeTagLower)&&(m.push(e),lI(e.el))})),{root:r,boundingRect:l,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function lI(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function uI(e){var t=[],n=Object(s["f"])();return Object(s["k"])(e,(function(e){if(null==e.namedFrom){var r=new aI(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}function cI(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return s["k"](r,(function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=hI(i,r,n);break;case"Polygon":dI(i,r,n);break;case"MultiLineString":dI(i,r,n);break;case"MultiPolygon":s["k"](i,(function(e,t){return dI(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}function dI(e,t,n){for(var r=0;r<e.length;r++)e[r]=hI(e[r],t[r],n)}function hI(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=a,i=s,a=l,r.push([s/n,l/n])}return r}function fI(e,t){return e=cI(e),s["H"](s["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var a=r.coordinates;i.push(new nI(a[0],a.slice(1)));break;case"MultiPolygon":s["k"](r.coordinates,(function(e){e[0]&&i.push(new nI(e[0],e.slice(1)))}));break;case"LineString":i.push(new rI([r.coordinates]));break;case"MultiLineString":i.push(new rI(r.coordinates))}var o=new iI(n[t||"name"],i,n.cp);return o.properties=n,o}))}for(var pI=[126,25],mI="南海诸岛",gI=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],yI=0;yI<gI.length;yI++)for(var vI=0;vI<gI[yI].length;vI++)gI[yI][vI][0]/=10.5,gI[yI][vI][1]/=-14,gI[yI][vI][0]+=pI[0],gI[yI][vI][1]+=pI[1];function _I(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===mI)return;t.push(new iI(mI,s["H"](gI,(function(e){return{type:"polygon",exterior:e}})),pI))}}var bI={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function xI(e,t){if("china"===e){var n=bI[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}var wI=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function MI(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:wI[0]})}var SI="name",TI=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(s["f"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=LI(t)}return e.prototype.load=function(e,t){t=t||SI;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:kI(r)})}var i=Object(s["f"])(),a=[];return Object(s["k"])(n.regions,(function(t){var n=t.name;e&&Object(s["q"])(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)})),{regions:a,boundingRect:n.boundingRect||new De(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?fI(r,e):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return _I(n,t),Object(s["k"])(t,(function(e){var t=e.name;xI(n,e),MI(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function kI(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function LI(e){return Object(s["C"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var OI=Object(s["f"])(),DI={registerMap:function(e,t,n){if(t.svg){var r=new sI(e,t.svg);OI.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new TI(e,i,n);OI.set(e,r)}},getGeoResource:function(e){return OI.get(e)},getMapForUser:function(e){var t=OI.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=OI.get(e);if(r)return r.load(t,n)}},AI=["rect","circle","line","ellipse","polygon","polyline","path"],II=s["f"](AI),CI=s["f"](AI.concat(["g"])),EI=s["f"](AI.concat(["g"])),PI=Ei();function YI(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function jI(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var NI=function(){function e(e){var t=new Sr;this.uid=Au("ec_map_draw"),this._controller=new gA(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Sr),t.add(this._svgGroup=new Sr)}return e.prototype.draw=function(e,t,n,r,i){var a="geo"===e.mainType,o=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){o||t.getHostGeoModel()!==e||(o=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,h=c.roam,f=!l.childAt(0)||i;f?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):Gl(u,h,e);var p=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,m={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:p,isGeo:a,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=s["f"](),n=s["f"](),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,l=e.geo.projection,u=l&&l.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function d(e){for(var t=[],n=!u&&l&&l.project,r=0;r<e.length;++r){var i=c(e[r],n);i&&t.push(i)}return t}function h(e){return{shape:{points:d(e)}}}r.removeAll(),s["k"](e.geo.regions,(function(i){var d=i.name,f=t.get(d),p=n.get(d)||{},m=p.dataIdx,g=p.regionModel;if(!f){f=t.set(d,new Sr),r.add(f),m=o?o.indexOfName(d):null,g=e.isGeo?a.getRegionModel(d):o?o.getItemModel(m):null;var y=g.get("silent",!0);null!=y&&(f.silent=y),n.set(d,{dataIdx:m,regionModel:g})}var v=[],_=[];s["k"](i.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);u&&(t=WI(t,u)),s["k"](t,(function(e){v.push(new Am(h(e)))}))}else{var n=e.points;u&&(n=WI(n,u,!0)),s["k"](n,(function(e){_.push(new Em(h(e)))}))}}));var b=c(i.getCenter(),l&&l.project);function x(t,n){if(t.length){var r=new qm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),RI(e,r,m,g),HI(e,r,d,g,a,m,b),n&&(jI(r),s["k"](r.states,jI))}}x(v),x(_,!0)})),t.each((function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;FI(e,t,r,s,a,o),zI(e,t,r,s,a),BI(e,t,r,s,a)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=s["f"](),i=!1;s["k"](this._svgGraphicRecord.named,(function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,l=t.el,u=o?o.indexOfName(n):null,c=a.getRegionModel(n);null!=II.get(s)&&l instanceof Ra&&RI(e,l,u,c),l instanceof Ra&&(l.culling=!0);var d=c.get("silent",!0);if(null!=d&&(l.silent=d),l.z2EmphasisLift=0,!t.namedFrom&&(null!=EI.get(s)&&HI(e,l,n,c,a,u,null),FI(e,l,n,c,a,u),zI(e,l,n,c,a),null!=CI.get(s))){var h=BI(e,l,n,c,a);"self"===h&&(i=!0);var f=r.get(n)||r.set(n,[]);f.push(l)}}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){ll(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=r&&(t.opacity=r),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=DI.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=DI.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var o=e.mainType;function l(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,yA(a,e.dx,e.dy),n.dispatchAction(s["m"](l(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,vA(a,e.scale,e.originX,e.originY),n.dispatchAction(s["m"](l(),{totalZoom:a.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,a){return r.containPoint([i,a])&&!xA(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=PI(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}();function RI(e,t,n,r){var i=r.getModel("itemStyle"),a=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=YI(i),u=YI(a),c=YI(s),d=YI(o),h=e.data;if(h){var f=h.getItemVisual(n,"style"),p=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Jv(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,ll(t)}function HI(e,t,n,r,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var d=l?n:a,h=void 0;(!s||a>=0)&&(h=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;nu(t,ru(r),{labelFetcher:h,labelDataIndex:d,defaultText:n},f);var p=t.getTextContent();if(p&&(PI(p).ignore=p.ignore,t.textConfig&&o)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function FI(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Os(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function zI(e,t,n,r,i){e.data||Rg({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function BI(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return Al(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Nl(t,i,n),o}function WI(e,t,n){var r,i=[];function a(){r=[]}function o(){r.length&&(i.push(r),r=[])}var l=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&l.polygonStart(),s["k"](e,(function(e){l.lineStart();for(var t=0;t<e.length;t++)l.point(e[t][0],e[t][1]);l.lineEnd()})),!n&&l.polygonEnd(),i}var VI=NI,GI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new VI(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new tm({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:Hs+1)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),d=u.indexOfName(c),h=r.getItemModel(n),f=h.getModel("label"),p=u.getItemGraphicEl(d);nu(l,ru(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){nl(l,e)}}i.add(l)}}}))},t.type="map",t}(Zg),UI=GI,qI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return a(t,e),t.prototype.getInitialData=function(e){for(var t=Ik(this,{coordDimensions:["value"],encodeDefaulter:s["h"](pd,this)}),n=s["f"](),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}var l=DI.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return s["k"](l.regions,(function(e){var i,a=e.name,o=n.get(a),l=e.properties&&e.properties.echartsStyle;null==o?(i={name:a},r.push(i)):i=t.getRawDataItem(o),l&&s["I"](i,l)})),t.appendData(r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(a),c=r.mapDimension("value");isNaN(o[l].originalData.get(c,u))||s.push(o[l].name)}return Kf("section",{header:s.join(", "),noHeader:!s.length,blocks:[Kf("nameValue",{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=lv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(kp),XI=qI;function ZI(e,t){var n={};return s["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var a,o="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[o].length,d=0;d<c;d++)l=Math.min(l,n[o][d]),u=Math.max(u,n[o][d]),s+=n[o][d];return a="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:a}))}function KI(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),s["k"](t,(function(e,t){for(var n=ZI(s["H"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}function JI(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};s["k"](n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var a=r.getName(t),o=n.getRegion(a);if(o&&!isNaN(e)){var s=i[a]||0,l=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)})),t[r]=!0}}))}var $I=k,QI=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Jn,n._rawTransformable=new Jn,n.name=t,n}return a(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new De(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new De(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new De(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Hr(e[0],t.getWidth()),Hr(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=k([],r,e),n=k([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),de(this.transform||(this.transform=[]),t.transform||ue()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],ge(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Jn;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?$I(n,e,r):d(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?$I([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=eC(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=eC(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Jn);function eC(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var tC=QI,nC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},rC=["lng","lat"],iC=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=rC,i.type="geo",i._nameCoordMap=s["f"](),i.map=n;var a,o=r.projection,l=DI.load(n,r.nameMap,r.nameProperty),u=DI.getGeoResource(n),c=(i.resourceType=u?u.type:null,i.regions=l.regions),d=nC[u.type];if(i._regionsMap=l.regionsMap,i.regions=l.regions,i.projection=o,o)for(var h=0;h<c.length;h++){var f=c[h].getBoundingRect(o);a=a||f.clone(),a.union(f)}else a=l.boundingRect;return i.setBoundingRect(a.x,a.y,a.width,a.height),i.aspectScale=o?1:s["P"](r.aspectScale,d.aspectScale),i._invertLongitute=!o&&d.invertLongitute,i}return a(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new De(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(s["C"](e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=aC(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=aC(t);return r===this?r.pointToData(n):null},t}(tC);function aC(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Ni).models[0]||{}).coordinateSystem:null}s["K"](iC,tC);var oC=iC;function sC(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(e,t,n,o){for(var s=n-e,l=o-t,u=0;u<=100;u++){var c=u/100,d=a.project([e+s*c,t+l*c]);L(r,r,d),O(i,i,d)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var d,h,f,p=this.getBoundingRect(),m=e.get("layoutCenter"),g=e.get("layoutSize"),y=t.getWidth(),v=t.getHeight(),_=p.width/p.height*this.aspectScale,b=!1;if(m&&g&&(d=[Hr(m[0],y),Hr(m[1],v)],h=Hr(g,Math.min(y,v)),isNaN(d[0])||isNaN(d[1])||isNaN(h)||(b=!0)),b)f={},_>1?(f.width=h,f.height=h/_):(f.height=h,f.width=h*_),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var x=e.getBoxLayoutParams();x.aspect=_,f=zc(x,{width:y,height:v})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function lC(e,t){s["k"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var uC=function(){function e(){this.dimensions=rC}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var a=e.get("map"),o=new oC(a+i,a,s["m"]({nameMap:e.get("nameMap")},r(e)));o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=sC,o.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),s["k"](i,(function(e,i){var a=s["H"](e,(function(e){return e.get("nameMap")})),o=new oC(i,i,s["m"]({nameMap:s["J"](a)},r(e[0])));o.zoomLimit=s["O"].apply(null,s["H"](e,(function(e){return e.get("scaleLimit")}))),n.push(o),o.resize=sC,o.resize(e[0],t),s["k"](e,(function(e){e.coordinateSystem=o,lC(o,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=s["f"](),o=0;o<i.length;o++)a.set(i[o].name,i[o]);var l=DI.load(t,n,r);return s["k"](l.regions,(function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&s["I"](n,r)})),i},e}(),cC=new uC,dC=cC,hC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t,n){var r=DI.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),hi(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=dC.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=s["N"](t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new Ou(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),s["f"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ou(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return s["w"](r)?(i.status=t,r(i)):s["C"](r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var r=t.selectedMap||(t.selectedMap={});r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Jc),fC=hC;function pC(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function mC(e,t,n,r){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(pC(e,s),r)),null!=o){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(pC(e,s),r),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var gC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return a(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new VI(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Xy(e.target,(function(e){return null!=(t=Os(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Os(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Op),yC=gC;function vC(e,t,n){DI.registerMap(e,t,n)}function _C(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var a=n.coordinateSystem;Object(s["k"])(a.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var o=[];Object(s["k"])(r,(function(e,t){r[t]&&o.push(t)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",dC),e.registerComponentModel(fC),e.registerComponentView(yC),e.registerImpl("registerMap",vC),e.registerImpl("getMap",(function(e){return DI.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var a=mC(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===r&&Object(s["k"])(t.seriesGroup,(function(e){e.setCenter(a.center),e.setZoom(a.zoom)}))}}))}))}function bC(e){Nb(_C),e.registerChartView(UI),e.registerSeriesModel(XI),e.registerLayout(JI),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KI),Gy("map",e.registerAction)}function xC(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[t];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var a=r.length,o=a-1;o>=0;o--){var s=r[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(s)}}function wC(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){LC(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=OC(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function MC(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function SC(e){return arguments.length?e:EC}function TC(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function kC(e,t){return zc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function LC(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function OC(e,t,n,r){if(t){var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;while(s=DC(s),a=AC(a),s&&a){i=DC(i),o=AC(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+d-a.hierNode.prelim-u+r(s,a);h>0&&(CC(IC(s,e,n),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!DC(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),a&&!AC(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=e)}return n}function DC(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function IC(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function CC(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function EC(e,t){return e.parentNode===t.parentNode?1:2}var PC=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),YC=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PC},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Hr(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(o[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[l]=a[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var h=1;h<r-1;h++){var f=n[h];e.moveTo(f[0],f[1]),d[l]=f[l],e.lineTo(d[0],d[1])}},t}(Uo),jC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Sr,n}return a(t,e),t.prototype.init=function(e,t){this._controller=new gA(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup,o=e.get("layout");"radial"===o?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;r.diff(s).add((function(t){NC(r,t)&&RC(r,t,null,a,e)})).update((function(t,n){var i=s.getItemGraphicEl(n);NC(r,t)?RC(r,t,i,a,e):i&&BC(s,n,i,a,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&BC(s,t,n,a,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])}));var i=[],a=[];qa(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var l=e.coordinateSystem=new tC;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!xA(t,n,e)})),i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){yA(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){vA(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1,i=t.getZoom(),a=(i-1)*n+1;return a/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Zg);function NC(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function RC(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),l=o.getModel(),u=o.getVisual("style").fill,c=!1===o.isExpand&&0!==o.children.length?u:"#fff",d=e.tree.root,h=o.parentNode===d?o:o.parentNode||o,f=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,g=o.getLayout();a?(n=new xS(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Gl(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var v=d.children[0],_=v.getLayout(),b=v.children.length,x=void 0,w=void 0;if(g.x===_.x&&!0===o.isExpand&&v.children.length){var M={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};x=Math.atan2(M.y-_.y,M.x-_.x),x<0&&(x=2*Math.PI+x),w=M.x<_.x,w&&(x-=Math.PI)}else x=Math.atan2(g.y-_.y,g.x-_.x),x<0&&(x=2*Math.PI+x),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(w=g.x<_.x,w&&(x-=Math.PI)):(w=g.x>_.x,w||(x-=Math.PI));var S=w?"left":"right",T=l.getModel("label"),k=T.get("rotate"),L=k*(Math.PI/180),O=y.getTextContent();O&&(y.setTextConfig({position:T.get("position")||S,rotation:null==k?-x:L,origin:"center"}),O.setStyle("verticalAlign","middle"))}var D=l.get(["emphasis","focus"]),A="relative"===D?s["e"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===D?o.getAncestorsIndices():"descendant"===D?o.getDescendantIndices():null;A&&(Os(n).focus=A),HC(i,o,d,n,m,p,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===Ys||nl(n.__edge,t)}})}function HC(e,t,n,r,i,a,o,l){var u=t.getModel(),c=e.get("edgeShape"),d=e.get("layout"),h=e.getOrient(),f=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),m=u.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Bm({shape:WC(d,h,f,i,i)})),Gl(g,{shape:WC(d,h,f,a,o)},e));else if("polyline"===c)if("orthogonal"===d){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var y=t.children,v=[],_=0;_<y.length;_++){var b=y[_].getLayout();v.push([b.x,b.y])}g||(g=r.__edge=new YC({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),Gl(g,{shape:{parentPoint:[o.x,o.y],childPoints:v}},e)}}else 0;g&&("polyline"!==c||t.isExpand)&&(g.useStyle(s["i"]({strokeNoScale:!0,fill:null},m)),Pl(g,u,"lineStyle"),ll(g),l.add(g))}function FC(e,t,n,r,i){var a=t.tree.root,o=zC(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,h=u.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),f=r.get("edgeShape"),p=r.get("layout"),m=r.get("orient"),g=r.get(["lineStyle","curveness"]);h&&("curve"===f?Xl(h,{shape:WC(p,m,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}):"polyline"===f&&"orthogonal"===r.get("layout")&&Xl(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}))}}function zC(e,t){var n,r=t.parentNode===e?t:t.parentNode||t;while(n=r.getLayout(),null==n)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function BC(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=zC(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Xl(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach((function(t){FC(t,e,r,i,l)})),FC(a,e,r,i,l)}function WC(e,t,n,r,i){var a,o,s,l,u,c,d,h;if("radial"===e){u=r.rawX,d=r.rawY,c=i.rawX,h=i.rawY;var f=TC(u,d),p=TC(u,d+(h-d)*n),m=TC(c,h+(d-h)*n),g=TC(c,h);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:m.x||0,cpy2:m.y||0}}return u=r.x,d=r.y,c=i.x,h=i.y,"LR"!==t&&"RL"!==t||(a=u+(c-u)*n,o=d,s=c+(u-c)*n,l=h),"TB"!==t&&"BT"!==t||(a=u,o=d+(h-d)*n,s=c,l=h+(d-h)*n),{x1:u,y1:d,x2:c,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var VC=jC,GC=Ei();function UC(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,QC(t,n,e),Object(s["k"])(n,(function(n){Object(s["k"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(s["h"])(qC,e))}))})),t.wrapMethod("cloneShallow",Object(s["h"])(ZC,e)),Object(s["k"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(s["h"])(XC,e))})),Object(s["b"])(n[t.dataType]===t)}function qC(e,t){if($C(this)){var n=Object(s["m"])({},GC(this).datas);n[this.dataType]=t,QC(t,n,e)}else eE(t,this.dataType,GC(this).mainData,e);return t}function XC(e,t){return e.struct&&e.struct.update(),t}function ZC(e,t){return Object(s["k"])(GC(t).datas,(function(n,r){n!==t&&eE(n.cloneShallow(),r,t,e)})),t}function KC(e){var t=GC(this).mainData;return null==e||null==t?t:GC(t).datas[e]}function JC(){var e=GC(this).mainData;return null==e?[{data:e}]:Object(s["H"])(Object(s["F"])(GC(e).datas),(function(t){return{type:t,data:GC(e).datas[t]}}))}function $C(e){return GC(e).mainData===e}function QC(e,t,n){GC(e).datas={},Object(s["k"])(t,(function(t,r){eE(t,r,e,n)}))}function eE(e,t,n,r){GC(n).datas[t]=e,GC(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=KC,e.getLinkedDataAll=JC}var tE=UC,nE=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){s["w"](e)&&(n=t,t=e,e=null),e=e||{},s["C"](e)&&(e={order:e});var r,i=e.order||"preorder",a=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var o=0;!r&&o<a.length;o++)a[o].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),rE=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;function l(e,t){var n=e.value;o=Math.max(o,s["t"](n)?n.length:1),a.push(e);var r=new nE(Ti(e.name,""),i);t?iE(r,t):i.root=r,i._nodes.push(r);var u=e.children;if(u)for(var c=0;c<u.length;c++)l(u[c],r)}l(t),i.root.updateDepthAndHeight(0);var u=JM(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new KM(u,n);return c.initData(a),r&&r(c),tE({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},e}();function iE(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var aE=rE;function oE(e,t,n){if(e&&s["r"](t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(s["C"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}function sE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function lE(e,t){var n=sE(e);return s["r"](n,t)>=0}function uE(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var cE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return a(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Ou(n,this,this.ecModel),i=aE.createTree(t,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var o=0;i.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;while(a&&a!==i)s=a.parentNode.name+"."+s,a=a.parentNode;return Kf("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=uE(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(kp),dE=cE;function hE(e,t,n){var r,i=[e],a=[];while(r=i.pop())if(a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}while(r=a.pop())t(r,n)}function fE(e,t){var n,r=[e];while(n=r.pop())if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function pE(e,t){e.eachSeriesByType("tree",(function(e){mE(e,t)}))}function mE(e,t){var n=kC(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,a=0,o=null;"radial"===r?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=SC((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,a=n.height,o=SC());var s=e.getData().tree.root,l=s.children[0];if(l){xC(s),hE(l,wC,o),s.hierNode.modifier=-l.hierNode.prelim,fE(l,MC);var u=l,c=l,d=l;fE(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:o(u,c)/2,f=h-u.getLayout().x,p=0,m=0,g=0,y=0;if("radial"===r)p=i/(c.getLayout().x+h+f),m=a/(d.depth-1||1),fE(l,(function(e){g=(e.getLayout().x+f)*p,y=(e.depth-1)*m;var t=TC(g,y);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:y},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(m=a/(c.getLayout().x+h+f),p=i/(d.depth-1||1),fE(l,(function(e){y=(e.getLayout().x+f)*m,g="LR"===v?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:g,y:y},!0)}))):"TB"!==v&&"BT"!==v||(p=i/(c.getLayout().x+h+f),m=a/(d.depth-1||1),fE(l,(function(e){g=(e.getLayout().x+f)*p,y="TB"===v?(e.depth-1)*m:a-(e.depth-1)*m,e.setLayout({x:g,y:y},!0)})))}}}function gE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(s["m"])(i,r)}))}))}function yE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=mC(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function vE(e){e.registerChartView(VC),e.registerSeriesModel(dE),e.registerLayout(pE),e.registerVisual(gE),yE(e)}var _E=["treemapZoomToNode","treemapRender","treemapMove"];function bE(e){for(var t=0;t<_E.length;t++)e.registerAction({type:_E[t],update:"updateView"},s["L"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var r=["treemapZoomToNode","treemapRootToNode"],i=oE(e,r,t);if(i){var a=t.getViewRoot();a&&(e.direction=lE(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}function xE(e){var t=e.getData(),n=t.tree,r={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var i=Td(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var wE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};ME(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new Ou({itemStyle:i},this,t);r=e.levels=SE(r,t);var o=s["H"](r||[],(function(e){return new Ou(e,a,t)}),this),l=aE.createTree(n,this,u);function u(e){e.wrapMethod("getItemModel",(function(e,t){var n=l.getNodeByDataIndex(t),r=n?o[n.depth]:null;return e.parentModel=r||a,e}))}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Kf("nameValue",{name:a,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=uE(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},s["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=s["f"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){xE(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(kp);function ME(e){var t=0;s["k"](e.children,(function(e){ME(e);var n=e.value;s["t"](n)&&(n=n[0]),t+=n}));var n=e.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["t"](e.value)?e.value[0]=n:e.value=n}function SE(e,t){var n=di(t.get("color")),r=di(t.get(["aria","decal","decals"]));if(n){var i,a;e=e||[],s["k"](e,(function(e){var t=new Ou(e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(a=!0)}));var o=e[0]||(e[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var TE=wE,kE=8,LE=8,OE=5,DE=function(){function e(e){this.group=new Sr,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,o,s,l,u,r),Bc(a,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Ti(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+2*kE,t.emptyItemWidth);t.totalWidth+=o+LE,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=Fc(t.pos,t.box),h=t.totalWidth,f=t.renderList,p=r.getModel("itemStyle").getItemStyle(),m=f.length-1;m>=0;m--){var g=f[m],y=g.node,v=g.width,_=g.text;h>d.width&&(h-=v-u,v=u,_=null);var b=new Am({shape:{points:AE(l,0,v,c,m===f.length-1,0===m)},style:Object(s["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ls({style:iu(i,{text:_})}),textConfig:{position:"inside"},z2:1e4*Hs,onclick:Object(s["h"])(o,y)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=iu(a,{text:_}),b.ensureState("emphasis").style=p,Al(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),IE(b,e,y),l+=v+LE}},e.prototype.remove=function(){this.group.removeAll()},e}();function AE(e,t,n,r,i,a){var o=[[i?e:e-OE,t],[e+n,t],[e+n,t+r],[i?e:e-OE,t+r]];return!a&&o.splice(2,0,[e+n+OE,t+r/2]),!i&&o.push([e,t+r/2]),o}function IE(e,t,n){Os(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&uE(n,t)}}var CE=DE,EE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function PE(){return new EE}var YE=Sr,jE=us,NE=3,RE="label",HE="upperLabel",FE=10*Hs,zE=2*Hs,BE=3*Hs,WE=aa([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),VE=function(e){var t=WE(e);return t.stroke=t.fill=t.lineWidth=null,t},GE=Ei(),UE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=qE(),n}return a(t,e),t.prototype.render=function(e,t,n,r){var i=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(s["r"])(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var a=["treemapZoomToNode","treemapRootToNode"],o=oE(r,a,e),l=r&&r.type,u=e.layoutInfo,c=!this._oldTree,d=this._storage,h="treemapRootToNode"===l&&o&&d?{rootNodeGroup:d.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(u),p=e.get("animation"),m=this._doRender(f,e,h);!p||c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?m.renderFinally():this._doAnimation(f,m,e,h),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new YE,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=qE(),o=qE(),l=this._storage,u=[];function c(e,r,i,s){return XE(t,o,l,n,a,u,e,r,i,s)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var d=m(l);if(this._oldTree=r,this._storage=o,this._controllerHost){var h=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===h.width&&f.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:d,renderFinally:g};function p(e,t,n,r,i){function a(e){return e.getId()}function o(a,o){var s=null!=a?e[a]:null,l=null!=o?t[o]:null,u=c(s,l,n,i);u&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],u,r,i+1)}r?(t=e,Object(s["k"])(e,(function(e,t){!e.isRemoved()&&o(t,t)}))):new bM(t,e,a,a).add(o).update(o).remove(Object(s["h"])(o,null)).execute()}function m(e){var t=qE();return e&&Object(s["k"])(e,(function(e,n){var r=t[n];Object(s["k"])(e,(function(e){e&&(r.push(e),GE(e).willDelete=!0)}))})),t}function g(){Object(s["k"])(d,(function(e){Object(s["k"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(s["k"])(u,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(Object(s["w"])(i)?0:i)||0,l=(Object(s["w"])(a)?null:a)||"cubicOut",u=PE();Object(s["k"])(t.willDeleteEls,(function(e,t){Object(s["k"])(e,(function(e,n){if(!e.invisible){var i,a=e.parent,s=GE(a);if(r&&"drillDown"===r.direction)i=a===r.rootNodeGroup?{shape:{x:0,y:0,width:s.nodeWidth,height:s.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;s.willDelete||(c=s.nodeWidth/2,d=s.nodeHeight/2),i="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}i&&u.add(e,i,o,0,l)}}))})),Object(s["k"])(this._storage,(function(e,n){Object(s["k"])(e,(function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof Sr?null!=i.oldX&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=Object(s["m"])({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),a.style={opacity:1}):1!==e.style.opacity&&(a.style={opacity:1})),u.add(e,a,o,0,l))}))}),this),this._state="animating",u.finished(Object(s["c"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||(t=this._controller=new gA(e.getZr()),t.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",Object(s["c"])(this._onPan,this)),t.on("zoom",Object(s["c"])(this._onZoom,this)));var r=new De(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return r.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>NE||Math.abs(e.dy)>NE)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new De(a.x,a.y,a.width,a.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,s){var c=s.min||0,d=s.max||1/0;u=Math.max(Math.min(d,u),c)}var h=u/l.zoom;l.zoom=u;var f=this.seriesModel.layoutInfo;t-=f.x,n-=f.y;var p=ue();fe(p,p,[-t,-n]),me(p,p,[h,h]),fe(p,p,[t,n]),o.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&Pc(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new CE(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(lE(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:r,offsetX:a[0],offsetY:a[1]}}}),this),n},t.type="treemap",t}(Zg);function qE(){return{nodeGroup:[],background:[],content:[]}}function XE(e,t,n,r,i,a,o,l,u,c){if(o){var d=o.getLayout(),h=e.getData(),f=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),d&&d.isInView){var p=d.width,m=d.height,g=d.borderWidth,y=d.invisible,v=o.getRawIndex(),_=l&&l.getRawIndex(),b=o.viewChildren,x=d.upperHeight,w=b&&b.length,M=f.getModel("itemStyle"),S=f.getModel(["emphasis","itemStyle"]),T=f.getModel(["blur","itemStyle"]),k=f.getModel(["select","itemStyle"]),L=M.get("borderRadius")||0,O=B("nodeGroup",YE);if(O){if(u.add(O),O.x=d.x||0,O.y=d.y||0,O.markRedraw(),GE(O).nodeWidth=p,GE(O).nodeHeight=m,d.isAboveViewRoot)return O;var D=B("background",jE,c,zE);D&&N(O,D,w&&d.upperLabelHeight);var A=f.getModel("emphasis"),I=A.get("focus"),C=A.get("blurScope"),E=A.get("disabled"),P="ancestor"===I?o.getAncestorsIndices():"descendant"===I?o.getDescendantIndices():I;if(w)jl(O)&&Yl(O,!1),D&&(Yl(D,!E),h.setItemGraphicEl(o.dataIndex,D),Il(D,P,C));else{var Y=B("content",jE,c,BE);Y&&R(O,Y),D.disableMorphing=!0,D&&jl(D)&&Yl(D,!1),Yl(O,!E),h.setItemGraphicEl(o.dataIndex,O);var j=f.getShallow("cursor");j&&Y.attr("cursor",j),Il(O,P,C)}return O}}}function N(t,n,r){var i=Os(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:L}),y)H(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=VE(M);l.fill=s;var u=WE(S);u.fill=S.get("borderColor");var c=WE(T);c.fill=T.get("borderColor");var d=WE(k);if(d.fill=k.get("borderColor"),r){var h=p-2*g;F(n,s,a.opacity,{x:g,y:0,width:h,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,ll(n)}t.add(n)}function R(t,n){var r=Os(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*g,0),a=Math.max(m-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:a,r:L}),y)H(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=VE(M);u.fill=l,u.decal=s.decal;var c=WE(S),d=WE(T),h=WE(k);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,ll(n)}t.add(n)}function H(e){!e.invisible&&a.push(e)}function F(t,n,r,i){var a=f.getModel(i?HE:RE),l=Ti(f.get("name"),null),u=a.getShallow("show");nu(t,ru(f,i?HE:RE),{defaultText:u?l:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent();if(c){var h=c.style,p=Object(s["M"])(h.padding||0);i&&(t.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,i,d);var m=c.getState("emphasis");z(m?m.style:null,i,d)}}function z(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+i:i}}function B(e,r,a,o){var s=null!=_&&n[e][_],l=i[e];return s?(n[e][_]=null,W(l,s)):y||(s=new r,s instanceof Ra&&(s.z2=ZE(a,o)),V(l,s)),t[e][v]=s}function W(e,t){var n=e[v]={};t instanceof YE?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(s["m"])({},t.shape)}function V(e,t){var n=e[v]={},a=o.parentNode,s=t instanceof Sr;if(a&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[a.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function ZE(e,t){return e*FE+t}var KE=UE,JE=s["k"],$E=s["A"],QE=-1,eP=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=s["d"](t);this.type=r,this.mappingMethod=n,this._normalizeData=hP[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(rP(i),tP(i)):"category"===n?i.categories?nP(i):rP(i,!0):(s["b"]("linear"!==n||i.dataExtent),rP(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return s["c"](this._normalizeData,this)},e.listVisualTypes=function(){return s["F"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){s["A"](e)?s["k"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=s["t"](t)?[]:s["A"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o})),a},e.retrieveVisuals=function(t){var n,r={};return t&&JE(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(s["t"](e))e=e.slice();else{if(!$E(e))return[];var t=[];JE(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var l=t[a].value;if(null!=l){if(l===e||s["C"](l)&&l===e+"")return a;n&&h(l,a)}}for(a=0,o=t.length;a<o;a++){var u=t[a],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(fP(d[1],e,c[1]))return a}else if(c[1]===1/0){if(fP(d[0],c[0],e))return a}else if(fP(d[0],c[0],e)&&fP(d[1],e,c[1]))return a;n&&h(c[0],a),n&&h(c[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function h(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:oP("color"),getColorMapper:function(){var e=this.option;return s["c"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),sP.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Ht["a"](t,e.parsedVisual,r),i?r:Ht["i"](r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ht["i"](Ht["a"](e,this.option.parsedVisual),"rgba")},category:sP,piecewise:function(e,t){var n=cP.call(this,t);return null==n&&(n=Ht["i"](Ht["a"](e,this.option.parsedVisual),"rgba")),n},fixed:lP}},colorHue:iP((function(e,t){return Ht["g"](e,t)})),colorSaturation:iP((function(e,t){return Ht["g"](e,null,t)})),colorLightness:iP((function(e,t){return Ht["g"](e,null,null,t)})),colorAlpha:iP((function(e,t){return Ht["f"](e,t)})),decal:{applyVisual:oP("decal"),_normalizedToVisual:{linear:null,category:sP,piecewise:null,fixed:null}},opacity:{applyVisual:oP("opacity"),_normalizedToVisual:uP([0,1])},liftZ:{applyVisual:oP("liftZ"),_normalizedToVisual:{linear:lP,category:lP,piecewise:lP,fixed:lP}},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);n("symbol",r)},_normalizedToVisual:{linear:aP,category:sP,piecewise:function(e,t){var n=cP.call(this,t);return null==n&&(n=aP.call(this,e)),n},fixed:lP}},symbolSize:{applyVisual:oP("symbolSize"),_normalizedToVisual:uP([0,1])}},e}();function tP(e){var t=e.pieceList;e.hasSpecialVisual=!1,s["k"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function nP(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(JE(t,(function(e,t){n[e]=t})),!s["t"](r)){var i=[];s["A"](r)?JE(r,(function(e,t){var r=n[t];i[null!=r?r:QE]=e})):i[QE]=r,r=dP(e,i)}for(var a=t.length-1;a>=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}function rP(e,t){var n=e.visual,r=[];s["A"](n)?JE(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),dP(e,r)}function iP(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:uP([0,1])}}function aP(e){var t=this.option.visual;return t[Math.round(Rr(e,[0,1],[0,t.length-1],!0))]||{}}function oP(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function sP(e){var t=this.option.visual;return t[this.option.loop&&e!==QE?e%t.length:e]}function lP(){return this.option.visual[0]}function uP(e){return{linear:function(t){return Rr(t,e,this.option.visual,!0)},category:sP,piecewise:function(t,n){var r=cP.call(this,n);return null==r&&(r=Rr(t,e,this.option.visual,!0)),r},fixed:lP}}function cP(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=eP.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function dP(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=s["H"](t,(function(e){var t=Ht["h"](e);return t||[0,0,0,1]}))),t}var hP={linear:function(e){return Rr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=eP.findPieceIndex(e,t,!0);if(null!=n)return Rr(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?QE:t},fixed:s["L"]};function fP(e,t,n){return e?t<=n:t<n}var pP=eP,mP="itemStyle",gP=Ei(),yP={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||vP(n,{},e.getViewRoot().getAncestors(),e)}};function vP(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(a&&!a.invisible&&a.isInView){var l,u=i.getModel(mP),c=_P(u,t,r),d=o.ensureUniqueItemVisual(e.dataIndex,"style"),h=u.get("borderColor"),f=u.get("borderColorSaturation");null!=f&&(l=bP(c),h=xP(f,l)),d.stroke=h;var p=e.viewChildren;if(p&&p.length){var m=MP(e,i,a,u,c,p);Object(s["k"])(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var a=TP(i,c,e,t,m,r);vP(e,a,n,r)}}))}else l=bP(c),d.fill=l}}function _P(e,t,n){var r=Object(s["m"])({},t),i=n.designatedVisualItemStyle;return Object(s["k"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var a=e.get(n);i[n]=null,null!=a&&(r[n]=a)})),r}function bP(e){var t=wP(e,"color");if(t){var n=wP(e,"colorAlpha"),r=wP(e,"colorSaturation");return r&&(t=Object(Ht["g"])(t,null,null,r)),n&&(t=Object(Ht["f"])(t,n)),t}}function xP(e,t){return null!=t?Object(Ht["g"])(t,null,null,e):null}function wP(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function MP(e,t,n,r,i,a){if(a&&a.length){var o=SP(t,"color")||null!=i.color&&"none"!==i.color&&(SP(t,"colorAlpha")||SP(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new pP(d);return gP(h).drColorMappingBy=c,h}}}function SP(e,t){var n=e.get(t);return Object(s["t"])(n)&&n.length?{name:t,range:n}:null}function TP(e,t,n,r,i,a){var o=Object(s["m"])({},t);if(i){var l=i.type,u="color"===l&&gP(i).drColorMappingBy,c="index"===u?r:"id"===u?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[l]=i.mapValueToVisual(c)}return o}var kP=Math.max,LP=Math.min,OP=s["O"],DP=s["k"],AP=["itemStyle","borderWidth"],IP=["itemStyle","gapWidth"],CP=["upperLabel","show"],EP=["upperLabel","height"],PP={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,l=zc(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=o.size||[],c=Hr(OP(l.width,u[0]),i),d=Hr(OP(l.height,u[1]),a),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],p=oE(r,f,e),m="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=e.getViewRoot(),y=sE(g);if("treemapMove"!==h){var v="treemapZoomToNode"===h?BP(e,p,g,c,d):m?[m.width,m.height]:[c,d],_=o.sort;_&&"asc"!==_&&"desc"!==_&&(_="desc");var b={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(x),YP(g,b,!1,0),x=g.getLayout(),DP(y,(function(e,t){var n=(y[t+1]||g).getValue();e.setLayout(s["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=e.getData().tree.root;w.setLayout(WP(l,m,p),!0),e.setLayoutInfo(l),VP(w,new De(-l.x,-l.y,i,a),y,g,0)}};function YP(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(AP),u=s.get(IP)/2,c=GP(s),d=Math.max(l,c),h=l-u,f=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=kP(i-2*h,0),a=kP(a-h-f,0);var p=i*a,m=jP(e,s,p,t,n,r);if(m.length){var g={x:h,y:f,width:i,height:a},y=LP(i,a),v=1/0,_=[];_.area=0;for(var b=0,x=m.length;b<x;){var w=m[b];_.push(w),_.area+=w.getLayout().area;var M=FP(_,y,t.squareRatio);M<=v?(b++,v=M):(_.area-=_.pop().getLayout().area,zP(_,y,g,u,!1),y=LP(g.width,g.height),_.length=_.area=0,v=1/0)}if(_.length&&zP(_,y,g,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&p<S&&(n=!0)}for(b=0,x=m.length;b<x;b++)YP(m[b],t,n,r+1)}}}function jP(e,t,n,r,i,a){var o=e.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=r.leafDepth&&r.leafDepth<=a;if(i&&!u)return e.viewChildren=[];o=s["n"](o,(function(e){return!e.isRemoved()})),RP(o,l);var c=HP(t,o,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=NP(t,n,c.sum,l,o),0===c.sum)return e.viewChildren=[];for(var d=0,h=o.length;d<h;d++){var f=o[d].getValue()/c.sum*n;o[d].setLayout({area:f})}return u&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:c.dataExtent},!0),o}function NP(e,t,n,r,i){if(!r)return n;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i["asc"===r?o-l-1:l].getValue();u/n*t<a&&(s=l,n-=u)}return"asc"===r?i.splice(0,o-s):i.splice(s,o-s),n}function RP(e,t){return t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})),e}function HP(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],DP(t,(function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:r,dataExtent:o}}function FP(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=e.area*e.area,u=t*t*n;return l?kP(u*r/l,l/(u*i)):1/0}function zP(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=t?e.area/t:0;(i||c>n[l[o]])&&(c=n[l[o]]);for(var d=0,h=e.length;d<h;d++){var f=e[d],p={},m=c?f.getLayout().area/c:0,g=p[l[o]]=kP(c-2*r,0),y=n[s[a]]+n[l[a]]-u,v=d===h-1||y<m?y:m,_=p[l[a]]=kP(v-2*r,0);p[s[o]]=n[s[o]]+LP(r,g/2),p[s[a]]=u+LP(r,_/2),u+=v,f.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function BP(e,t,n,r,i){var a,o=(t||{}).node,s=[r,i];if(!o||o===n)return s;var l=r*i,u=l*e.option.zoomToNodeRatio;while(a=o.parentNode){for(var c=0,d=a.children,h=0,f=d.length;h<f;h++)c+=d[h].getValue();var p=o.getValue();if(0===p)return s;u*=c/p;var m=a.getModel(),g=m.get(AP),y=Math.max(g,GP(m));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>qr&&(u=qr),o=a}u<l&&(u=l);var v=Math.pow(u/l,.5);return[r*v,i*v]}function WP(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;var o=[a.width/2,a.height/2],s=i;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function VP(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new De(t.x-a.x,t.y-a.y,t.width,t.height);DP(e.viewChildren||[],(function(e){VP(e,l,n,r,i+1)}))}}function GP(e){return e.get(CP)?e.get(EP):0}function UP(e){e.registerSeriesModel(TE),e.registerChartView(KE),e.registerVisual(yP),e.registerLayout(PP),bE(e)}function qP(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),i=r.data,a=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e),r=n.getShallow("category");if(null!=r){Object(s["z"])(r)&&(r=a[r]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(r))return!1}return!0}))}))}function XP(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var a=n.getName(r);i["ec-"+a]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(a,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e),a=t.getShallow("category");if(null!=a){Object(s["C"])(a)&&(a=i["ec-"+a]);var o=n.getItemVisual(a,"style"),l=r.ensureUniqueItemVisual(e,"style");Object(s["m"])(l,o);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++)r.setItemVisual(e,u[c],n.getItemVisual(a,u[c]))}}))}))}function ZP(e){return e instanceof Array||(e=[e,e]),e}function KP(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=ZP(e.get("edgeSymbol")),i=ZP(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=ZP(r.getShallow("symbol",!0)),o=ZP(r.getShallow("symbolSize",!0)),l=r.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(e,"style");switch(Object(s["m"])(u,l),u.stroke){case"source":var c=i.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=i.node2.getVisual("style");u.stroke=c&&c.fill;break}a[0]&&i.setVisual("fromSymbol",a[0]),a[1]&&i.setVisual("toSymbol",a[1]),o[0]&&i.setVisual("fromSymbolSize",o[0]),o[1]&&i.setVisual("toSymbolSize",o[1])}))}))}var JP="--\x3e",$P=function(e){return e.get("autoCurveness")||null},QP=function(e,t){var n=$P(e),r=20,i=[];if(s["z"](n))r=n;else if(s["t"](n))return void(e.__curvenessList=n);t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},eY=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(JP)},tY=function(e){var t=e.split(JP);return[t[0],t[2],t[1]].join(JP)},nY=function(e,t){var n=eY(e.node1,e.node2,t);return t.__edgeMap[n]},rY=function(e,t){var n=iY(eY(e.node1,e.node2,t),t),r=iY(eY(e.node2,e.node1,t),t);return n+r},iY=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function aY(e){$P(e)&&(e.__curvenessList=[],e.__edgeMap={},QP(e))}function oY(e,t,n,r){if($P(n)){var i=eY(e,t,n),a=n.__edgeMap,o=a[tY(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function sY(e,t,n,r){var i=$P(t),a=s["t"](i);if(!i)return null;var o=nY(e,t);if(!o)return null;for(var l=-1,u=0;u<o.length;u++)if(o[u]===n){l=u;break}var c=rY(e,t);QP(t,c),e.lineStyle=e.lineStyle||{};var d=eY(e.node1,e.node2,t),h=t.__curvenessList,f=a||c%2?0:1;if(o.isForward)return h[f+l];var p=tY(d),m=iY(p,t),g=h[l+m+f];return r?a?i&&0===i[0]?(m+f)%2?g:-g:((m%2?0:1)+f)%2?g:-g:(m+f)%2?g:-g:h[l+m+f]}function lY(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),uY(n,e)}}function uY(e,t){e.eachEdge((function(e,n){var r=s["Q"](e.getModel().get(["lineStyle","curveness"]),-sY(e,t,n,!0),0),i=h(e.node1.getLayout()),a=h(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)}))}function cY(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];Object(s["k"])(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var a=0;a<r.count();a++){for(var o=[],l=!1,u=0;u<i.length;u++){var c=r.get(i[u],a);isNaN(c)||(l=!0),o.push(c)}l?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}uY(r.graph,e)}else t&&"none"!==t||lY(e)}))}function dY(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),a=(i-1)*n+1;return a/r}function hY(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var fY=Math.PI,pY=[];function mY(e,t,n,r){var i=e.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),o=e.getData(),l=o.graph,u=a.width/2+a.x,c=a.height/2+a.y,d=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:u,cy:c}),f){if(n){var p=i.pointToData(r),m=p[0],g=p[1],y=[m-u,g-c];b(y,y),_(y,y,d),n.setLayout([u+y[0],c+y[1]],!0);var v=e.get(["circular","rotateLabel"]);yY(n,v,u,c)}gY[t](e,l,o,d,u,c,f),l.eachEdge((function(t,n){var r,i=s["Q"](t.getModel().get(["lineStyle","curveness"]),sY(t,e,n),0),a=h(t.node1.getLayout()),o=h(t.node2.getLayout()),l=(a[0]+o[0])/2,d=(a[1]+o[1])/2;+i&&(i*=3,r=[u*i+l*(1-i),c*i+d*(1-i)]),t.setLayout([a,o,r])}))}}}var gY={value:function(e,t,n,r,i,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n}))},symbolSize:function(e,t,n,r,i,a,o){var s=0;pY.length=o;var l=dY(e);t.eachNode((function(e){var t=hY(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=fY/2),pY[e.dataIndex]=n,s+=2*n}));var u=(2*fY-s)/o/2,c=0;t.eachNode((function(e){var t=u+pY[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+a]),c+=t}))}};function yY(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,l=i.getSymbolPath();if(t){var u=e.getLayout(),c=Math.atan2(u[1]-r,u[0]-n);c<0&&(c=2*Math.PI+c);var d=u[0]<n;d&&(c-=Math.PI);var h=d?"left":"right";l.setTextConfig({rotation:-c,position:h,origin:"center"});var f=l.ensureState("emphasis");s["m"](f.textConfig||(f.textConfig={}),{position:h})}else l.setTextConfig({rotation:o*=Math.PI/180})}}function vY(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&mY(e,"symbolSize")}))}var _Y=m;function bY(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,p=0;p<r.length;p++){var m=r[p];m.p||(m.p=c(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),m.pp=h(m.p),m.edges=null}var v,_,x=null==n.friction?.6:n.friction,w=x;return{warmUp:function(){w=.8*x},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){v=e},afterStep:function(e){_=e},step:function(e){v&&v(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,c=o.n2;g(t,c.p,s.p);var h=y(t)-o.d,p=c.w/(s.w+c.w);isNaN(p)&&(p=0),b(t,t),!s.fixed&&_Y(s.p,s.p,t,p*h*w),!c.fixed&&_Y(c.p,c.p,t,-(1-p)*h*w)}}for(a=0;a<n;a++){var m=r[a];m.fixed||(g(t,l,m.p),_Y(m.p,m.p,t,u*w))}for(a=0;a<n;a++){s=r[a];for(var x=a+1;x<n;x++){c=r[x];g(t,c.p,s.p);h=y(t);0===h&&(f(t,Math.random()-.5,Math.random()-.5),h=1);var M=(s.rep+c.rep)/h/h;!s.fixed&&_Y(s.pp,s.pp,t,M),!c.fixed&&_Y(c.pp,c.pp,t,-M)}}var S=[];for(a=0;a<n;a++){m=r[a];m.fixed||(g(S,m.p,m.pp),_Y(m.p,m.p,S,w),d(m.pp,m.p))}w*=.992;var T=w<.01;_&&_(r,i,T),e&&e(T)}}}function xY(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel("force"),l=o.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):l&&"none"!==l?"circular"===l&&mY(e,"value"):lY(e);var u=i.getDataExtent("value"),c=a.getDataExtent("value"),h=o.get("repulsion"),f=o.get("edgeLength"),p=s["t"](h)?h:[h,h],m=s["t"](f)?f:[f,f];m=[m[1],m[0]];var g=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=Rr(e,u,p);return isNaN(r)&&(r=(p[0]+p[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),y=a.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),a=Rr(t,c,m);isNaN(a)&&(a=(m[0]+m[1])/2);var o=i.getModel(),l=s["Q"](i.getModel().get(["lineStyle","curveness"]),-sY(i,e,n,!0),0);return{n1:g[i.node1.dataIndex],n2:g[i.node2.dataIndex],d:a,curveness:l,ignoreForceLayout:o.get("ignoreForceLayout")}})),v=t.getBoundingRect(),_=bY(g,y,{rect:v,gravity:o.get("gravity"),friction:o.get("friction")});_.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&d(e[n].p,r.getNodeByIndex(n).getLayout())})),_.afterStep((function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var l=t[o],u=r.getEdgeByIndex(o),c=l.n1.p,h=l.n2.p,f=u.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],d(f[0],c),d(f[1],h),+l.curveness&&(f[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(f)}})),e.forceLayout=_,e.preservedPoints=n,_.step()}else e.forceLayout=null}))}function wY(e,t,n){var r=Object(s["m"])(e.getBoxLayoutParams(),{aspect:n});return zc(r,{width:t.getWidth(),height:t.getHeight()})}function MY(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),a=i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o=[],s=[];qa(a,o,s),s[0]-o[0]===0&&(s[0]+=1,o[0]-=1),s[1]-o[1]===0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),u=wY(e,t,l);isNaN(l)&&(o=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-o[0],d=s[1]-o[1],h=u.width,f=u.height,p=e.coordinateSystem=new tC;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(o[0],o[1],c,d),p.setViewRect(u.x,u.y,h,f),p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}var SY=Nm.prototype,TY=Bm.prototype,kY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a(t,e)})(kY);function LY(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var OY=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kY},t.prototype.buildPath=function(e,t){LY(t)?SY.buildPath.call(this,e,t):TY.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return LY(this.shape)?SY.pointAt.call(this,e):TY.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=LY(t)?[t.x2-t.x1,t.y2-t.y1]:TY.tangentAt.call(this,e);return b(n,n)},t}(Uo),DY=OY,AY=["fromSymbol","toSymbol"];function IY(e){return"_"+e+"Type"}function CY(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=uv(i),u=cv(o||0,l);return r+l+u+(a||"")+(s||"")}function EY(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=uv(i),u=cv(o||0,l),c=lv(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function PY(e){var t=new DY({name:"line",subPixelOptimize:!0});return YY(t.shape,e),t}function YY(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var jY=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return a(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=PY(i);a.shape.percent=0,Ul(a,{shape:{percent:1}},r,t),this.add(a),Object(s["k"])(AY,(function(n){var r=EY(n,e,t);this.add(r),this[IY(n)]=CY(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=e.getItemLayout(t),o={shape:{}};YY(o.shape,a),Gl(i,o,r,t),Object(s["k"])(AY,(function(n){var r=CY(n,e,t),i=IY(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=EY(n,e,t);this.add(a)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,l=n&&n.selectLineStyle,u=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,d=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel("emphasis");a=p.getModel("lineStyle").getLineStyle(),o=f.getModel(["blur","lineStyle"]).getLineStyle(),l=f.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),u=ru(f)}var m=e.getItemVisual(t,"style"),g=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,i.ensureState("blur").style=o,i.ensureState("select").style=l,Object(s["k"])(AY,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=m.opacity;for(var n=0;n<Ns.length;n++){var r=Ns[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}}),this);var y=r.getRawValue(t);nu(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:m.opacity,defaultText:(null==y?e.getName(t):isFinite(y)?Fr(y):y)+""});var v=this.getTextContent();if(v){var _=u.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=_.get("position")||"middle";var b=_.get("distance");Object(s["t"])(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Al(this,d,h,c)},t.prototype.highlight=function(){dl(this)},t.prototype.downplay=function(){hl(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");YY(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){var i=1,a=this.parent;while(a)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=g([],u,l);if(b(c,c),t&&(t.setPosition(l),T(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(u),T(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var d=void 0,h=void 0,f=r.__labelDistance,p=f[0]*i,m=f[1]*i,y=s/2,v=o.tangentAt(y),_=[v[1],-v[0]],x=o.pointAt(y);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var w=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var M=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(M=Math.PI+M),r.rotation=M}var S=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-m,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=m,h="top";break;default:S=0,h="middle"}switch(r.__position){case"end":r.x=c[0]*p+u[0],r.y=c[1]*m+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*m+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*w+l[0],r.y=l[1]+S,d=v[0]<0?"right":"left",r.originX=-p*w,r.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=x[0],r.y=x[1]+S,d="center",r.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*w+u[0],r.y=u[1]+S,d=v[0]>=0?"right":"left",r.originX=p*w,r.originY=-S;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||h,align:r.__align||d})}}}function T(e,t){var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(Sr),NY=jY,RY=function(){function e(e){this.group=new Sr,this._LineCtor=e||NY}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=FY(e);e.diff(i).add((function(n){t._doAdd(e,n,a)})).update((function(n,r){t._doUpdate(i,e,r,n,a)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FY(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||HY(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){var i=t.getItemLayout(r);if(BY(i)){var a=new this._LineCtor(t,r,this._seriesScope);a.traverse(n),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Fg(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var r=e.getItemLayout(t);if(BY(r)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);BY(t.getItemLayout(r))?(a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},e}();function HY(e){return e.animators&&e.animators.length>0}function FY(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ru(t)}}function zY(e){return isNaN(e[0])||isNaN(e[1])}function BY(e){return e&&!zY(e[0])&&!zY(e[1])}var WY=RY,VY=[],GY=[],UY=[],qY=Ot,XY=S,ZY=Math.abs;function KY(e,t,n){for(var r,i=e[0],a=e[1],o=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){VY[0]=qY(i[0],a[0],o[0],c),VY[1]=qY(i[1],a[1],o[1],c);var d=ZY(XY(VY,t)-l);d<s&&(s=d,r=c)}for(var h=0;h<32;h++){var f=r+u;GY[0]=qY(i[0],a[0],o[0],r),GY[1]=qY(i[1],a[1],o[1],r),UY[0]=qY(i[0],a[0],o[0],f),UY[1]=qY(i[1],a[1],o[1],f);d=XY(GY,t)-l;if(ZY(d)<.01)break;var p=XY(UY,t)-l;u/=2,d<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function JY(e,t){var n=[],r=Ct,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[h(l[0]),h(l[1])],l[2]&&l.__original.push(h(l[2])));var f=l.__original;if(null!=l[2]){if(d(i[0],f[0]),d(i[1],f[2]),d(i[2],f[1]),u&&"none"!==u){var p=hY(e.node1),y=KY(i,f[0],p*t);r(i[0][0],i[1][0],i[2][0],y,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],y,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){p=hY(e.node2),y=KY(i,f[1],p*t);r(i[0][0],i[1][0],i[2][0],y,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],y,n),i[1][1]=n[1],i[2][1]=n[2]}d(l[0],i[0]),d(l[1],i[2]),d(l[2],i[1])}else{if(d(a[0],f[0]),d(a[1],f[1]),g(o,a[1],a[0]),b(o,o),u&&"none"!==u){p=hY(e.node1);m(a[0],a[0],o,p*t)}if(c&&"none"!==c){p=hY(e.node2);m(a[1],a[1],o,-p*t)}d(l[0],a[0]),d(l[1],a[1])}}))}function $Y(e){return"view"===e.type}var QY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){var n=new kS,r=new WY,i=this.group;this._controller=new gA(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if($Y(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Gl(s,l,e)}JY(e.getGraph(),dY(e));var u=e.getData();a.updateData(u);var c=e.getEdgeData();o.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var f=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),a=t.getModel();if(i){i.off("drag").off("dragend");var o=a.get("draggable");o&&i.on("drag",(function(a){switch(f){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,h),d.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),mY(e,"symbolSize",t,[a.offsetX,a.offsetY]),r.updateLayout(e);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),uY(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),i.setDraggable(o,!!a.get("cursor"));var s=a.get(["emphasis","focus"]);"adjacency"===s&&(Os(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Os(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=u.getLayout("cx"),g=u.getLayout("cy");u.graph.eachNode((function(e){yY(e,p,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!xA(t,n,e)})),$Y(e.coordinateSystem)?(i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){yA(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){vA(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),JY(e.getGraph(),dY(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=dY(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){JY(e.getGraph(),dY(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Zg),ej=QY;function tj(e){return"_EC_"+e}var nj=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[tj(e)]){var r=new rj(e,t);return r.hostGraph=this,this.nodes.push(r),n[tj(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[tj(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(s["z"](e)&&(e=this.nodes[e]),s["z"](t)&&(t=this.nodes[t]),e instanceof rj||(e=r[tj(e)]),t instanceof rj||(t=r[tj(t)]),e&&t){var a=e.id+"-"+t.id,o=new ij(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof rj&&(e=e.id),t instanceof rj&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof rj||(t=this._nodesMap[tj(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null)){var o=[t];while(o.length){var s=o.shift(),l=s[i];for(a=0;a<l.length;a++){var u=l[a],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(r,c,s))return;o.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),rj=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=s["f"](),t=s["f"](),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);var i=[r.node1],a=[r.node2],o=0;while(o<i.length){var l=i[o];o++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}o=0;while(o<a.length){var c=a[o];o++,t.set(c.dataIndex,!0);for(u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),a.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),ij=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=s["f"](),t=s["f"]();e.set(this.dataIndex,!0);var n=[this.node1],r=[this.node2],i=0;while(i<n.length){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)e.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}i=0;while(i<r.length){var l=r[i];i++,t.set(l.dataIndex,!0);for(o=0;o<l.outEdges.length;o++)e.set(l.outEdges[o].dataIndex,!0),r.push(l.outEdges[o].node2)}return{edge:e.keys(),node:t.keys()}},e}();function aj(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}s["K"](rj,aj("hostGraph","data")),s["K"](ij,aj("hostGraph","edgeData"));var oj=nj;function sj(e,t,n,r,i){for(var a=new oj(r),o=0;o<e.length;o++)a.addNode(s["O"](e[o].id,e[o].name,o),o);var l=[],u=[],c=0;for(o=0;o<t.length;o++){var d=t[o],h=d.source,f=d.target;a.addEdge(h,f,c)&&(u.push(d),l.push(s["O"](Ti(d.id,null),h+" > "+f)),c++)}var p,m=n.get("coordinateSystem");if("cartesian2d"===m||"polar"===m)p=pS(e,n);else{var g=Xd.get(m),y=g&&g.dimensions||[];s["r"](y,"value")<0&&y.concat(["value"]);var v=JM(e,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;p=new KM(v,n),p.initData(e)}var _=new KM(["value"],n);return _.initData(u,l),i&&i(p,_),tE({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Ek(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),hi(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){aY(this);var a=sj(r,n,this,!0,o);return s["k"](a.edges,(function(e){oY(e.node1,e.node2,this,e.dataIndex)}),this),a.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=Ou.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}function a(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=a,e.getModel=r,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Kf("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=hp({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=s["H"](this.option.categories||[],(function(e){return null!=e.value?e:s["m"]({value:0},e)})),t=new KM(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(kp),uj=lj,cj={type:"graphRoam",event:"graphRoam",update:"none"};function dj(e){e.registerChartView(ej),e.registerSeriesModel(uj),e.registerProcessor(qP),e.registerVisual(XP),e.registerVisual(KP),e.registerLayout(cY),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vY),e.registerLayout(xY),e.registerCoordinateSystem("graphView",{dimensions:tC.dimensions,create:MY}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},s["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},s["L"]),e.registerAction(cj,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=mC(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var hj=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),fj=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return a(t,e),t.prototype.getDefaultShape=function(){return new hj},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),l=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,l)},t}(Uo),pj=fj;function mj(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i),o=Hr(n[0],t.getWidth()),s=Hr(n[1],t.getHeight()),l=Hr(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function gj(e,t){var n=null==e?"":e+"";return t&&(Object(s["C"])(t)?n=t.replace("{value}",n):Object(s["w"])(t)&&(n=t(e))),n}var yj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=mj(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),d=c.get("roundCap"),h=d?NT:wm,f=c.get("show"),p=c.getModel("lineStyle"),m=p.get("width"),g=[l,u];vo(g,!o),l=g[0],u=g[1];for(var y=u-l,v=l,_=[],b=0;f&&b<r.length;b++){var x=Math.min(Math.max(r[b][0],0),1);u=l+y*x;var w=new h({shape:{startAngle:v,endAngle:u,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-m,r:i.r},silent:!0});w.setStyle({fill:r[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),_.push(w),v=u}_.reverse(),Object(s["k"])(_,(function(e){return a.add(e)}));var M=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,M,i,l,u,o,m),this._renderTitleAndDetail(e,t,n,M,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,M,i,l,u,o,m)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,l,u){for(var c,d,h=this.group,f=i.cx,p=i.cy,m=i.r,g=+e.get("min"),y=+e.get("max"),v=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),x=e.get("splitNumber"),w=_.get("splitNumber"),M=Hr(v.get("length"),m),S=Hr(_.get("length"),m),T=a,k=(o-a)/x,L=k/w,O=v.getModel("lineStyle").getLineStyle(),D=_.getModel("lineStyle").getLineStyle(),A=v.get("distance"),I=0;I<=x;I++){if(c=Math.cos(T),d=Math.sin(T),v.get("show")){var C=A?A+u:u,E=new Nm({shape:{x1:c*(m-C)+f,y1:d*(m-C)+p,x2:c*(m-M-C)+f,y2:d*(m-M-C)+p},style:O,silent:!0});"auto"===O.stroke&&E.setStyle({stroke:r(I/x)}),h.add(E)}if(b.get("show")){C=b.get("distance")+A;var P=gj(Fr(I/x*(y-g)+g),b.get("formatter")),Y=r(I/x),j=c*(m-M-C)+f,N=d*(m-M-C)+p,R=b.get("rotate"),H=0;"radial"===R?(H=-T+2*Math.PI,H>Math.PI/2&&(H+=Math.PI)):"tangential"===R?H=-T-Math.PI/2:Object(s["z"])(R)&&(H=R*Math.PI/180),0===H?h.add(new Ls({style:iu(b,{text:P,x:j,y:N,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:Y}),silent:!0})):h.add(new Ls({style:iu(b,{text:P,x:j,y:N,verticalAlign:"middle",align:"center"},{inheritColor:Y}),silent:!0,originX:j,originY:N,rotation:H}))}if(_.get("show")&&I!==x){C=_.get("distance");C=C?C+u:u;for(var F=0;F<=w;F++){c=Math.cos(T),d=Math.sin(T);var z=new Nm({shape:{x1:c*(m-C)+f,y1:d*(m-C)+p,x2:c*(m-S-C)+f,y2:d*(m-S-C)+p},silent:!0,style:D});"auto"===D.stroke&&z.setStyle({stroke:r((I+F/w)/x)}),h.add(z),T+=L}T-=L}else T+=k}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,l,u){var c=this.group,d=this._data,h=this._progressEls,f=[],p=e.get(["pointer","show"]),m=e.getModel("progress"),g=m.get("show"),y=e.getData(),v=y.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),x=[_,b],w=[a,o];function M(t,n){var r,a=y.getItemModel(t),o=a.getModel("pointer"),s=Hr(o.get("width"),i.r),l=Hr(o.get("length"),i.r),u=e.get(["pointer","icon"]),c=o.get("offsetCenter"),d=Hr(c[0],i.r),h=Hr(c[1],i.r),f=o.get("keepAspect");return r=u?lv(u,d-s/2,h-l,s,l,null,f):new pj({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function S(e,t){var n=m.get("roundCap"),r=n?NT:wm,o=m.get("overlap"),s=o?m.get("width"):u/y.count(),c=o?i.r-s:i.r-(e+1)*s,d=o?i.r:i.r-e*s,h=new r({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:l,r0:c,r:d}});return o&&(h.z2=Rr(y.get(v,e),[_,b],[100,0],!0)),h}(g||p)&&(y.diff(d).add((function(t){var n=y.get(v,t);if(p){var r=M(t,a);Ul(r,{rotation:-((isNaN(+n)?w[0]:Rr(n,x,w,!0))+Math.PI/2)},e),c.add(r),y.setItemGraphicEl(t,r)}if(g){var i=S(t,a),o=m.get("clip");Ul(i,{shape:{endAngle:Rr(n,x,w,o)}},e),c.add(i),Ds(e.seriesIndex,y.dataType,t,i),f[t]=i}})).update((function(t,n){var r=y.get(v,t);if(p){var i=d.getItemGraphicEl(n),o=i?i.rotation:a,s=M(t,o);s.rotation=o,Gl(s,{rotation:-((isNaN(+r)?w[0]:Rr(r,x,w,!0))+Math.PI/2)},e),c.add(s),y.setItemGraphicEl(t,s)}if(g){var l=h[n],u=l?l.shape.endAngle:a,_=S(t,u),b=m.get("clip");Gl(_,{shape:{endAngle:Rr(r,x,w,b)}},e),c.add(_),Ds(e.seriesIndex,y.dataType,t,_),f[t]=_}})).execute(),y.each((function(e){var t=y.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(p){var l=y.getItemGraphicEl(e),u=y.getItemVisual(e,"style"),c=u.fill;if(l instanceof es){var d=l.style;l.useStyle(Object(s["m"])({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",r(Rr(y.get(v,e),x,[0,1],!0))),l.z2EmphasisLift=0,Pl(l,t),Al(l,i,a,o)}if(g){var h=f[e];h.useStyle(y.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Pl(h,t),Al(h,i,a,o)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=lv(a,t.cx-i/2+Hr(o[0],t.r),t.cy-i/2+Hr(o[1],t.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Sr,d=[],h=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){d[e]=new Ls({silent:!0}),h[e]=new Ls({silent:!0})})).update((function(e,t){d[e]=a._titleEls[t],h[e]=a._detailEls[t]})).execute(),o.each((function(t){var n=o.getItemModel(t),a=o.get(s,t),m=new Sr,g=r(Rr(a,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var v=y.get("offsetCenter"),_=i.cx+Hr(v[0],i.r),b=i.cy+Hr(v[1],i.r),x=d[t];x.attr({z2:p?0:2,style:iu(y,{x:_,y:b,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(x)}var w=n.getModel("detail");if(w.get("show")){var M=w.get("offsetCenter"),S=i.cx+Hr(M[0],i.r),T=i.cy+Hr(M[1],i.r),k=Hr(w.get("width"),i.r),L=Hr(w.get("height"),i.r),O=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:g,D=(x=h[t],w.get("formatter"));x.attr({z2:p?0:2,style:iu(w,{x:S,y:T,text:gj(a,D),width:isNaN(k)?null:k,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:O})}),pu(x,{normal:w},a,(function(e){return gj(e,D)})),f&&mu(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return gj(o?o.interpolatedValue:a,D)}}),m.add(x)}c.add(m)})),this.group.add(c),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(Zg),vj=yj,_j=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return a(t,e),t.prototype.getInitialData=function(e,t){return Ik(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(kp),bj=_j;function xj(e){e.registerChartView(vj),e.registerSeriesModel(bj)}var wj=["itemStyle","opacity"],Mj=function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new Em,o=new Ls;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return a(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel("emphasis"),l=a.get(wj);l=null==l?1:l,n||Jl(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:o.points}),r.style.opacity=0,Ul(r,{style:{opacity:l}},i,t)):Gl(r,{style:{opacity:l},shape:{points:o.points}},i,t),Pl(r,a),this._updateLabel(e,t),Al(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;nu(i,ru(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new _e(d[0][0],d[0][1]):null},Gl(i,{style:{x:l.x,y:l.y}},a,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),ox(n,sx(o),{stroke:c})},t}(Am),Sj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add((function(e){var t=new Mj(r,e);r.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);Kl(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Zg),Tj=Sj,kj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ek(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Ik(this,{coordDimensions:["value"],encodeDefaulter:s["h"](pd,this)})},t.prototype._defaultLabelLine=function(e){hi(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(kp),Lj=kj;function Oj(e,t){return zc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Dj(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],a="ascending"===t,o=0,l=e.count();o<l;o++)i[o]=o;return Object(s["w"])(t)?i.sort(t):"none"!==t&&i.sort((function(e,t){return a?r[e]-r[t]:r[t]-r[e]})),i}function Aj(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var r,i,a,o,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),d=e.getItemLayout(t),h=d.points,f="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(f)"insideLeft"===u?(i=(h[0][0]+h[3][0])/2+5,a=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===u?(i=(h[1][0]+h[2][0])/2-5,a=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),o=[[i,a],[i,a]];else{var p=void 0,m=void 0,g=void 0,y=void 0,v=c.get("length");0,"left"===u?(p=(h[3][0]+h[0][0])/2,m=(h[3][1]+h[0][1])/2,g=p-v,i=g-5,r="right"):"right"===u?(p=(h[1][0]+h[2][0])/2,m=(h[1][1]+h[2][1])/2,g=p+v,i=g+5,r="left"):"top"===u?(p=(h[3][0]+h[0][0])/2,m=(h[3][1]+h[0][1])/2,y=m-v,a=y-5,r="center"):"bottom"===u?(p=(h[1][0]+h[2][0])/2,m=(h[1][1]+h[2][1])/2,y=m+v,a=y+5,r="center"):"rightTop"===u?(p="horizontal"===n?h[3][0]:h[1][0],m="horizontal"===n?h[3][1]:h[1][1],"horizontal"===n?(y=m-v,a=y-5,r="center"):(g=p+v,i=g+5,r="top")):"rightBottom"===u?(p=h[2][0],m=h[2][1],"horizontal"===n?(y=m+v,a=y+5,r="center"):(g=p+v,i=g+5,r="bottom")):"leftTop"===u?(p=h[0][0],m="horizontal"===n?h[0][1]:h[1][1],"horizontal"===n?(y=m-v,a=y-5,r="center"):(g=p-v,i=g-5,r="right")):"leftBottom"===u?(p="horizontal"===n?h[1][0]:h[3][0],m="horizontal"===n?h[1][1]:h[2][1],"horizontal"===n?(y=m+v,a=y+5,r="center"):(g=p-v,i=g-5,r="right")):(p=(h[1][0]+h[2][0])/2,m=(h[1][1]+h[2][1])/2,"horizontal"===n?(y=m+v,a=y+5,r="center"):(g=p+v,i=g+5,r="left")),"horizontal"===n?(g=p,i=g):(y=m,a=y),o=[[p,m],[g,y]]}d.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:f}}))}function Ij(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),a=Oj(e,t),o=e.get("orient"),s=a.width,l=a.height,u=Dj(n,i),c=a.x,d=a.y,h="horizontal"===o?[Hr(e.get("minSize"),l),Hr(e.get("maxSize"),l)]:[Hr(e.get("minSize"),s),Hr(e.get("maxSize"),s)],f=n.getDataExtent(r),p=e.get("min"),m=e.get("max");null==p&&(p=Math.min(f[0],0)),null==m&&(m=f[1]);var g=e.get("funnelAlign"),y=e.get("gap"),v="horizontal"===o?s:l,_=(v-y*(n.count()-1))/n.count(),b=function(e,t){if("horizontal"===o){var i=n.get(r,e)||0,a=Rr(i,[p,m],h,!0),u=void 0;switch(g){case"top":u=d;break;case"center":u=d+(l-a)/2;break;case"bottom":u=d+(l-a);break}return[[t,u],[t,u+a]]}var f,y=n.get(r,e)||0,v=Rr(y,[p,m],h,!0);switch(g){case"left":f=c;break;case"center":f=c+(s-v)/2;break;case"right":f=c+s-v;break}return[[f,t],[f+v,t]]};"ascending"===i&&(_=-_,y=-y,"horizontal"===o?c+=s:d+=l,u=u.reverse());for(var x=0;x<u.length;x++){var w=u[x],M=u[x+1],S=n.getItemModel(w);if("horizontal"===o){var T=S.get(["itemStyle","width"]);null==T?T=_:(T=Hr(T,s),"ascending"===i&&(T=-T));var k=b(w,c),L=b(M,c+T);c+=T+y,n.setItemLayout(w,{points:k.concat(L.slice().reverse())})}else{var O=S.get(["itemStyle","height"]);null==O?O=_:(O=Hr(O,l),"ascending"===i&&(O=-O));k=b(w,d),L=b(M,d+O);d+=O+y,n.setItemLayout(w,{points:k.concat(L.slice().reverse())})}}Aj(n)}))}function Cj(e){e.registerChartView(Tj),e.registerSeriesModel(Lj),e.registerLayout(Ij),e.registerProcessor(xk("funnel"))}var Ej=.3,Pj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Sr,n._initialized=!1,n}return a(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,u=Rj(e);function c(e){var t=Nj(a,i,e,l,s);Hj(t,a,e,u)}function d(t,n){var r=o.getItemGraphicEl(n),i=jj(a,t,l,s);a.setItemGraphicEl(t,r),Gl(r,{shape:{points:i}},e,t),Jl(r),Hj(r,a,t,u)}function h(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(a.diff(o).add(c).update(d).remove(h).execute(),!this._initialized){this._initialized=!0;var f=Yj(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(f)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=Rj(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=Nj(r,this._dataGroup,l,a,i);u.incremental=!0,Hj(u,r,l,o),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Zg);function Yj(e,t,n){var r=e.model,i=e.getRect(),a=new us({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o="horizontal"===r.get("layout")?"width":"height";return a.setShape(o,0),Ul(a,{shape:{width:i.width,height:i.height}},t,n),a}function jj(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);Fj(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function Nj(e,t,n,r,i){var a=jj(e,n,r,i),o=new Em({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function Rj(e){var t=e.get("smooth",!0);return!0===t&&(t=Ej),t=ri(t),Object(s["l"])(t)&&(t=0),{smooth:t}}function Hj(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),a=i.getModel("emphasis");Pl(e,i,"lineStyle"),Al(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Fj(e,t){return"category"===t?null==e:null==e||isNaN(e)}var zj=Pj,Bj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(t,e),t.prototype.getInitialData=function(e,t){return pS(null,this,{useEncodeDefaulter:Object(s["c"])(Wj,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(kp);function Wj(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(s["k"])(t.dimensions,(function(e){var t=Vj(e);n[e]=t})),n}}function Vj(e){return+e.replace("dim","")}var Gj=Bj,Uj=["lineStyle","opacity"],qj={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var a=t.getItemModel(n).get(Uj,!0);null!=a&&(i=a)}var o=t.ensureUniqueItemVisual(n,"style");o.opacity=i}),e.start,e.end)}}}},Xj=qj;function Zj(e){Kj(e),Jj(e)}function Kj(e){if(!e.parallel){var t=!1;s["k"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function Jj(e){var t=di(e.parallelAxis);s["k"](t,(function(t){if(s["A"](t)){var n=t.parallelIndex||0,r=di(e.parallel)[n];r&&r.parallelAxisDefault&&s["I"](t,r.parallelAxisDefault,!1)}}))}var $j=5,Qj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(s["k"])(eN,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(s["c"])(e,this))}),this)),ey(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){ty(this,"_throttledDispatchExpand"),Object(s["k"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(s["m"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Op),eN={mousedown:function(e){tN(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(tN(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>$j)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&tN(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function tN(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var nN=Qj,rN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&s["I"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){s["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=s["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);s["k"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Jc),iN=rN,aN=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return a(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(FO),oN=aN;function sN(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(null!=i&&(i=uN(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=uN(s,[0,o]),i=a=uN(s,[i,a]),r=0}t[0]=uN(t[0],n),t[1]=uN(t[1],n);var l=lN(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=uN(t[r],d),u=lN(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=lN(t,r),null!=a&&u.span>a&&(t[1-r]=t[r]+u.sign*a),t}function lN(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function uN(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var cN=s["k"],dN=Math.min,hN=Math.max,fN=Math.floor,pN=Math.ceil,mN=Fr,gN=Math.PI,yN=function(){function e(e,t,n){this.type="parallel",this._axesMap=s["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;cN(r,(function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new oN(e,iO(a),[0,0],a.get("type"),r)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();cN(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),rO(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=zc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],l=[0,s],u=this.dimensions.length,c=vN(t.get("axisExpandWidth"),l),d=vN(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,f=t.get("axisExpandWindow");if(f)e=vN(f[1]-f[0],l),f[1]=f[0]+e;else{e=vN(c*(d-1),l);var p=t.get("axisExpandCenter")||fN(u/2);f=[c*p-e/2],f[1]=f[0]+e}var m=(s-e)/(u-d);m<3&&(m=0);var g=[fN(mN(f[0]/c,1))+1,pN(mN(f[1]/c,1))-1],y=m/c*f[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),cN(n,(function(t,n){var a=(r.axisExpandable?bN:_N)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:gN/2,vertical:0},l=[o[i].x+e.x,o[i].y+e.y],u=s[i],c=ue();pe(c,c,u),fe(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,a=this.dimensions,o=[],l=[];s["k"](a,(function(t){o.push(e.mapDimension(t)),l.push(i.get(t).model)}));for(var u=this.hasAxisBrushed(),c=n;c<r;c++){var d=void 0;if(u){d="active";for(var h=e.getValues(o,c),f=0,p=a.length;f<p;f++){var m=l[f].getActiveState(h[f]);if("inactive"===m){d="inactive";break}}}else d="normal";t(d,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return kg([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return s["d"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=null!=c[0];if(u)d&&u&&s<i*c[0]?(l="jump",o=s-i*c[2]):d&&u&&s>i*(1-c[0])?(l="jump",o=s-i*(1-c[2])):(o=s-i*c[1])>=0&&(o=s-i*(1-c[1]))<=0&&(o=0),o*=t.axisExpandWidth/u,o?sN(o,r,a,"all"):l="none";else{var h=r[1]-r[0],f=a[1]*s/h;r=[hN(0,f-h/2)],r[1]=dN(a[1],r[0]+h),r[0]=r[1]-h}return{axisExpandWindow:r,behavior:l}},e}();function vN(e,t){return dN(hN(e,t[0]),t[1])}function _N(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function bN(e,t){var n,r,i=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],u=a,c=!0):(n=i-(o-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var xN=yN;function wN(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var a=new xN(r,e,t);a.name="parallel_"+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",Ni).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var MN={create:wN},SN=MN,TN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return a(t,e),t.prototype.getAreaSelectStyle=function(){return aa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=s["d"](e);if(t)for(var n=t.length-1;n>=0;n--)zr(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(Jc);s["K"](TN,Kk);var kN=TN,LN=!0,ON=Math.min,DN=Math.max,AN=Math.pow,IN=1e4,CN=6,EN=6,PN="globalPan",YN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},jN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},NN={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},RN=0,HN=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Sr,n._uid="brushController_"+RN++,Object(s["k"])(yR,(function(e,t){this._handlers[t]=Object(s["c"])(e,this)}),n),n}return a(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||lA(t,PN,this._uid),Object(s["k"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(s["I"])(Object(s["d"])(NN),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;uA(e,PN,this._uid),Object(s["k"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(s["k"])(e,(function(e){t[e.panelId]=Object(s["d"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(s["H"])(e,(function(e){return Object(s["I"])(Object(s["d"])(NN),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new bM(n,e,l,o).add(u).update(u).remove(c).execute(),this;function o(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function l(e,t){return o(e.__brushOption,t)}function u(t,o){var s=e[t];if(null!=o&&n[o]===a)r[t]=n[o];else{var l=r[t]=null!=o?(n[o].__brushOption=s,n[o]):zN(i,FN(i,s));VN(i,l)}}function c(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),XN(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(E);function FN(e,t){var n=bR[t.brushType].createCover(e,t);return n.__brushOption=t,WN(n,t),e.group.add(n),n}function zN(e,t){var n=GN(t);return n.endCreating&&(n.endCreating(e,t),WN(t,t.__brushOption)),t}function BN(e,t){var n=t.__brushOption;GN(t).updateCoverShape(e,t,n.range,n)}function WN(e,t){var n=t.z;null==n&&(n=IN),e.traverse((function(e){e.z=n,e.z2=n}))}function VN(e,t){GN(t).updateCommon(e,t),BN(e,t)}function GN(e){return bR[e.__brushOption.brushType]}function UN(e,t,n){var r,i=e._panels;if(!i)return LN;var a=e._transform;return Object(s["k"])(i,(function(e){e.isTargetByCursor(t,n,a)&&(r=e)})),r}function qN(e,t){var n=e._panels;if(!n)return LN;var r=t.__brushOption.panelId;return null!=r?n[r]:LN}function XN(e){var t=e._covers,n=t.length;return Object(s["k"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function ZN(e,t){var n=Object(s["H"])(e._covers,(function(e){var t=e.__brushOption,n=Object(s["d"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function KN(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1],o=AN(i*i+a*a,.5);return o>CN}function JN(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function $N(e,t,n,r){var i=new Sr;return i.add(new us({name:"main",style:nR(n),silent:!0,draggable:!0,cursor:"move",drift:Object(s["h"])(sR,e,t,i,["n","s","w","e"]),ondragend:Object(s["h"])(ZN,t,{isEnd:!0})})),Object(s["k"])(r,(function(n){i.add(new us({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["h"])(sR,e,t,i,n),ondragend:Object(s["h"])(ZN,t,{isEnd:!0})}))})),i}function QN(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=DN(i,EN),o=n[0][0],s=n[1][0],l=o-i/2,u=s-i/2,c=n[0][1],d=n[1][1],h=c-a+i/2,f=d-a+i/2,p=c-o,m=d-s,g=p+i,y=m+i;tR(e,t,"main",o,s,p,m),r.transformable&&(tR(e,t,"w",l,u,a,y),tR(e,t,"e",h,u,a,y),tR(e,t,"n",l,u,g,a),tR(e,t,"s",l,f,g,a),tR(e,t,"nw",l,u,a,a),tR(e,t,"ne",h,u,a,a),tR(e,t,"sw",l,f,a,a),tR(e,t,"se",h,f,a,a))}function eR(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(nR(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(s["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),a=1===n.length?aR(e,n[0]):oR(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?jN[a]+"-resize":null})}))}function tR(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(dR(cR(e,t,[[r,i],[r+a,i+o]])))}function nR(e){return Object(s["i"])({strokeNoScale:!0},e.brushStyle)}function rR(e,t,n,r){var i=[ON(e,n),ON(t,r)],a=[DN(e,n),DN(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function iR(e){return Tg(e.group)}function aR(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Lg(n[t],iR(e));return r[i]}function oR(e,t){var n=[aR(e,t[0]),aR(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function sR(e,t,n,r,i,a){var o=n.__brushOption,l=e.toRectRange(o.range),u=uR(t,i,a);Object(s["k"])(r,(function(e){var t=YN[e];l[t[0]][t[1]]+=u[t[0]]})),o.range=e.fromRectRange(rR(l[0][0],l[1][0],l[0][1],l[1][1])),VN(t,n),ZN(t,{isEnd:!1})}function lR(e,t,n,r){var i=t.__brushOption.range,a=uR(e,n,r);Object(s["k"])(i,(function(e){e[0]+=a[0],e[1]+=a[1]})),VN(e,t),ZN(e,{isEnd:!1})}function uR(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function cR(e,t,n){var r=qN(e,t);return r&&r!==LN?r.clipPath(n,e._transform):Object(s["d"])(n)}function dR(e){var t=ON(e[0][0],e[1][0]),n=ON(e[0][1],e[1][1]),r=DN(e[0][0],e[1][0]),i=DN(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function hR(e,t,n){if(e._brushType&&!_R(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=UN(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===LN||s.panelId===a.panelId)&&bR[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}function fR(e){var t=e.event;t.preventDefault&&t.preventDefault()}function pR(e,t,n){return e.childOfName("main").contain(t,n)}function mR(e,t,n,r){var i,a=e._creatingCover,o=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),KN(e)||a){if(o&&!a){"single"===l.brushMode&&XN(e);var u=Object(s["d"])(l);u.brushType=gR(u.brushType,o),u.panelId=o===LN?null:o.panelId,a=e._creatingCover=FN(e,u),e._covers.push(a)}if(a){var c=bR[gR(e._brushType,o)],d=a.__brushOption;d.range=c.getCreatingRange(cR(e,a,e._track)),r&&(zN(e,a),c.updateCommon(e,a)),BN(e,a),i={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&UN(e,t,n)&&XN(e)&&(i={isEnd:r,removeOnClick:!0});return i}function gR(e,t){return"auto"===e?t.defaultBrushType:e}var yR={mousedown:function(e){if(this._dragging)vR(this,e);else if(!e.target||!e.target.draggable){fR(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=UN(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(hR(this,e,r),this._dragging){fR(e);var i=mR(this,e,r,!1);i&&ZN(this,i)}},mouseup:function(e){vR(this,e)}};function vR(e,t){if(e._dragging){fR(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),a=mR(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&ZN(e,a)}}function _R(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var bR={lineX:xR(0),lineY:xR(1),rect:{createCover:function(e,t){function n(e){return e}return $N({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=JN(e);return rR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){QN(e,t,n,r)},updateCommon:eR,contain:pR},polygon:{createCover:function(e,t){var n=new Sr;return n.add(new Em({name:"main",style:nR(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Am({name:"main",draggable:!0,drift:Object(s["h"])(lR,e,t),ondragend:Object(s["h"])(ZN,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:cR(e,t,n)})},updateCommon:eR,contain:pR}};function xR(e){return{createCover:function(t,n){return $N({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=JN(t),r=ON(n[0][e],n[1][e]),i=DN(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var a,o=qN(t,n);if(o!==LN&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,a];e&&l.reverse(),QN(t,n,l,i)},updateCommon:eR,contain:pR}}var wR=HN;function MR(e){return e=kR(e),function(t){return Ig(t,e)}}function SR(e,t){return e=kR(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function TR(e,t,n){var r=kR(e);return function(e,i){return r.contain(i[0],i[1])&&!xA(e,t,n)}}function kR(e){return De.create(e)}var LR=["axisLine","axisTickLabel","axisName"],OR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new wR(n.getZr())).on("brush",s["c"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!DR(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Sr,this.group.add(this._axisGroup),e.get("show")){var a=IR(e,t),o=a.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,c=e.axis.dim,d=o.getAxisLayout(c),h=s["m"]({strokeContainThreshold:u},d),f=new hD(e,h);s["k"](LR,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,l,e,a,u,n),Ag(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=De.create({x:o[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:MR(u),isTargetByCursor:TR(u,a,r),getLinearBrushOtherExtent:SR(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(AR(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=s["H"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Op);function DR(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function AR(e){var t=e.axis;return s["H"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function IR(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var CR=OR,ER={type:"axisAreaSelect",event:"axisAreaSelected"};function PR(e){e.registerAction(ER,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var YR={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function jR(e){e.registerComponentView(nN),e.registerComponentModel(iN),e.registerCoordinateSystem("parallel",SN),e.registerPreprocessor(Zj),e.registerComponentModel(kN),e.registerComponentView(CR),uL(e,"parallel",kN,YR),PR(e)}function NR(e){Nb(jR),e.registerChartView(zj),e.registerSeriesModel(Gj),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Xj)}var RR=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),HR=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new RR},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){dl(this)},t.prototype.downplay=function(){hl(this)},t}(Uo),FR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,l=o.width,u=o.height,c=e.getData(),d=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,i.eachEdge((function(t){var n=new HR,r=Os(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,c,f,p,m,g,y,v=t.getModel(),_=v.getModel("lineStyle"),b=_.get("curveness"),x=t.node1.getLayout(),w=t.node1.getModel(),M=w.get("localX"),S=w.get("localY"),T=t.node2.getLayout(),k=t.node2.getModel(),L=k.get("localX"),O=k.get("localY"),D=t.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(i=(null!=M?M*l:x.x)+D.sy,o=(null!=S?S*u:x.y)+x.dy,c=(null!=L?L*l:T.x)+D.ty,f=null!=O?O*u:T.y,p=i,m=o*(1-b)+f*b,g=c,y=o*b+f*(1-b)):(i=(null!=M?M*l:x.x)+x.dx,o=(null!=S?S*u:x.y)+D.sy,c=null!=L?L*l:T.x,f=(null!=O?O*u:T.y)+D.ty,p=i*(1-b)+c*b,m=o,g=i*b+c*(1-b),y=f),n.setShape({x1:i,y1:o,x2:c,y2:f,cpx1:p,cpy1:m,cpx2:g,cpy2:y}),n.useStyle(_.getItemStyle()),zR(n.style,h,t);var A=""+v.get("value"),I=ru(v,"edgeLabel");nu(n,I,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,"edge",i,Object(s["Q"])(a,I.normal&&I.normal.get("formatter"),A),o)}},labelDataIndex:t.dataIndex,defaultText:A}),n.setTextConfig({position:"inside"});var C=v.getModel("emphasis");Pl(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return zR(n,h,t),n})),a.add(n),d.setItemGraphicEl(t.dataIndex,n);var E=C.get("focus");Al(n,"adjacency"===E?t.getAdjacentDataIndices():"trajectory"===E?t.getTrajectoryDataIndices():E,C.get("blurScope"),C.get("disabled"))})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),o=r.get("localY"),s=r.getModel("emphasis"),d=r.get(["itemStyle","borderRadius"])||0,h=new us({shape:{x:null!=i?i*l:n.x,y:null!=o?o*u:n.y,width:n.dx,height:n.dy,r:d},style:r.getModel("itemStyle").getItemStyle(),z2:10});nu(h,ru(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Pl(h,r),a.add(h),c.setItemGraphicEl(t.dataIndex,h),Os(h).dataType="node";var f=s.get("focus");Al(h,"adjacency"===f?t.getAdjacentDataIndices():"trajectory"===f?t.getTrajectoryDataIndices():f,s.get("blurScope"),s.get("disabled"))})),c.eachItemGraphicEl((function(t,i){var a=c.getItemModel(i);a.get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&a.setClipPath(BR(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Zg);function zR(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(s["C"])(r)&&Object(s["C"])(i)&&(e.fill=new Jm(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}function BR(e,t,n){var r=new us({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ul(r,{shape:{width:e.width+20}},t,n),r}var WR=FR,VR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)null!=i[o].depth&&i[o].depth>=0&&(a[i[o].depth]=new Ou(i[o],this,t));var s=sj(r,n,this,!0,l);return s.data;function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var a=i.depth,o=n.levelModels[a];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,r=n[e];r.localX=t[0],r.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),a=i.data,o=i.value,s=a.source+" -- "+a.target;return Kf("nameValue",{name:s,value:o,noValue:r(o)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return Kf("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),a=i.getLayout().value;r.value=a}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(kp),GR=VR;function UR(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=qR(e,t);e.layoutInfo=i;var a=i.width,o=i.height,l=e.getGraph(),u=l.nodes,c=l.edges;ZR(u);var d=s["n"](u,(function(e){return 0===e.getLayout().value})),h=0!==d.length?0:e.get("layoutIterations"),f=e.get("orient"),p=e.get("nodeAlign");XR(u,c,n,r,a,o,h,f,p)}))}function qR(e,t){return zc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function XR(e,t,n,r,i,a,o,s,l){KR(e,t,n,i,a,s,l),tH(e,t,a,i,r,o,s),pH(e,s)}function ZR(e){s["k"](e,(function(e){var t=hH(e.outEdges,dH),n=hH(e.inEdges,dH),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function KR(e,t,n,r,i,a,o){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<t.length;h++)s[h]=1;for(h=0;h<e.length;h++)l[h]=e[h].inEdges.length,0===l[h]&&u.push(e[h]);var f=-1;while(u.length){for(var p=0;p<u.length;p++){var m=u[p],g=m.hostGraph.data.getRawDataItem(m.dataIndex),y=null!=g.depth&&g.depth>=0;y&&g.depth>f&&(f=g.depth),m.setLayout({depth:y?g.depth:d},!0),"vertical"===a?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var v=0;v<m.outEdges.length;v++){var _=m.outEdges[v],b=t.indexOf(_);s[b]=0;var x=_.node2,w=e.indexOf(x);0===--l[w]&&c.indexOf(x)<0&&c.push(x)}}++d,u=c,c=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var M=f>d-1?f:d-1;o&&"left"!==o&&$R(e,o,a,M);var S="vertical"===a?(i-n)/M:(r-n)/M;eH(e,S,a)}function JR(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function $R(e,t,n,r){if("right"===t){var i=[],a=e,o=0;while(a.length){for(var l=0;l<a.length;l++){var u=a[l];u.setLayout({skNodeHeight:o},!0);for(var c=0;c<u.inEdges.length;c++){var d=u.inEdges[c];i.indexOf(d.node1)<0&&i.push(d.node1)}}a=i,i=[],++o}s["k"](e,(function(e){JR(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&QR(e,r)}function QR(e,t){s["k"](e,(function(e){JR(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function eH(e,t,n){s["k"](e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}function tH(e,t,n,r,i,a,o){var s=nH(e,o);rH(s,t,n,r,i,o),iH(s,i,n,r,o);for(var l=1;a>0;a--)l*=.99,aH(s,l,o),iH(s,i,n,r,o),fH(s,l,o),iH(s,i,n,r,o)}function nH(e,t){var n=[],r="vertical"===t?"y":"x",i=Wi(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),s["k"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function rH(e,t,n,r,i,a){var o=1/0;s["k"](e,(function(e){var t=e.length,l=0;s["k"](e,(function(e){l+=e.getLayout().value}));var u="vertical"===a?(r-(t-1)*i)/l:(n-(t-1)*i)/l;u<o&&(o=u)})),s["k"](e,(function(e){s["k"](e,(function(e,t){var n=e.getLayout().value*o;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),s["k"](t,(function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)}))}function iH(e,t,n,r,i){var a="vertical"===i?"x":"y";s["k"](e,(function(e){var o,s,l;e.sort((function(e,t){return e.getLayout()[a]-t.getLayout()[a]}));for(var u=0,c=e.length,d="vertical"===i?"dx":"dy",h=0;h<c;h++)s=e[h],l=u-s.getLayout()[a],l>0&&(o=s.getLayout()[a]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[d]+t;var f="vertical"===i?r:n;if(l=u-t-f,l>0){o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(h=c-2;h>=0;--h)s=e[h],l=s.getLayout()[a]+s.getLayout()[d]+t-u,l>0&&(o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}}))}function aH(e,t,n){s["k"](e.slice().reverse(),(function(e){s["k"](e,(function(e){if(e.outEdges.length){var r=hH(e.outEdges,oH,n)/hH(e.outEdges,dH);if(isNaN(r)){var i=e.outEdges.length;r=i?hH(e.outEdges,sH,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-cH(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-cH(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function oH(e,t){return cH(e.node2,t)*e.getValue()}function sH(e,t){return cH(e.node2,t)}function lH(e,t){return cH(e.node1,t)*e.getValue()}function uH(e,t){return cH(e.node1,t)}function cH(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function dH(e){return e.getValue()}function hH(e,t,n){var r=0,i=e.length,a=-1;while(++a<i){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function fH(e,t,n){s["k"](e,(function(e){s["k"](e,(function(e){if(e.inEdges.length){var r=hH(e.inEdges,lH,n)/hH(e.inEdges,dH);if(isNaN(r)){var i=e.inEdges.length;r=i?hH(e.inEdges,uH,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-cH(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-cH(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function pH(e,t){var n="vertical"===t?"x":"y";s["k"](e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),s["k"](e,(function(e){var t=0,n=0;s["k"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),s["k"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function mH(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;s["k"](n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)})),s["k"](n,(function(t){var n=new pP({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))}))}r.length&&s["k"](r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function gH(e){e.registerChartView(WR),e.registerSeriesModel(GR),e.registerLayout(UR),e.registerVisual(mH),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var yH=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),l=a.get("type");"category"===o?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===l?(e.layout="vertical",n=a.getOrdinalMeta(),r=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c="horizontal"===e.layout?0:1,d=this._baseAxisDim=u[c],h=u[1-c],f=[i,a],p=f[c].get("type"),m=f[1-c].get("type"),g=e.data;if(g&&r){var y=[];s["k"](g,(function(e,t){var n;s["t"](e)?(n=e.slice(),e.unshift(t)):s["t"](e.value)?(n=s["m"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,y.push(n)})),e.data=y}var v=this.defaultValueDimensions,_=[{name:d,type:SM(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:SM(m),dimsDef:v.slice()}];return Ik(this,{coordDimensions:_,dimensionsCount:v.length+1,encodeDefaulter:s["h"](fd,_,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),vH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return a(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(kp);Object(s["K"])(vH,yH,!0);var _H=vH,bH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;r.diff(a).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=MH(t,r,e,o,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(Jl(n),SH(s,n,r,e)):n=MH(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Zg),xH=function(){function e(){}return e}(),wH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return a(t,e),t.prototype.getDefaultShape=function(){return new xH},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(Uo);function MH(e,t,n,r,i){var a=e.ends,o=new wH({shape:{points:i?TH(a,r,e):a}});return SH(e,o,t,n,i),o}function SH(e,t,n,i,a){var o=n.hostModel,s=r[a?"initProps":"updateProps"];s(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var l=n.getItemModel(i),u=l.getModel("emphasis");Pl(t,l),Al(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function TH(e,t,n){return s["H"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var kH=bH,LH=s["k"];function OH(e){var t=DH(e);LH(t,(function(e){var t=e.seriesModels;t.length&&(AH(e),LH(t,(function(t,n){IH(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function DH(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=s["r"](n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}function AH(e){var t,n=e.axis,r=e.seriesModels,i=r.length,a=e.boxWidthList=[],o=e.boxOffsetList=[],l=[];if("category"===n.type)t=n.getBandWidth();else{var u=0;LH(r,(function(e){u=Math.max(u,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/u}LH(r,(function(e){var n=e.get("boxWidth");s["t"](n)||(n=[n,n]),l.push([Hr(n[0],t)||0,Hr(n[1],t)||0])}));var d=.8*t-2,h=d/i*.3,f=(d-h*(i-1))/i,p=f/2-d/2;LH(r,(function(e,t){o.push(p),p+=h+f,a.push(Math.min(Math.max(f,l[t][0]),l[t][1]))}))}function IH(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var d=0;d<i.count();d++){var h=i.get(u,d),f=_(h,c[2],d),p=_(h,c[0],d),m=_(h,c[1],d),g=_(h,c[3],d),y=_(h,c[4],d),v=[];b(v,m,!1),b(v,g,!0),v.push(p,m,y,g),x(v,p),x(v,y),x(v,f),i.setItemLayout(d,{initBaseline:f[s],ends:v})}function _(e,n,a){var l,u=i.get(n,a),c=[];return c[o]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[o]+=t),l}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function CH(e,t){t=t||{};for(var n=[],r=[],i=t.boundIQR,a="none"===i||0===i,o=0;o<e.length;o++){var l=zr(e[o].slice()),u=ti(l,.25),c=ti(l,.5),d=ti(l,.75),h=l[0],f=l[l.length-1],p=(null==i?1.5:i)*(d-u),m=a?h:Math.max(h,u-p),g=a?f:Math.min(f,d+p),y=t.itemNameFormatter,v=Object(s["w"])(y)?y({value:o}):Object(s["C"])(y)?y.replace("{value}",o+""):o+"";n.push([v,m,u,c,d,g]);for(var _=0;_<l.length;_++){var b=l[_];if(b<m||b>g){var x=[v,b];r.push(x)}}}return{boxData:n,outliers:r}}var EH={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==rd){var n="";0,Ed(n)}var r=CH(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function PH(e){e.registerSeriesModel(_H),e.registerChartView(kH),e.registerLayout(OH),e.registerTransform(EH)}var YH=["itemStyle","borderColor"],jH=["itemStyle","borderColor0"],NH=["itemStyle","borderColorDoji"],RH=["itemStyle","color"],HH=["itemStyle","color0"];function FH(e,t){return t.get(e>0?RH:HH)}function zH(e,t){return t.get(0===e?NH:e>0?YH:jH)}var BH={seriesType:"candlestick",plan:Dp(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(e,t){var n;while(null!=(n=e.next())){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=FH(i,r),a.stroke=zH(i,r)||a.fill;var o=t.ensureUniqueItemVisual(n,"style");Object(s["m"])(o,a)}}}}}},WH=BH,VH=["color","borderColor"],GH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Fg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&ZH(s,o))return;var l=XH(o,n,!0);Ul(l,{shape:{points:o.ends}},e,n),KH(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(o,l){var u=n.getItemGraphicEl(l);if(t.hasValue(o)){var c=t.getItemLayout(o);a&&ZH(s,c)?r.remove(u):(u?(Gl(u,{shape:{points:c.ends}},e,o),Jl(u)):u=XH(c,o),KH(u,t,o,i),r.add(u),t.setItemGraphicEl(o,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),eF(e,this.group);var t=e.get("clip",!0)?GS(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var a=r.getItemLayout(n),o=XH(a,n);KH(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){eF(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Zg),UH=function(){function e(){}return e}(),qH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return a(t,e),t.prototype.getDefaultShape=function(){return new UH},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Uo);function XH(e,t,n){var r=e.ends;return new qH({shape:{points:n?JH(r,e):r},z2:100})}function ZH(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function KH(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Pl(e,i);var a=t.getItemLayout(n).sign;s["k"](e.states,(function(e,t){var n=i.getModel(t),r=FH(a,n),o=zH(a,n)||r,s=e.style||(e.style={});r&&(s.fill=r),o&&(s.stroke=o)}));var o=i.getModel("emphasis");Al(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function JH(e,t){return s["H"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var $H=function(){function e(){}return e}(),QH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return a(t,e),t.prototype.getDefaultShape=function(){return new $H},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(Uo);function eF(e,t,n,r){var i=e.getData(),a=i.getLayout("largePoints"),o=new QH({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new QH({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new QH({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),tF(1,o,e,i),tF(-1,s,e,i),tF(0,l,e,i),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function tF(e,t,n,r){var i=zH(e,n)||FH(e,n),a=n.getModel("itemStyle").getItemStyle(VH);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var nF=GH,rF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return a(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(kp);Object(s["K"])(rF,yH,!0);var iF=rF;function aF(e){e&&s["t"](e.series)&&s["k"](e.series,(function(e){s["A"](e)&&"k"===e.type&&(e.type="candlestick")}))}var oF={seriesType:"candlestick",plan:Dp(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=lF(e,n),i=0,a=1,o=["x","y"],l=n.getDimensionIndex(n.mapDimension(o[i])),u=Object(s["H"])(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),c=u[0],d=u[1],h=u[2],f=u[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(l<0||u.length<4))return{progress:e.pipelineContext.large?m:p};function p(e,n){var o,s=n.getStore();while(null!=(o=e.next())){var u=s.get(l,o),p=s.get(c,o),m=s.get(d,o),g=s.get(h,o),y=s.get(f,o),v=Math.min(p,m),_=Math.max(p,m),b=L(v,u),x=L(_,u),w=L(g,u),M=L(y,u),S=[];O(S,x,0),O(S,b,1),S.push(A(M),A(x),A(w),A(b));var T=n.getItemModel(o),k=!!T.get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:sF(s,o,p,m,d,k),initBaseline:p>m?x[a]:b[a],ends:S,brushRect:D(g,y,u)})}function L(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function O(e,t,n){var a=t.slice(),o=t.slice();a[i]=Sg(a[i]+r/2,1,!1),o[i]=Sg(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function D(e,t,n){var o=L(e,n),s=L(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function A(e){return e[i]=Sg(e[i],1),e}}function m(n,r){var o,s,u=CS(4*n.count),p=0,m=[],g=[],y=r.getStore(),v=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(s=n.next())){var _=y.get(l,s),b=y.get(c,s),x=y.get(d,s),w=y.get(h,s),M=y.get(f,s);isNaN(_)||isNaN(w)||isNaN(M)?(u[p++]=NaN,p+=3):(u[p++]=sF(y,s,b,x,d,v),m[i]=_,m[a]=w,o=t.dataToPoint(m,null,g),u[p++]=o?o[0]:NaN,u[p++]=o?o[1]:NaN,m[a]=M,o=t.dataToPoint(m,null,g),u[p++]=o?o[1]:NaN)}r.setLayout("largePoints",u)}}};function sF(e,t,n,r,i,a){var o;return o=n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1,o}function lF(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Hr(Object(s["P"])(e.get("barMaxWidth"),i),i),o=Hr(Object(s["P"])(e.get("barMinWidth"),1),i),l=e.get("barWidth");return null!=l?Hr(l,i):Math.max(Math.min(i/2,a),o)}var uF=oF;function cF(e){e.registerChartView(nF),e.registerSeriesModel(iF),e.registerPreprocessor(aF),e.registerVisual(WH),e.registerLayout(uF)}function dF(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var hF=function(e){function t(t,n){var r=e.call(this)||this,i=new xS(t,n),a=new Sr;return r.add(i),r.add(a),r.updateData(t,n),r}return a(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=lv(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}dF(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}dF(n,e)},t.prototype.highlight=function(){dl(this)},t.prototype.downplay=function(){hl(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=uv(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=a.getModel("emphasis");i.setScale(s),i.traverse((function(e){e.setStyle("fill",u)}));var d=cv(e.getItemVisual(t,"symbolOffset"),s);d&&(i.x=d[0],i.y=d[1]);var h=e.getItemVisual(t,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get("showEffectOn"),f.rippleScale=a.get(["rippleEffect","scale"]),f.brushType=a.get(["rippleEffect","brushType"]),f.period=1e3*a.get(["rippleEffect","period"]),f.effectOffset=t/e.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=o,f.color=u,f.rippleEffectColor=a.get(["rippleEffect","color"]),f.rippleNumber=a.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===e&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,Al(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Sr),fF=hF,pF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this._symbolDraw=new kS(fF)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=hT("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=ye(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Zg),mF=pF,gF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pS(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(kp),yF=gF;function vF(e){e.registerChartView(mF),e.registerSeriesModel(yF),e.registerLayout(hT("effectScatter"))}var _F=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return a(t,e),t.prototype.createLine=function(e,t,n){return new NY(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),i=r.get("symbolSize"),a=r.get("symbol");s["t"](i)||(i=[i,i]);var o=e.getItemVisual(t,"style"),l=r.get("color")||o&&o.stroke,u=this.childAt(1);this._symbolType!==a&&(this.remove(u),u=lv(a,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(r.getItemStyle(["color"])),u.scaleX=i[0],u.scaleY=i[1],u.setColor(l),this._symbolType=a,this._symbolScale=i,this._updateEffectAnimation(e,r,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=1e3*t.get("period"),o=t.get("loop"),l=t.get("roundTrip"),u=t.get("constantSpeed"),c=s["O"](t.get("delay"),(function(t){return t/e.count()*a/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),u>0&&(a=this._getLineLength(r)/u*1e3),a!==this._period||o!==this._loop||l!==this._roundTrip){r.stopAnimation();var d=void 0;d=s["w"](c)?c(n):c,r.__t>0&&(d=-a*r.__t),this._animateSymbol(r,a,d,o,l)}this._period=a,this._loop=o,this._roundTrip=l}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){a._updateSymbolPosition(e)}));r||o.done((function(){a.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return w(e.__p1,e.__cp1)+w(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=Ot,l=Dt;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var u=e.__t<1?l(t[0],r[0],n[0],i):l(n[0],r[0],t[0],1-i),c=e.__t<1?l(t[1],r[1],n[1],i):l(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*w(o,a),1===i&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*w(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Sr),bF=_F,xF=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return a(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Em({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};Gl(i,a,r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=i.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=a,Al(this,o,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(Sr),wF=xF,MF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return a(t,e),t.prototype.createLine=function(e,t,n){return new wF(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=w(a,o),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a,o=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(o+1,i-1);for(a=s;a>=0;a--)if(r[a]<=t)break;a=Math.min(a,i-2)}else{for(a=o;a<i;a++)if(r[a]>t)break;a=Math.min(a-1,i-2)}var l=(t-r[a])/(r[a+1]-r[a]),u=n[a],c=n[a+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=e.__t<1?c[0]-u[0]:u[0]-c[0],h=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(bF),SF=MF,TF=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),kF=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TF},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var a=r[n++];if(a>0){e.moveTo(r[n++],r[n++]);for(var o=1;o<a;o++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(e.moveTo(s,l),i>0){var d=(s+u)/2-(l-c)*i,h=(l+c)/2-(u-s)*i;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],d=1;d<l;d++){var h=r[s++],f=r[s++];if(xo(u,c,h,f,a,e,t))return o}o++}else for(o=0,s=0;s<r.length;){u=r[s++],c=r[s++],h=r[s++],f=r[s++];if(i>0){var p=(u+h)/2-(c-f)*i,m=(c+f)/2-(h-u)*i;if(Mo(u,c,p,m,h,f,a,e,t))return o}else if(xo(u,c,h,f,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,i=1/0,a=-1/0,o=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),a=Math.max(l,a),i=Math.min(u,i),o=Math.max(u,o)}e=this._rect=new De(r,i,a,o)}return e},t}(Uo),LF=function(){function e(){this.group=new Sr}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new kF({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var a=Os(e);a.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),OF=LF,DF={seriesType:"lines",plan:Dp(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,h=[];for(c=i.start;c<i.end;c++){var f=e.getLineCoords(c,o);n&&(s[d++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(o[p],!1,h),s[d++]=h[0],s[d++]=h[1]}a.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var m=a.getItemModel(c),g=(f=e.getLineCoords(c,o),[]);if(n)for(var y=0;y<f;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=m.get(["lineStyle","curveness"]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(c,g)}}}}}},AF=DF,IF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&GS(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=AF.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),a=t.pipelineContext,o=a.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new OF:new WY(i?r?SF:wF:r?bF:NY),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Zg),CF=IF,EF="undefined"===typeof Uint32Array?Array:Uint32Array,PF="undefined"===typeof Float64Array?Array:Float64Array;function YF(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(s["H"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(s["J"])([n,e[0],e[1]])})))}var jF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(t,e),t.prototype.init=function(t){t.data=t.data||[],YF(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(YF(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(s["e"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(e);for(i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(s["z"])(e[0])){for(var n=e.length,r=new EF(n),i=new PF(n),a=0,o=0,l=0,u=0;u<n;){l++;var c=e[u++];r[o++]=a+t,r[o++]=c;for(var d=0;d<c;d++){var h=e[u++],f=e[u++];i[a++]=h,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new KM(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getItemModel(e),a=i.get("name");if(a)return a;var o=i.get("fromName"),s=i.get("toName"),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Kf("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(kp),NF=jF;function RF(e){return e instanceof Array||(e=[e,e]),e}var HF={seriesType:"lines",reset:function(e){var t=RF(e.get("symbol")),n=RF(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=RF(n.getShallow("symbol",!0)),i=RF(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},FF=HF;function zF(e){e.registerChartView(CF),e.registerSeriesModel(NF),e.registerLayout(AF),e.registerVisual(FF)}var BF=256,WF=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Qn["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var f=0;f<h;++f){var p=e[f],m=p[0],g=p[1],y=p[2],v=r(y);d.globalAlpha=v,d.drawImage(o,m-u,g-u)}if(!c.width||!c.height)return c;var _=d.getImageData(0,0,c.width,c.height),b=_.data,x=0,w=b.length,M=this.minOpacity,S=this.maxOpacity,T=S-M;while(x<w){v=b[x+3]/256;var k=4*Math.floor(v*(BF-1));if(v>0){var L=a(v)?s:l;v>0&&(v=v*T+M),b[x++]=L[k],b[x++]=L[k+1],b[x++]=L[k+2],b[x++]=L[k+3]*v*256}else x+=4}return d.putImageData(_,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Qn["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}(),VF=WF;function GF(e,t,n){var r=e[1]-e[0];t=s["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function UF(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function qF(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var XF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):qF(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(qF(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Fg(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a,o,s,l,u=e.coordinateSystem,c=US(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,a=d.getBandWidth()+.5,o=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var f=this.group,p=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),v=e.get(["itemStyle","borderRadius"]),_=ru(e),b=e.getModel("emphasis"),x=b.get("focus"),w=b.get("blurScope"),M=b.get("disabled"),S=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],T=n;T<r;T++){var k=void 0,L=p.getItemVisual(T,"style");if(c){var O=p.get(S[0],T),D=p.get(S[1],T);if(isNaN(p.get(S[2],T))||isNaN(O)||isNaN(D)||O<s[0]||O>s[1]||D<l[0]||D>l[1])continue;var A=u.dataToPoint([O,D]);k=new us({shape:{x:A[0]-a/2,y:A[1]-o/2,width:a,height:o},style:L})}else{if(isNaN(p.get(S[1],T)))continue;k=new us({z2:1,shape:u.dataToRect([p.get(S[0],T)]).contentShape,style:L})}if(p.hasItemOption){var I=p.getItemModel(T),C=I.getModel("emphasis");m=C.getModel("itemStyle").getItemStyle(),g=I.getModel(["blur","itemStyle"]).getItemStyle(),y=I.getModel(["select","itemStyle"]).getItemStyle(),v=I.get(["itemStyle","borderRadius"]),x=C.get("focus"),w=C.get("blurScope"),M=C.get("disabled"),_=ru(I)}k.shape.r=v;var E=e.getRawValue(T),P="-";E&&null!=E[2]&&(P=E[2]+""),nu(k,_,{labelFetcher:e,labelDataIndex:T,defaultOpacity:L.opacity,defaultText:P}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=g,k.ensureState("select").style=y,Al(k,x,w,M),k.incremental=i,i&&(k.states.emphasis.hoverLayer=!0),f.add(k),p.setItemGraphicEl(T,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new VF;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,r.getWidth()),f=Math.min(l.height+l.y,r.getHeight()),p=h-c,m=f-d,g=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],y=o.mapArray(g,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=c,i[1]-=d,i.push(r),i})),v=n.getExtent(),_="visualMap.continuous"===n.type?UF(v,n.option.range):GF(v,n.getPieceList(),n.option.selected);s.update(y,p,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},_);var b=new es({style:{width:p,height:m,x:c,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Zg),ZF=XF,KF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pS(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Xd.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(kp),JF=KF;function $F(e){e.registerChartView(ZF),e.registerSeriesModel(JF)}var QF=["itemStyle","borderWidth"],ez=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],tz=new tm,nz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),u=o.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:ez[+l],categoryDim:ez[1-+l]};i.diff(a).add((function(e){if(i.hasValue(e)){var t=pz(i,e),n=rz(i,e,t,c),a=yz(i,c,n);i.setItemGraphicEl(e,a),r.add(a),Mz(a,c,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=pz(i,e),s=rz(i,e,o,c),l=bz(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?vz(n,c,s):n=yz(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),Mz(n,c,s)}else r.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&_z(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?GS(e.coordinateSystem,!1,e):null;return d?r.setClipPath(d):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){_z(r,Os(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Zg);function rz(e,t,n,r){var i=e.getItemLayout(t),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};iz(n,a,i,r,h),oz(e,t,i,a,o,h.boundingLength,h.pxSign,c,r,h),sz(n,h.symbolScale,u,r,h);var f=h.symbolSize,p=cv(n.get("symbolOffset"),f);return lz(n,f,i,a,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function iz(e,t,n,r,i){var a,o=r.valueDim,l=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),d=1-+(n[o.wh]<=0);if(s["t"](l)){var h=[az(u,l[0])-c,az(u,l[1])-c];h[1]<h[0]&&h.reverse(),a=h[d]}else a=null!=l?az(u,l)-c:t?r.coordSysExtent[o.index][d]-c:n[o.wh];i.boundingLength=a,t&&(i.repeatCutLength=n[o.wh]);var f="x"===o.xy,p=u.inverse;i.pxSign=f&&!p||!f&&p?a>=0?1:-1:a>0?1:-1}function az(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function oz(e,t,n,r,i,a,o,l,u,c){var d,h=u.valueDim,f=u.categoryDim,p=Math.abs(n[f.wh]),m=e.getItemVisual(t,"symbolSize");d=s["t"](m)?m.slice():null==m?["100%","100%"]:[m,m],d[f.index]=Hr(d[f.index],p),d[h.index]=Hr(d[h.index],r?p:Math.abs(a)),c.symbolSize=d;var g=c.symbolScale=[d[0]/l,d[1]/l];g[h.index]*=(u.isHorizontal?-1:1)*o}function sz(e,t,n,r,i){var a=e.get(QF)||0;a&&(tz.attr({scaleX:t[0],scaleY:t[1],rotation:n}),tz.updateTransform(),a/=tz.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function lz(e,t,n,r,i,a,o,l,u,c,d,h){var f=d.categoryDim,p=d.valueDim,m=h.pxSign,g=Math.max(t[p.index]+l,0),y=g;if(r){var v=Math.abs(u),_=s["O"](e.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var x=Hr(_,t[p.index]),w=Math.max(g+2*x,0),M=b?0:2*x,S=ii(r),T=S?r:Sz((v+M)/w),k=v-T*g;x=k/2/(b?T:Math.max(T-1,1)),w=g+2*x,M=b?0:2*x,S||"fixed"===r||(T=c?Sz((Math.abs(c)+M)/w):0),y=T*w-M,h.repeatTimes=T,h.symbolMargin=x}var L=m*(y/2),O=h.pathPosition=[];O[f.index]=n[f.wh]/2,O[p.index]="start"===o?L:"end"===o?u-L:u/2,a&&(O[0]+=a[0],O[1]+=a[1]);var D=h.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var A=h.barRectShape=s["m"]({},n);A[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(O[p.index]+L)),A[f.wh]=n[f.wh];var I=h.clipShape={};I[f.xy]=-n[f.xy],I[f.wh]=d.ecSize[f.wh],I[p.xy]=0,I[p.wh]=n[p.wh]}function uz(e){var t=e.symbolPatternSize,n=lv(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function cz(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=a[t.valueDim.index]+o+2*n.symbolMargin;for(xz(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?wz(e,null,p(c),n,r):wz(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),c++}));c<u;c++){var h=uz(n);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var f=p(c);wz(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function dz(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?wz(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=uz(n),i.add(a),wz(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function hz(e,t,n){var r=s["m"]({},t.barRectShape),i=e.__pictorialBarRect;i?wz(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new us({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function fz(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,o=s["m"]({},n.clipShape),l=t.valueDim,u=n.animationModel,c=n.dataIndex;if(a)Gl(a,{shape:o},u,c);else{o[l.wh]=0,a=new us({shape:o}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var d={};d[l.wh]=n.clipShape[l.wh],r[i?"updateProps":"initProps"](a,{shape:d},u,c)}}}function pz(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=mz,n.isAnimationEnabled=gz,n}function mz(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function gz(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yz(e,t,n,r){var i=new Sr,a=new Sr;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?cz(i,t,n):dz(i,t,n),hz(i,n,r),fz(i,t,n,r),i.__pictorialShapeStr=bz(e,n),i.__pictorialSymbolMeta=n,i}function vz(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Gl(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?cz(e,t,n,!0):dz(e,t,n,!0),hz(e,n,!0),fz(e,t,n,!0)}function _z(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];xz(r,(function(e){a.push(e)})),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),s["k"](a,(function(e){Xl(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function bz(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function xz(e,t,n){s["k"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function wz(e,t,n,i,a,o){t&&e.attr(t),i.symbolClip&&!a?n&&e.attr(n):n&&r[a?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function Mz(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),l=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),d=a.get("focus"),h=a.get("blurScope"),f=a.get("scale");xz(e,(function(e){if(e instanceof es){var t=e.style;e.useStyle(s["m"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=o,f&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=u,c&&(e.cursor=c),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,nu(m,ru(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:yS(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Al(e,d,h,a.get("disabled"))}function Sz(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Tz=nz,kz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return a(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Eu(CT.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(CT),Lz=kz;function Oz(e){e.registerChartView(Tz),e.registerSeriesModel(Lz),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(s["h"])(kT,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LT("pictorialBar"))}var Dz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),l=r.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;function d(e){return e.name}a.x=0,a.y=u.y+c[0];var h=new bM(this._layersSeries||[],o,d,d),f=[];function p(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,d=[],h=[],p=o[n].indices,m=0;m<p.length;m++){var g=r.getItemLayout(p[m]),y=g.x,v=g.y0,_=g.y;d.push(y,v),h.push(y,v+_),u=r.getItemVisual(p[m],"style")}var b=r.getItemLayout(p[0]),x=e.getModel("label"),w=x.get("margin"),M=e.getModel("emphasis");if("add"===t){var S=f[n]=new Sr;c=new BS({shape:{points:d,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),a.add(S),e.isAnimationEnabled()&&c.setClipPath(Az(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),a.add(S),f[n]=S,Gl(c,{shape:{points:d,stackedOnPoints:h}},e),Jl(c)}nu(c,ru(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var T=c.getTextContent();T&&(T.x=b.x-w,T.y=b.y0+b.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Pl(c,e),Al(c,M.get("focus"),M.get("blurScope"),M.get("disabled"))}else a.remove(l[n])}h.add(Object(s["c"])(p,this,"add")).update(Object(s["c"])(p,this,"update")).remove(Object(s["c"])(p,this,"remove")).execute(),this._layersSeries=o,this._layers=f},t.type="themeRiver",t}(Zg);function Az(e,t,n){var r=new us({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ul(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var Iz=Dz,Cz=2,Ez=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ek(s["c"](this.getData,this),s["c"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=Wi(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,l=0;l<i[o].dataList.length;++l){var u=i[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",Ni).models[0],r=n.get("type"),i=s["n"](e.data,(function(e){return void 0!==e[2]})),a=this.fixData(i||[]),o=[],l=this.nameMap=s["f"](),u=0,c=0;c<a.length;++c)o.push(a[c][Cz]),l.get(a[c][Cz])||(l.set(a[c][Cz],u),u++);var d=JM(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:SM(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new KM(d,this);return h.initData(a),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),a=Wi(n,(function(t){return e.get("name",t)})),o=[];return a.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),o.push({name:n,indices:t})})),o},t.prototype.getAxisTooltipData=function(e,t,n){s["t"](e)||(e=e?[e]:[]);for(var r,i=this.getData(),a=this.getLayerSeries(),o=[],l=a.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,d=-1,h=a[u].indices.length,f=0;f<h;++f){var p=i.get(e[0],a[u].indices[f]),m=Math.abs(p-t);m<=c&&(r=p,c=m,d=a[u].indices[f])}o.push(d)}return{dataIndices:o,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getName(e),a=r.get(r.mapDimension("value"),e);return Kf("nameValue",{name:i,value:a})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(kp),Pz=Ez;function Yz(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get("boundaryGap"),o=n.getAxis();if(r.boundaryGap=a,"horizontal"===o.orient){a[0]=Hr(a[0],i.height),a[1]=Hr(a[1],i.height);var s=i.height-a[0]-a[1];jz(t,e,s)}else{a[0]=Hr(a[0],i.width),a[1]=Hr(a[1],i.width);var l=i.width-a[0]-a[1];jz(t,e,l)}t.setLayout("layoutInfo",r)}))}function jz(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),l=e.mapDimension("value"),u=s["H"](a,(function(t){return s["H"](t.indices,(function(t){var n=i.dataToPoint(e.get(o,t));return n[1]=e.get(l,t),n}))})),c=Nz(u),d=c.y0,h=n/c.max,f=a.length,p=a[0].indices.length,m=0;m<p;++m){r=d[m]*h,e.setItemLayout(a[0].indices[m],{layerIndex:0,x:u[0][m][0],y0:r,y:u[0][m][1]*h});for(var g=1;g<f;++g)r+=u[g-1][m][1]*h,e.setItemLayout(a[g].indices[m],{layerIndex:g,x:u[g][m][0],y0:r,y:u[g][m][1]*h})}}function Nz(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(a-r[u])/2;a=0;for(var c=0;c<n;++c){var d=r[c]+i[c];d>a&&(a=d)}return{y0:i,max:a}}function Rz(e){e.registerChartView(Iz),e.registerSeriesModel(Pz),e.registerLayout(Yz),e.registerProcessor(xk("themeRiver"))}var Hz=2,Fz=4,zz=function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=Hz,a.textConfig={inside:!0},Os(a).seriesIndex=n.seriesIndex;var o=new Ls({z2:Fz,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return a(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;Os(a).dataIndex=t.dataIndex;var o=t.getModel(),l=o.getModel("emphasis"),u=t.getLayout(),c=s["m"]({},u);c.label=null;var d=t.getVisual("style");d.lineJoin="bevel";var h=t.getVisual("decal");h&&(d.decal=Jv(h,i));var f=BT(o.getModel("itemStyle"),c,!0);s["m"](c,f),s["k"](Ns,(function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=BT(n,c);r&&(t.shape=r)})),e?(a.setShape(c),a.shape.r=u.r0,Ul(a,{shape:{r:u.r}},n,t.dataIndex)):(Gl(a,{shape:c},n),Jl(a)),a.useStyle(d),this._updateLabel(n);var p=o.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var m=l.get("focus"),g="relative"===m?s["e"](t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===m?t.getAncestorsIndices():"descendant"===m?t.getDescendantIndices():m;Al(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,l=Math.cos(o),u=Math.sin(o),c=this,d=c.getTextContent(),h=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=f&&Math.abs(a)<f);function m(e,t){var n=e.get(t);return null==n?r.get(t):n}d.ignore=!p,s["k"](Rs,(function(r){var f="normal"===r?n.getModel("label"):n.getModel([r,"label"]),p="normal"===r,g=p?d:d.ensureState(r),y=e.getFormattedLabel(h,r);p&&(y=y||t.node.name),g.style=iu(f,{},null,"normal"!==r,!0),y&&(g.style.text=y);var v=f.get("show");null==v||p||(g.ignore=!v);var _,b=m(f,"position"),x=p?c:c.states[r],w=x.style.fill;x.textConfig={outsideFill:"inherit"===f.get("color")?w:null,inside:"outside"!==b};var M=m(f,"distance")||0,S=m(f,"align"),T=m(f,"rotate"),k=.5*Math.PI,L=1.5*Math.PI,O=To("tangential"===T?Math.PI/2-o:o),D=O>k&&!Zr(O-k)&&O<L;"outside"===b?(_=i.r+M,S=D?"right":"left"):S&&"center"!==S?"left"===S?(_=i.r0+M,S=D?"right":"left"):"right"===S&&(_=i.r-M,S=D?"left":"right"):(_=a===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=m(f,"verticalAlign")||"middle",g.x=_*l+i.cx,g.y=_*u+i.cy;var A=0;"radial"===T?A=To(-o)+(D?Math.PI:0):"tangential"===T?A=To(Math.PI/2-o)+(D?Math.PI:0):s["z"](T)&&(A=T*Math.PI/180),g.rotation=To(A)})),d.dirtyStyle()},t}(wm),Bz=zz,Wz="sunburstRootToNode",Vz="sunburstHighlight",Gz="sunburstUnhighlight";function Uz(e){e.registerAction({type:Wz,update:"updateView"},(function(e,t){function n(t,n){var r=oE(e,[Wz],t);if(r){var i=t.getViewRoot();i&&(e.direction=lE(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:Vz,update:"none"},(function(e,t,n){function r(t){var n=oE(e,[Vz],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(s["m"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r),n.dispatchAction(Object(s["m"])(e,{type:"highlight"}))})),e.registerAction({type:Gz,update:"updateView"},(function(e,t,n){e=Object(s["m"])({},e),n.dispatchAction(Object(s["m"])(e,{type:"downplay"}))}))}var qz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,l=e.getViewRoot(),u=this.group,c=e.get("renderLabelForZeroData"),d=[];l.eachNode((function(e){d.push(e)}));var h=this._oldChildren||[];function f(e,t){function n(e){return e.getId()}function r(n,r){var i=null==n?null:e[n],a=null==r?null:t[r];p(i,a)}0===e.length&&0===t.length||new bM(t,e,n,n).add(r).update(r).remove(s["h"](r,null)).execute()}function p(r,i){if(c||!r||r.getValue()||(r=null),r!==o&&i!==o)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):m(i);else if(r){var s=new Bz(r,e,t,n);u.add(s),a.setItemGraphicEl(r.dataIndex,s)}}function m(e){e&&e.piece&&(u.remove(e.piece),e.piece=null)}function g(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new Bz(r,e,t,n),u.add(i.virtualPiece)),a.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(a.parentNode)}))):i.virtualPiece&&(u.remove(i.virtualPiece),i.virtualPiece=null)}f(d,h),g(o,l),this._initEvents(),this._oldChildren=d},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";Pc(o,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Wz,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,a=e[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},t.type="sunburst",t}(Zg),Xz=qz,Zz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Kz(n);var r=this._levelModels=s["H"](e.levels||[],(function(e){return new Ou(e,this,t)}),this),i=aE.createTree(n,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),a=r[n.depth];return a&&(e.parentModel=a),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=uE(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){xE(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(kp);function Kz(e){var t=0;s["k"](e.children,(function(e){Kz(e);var n=e.value;s["t"](n)&&(n=n[0]),t+=n}));var n=e.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["t"](e.value)?e.value[0]=n:e.value=n}var Jz=Zz,$z=Math.PI/180;function Qz(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");s["t"](r)||(r=[0,r]),s["t"](t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),l=Hr(t[0],i),u=Hr(t[1],a),c=Hr(r[0],o/2),d=Hr(r[1],o/2),h=-e.get("startAngle")*$z,f=e.get("minAngle")*$z,p=e.getData().tree.root,m=e.getViewRoot(),g=m.depth,y=e.get("sort");null!=y&&eB(m,y);var v=0;s["k"](m.children,(function(e){!isNaN(e.getValue())&&v++}));var _=m.getValue(),b=Math.PI/(_||v)*2,x=m.depth>0,w=m.height-(x?-1:1),M=(d-c)/(w||1),S=e.get("clockwise"),T=e.get("stillShowZeroSum"),k=S?1:-1,L=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=0===_&&T?b:i*b;a<f&&(a=f),r=n+k*a;var d=t.depth-g-(x?-1:1),h=c+M*d,m=c+M*(d+1),y=e.getLevelModel(t);if(y){var v=y.get("r0",!0),w=y.get("r",!0),O=y.get("radius",!0);null!=O&&(v=O[0],w=O[1]),null!=v&&(h=Hr(v,o/2)),null!=w&&(m=Hr(w,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:S,cx:l,cy:u,r0:h,r:m})}if(t.children&&t.children.length){var D=0;s["k"](t.children,(function(e){D+=L(e,n+D)}))}return r-n}};if(x){var O=c,D=c+M,A=2*Math.PI;p.setLayout({angle:A,startAngle:h,endAngle:h+A,clockwise:S,cx:l,cy:u,r0:O,r:D})}L(m,h)}))}function eB(e,t){var n=e.children||[];e.children=tB(n,t),n.length&&s["k"](e.children,(function(e){eB(e,t)}))}function tB(e,t){if(s["w"](t)){var n=s["H"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),s["H"](n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}function nB(e){var t={};function n(e,n,r){var i=e;while(i&&i.depth>1)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(s["C"])(a)&&(a=Object(Ht["c"])(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(i,e,r.root.height));var l=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(s["m"])(l,o)}))}))}function rB(e){e.registerChartView(Xz),e.registerSeriesModel(Jz),e.registerLayout(Object(s["h"])(Qz,"sunburst")),e.registerProcessor(Object(s["h"])(xk,"sunburst")),e.registerVisual(nB),Uz(e)}var iB={color:"fill",borderColor:"stroke"},aB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},oB=Ei(),sB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return pS(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=oB(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(kp),lB=sB;function uB(e,t){return t=t||[0,0],s["H"](["x","y"],(function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))}),this)}function cB(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:s["c"](uB,e)}}}function dB(e,t){return t=t||[0,0],s["H"]([0,1],(function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function hB(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:s["c"](dB,e)}}}function fB(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function pB(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(s["c"])(fB,e)}}}function mB(e,t){return t=t||[0,0],s["H"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",a=this[i](),o=t[r],s=e[r]/2,l="category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function gB(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:s["c"](mB,e)}}}function yB(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function vB(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(s["q"])(e,"text")))}function _B(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},Object(s["q"])(o,"text")&&(a.text=o.text),Object(s["q"])(o,"rich")&&(a.rich=o.rich),Object(s["q"])(o,"textFill")&&(a.fill=o.textFill),Object(s["q"])(o,"textStroke")&&(a.stroke=o.textStroke),Object(s["q"])(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Object(s["q"])(o,"fontSize")&&(a.fontSize=o.fontSize),Object(s["q"])(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Object(s["q"])(o,"fontWeight")&&(a.fontWeight=o.fontWeight),i={type:"text",style:a,silent:!0},r={};var l=Object(s["q"])(o,"textPosition");n?r.position=l?o.textPosition:"inside":l&&(r.position=o.textPosition),Object(s["q"])(o,"textPosition")&&(r.position=o.textPosition),Object(s["q"])(o,"textOffset")&&(r.offset=o.textOffset),Object(s["q"])(o,"textRotation")&&(r.rotation=o.textRotation),Object(s["q"])(o,"textDistance")&&(r.distance=o.textDistance)}return bB(a,e),Object(s["k"])(a.rich,(function(e){bB(e,e)})),{textConfig:r,textContent:i}}function bB(e,t){t&&(t.font=t.textFont||t.font,Object(s["q"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(s["q"])(t,"textAlign")&&(e.align=t.textAlign),Object(s["q"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(s["q"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(s["q"])(t,"textWidth")&&(e.width=t.textWidth),Object(s["q"])(t,"textHeight")&&(e.height=t.textHeight),Object(s["q"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(s["q"])(t,"textPadding")&&(e.padding=t.textPadding),Object(s["q"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(s["q"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(s["q"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(s["q"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(s["q"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(s["q"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(s["q"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function xB(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,a=e.fill||"#000";wB(r,t);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(s["k"])(t.rich,(function(e){wB(e,e)})),r}function wB(e,t){t&&(Object(s["q"])(t,"fill")&&(e.textFill=t.fill),Object(s["q"])(t,"stroke")&&(e.textStroke=t.fill),Object(s["q"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(s["q"])(t,"font")&&(e.font=t.font),Object(s["q"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(s["q"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(s["q"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(s["q"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(s["q"])(t,"align")&&(e.textAlign=t.align),Object(s["q"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(s["q"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(s["q"])(t,"width")&&(e.textWidth=t.width),Object(s["q"])(t,"height")&&(e.textHeight=t.height),Object(s["q"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(s["q"])(t,"padding")&&(e.textPadding=t.padding),Object(s["q"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(s["q"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(s["q"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(s["q"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(s["q"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(s["q"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(s["q"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(s["q"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(s["q"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(s["q"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(s["q"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var MB={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},SB=Object(s["F"])(MB),TB=(Object(s["N"])(Zn,(function(e,t){return e[t]=1,e}),{}),Zn.join(", "),["","style","shape","extra"]),kB=Ei();function LB(e,t,n,r,i){var a=e+"Animation",o=Wl(e,r,i)||{},l=kB(t).userDuring;return o.duration>0&&(o.during=l?Object(s["c"])(NB,{el:t,userDuring:l}):null,o.setToFinal=!0,o.scope=e),Object(s["m"])(o,n[a]),o}function OB(e,t,n,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,l=n.isAnimationEnabled(),u=kB(e),c=t.style;u.userDuring=t.during;var d={},h={};if(zB(e,t,h),HB("shape",t,h),HB("extra",t,h),!a&&l&&(FB(e,t,d),RB("shape",e,t,d),RB("extra",e,t,d),BB(e,t,c,d)),h.style=c,CB(e,h,o),PB(e,t),l)if(a){var f={};Object(s["k"])(TB,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),Object(s["m"])(e?f[e]:f,n.enterFrom))}));var p=LB("enter",e,t,n,i);p.duration>0&&e.animateFrom(f,p)}else EB(e,t,i||0,n,d);DB(e,t),c?e.dirty():e.markRedraw()}function DB(e,t){for(var n=kB(e).leaveToProps,r=0;r<TB.length;r++){var i=TB[r],a=i?t[i]:t;a&&a.leaveTo&&(n||(n=kB(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(s["m"])(i?n[i]:n,a.leaveTo))}}function AB(e,t,n,r){if(e){var i=e.parent,a=kB(e).leaveToProps;if(a){var o=LB("update",e,t,n,0);o.done=function(){i.remove(e),r&&r()},e.animateTo(a,o)}else i.remove(e),r&&r()}}function IB(e){return"all"===e}function CB(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];"style"===o.targetName&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function EB(e,t,n,r,i){if(i){var a=LB("update",e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function PB(e,t){Object(s["q"])(t,"silent")&&(e.silent=t.silent),Object(s["q"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ra&&Object(s["q"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof Uo&&Object(s["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var YB={},jB={setTransform:function(e,t){return YB.el[e]=t,this},getTransform:function(e){return YB.el[e]},setShape:function(e,t){var n=YB.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=YB.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=YB.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=YB.el.style;if(t)return t[e]},setExtra:function(e,t){var n=YB.el.extra||(YB.el.extra={});return n[e]=t,this},getExtra:function(e){var t=YB.el.extra;if(t)return t[e]}};function NB(){var e=this,t=e.el;if(t){var n=kB(t).userDuring,r=e.userDuring;n===r?(YB.el=t,r(jB)):e.el=e.userDuring=null}}function RB(e,t,n,r){var i=n[e];if(i){var a,o=t[e];if(o){var l=n.transition,u=i.transition;if(u)if(!a&&(a=r[e]={}),IB(u))Object(s["m"])(a,o);else for(var c=di(u),d=0;d<c.length;d++){var h=c[d],f=o[h];a[h]=f}else if(IB(l)||Object(s["r"])(l,e)>=0){!a&&(a=r[e]={});var p=Object(s["F"])(o);for(d=0;d<p.length;d++){h=p[d],f=o[h];WB(i[h],f)&&(a[h]=f)}}}}}function HB(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Object(s["F"])(r),o=0;o<a.length;o++){var l=a[o];i[l]=Zt(r[l])}}function FB(e,t,n){for(var r=t.transition,i=IB(r)?Zn:di(r||[]),a=0;a<i.length;a++){var o=i[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=e[o];0,n[o]=s}}}function zB(e,t,n){for(var r=0;r<SB.length;r++){var i=SB[r],a=MB[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(r=0;r<Zn.length;r++){var s=Zn[r];null!=t[s]&&(n[s]=t[s])}}function BB(e,t,n,r){if(n){var i,a=e.style;if(a){var o=n.transition,l=t.transition;if(o&&!IB(o)){var u=di(o);!i&&(i=r.style={});for(var c=0;c<u.length;c++){var d=u[c],h=a[d];i[d]=h}}else if(e.getAnimationStyleProps&&(IB(l)||IB(o)||Object(s["r"])(l,"style")>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!i&&(i=r.style={});var m=Object(s["F"])(n);for(c=0;c<m.length;c++){d=m[c];if(p[d]){h=a[d];i[d]=h}}}}}}}function WB(e,t){return Object(s["u"])(e)?e!==t:null!=e&&isFinite(e)}var VB=Ei(),GB=["percent","easing","shape","style","extra"];function UB(e){e.stopAnimation("keyframe"),e.attr(VB(e))}function qB(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(s["t"])(t))Object(s["k"])(t,(function(t){qB(e,t,n)}));else{var r=t.keyframes,i=t.duration;if(n&&null==i){var a=Wl("enter",n,0);i=a&&a.duration}if(r&&i){var o=VB(e);Object(s["k"])(TB,(function(n){if(!n||e[n]){var a;r.sort((function(e,t){return e.percent-t.percent})),Object(s["k"])(r,(function(r){var l=e.animators,u=n?r[n]:r;if(u){var c=Object(s["F"])(u);if(n||(c=Object(s["n"])(c,(function(e){return Object(s["r"])(GB,e)<0}))),c.length){a||(a=e.animate(n,t.loop,!0),a.scope="keyframe");for(var d=0;d<l.length;d++)l[d]!==a&&l[d].targetName===a.targetName&&l[d].stopTracks(c);n&&(o[n]=o[n]||{});var h=n?o[n]:o;Object(s["k"])(c,(function(t){h[t]=((n?e[n]:e)||{})[t]})),a.whenWithKeys(i*r.percent,u,c,r.easing)}}})),a&&a.delay(t.delay||0).duration(i).start(t.easing)}}))}}}var XB="emphasis",ZB="normal",KB="blur",JB="select",$B=[ZB,XB,KB,JB],QB={normal:["itemStyle"],emphasis:[XB,"itemStyle"],blur:[KB,"itemStyle"],select:[JB,"itemStyle"]},eW={normal:["label"],emphasis:[XB,"label"],blur:[KB,"label"],select:[JB,"label"]},tW=["x","y"],nW="e\0\0",rW={normal:{},emphasis:{},blur:{},select:{}},iW={cartesian2d:cB,geo:hB,single:pB,polar:gB,calendar:yB};function aW(e){return e instanceof Uo}function oW(e){return e instanceof Ra}function sW(e,t){t.copyTransform(e),oW(t)&&oW(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,aW(t)&&aW(e)&&t.setShape(e.shape))}var lW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=mW(e,a,t,n);i||o.removeAll(),a.diff(i).add((function(t){yW(n,null,t,s(t,r),e,o,a)})).remove((function(t){var n=i.getItemGraphicEl(t);n&&AB(n,oB(n).option,e)})).update((function(t,l){var u=i.getItemGraphicEl(l);yW(n,u,t,s(t,r),e,o,a)})).execute();var l=e.get("clip",!0)?GS(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=mW(t,a,n,r),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=yW(null,null,u,o(u,i),t,this.group,a);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){Fg(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},t.type="custom",t}(Zg),uW=lW;function cW(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=IW(r);t=yg(a,null,i,r.layout||"center"),oB(t).customPathData=a}else if("image"===n)t=new es({}),oB(t).customImagePath=e.style.image;else if("text"===n)t=new Ls({});else if("group"===n)t=new Sr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=gg(n);if(!o){var s="";0,Ed(s)}t=new o}return oB(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function dW(e,t,n,r,i,a,o){UB(t);var l=i&&i.normal.cfg;l&&t.setTextConfig(l),r&&null==r.transition&&(r.transition=tW);var u=r&&r.style;if(u){if("text"===t.type){var c=u;Object(s["q"])(c,"textFill")&&(c.fill=c.textFill),Object(s["q"])(c,"textStroke")&&(c.stroke=c.textStroke)}var d=void 0,h=aW(t)?u.decal:null;e&&h&&(h.dirty=!0,d=Jv(h,e)),u.__decalPattern=d}if(oW(t)&&u){d=u.__decalPattern;d&&(u.decal=d)}OB(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),qB(t,r.keyframeAnimation,a)}function hW(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(!1===r){var l=a.getState(e);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),ll(a)}}function fW(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;null!=o&&(r.z2=o||0);for(var s=0;s<$B.length;s++)pW(r,t,$B[s])}}function pW(e,t,n){var r,i=n===ZB,a=i?t:MW(t,n),o=a?a.z2:null;null!=o&&(r=i?e:e.ensureState(n),r.z2=o||0)}function mW(e,t,n,r){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):iW[a.type](a));for(var l,u,c=Object(s["i"])({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:M,ordinalRawValue:w,styleEmphasis:S,visual:L,barLayout:O,currentSeriesIndices:D,font:A},o.api||{}),d={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:gW(e.getData())},h={},f={},p={},m={},g=0;g<$B.length;g++){var y=$B[g];p[y]=e.getModel(QB[y]),m[y]=e.getModel(eW[y])}function v(e){return e===l?u||(u=t.getItemModel(e)):t.getItemModel(e)}function _(e,n){return t.hasItemOption?e===l?h[n]||(h[n]=v(e).getModel(QB[n])):v(e).getModel(QB[n]):p[n]}function b(e,n){return t.hasItemOption?e===l?f[n]||(f[n]=v(e).getModel(eW[n])):v(e).getModel(eW[n]):m[n]}return function(e,n){return l=e,u=null,h={},f={},i&&i(Object(s["i"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},d),c)};function x(e,n){return null==n&&(n=l),t.getStore().get(t.getDimensionIndex(e||0),n)}function w(e,n){null==n&&(n=l),e=e||0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function M(n,r){null==r&&(r=l);var i=t.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,u=_(r,ZB).getItemStyle();null!=a&&(u.fill=a),null!=o&&(u.opacity=o);var c={inheritColor:Object(s["C"])(a)?a:"#000"},d=b(r,ZB),h=iu(d,null,c,!1,!0);h.text=d.getShallow("show")?Object(s["P"])(e.getFormattedLabel(r,ZB),yS(t,r)):null;var f=au(d,c,!1);return k(n,u),u=xB(u,h,f),n&&T(u,n),u.legacy=!0,u}function S(n,r){null==r&&(r=l);var i=_(r,XB).getItemStyle(),a=b(r,XB),o=iu(a,null,null,!0,!0);o.text=a.getShallow("show")?Object(s["Q"])(e.getFormattedLabel(r,XB),e.getFormattedLabel(r,ZB),yS(t,r)):null;var u=au(a,null,!0);return k(n,i),i=xB(i,o,u),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Object(s["q"])(t,n)&&(e[n]=t[n])}function k(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function L(e,n){if(null==n&&(n=l),Object(s["q"])(iB,e)){var r=t.getItemVisual(n,"style");return r?r[iB[e]]:null}if(Object(s["q"])(aB,e))return t.getItemVisual(n,e)}function O(e){if("cartesian2d"===a.type){var t=a.getBaseAxis();return bT(Object(s["i"])({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function A(e){return hu(e,n)}}function gW(e){var t={};return Object(s["k"])(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function yW(e,t,n,r,i,a,o){if(r){var s=vW(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Al(s,r.focus,r.blurScope,r.emphasisDisabled),s}a.remove(t)}function vW(e,t,n,r,i,a){var o=-1,l=t;t&&_W(t,r,i)&&(o=Object(s["r"])(a.childrenRef(),t),t=null);var u=!t,c=t;c?c.clearStates():(c=cW(r),l&&sW(l,c)),!1===r.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),rW.normal.cfg=rW.normal.conOpt=rW.emphasis.cfg=rW.emphasis.conOpt=rW.blur.cfg=rW.blur.conOpt=rW.select.cfg=rW.select.conOpt=null,rW.isLegacy=!1,xW(c,n,r,i,u,rW),bW(c,n,r,i,u),dW(e,c,n,r,rW,i,u),Object(s["q"])(r,"info")&&(oB(c).info=r.info);for(var d=0;d<$B.length;d++){var h=$B[d];if(h!==ZB){var f=MW(r,h),p=SW(r,f,h);hW(h,c,f,p,rW)}}return fW(c,r,i),"group"===r.type&&TW(e,c,n,r,i),o>=0?a.replaceAt(c,o):a.add(c),c}function _W(e,t,n){var r=oB(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&CW(a)&&IW(a)!==r.customPathData||"image"===i&&Object(s["q"])(o,"image")&&o.image!==r.customImagePath}function bW(e,t,n,r,i){var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&_W(o,a,r)&&(o=null),o||(o=cW(a),e.setClipPath(o)),dW(null,o,t,a,null,r,i)}}function xW(e,t,n,r,i,a){if(!e.isGroup){wW(n,null,a),wW(n,XB,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===o)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=cW(o),e.setTextContent(c)),dW(null,c,t,o,null,r,i);for(var d=o&&o.style,h=0;h<$B.length;h++){var f=$B[h];if(f!==ZB){var p=a[f].conOpt;hW(f,c,p,SW(o,p,f),null)}}d?c.dirty():c.markRedraw()}}}}function wW(e,t,n){var r=t?MW(e,t):e,i=t?SW(e,r,XB):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?MW(s,t):s:null;if(i&&(n.isLegacy||vB(i,a,!!o,!!l))){n.isLegacy=!0;var u=_B(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=l}function MW(e,t){return t?e?e[t]:null:e}function SW(e,t,n){var r=t&&t.style;return null==r&&n===XB&&e&&(r=e.styleEmphasis),r}function TW(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(o||l||u)if(l)LW({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});else{u&&t.removeAll();for(var c=0;c<o;c++){var d=a[c],h=t.childAt(c);d?(null==d.ignore&&(d.ignore=!1),vW(e,h,n,d,i,t)):h.ignore=!0}for(var f=t.childCount()-1;f>=c;f--){var p=t.childAt(f);kW(t,p,i)}}}function kW(e,t,n){t&&AB(t,oB(e).option,n)}function LW(e){new bM(e.oldChildren,e.newChildren,OW,OW,e).add(DW).update(DW).remove(AW).execute()}function OW(e,t){var n=e&&e.name;return null!=n?n:nW+t}function DW(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;vW(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function AW(e){var t=this.context,n=t.oldChildren[e];n&&AB(n,oB(n).option,t.seriesModel)}function IW(e){return e&&(e.pathData||e.d)}function CW(e){return e&&(Object(s["q"])(e,"pathData")||Object(s["q"])(e,"d"))}function EW(e){e.registerChartView(uW),e.registerSeriesModel(lB)}var PW=Ei(),YW=s["d"],jW=s["c"],NW=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,l=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(l&&l.hide());o&&o.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(o){var h=s["h"](RW,t,d);this.updatePointerEl(o,u,h),this.updateLabelEl(o,u,h,t)}else o=this._group=new Sr,this.createPointerEl(o,u,e,t),this.createLabelEl(o,u,e,t),n.getZr().add(o);BW(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,a=t.get("snap");if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=bD(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=PW(e).pointerEl=new r[a.type](YW(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=PW(e).labelEl=new Ls(YW(t.label));e.add(i),FW(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=PW(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=PW(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),FW(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Eg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){re(e.event)},onmousedown:jW(this._onHandleDragMove,this,0,0),drift:jW(this._onHandleDragMove,this),ondragend:jW(this._onHandleDragEnd,this)}),r.add(i)),BW(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");s["t"](l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ey(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){RW(this._axisPointerModel,!t&&this._moveAnimation,this._handle,zW(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(zW(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(zW(r)),PW(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),ty(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function RW(e,t,n,r){HW(PW(n).lastProp,r)||(PW(n).lastProp=r,t?Gl(n,r,e):(n.stopAnimation(),n.attr(r)))}function HW(e,t){if(s["A"](e)&&s["A"](t)){var n=!0;return s["k"](t,(function(t,r){n=n&&HW(e[r],t)})),!!n}return e===t}function FW(e,t){e[t.get(["label","show"])?"show":"hide"]()}function zW(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function BW(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var WW=NW;function VW(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function GW(e,t,n,r,i){var a=n.get("value"),o=qW(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=kc(s.get("padding")||0),u=s.getFont(),c=rr(o,u),d=i.position,h=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=i.align;"right"===p&&(d[0]-=h),"center"===p&&(d[0]-=h/2);var m=i.verticalAlign;"bottom"===m&&(d[1]-=f),"middle"===m&&(d[1]-=f/2),UW(d,h,f,r);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:iu(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function UW(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function qW(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var l={value:sO(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};s["k"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&l.seriesData.push(i)})),s["C"](o)?a=o.replace("{value}",a):s["w"](o)&&(a=o(l))}return a}function XW(e,t,n){var r=ue();return pe(r,r,n.rotation),fe(r,r,n.position),kg([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function ZW(e,t,n,r,i,a){var o=hD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),GW(t,r,i,a,{position:XW(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function KW(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function JW(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function $W(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}var QW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=eV(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var c=VW(r),d=tV[s](a,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=WO(o.model,n);ZW(t,e,h,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=WO(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=XW(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=eV(a,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[l]}},t}(WW);function eV(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var tV={line:function(e,t,n){var r=KW([t,n[0]],[t,n[1]],nV(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:JW([t-r/2,n[0]],[r,i],nV(e))}}};function nV(e){return"x"===e.dim?0:1}var rV=QW,iV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Jc),aV=iV,oV=Ei(),sV=s["k"];function lV(e,t,n){if(!o["a"].node){var r=t.getZr();oV(r).records||(oV(r).records={}),uV(r,t);var i=oV(r).records[e]||(oV(r).records[e]={});i.handler=n}}function uV(e,t){function n(n,r){e.on(n,(function(n){var i=fV(t);sV(oV(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),cV(i.pendings,t)}))}oV(e).initialized||(oV(e).initialized=!0,n("click",s["h"](hV,"click")),n("mousemove",s["h"](hV,"mousemove")),n("globalout",dV))}function cV(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function dV(e,t,n){e.handler("leave",null,n)}function hV(e,t,n,r){t.handler(e,n,r)}function fV(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function pV(e,t){if(!o["a"].node){var n=t.getZr(),r=(oV(n).records||{})[e];r&&(oV(n).records[e]=null)}}var mV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";lV("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){pV("axisPointer",t)},t.prototype.dispose=function(e,t){pV("axisPointer",t)},t.type="axisPointer",t}(Op),gV=mV;function yV(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Ci(a,e);if(null==o||o<0||s["t"](o))return{point:[]};var l=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var c=u.getBaseAxis(),d=u.getOtherAxis(c),h=d.dim,f=c.dim,p="x"===h||"radius"===h?1:0,m=a.mapDimension(f),g=[];g[p]=a.get(m,o),g[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(a.getValues(s["H"](u.dimensions,(function(e){return a.mapDimension(e)})),o))||[];else if(l){var y=l.getBoundingRect().clone();y.applyTransform(l.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:l}}var vV=Ei();function _V(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Object(s["c"])(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){DV(i)&&(i=yV({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=DV(i),c=a.axesInfo,d=l.axesInfo,h="leave"===r||DV(i),f={},p={},m={list:[],map:{}},g={showPointer:Object(s["h"])(wV,p),showTooltip:Object(s["h"])(MV,m)};Object(s["k"])(l.coordSysMap,(function(e,t){var n=u||e.containPoint(i);Object(s["k"])(l.coordSysAxesInfo[t],(function(e,t){var r=e.axis,a=LV(c,e);if(!h&&n&&(!c||a)){var o=a&&a.value;null!=o||u||(o=r.pointToData(i)),null!=o&&bV(e,o,g,!1,f)}}))}));var y={};return Object(s["k"])(d,(function(e,t){var n=e.linkGroup;n&&!p[t]&&Object(s["k"])(n.axesInfo,(function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,OV(t),OV(e)))),y[e.key]=a}}))})),Object(s["k"])(y,(function(e,t){bV(d[t],e,g,!0,f)})),SV(p,d,f),TV(m,i,e,o),kV(d,o,n),f}}function bV(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var o=xV(t,e),l=o.payloadBatch,u=o.snapToValue;l[0]&&null==i.seriesIndex&&Object(s["m"])(i,l[0]),!r&&e.snap&&a.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,l),n.showTooltip(e,o,u)}else n.showPointer(e,t)}function xV(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,l=-1;return Object(s["k"])(t.seriesModels,(function(t,u){var c,d,h=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(h,e,n);d=f.dataIndices,c=f.nestestValue}else{if(d=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!d.length)return;c=t.getData().get(h[0],d[0])}if(null!=c&&isFinite(c)){var p=e-c,m=Math.abs(p);m<=o&&((m<o||p>=0&&l<0)&&(o=m,l=p,i=c,a.length=0),Object(s["k"])(d,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:i}}function wV(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function MV(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=MD(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function SV(e,t,n){var r=n.axesInfo=[];Object(s["k"])(t,(function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status="show"),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function TV(e,t,n,r){if(!DV(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function kV(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=vV(r)[i]||{},o=vV(r)[i]={};Object(s["k"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(s["k"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var l=[],u=[];Object(s["k"])(a,(function(e,t){!o[t]&&u.push(e)})),Object(s["k"])(o,(function(e,t){!a[t]&&l.push(e)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function LV(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function OV(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function DV(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function AV(e){kD.registerAxisPointerClass("CartesianAxisPointer",rV),e.registerComponentModel(aV),e.registerComponentView(gV),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(s["t"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fD(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_V)}function IV(e){Nb(RD),Nb(AV)}var CV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a),l=s.getExtent(),u=a.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var d=VW(r),h=PV[c](a,o,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var f=r.get(["label","margin"]),p=EV(t,n,r,o,f);GW(e,n,r,i,p)},t}(WW);function EV(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===a.dim){var h=ue();pe(h,h,s),fe(h,h,[r.cx,r.cy]),l=kg([o,-i],h);var f=t.getModel("axisLabel").get("rotate")||0,p=hD.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var m=d[1];l=r.coordToPoint([m+i,o]);var g=r.cx,y=r.cy;u=Math.abs(l[0]-g)/m<.3?"center":l[0]>g?"left":"right",c=Math.abs(l[1]-y)/m<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var PV={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:KW(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:$W(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:$W(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},YV=CV,jV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Jc),NV=jV,RV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ni).models[0]},t.type="polarAxis",t}(Jc);s["K"](RV,Kk);var HV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="angleAxis",t}(RV),FV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="radiusAxis",t}(RV),zV=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(FO);zV.prototype.dataToRadius=FO.prototype.dataToCoord,zV.prototype.radiusToData=FO.prototype.coordToData;var BV=zV,WV=Ei(),VV=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),l=rr(null==a?"":a+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=WV(e.model),f=h.lastAutoInterval,p=h.lastTickCount;return null!=f&&null!=p&&Math.abs(f-d)<=1&&Math.abs(p-i)<=1&&f>d?d=f:(h.lastTickCount=i,h.lastAutoInterval=d),d},t}(FO);VV.prototype.dataToAngle=FO.prototype.dataToCoord,VV.prototype.angleToData=FO.prototype.coordToData;var GV=VV,UV=["radius","angle"],qV=function(){function e(e){this.dimensions=UV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new BV,this._angleAxis=new GV,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<a?1:-1;while(l<a||l>o)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,o=this.r,s=this.r0;return o!==s&&i-a<=o*o&&i+a>=s*s}}},e.prototype.convertToPixel=function(e,t,n){var r=XV(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=XV(t);return r===this?this.pointToData(n):null},e}();function XV(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var ZV=qV;function KV(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=Hr(r[0],i),e.cy=Hr(r[1],a);var o=e.getRadiusAxis(),l=Math.min(i,a)/2,u=t.get("radius");null==u?u=[0,"100%"]:s["t"](u)||(u=[0,u]);var c=[Hr(u[0],l),Hr(u[1],l)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function JV(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();s["k"](hO(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),s["k"](hO(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),rO(r.scale,r.model),rO(i.scale,i.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function $V(e){return"angleAxis"===e.mainType}function QV(e,t){var n;if(e.type=t.get("type"),e.scale=iO(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),$V(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var eG={dimensions:UV,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new ZV(r+"");i.update=JV;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");QV(a,s),QV(o,l),KV(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Ni).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},tG=eG,nG=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function rG(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function iG(e){var t=e.getRadiusAxis();return t.inverse?0:1}function aG(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var oG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return a(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),l=s["H"](n.getViewLabels(),(function(e){e=s["d"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));aG(l),aG(a),s["k"](nG,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||sG[t](this.group,e,r,a,o,i,l)}),this)}},t.type="angleAxis",t}(kD),sG={axisLine:function(e,t,n,i,a,o){var s,l=t.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),h=iG(n),f=h?0:1,p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=0===o[f]?new r[p]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new Tm({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[f]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,n,r,i,a){var o=t.getModel("axisTick"),l=(o.get("inside")?-1:1)*o.get("length"),u=a[iG(n)],c=s["H"](r,(function(e){return new Nm({shape:rG(n,[u,u+l],e.coord)})}));e.add(bg(c,{style:s["i"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),l=t.getModel("minorTick"),u=(o.get("inside")?-1:1)*l.get("length"),c=a[iG(n)],d=[],h=0;h<i.length;h++)for(var f=0;f<i[h].length;f++)d.push(new Nm({shape:rG(n,[c,c+u],i[h][f].coord)}));e.add(bg(d,{style:s["i"](l.getModel("lineStyle").getLineStyle(),s["i"](o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var l=t.getCategories(!0),u=t.getModel("axisLabel"),c=u.get("margin"),d=t.get("triggerEvent");s["k"](o,(function(r,i){var o=u,h=r.tickValue,f=a[iG(n)],p=n.coordToPoint([f+c,r.coord]),m=n.cx,g=n.cy,y=Math.abs(p[0]-m)/f<.3?"center":p[0]>m?"left":"right",v=Math.abs(p[1]-g)/f<.3?"middle":p[1]>g?"top":"bottom";if(l&&l[h]){var _=l[h];s["A"](_)&&_.textStyle&&(o=new Ou(_.textStyle,u,u.ecModel))}var b=new Ls({silent:hD.isLabelSilent(t),style:iu(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:v})});if(e.add(b),d){var x=hD.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=r.rawLabel,Os(b).eventData=x}}),this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine"),l=o.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=0;h<r.length;h++){var f=c++%u.length;d[f]=d[f]||[],d[f].push(new Nm({shape:rG(n,a,r[h].coord)}))}for(h=0;h<d.length;h++)e.add(bg(d[h],{style:s["i"]({stroke:u[h%u.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Nm({shape:rG(n,a,i[u][c].coord)}));e.add(bg(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel("splitArea"),l=o.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=Math.PI/180,f=-r[0].coord*h,p=Math.min(a[0],a[1]),m=Math.max(a[0],a[1]),g=t.get("clockwise"),y=1,v=r.length;y<=v;y++){var _=y===v?r[0].coord:r[y].coord,b=c++%u.length;d[b]=d[b]||[],d[b].push(new wm({shape:{cx:n.cx,cy:n.cy,r0:p,r:m,startAngle:f,endAngle:-_*h,clockwise:g},silent:!0})),f=-_*h}for(y=0;y<d.length;y++)e.add(bg(d[y],{style:s["i"]({fill:u[y%u.length]},l.getAreaStyle()),silent:!0}))}}},lG=oG,uG=["axisLine","axisTickLabel","axisName"],cG=["splitLine","splitArea","minorSplitLine"],dG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return a(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new Sr;this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),l=i.getTicksCoords(),u=i.getMinorTicksCoords(),c=o.getExtent()[0],d=i.getExtent(),h=fG(a,e,c),f=new hD(e,h);s["k"](uG,f.add,f),r.add(f.getGroup()),Ag(n,r,e),s["k"](cG,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&hG[t](this.group,e,a,c,d,l,u)}),this)}},t.type="radiusAxis",t}(kD),hG={splitLine:function(e,t,n,i,a,o){var l=t.getModel("splitLine"),u=l.getModel("lineStyle"),c=u.get("color"),d=0,h=n.getAngleAxis(),f=Math.PI/180,p=h.getExtent(),m=360===Math.abs(p[1]-p[0])?"Circle":"Arc";c=c instanceof Array?c:[c];for(var g=[],y=0;y<o.length;y++){var v=d++%c.length;g[v]=g[v]||[],g[v].push(new r[m]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[y].coord,0),startAngle:-p[0]*f,endAngle:-p[1]*f,clockwise:h.inverse}}))}for(y=0;y<g.length;y++)e.add(bg(g[y],{style:s["i"]({stroke:c[y%c.length],fill:null},u.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var l=t.getModel("minorSplitLine"),u=l.getModel("lineStyle"),c=[],d=0;d<o.length;d++)for(var h=0;h<o[d].length;h++)c.push(new tm({shape:{cx:n.cx,cy:n.cy,r:o[d][h].coord}}));e.add(bg(c,{style:s["i"]({fill:null},u.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel("splitArea"),l=o.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=a[0].coord,f=1;f<a.length;f++){var p=c++%u.length;d[p]=d[p]||[],d[p].push(new wm({shape:{cx:n.cx,cy:n.cy,r0:h,r:a[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[f].coord}for(f=0;f<d.length;f++)e.add(bg(d[f],{style:s["i"]({fill:u[f%u.length]},l.getAreaStyle()),silent:!0}))}}};function fG(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var pG=dG;function mG(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function gG(e,t){return t.dim+e.model.componentIndex}function yG(e,t,n){var r={},i=vG(s["n"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=gG(n,a),s=mG(e),l=i[o][s],u=l.offset,c=l.width,d=n.getOtherAxis(a),h=e.coordinateSystem.cx,f=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,m=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var g=t.mapDimension(d.dim),y=t.mapDimension(a.dim),v=sS(t,g),_="radius"!==a.dim||!e.get("roundCap",!0),b=d.model,x=b.get("startValue"),w=d.dataToCoord(x||0),M=0,S=t.count();M<S;M++){var T=t.get(g,M),k=t.get(y,M),L=T>=0?"p":"n",O=w;v&&(r[s][k]||(r[s][k]={p:w,n:w}),O=r[s][k][L]);var D=void 0,A=void 0,I=void 0,C=void 0;if("radius"===d.dim){var E=d.dataToCoord(T)-w,P=a.dataToCoord(k);Math.abs(E)<p&&(E=(E<0?-1:1)*p),D=O,A=O+E,I=P-u,C=I-c,v&&(r[s][k][L]=A)}else{var Y=d.dataToCoord(T,_)-w,j=a.dataToCoord(k);Math.abs(Y)<m&&(Y=(Y<0?-1:1)*m),D=j+u,A=D+c,I=O,C=O+Y,v&&(r[s][k][L]=C)}t.setItemLayout(M,{cx:h,cy:f,r0:D,r:A,startAngle:-I*Math.PI/180,endAngle:-C*Math.PI/180,clockwise:I>=C})}}}))}function vG(e){var t={};s["k"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=gG(i,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[o]=u;var d=mG(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Hr(e.get("barWidth"),l),f=Hr(e.get("barMaxWidth"),l),p=e.get("barGap"),m=e.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),f&&(c[d].maxWidth=f),null!=p&&(u.gap=p),null!=m&&(u.categoryGap=m)}));var n={};return s["k"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=Hr(e.categoryGap,i),o=Hr(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,c=(l-a)/(u+(u-1)*o);c=Math.max(c,0),s["k"](r,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,l),e.width&&(n=Math.min(n,e.width)),l-=n,e.width=n,u--)})),c=(l-a)/(u+(u-1)*o),c=Math.max(c,0);var d,h=0;s["k"](r,(function(e,t){e.width||(e.width=c),d=e,h+=e.width*(1+o)})),d&&(h-=d.width*o);var f=-h/2;s["k"](r,(function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)}))})),n}var _G=yG,bG={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},xG={splitNumber:5},wG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="polar",t}(Op);function MG(e){Nb(AV),kD.registerAxisPointerClass("PolarAxisPointer",YV),e.registerCoordinateSystem("polar",tG),e.registerComponentModel(NV),e.registerComponentView(wG),uL(e,"angle",HV,bG),uL(e,"radius",FV,xG),e.registerComponentView(lG),e.registerComponentView(pG),e.registerLayout(Object(s["h"])(_G,"bar"))}function SG(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=["vertical"===o?c.vertical[a]:u[0],"horizontal"===o?c.horizontal[a]:u[3]];var d={horizontal:0,vertical:1};i.rotation=Math.PI/2*d[o];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),s["O"](t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=t.rotate;return null==f&&(f=e.get(["axisLabel","rotate"])),i.labelRotation="top"===a?-f:f,i.z2=1,i}var TG=["axisLine","axisTickLabel","axisName"],kG=["splitArea","splitLine"],LG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return a(t,e),t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new Sr;var l=SG(t),u=new hD(t,l);s["k"](TG,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),s["k"](kG,(function(e){t.get([e,"show"])&&OG[e](this,this.group,this._axisGroup,t)}),this),Ag(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){DD(this)},t.type="singleAxis",t}(kD),OG={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),l=o.get("color");l=l instanceof Array?l:[l];for(var u=o.get("width"),c=r.coordinateSystem.getRect(),d=i.isHorizontal(),h=[],f=0,p=i.getTicksCoords({tickModel:a}),m=[],g=[],y=0;y<p.length;++y){var v=i.toGlobalCoord(p[y].coord);d?(m[0]=v,m[1]=c.y,g[0]=v,g[1]=c.y+c.height):(m[0]=c.x,m[1]=v,g[0]=c.x+c.width,g[1]=v);var _=new Nm({shape:{x1:m[0],y1:m[1],x2:g[0],y2:g[1]},silent:!0});wg(_.shape,u);var b=f++%l.length;h[b]=h[b]||[],h[b].push(_)}var x=o.getLineStyle(["color"]);for(y=0;y<h.length;++y)t.add(bg(h[y],{style:s["i"]({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(e,t,n,r){OD(e,n,r,r)}},DG=LG,AG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Jc);Object(s["K"])(AG,Kk.prototype);var IG=AG,CG=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.position=a||"bottom",o}return a(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(FO),EG=CG,PG=["single"],YG=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=PG,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new EG(r,iO(e),[0,0],e.get("type"),e.get("position")),a="category"===i.type;i.onBand=a&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(s["k"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),rO(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=zc({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=jG(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=jG(t);return r===this?this.pointToData(n):null},e}();function jG(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var NG=YG;function RG(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var a=new NG(r,e,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Ni).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var HG={create:RG,dimensions:PG},FG=HG,zG=["x","y"],BG=["width","height"],WG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=UG(o,1-GG(a)),l=o.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=VW(r),d=VG[u](a,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=SG(n);ZW(t,e,h,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=SG(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=XW(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=GG(i),s=UG(a,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=UG(a,1-o),c=(u[1]+u[0])/2,d=[c,c];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(WW),VG={line:function(e,t,n){var r=KW([t,n[0]],[t,n[1]],GG(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:JW([t-r/2,n[0]],[r,i],GG(e))}}};function GG(e){return e.isHorizontal()?0:1}function UG(e,t){var n=e.getRect();return[n[zG[t]],n[zG[t]]+n[BG[t]]]}var qG=WG,XG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="single",t}(Op);function ZG(e){Nb(AV),kD.registerAxisPointerClass("SingleAxisPointer",qG),e.registerComponentView(XG),e.registerComponentView(DG),e.registerComponentModel(IG),uL(e,"single",IG,IG.defaultOption),e.registerCoordinateSystem("single",FG)}var KG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t,n,r){var i=Uc(t);e.prototype.init.apply(this,arguments),JG(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),JG(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Jc);function JG(e,t){var n,r=e.cellSize;n=s["t"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=s["H"]([0,1],(function(e){return Wc(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Gc(e,t,{type:"box",ignoreSize:i})}var $G=KG,QG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new us({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){h(u.formatedDate),0===c&&(u=a.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=a.getDateInfo(d)}function h(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,o,r)}h(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Em({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),l=r.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return Object(s["C"])(e)&&e?Ic(e,t):Object(s["w"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):o-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var f=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:h},m=this._formatterLabel(f,p),g=new Ls({z2:30,style:iu(i,{text:m}),silent:i.get("silent")});g.attr(this._yearTextPositionControl(g,d[o],n,o,a)),r.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(a="center"),"start"===r&&(o="bottom")):(s+=i,t&&(o="middle"),"start"===r&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),l=i.get("position"),u=i.get("align"),c=[this._tlpoints,this._blpoints];a&&!Object(s["C"])(a)||(a&&(t=Vu(a)||t),a=t.get(["time","monthAbbr"])||[]);var d="start"===l?0:1,h="horizontal"===n?0:1;o="start"===l?-o:o;for(var f="center"===u,p=i.get("silent"),m=0;m<c[d].length-1;m++){var g=c[d][m].slice(),y=this._firstDayOfMonth[m];if(f){var v=this._firstDayPoints[m];g[h]=(v[h]+c[0][m+1][h])/2}var _=i.get("formatter"),b=a[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},w=this._formatterLabel(_,x),M=new Ls({z2:30,style:Object(s["m"])(iu(i,{text:w}),this._monthTextPositionControl(g,f,n,l,o)),silent:p});r.add(M)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a="center",o="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,a=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel("dayLabel");if(a.get("show")){var o=e.coordinateSystem,l=a.get("position"),u=a.get("nameMap"),c=a.get("margin"),d=o.getFirstDayOfWeek();if(!u||Object(s["C"])(u)){u&&(t=Vu(u)||t);var h=t.get(["time","dayOfWeekShort"]);u=h||Object(s["H"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var f=o.getNextNDay(n.end.time,7-n.lweek).time,p=[o.getCellWidth(),o.getCellHeight()];c=Hr(c,Math.min(p[1],p[0])),"start"===l&&(f=o.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var m=a.get("silent"),g=0;g<7;g++){var y=o.getNextNDay(f,g),v=o.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+d)%7);var b=new Ls({z2:30,style:Object(s["m"])(iu(a,{text:u[_]}),this._weekTextPositionControl(v,r,l,c,p)),silent:m});i.add(b)}}},t.type="calendar",t}(Op),eU=QG,tU=864e5,nU=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=Jr(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),a=i<10?"0"+i:""+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+"",m:r,d:a,day:o,time:e.getTime(),formatedDate:t+"-"+r+"-"+a,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];s["k"]([0,1],(function(e){c(i,e)&&(a[r[e]]=i[e]*o[e])}));var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=zc(a,l);function c(e,t){return null!=e[t]&&"auto"!==e[t]}s["k"]([0,1],(function(e){c(i,e)||(i[e]=u[r[e]]/o[e])})),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){s["t"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+tU))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=rU(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=rU(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(s["t"](t)&&1===t.length&&(t=t[0]),s["t"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);e=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/tU)-Math.floor(n[0].time/tU)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==o&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function rU(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var iU=nU;function aU(e){e.registerComponentModel($G),e.registerComponentView(eU),e.registerCoordinateSystem("calendar",iU)}function oU(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function sU(e,t){var n;return s["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function lU(e,t,n){var r=s["m"]({},n),i=e[t],a=n.$action||"merge";"merge"===a?i?(s["I"](i,r,!0),Gc(i,r,{ignoreSize:!0}),qc(n,i),dU(n,i),dU(n,i,"shape"),dU(n,i,"style"),dU(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===a?e[t]=r:"remove"===a&&i&&(e[t]=null)}var uU=["transition","enterFrom","leaveTo"],cU=uU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function dU(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?uU:cU,i=0;i<r.length;i++){var a=r[i];null==e[a]&&null!=t[a]&&(e[a]=t[a])}}function hU(e,t){if(e&&(e.hv=t.hv=[sU(t,["left","right"]),sU(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var fU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return a(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=gi(i,a,"normalMerge"),l=this._elOptionsToUpdate=[];s["k"](o,(function(e,t){var n=e.newOption;n&&(l.push(n),oU(e,n),lU(i,t,n),hU(i[t],n))}),this),n.elements=s["n"](i,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){s["k"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Jc),pU={path:null,compoundPath:null,group:Sr,image:es,text:Ls},mU=Ei(),gU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this._elMap=s["f"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get("z"),a=e.get("zlevel");s["k"](t,(function(t){var o=Ti(t.id,null),s=null!=o?n.get(o):null,l=Ti(t.parentId,null),u=null!=l?n.get(l):r,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var h=t.textContent,f=t.textConfig;if(d&&vB(d,c,!!f,!!h)){var p=_B(d,c,!0);!f&&p.textConfig&&(f=t.textConfig=p.textConfig),!h&&p.textContent&&(h=p.textContent)}var m=xU(t);var g=t.$action||"merge",y="merge"===g,v="replace"===g;if(y){var _=!s,b=s;_?b=vU(o,u,t.type,n):(b&&(mU(b).isNew=!1),UB(b)),b&&(OB(b,m,e,{isInit:_}),bU(b,t,i,a))}else if(v){_U(s,t,n,e);var x=vU(o,u,t.type,n);x&&(OB(x,m,e,{isInit:!0}),bU(x,t,i,a))}else"remove"===g&&(DB(s,t),_U(s,t,n,e));var w=n.get(o);if(w&&h)if(y){var M=w.getTextContent();M?M.attr(h):w.setTextContent(new Ls(h))}else v&&w.setTextContent(new Ls(h));if(w){var S=t.clipPath;if(S){var T=S.type,k=void 0;_=!1;if(y){var L=w.getClipPath();_=!L||mU(L).type!==T,k=_?yU(T):L}else v&&(_=!0,k=yU(T));w.setClipPath(k),OB(k,S,e,{isInit:_}),qB(k,S.keyframeAnimation,e)}var O=mU(w);w.setTextConfig(f),O.option=t,wU(w,e,t),Rg({el:w,componentModel:e,itemName:w.name,itemTooltipOption:t.tooltip}),qB(w,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),l=["x","y"],u=0;u<n.length;u++){var c=n[u],d=Ti(c.id,null),h=null!=d?i.get(d):null;if(h&&h.isGroup){var f=h.parent,p=f===r,m=mU(h),g=mU(f);m.width=Hr(m.option.width,p?a:g.width)||0,m.height=Hr(m.option.height,p?o:g.height)||0}}for(u=n.length-1;u>=0;u--){c=n[u],d=Ti(c.id,null),h=null!=d?i.get(d):null;if(h){f=h.parent,g=mU(f);var y=f===r?{width:a,height:o}:{width:g.width,height:g.height},v={},_=Bc(h,c,y,null,{hv:c.hv,boundingMode:c.bounding},v);if(!mU(h).isNew&&_){for(var b=c.transition,x={},w=0;w<l.length;w++){var M=l[w],S=v[M];b&&(IB(b)||s["r"](b,M)>=0)?x[M]=S:h[M]=S}Gl(h,x,e,0)}else h.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){_U(n,mU(n).option,t,e._lastGraphicModel)})),this._elMap=s["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Op);function yU(e){var t=s["q"](pU,e)?pU[e]:gg(e);var n=new t({});return mU(n).type=e,n}function vU(e,t,n,r){var i=yU(n);return t.add(i),r.set(e,i),mU(i).id=e,mU(i).isNew=!0,i}function _U(e,t,n,r){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){_U(e,t,n,r)})),AB(e,t,r),n.removeKey(mU(e).id))}function bU(e,t,n,r){e.isGroup||s["k"]([["cursor",Ra.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];s["q"](t,r)?e[r]=s["P"](t[r],n[1]):null==e[r]&&(e[r]=n[1])})),s["k"](s["F"](t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=s["w"](r)?r:null}})),s["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function xU(e){return e=s["m"]({},e),s["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(jc),(function(t){delete e[t]})),e}function wU(e,t,n){var r=Os(e).eventData;e.silent||e.ignore||r||(r=Os(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function MU(e){e.registerComponentModel(fU),e.registerComponentView(gU),e.registerPreprocessor((function(e){var t=e.graphic;Object(s["t"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var SU=["x","y","radius","angle","single"],TU=["cartesian2d","polar","singleAxis"];function kU(e){var t=e.get("coordinateSystem");return Object(s["r"])(TU,t)>=0}function LU(e){return e+"Axis"}function OU(e,t){var n,r=Object(s["f"])(),i=[],a=Object(s["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){a.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!a.get(e.uid)&&u(e)&&(l(e),n=!0)}function l(e){a.set(e.uid,!0),i.push(e),c(e)}function u(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function DU(e){var t=e.ecModel,n={infoList:[],infoMap:Object(s["f"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(LU(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}})),n}var AU=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),IU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return a(t,e),t.prototype.init=function(e,t,n){var r=CU(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=CU(e);Object(s["I"])(this.option,e,!0),Object(s["I"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(s["f"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(s["k"])(SU,(function(n){var r=this.getReferringComponents(LU(n),Ri);if(r.specified){t=!0;var i=new AU;Object(s["k"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",a=n.findComponents({mainType:i+"Axis"});o(a,i)}if(r){a=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});o(a,"single")}function o(t,n){var i=t[0];if(i){var a=new AU;if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",Ni).models[0];o&&Object(s["k"])(t,(function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",Ni).models[0]&&a.add(e.componentIndex)}))}}}r&&Object(s["k"])(SU,(function(t){if(r){var i=n.findComponents({mainType:LU(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new AU;a.add(i[0].componentIndex),e.set(t,a),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(s["k"])([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(LU(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(s["k"])(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(LU(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(s["k"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Jc);function CU(e){var t={};return Object(s["k"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var EU=IU,PU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.select",t}(EU),YU=PU,jU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Op),NU=jU,RU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.select",t}(NU),HU=RU,FU=s["k"],zU=zr,BU=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(kU(t)){var n=LU(this._dimName),r=t.getReferringComponents(n,Ni).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return s["d"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[];FU(["start","end"],(function(r,u){var c=e[r],d=e[r+"Value"];"percent"===a[u]?(null==c&&(c=o[u]),d=i.parse(Rr(c,o,n))):(t=!0,d=null==d?n[u]:i.parse(d),c=Rr(d,n,o)),l[u]=null==d||isNaN(d)?n[u]:d,s[u]=null==c||isNaN(c)?o[u]:c})),zU(l),zU(s);var u=this._minMaxSpan;function c(e,t,n,r,a){var o=a?"Span":"ValueSpan";sN(0,e,n,"all",u["min"+o],u["max"+o]);for(var s=0;s<2;s++)t[s]=Rr(e[s],n,r,!0),a&&(t[s]=i.parse(t[s]))}return t?c(l,s,n,o,!1):c(s,l,o,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=WU(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),a=this._valueWindow;"none"!==i&&FU(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var l=t.getStore(),u=s["H"](r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,o=0;o<r.length;o++){var s=l.get(u[o],e),c=!isNaN(s),d=s<a[0],h=s>a[1];if(c&&!d&&!h)return!0;c&&(i=!0),d&&(t=!0),h&&(n=!0)}return i&&t&&n}))}else FU(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return o(e)?e:NaN})));else{var r={};r[n]=a,t.selectRange(r)}}));FU(r,(function(e){t.setApproximateExtent(a,e)}))}}))}function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;FU(["min","max"],(function(r){var i=t.get(r+"Span"),a=t.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?i=Rr(n[0]+a,n,[0,100],!0):null!=i&&(a=Rr(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=a}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Vr(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function WU(e,t,n){var r=[1/0,-1/0];FU(n,(function(e){fO(r,e.getData(),t)}));var i=e.getAxisModel(),a=QL(i.axis.scale,i,r).calculate();return[a.min,a.max]}var VU=BU,GU={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var a=e.getComponent(LU(r),i);t(r,i,a,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new VU(t,r,a,e),n.push(i.__dzAxisProxy))}));var r=Object(s["f"])();return Object(s["k"])(n,(function(e){Object(s["k"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},UU=GU;function qU(e){e.registerAction("dataZoom",(function(e,t){var n=OU(t,e);Object(s["k"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var XU=!1;function ZU(e){XU||(XU=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,UU),qU(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function KU(e){e.registerComponentModel(YU),e.registerComponentView(HU),ZU(e)}var JU=function(){function e(){}return e}(),$U={};function QU(e,t){$U[e]=t}function eq(e){return $U[e]}var tq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;s["k"](this.option.feature,(function(e,n){var r=eq(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),s["I"](e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Jc),nq=tq;function rq(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=zc(r,a,i);Hc(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Bc(e,r,a,i)}function iq(e,t){var n=kc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new us({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var aq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var a=+e.get("itemSize"),o="vertical"===e.get("orient"),l=e.get("feature")||{},u=this._features||(this._features={}),c=[];s["k"](l,(function(e,t){c.push(t)})),new bM(this._featureNames||[],c).add(d).update(d).remove(s["h"](d,null)).execute(),this._featureNames=c,rq(i,e,n),i.add(iq(i.getBoundingRect(),e)),o||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),l=e.getTextContent(),u=l&&l.ensureState("emphasis");if(u&&!s["w"](u)&&t){var c=u.style||(u.style={}),d=rr(t,Ls.makeFont(c)),h=e.x+i.x,f=e.y+i.y+a,p=!1;f+d.height>n.getHeight()&&(o.position="top",p=!0);var m=p?-5-d.height:a+10;h+d.width/2>n.getWidth()?(o.position=["100%",m],c.align="right"):h-d.width/2<0&&(o.position=[0,m],c.align="left")}}))}function d(i,a){var o,s=c[i],d=c[a],f=l[s],p=new Ou(f,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===s&&(f.title=r.newTitle),s&&!d){if(oq(s))o={onclick:p.option.onclick,featureName:s};else{var m=eq(s);if(!m)return;o=new m}u[s]=o}else if(o=u[d],!o)return;o.uid=Au("toolbox-feature"),o.model=p,o.ecModel=t,o.api=n;var g=o instanceof JU;s||!d?!p.get("show")||g&&o.unusable?g&&o.remove&&o.remove(t,n):(h(p,o,s),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?dl:hl)(r[e])},o instanceof JU&&o.render&&o.render(p,t,n,r)):g&&o.dispose&&o.dispose(t,n)}function h(r,l,u){var c,d,h=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),p=l instanceof JU&&l.getIcons?l.getIcons():r.get("icon"),m=r.get("title")||{};s["C"](p)?(c={},c[u]=p):c=p,s["C"](m)?(d={},d[u]=m):d=m;var g=r.iconPaths={};s["k"](c,(function(u,c){var p=Eg(u,{},{x:-a/2,y:-a/2,width:a,height:a});p.setStyle(h.getItemStyle());var m=p.ensureState("emphasis");m.style=f.getItemStyle();var y=new Ls({style:{text:d[c],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:hu({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});p.setTextContent(y),Rg({el:p,componentModel:e,itemName:c,formatterParamsExtra:{title:d[c]}}),p.__title=d[c],p.on("mouseover",(function(){var t=f.getItemStyle(),r=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";y.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),p.setTextConfig({position:f.get("textPosition")||r}),y.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",c])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",c])?dl:hl)(p),i.add(p),p.on("click",s["c"](l.onclick,l,t,n,c)),g[c]=p}))}},t.prototype.updateView=function(e,t,n,r){s["k"](this._features,(function(e){e instanceof JU&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){s["k"](this._features,(function(n){n instanceof JU&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){s["k"](this._features,(function(n){n instanceof JU&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Op);function oq(e){return 0===e.indexOf("my")}var sq=aq,lq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=o["a"].browser;if("function"!==typeof MouseEvent||!l.newEdge&&(l.ie||l.edge))if(window.navigator.msSaveOrOpenBlob||i){var u=s.split(","),c=u[0].indexOf("base64")>-1,d=i?decodeURIComponent(u[1]):u[1];c&&(d=window.atob(d));var h=r+"."+a;if(window.navigator.msSaveOrOpenBlob){var f=d.length,p=new Uint8Array(f);while(f--)p[f]=d.charCodeAt(f);var m=new Blob([p]);window.navigator.msSaveOrOpenBlob(m,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(d),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var _=n.get("lang"),b='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',x=window.open();x.document.write(b),x.document.title=r}else{var w=document.createElement("a");w.download=r+"."+a,w.target="_blank",w.href=s;var M=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(M)}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(JU),uq=lq,cq="__ec_magicType_stack__",dq=[["line","bar"],["stack"]],hq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return s["k"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(fq[n]){var a,o={series:[]},l=function(e){var t=e.subType,i=e.id,a=fq[n](t,i,e,r);a&&(s["i"](a,e.option),o.series.push(a));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim,d=c+"Axis",h=e.getReferringComponents(d,Ni).models[0],f=h.componentIndex;o[d]=o[d]||[];for(var p=0;p<=f;p++)o[d][f]=o[d][f]||{};o[d][f].boundaryGap="bar"===n}}};s["k"](dq,(function(e){s["r"](e,n)>=0&&s["k"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},l);var u=n;"stack"===n&&(a=s["I"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(u="tiled")),t.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:a,featureName:"magicType"})}},t}(JU),fq={line:function(e,t,n,r){if("bar"===e)return s["I"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return s["I"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===cq;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),s["I"]({id:t,stack:i?"":cq},r.get(["option","stack"])||{},!0)}};kb({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var pq=hq,mq=new Array(60).join("-"),gq="\t";function yq(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var a=i.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function vq(e){var t=[];return s["k"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,a=i.dim,o=[" "].concat(s["H"](e.series,(function(e){return e.name}))),l=[r.model.getCategories()];s["k"](e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(a),(function(e){return e})))}));for(var u=[o.join(gq)],c=0;c<l[0].length;c++){for(var d=[],h=0;h<l.length;h++)d.push(l[h][c]);u.push(d.join(gq))}t.push(u.join("\n"))})),t.join("\n\n"+mq+"\n\n")}function _q(e){return s["H"](e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+gq:"")+r.join(gq))})),n.join("\n")})).join("\n\n"+mq+"\n\n")}function bq(e){var t=yq(e);return{value:s["n"]([vq(t.seriesGroupByCategoryAxis),_q(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+mq+"\n\n"),meta:t.meta}}function xq(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function wq(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(gq)>=0)return!0}var Mq=new RegExp("["+gq+"]+","g");function Sq(e){for(var t=e.split(/\n+/g),n=xq(t.shift()).split(Mq),r=[],i=s["H"](n,(function(e){return{name:e,data:[]}})),a=0;a<t.length;a++){var o=xq(t[a]).split(Mq);r.push(o.shift());for(var l=0;l<o.length;l++)i[l]&&(i[l].data[a]=o[l])}return{series:i,categories:r}}function Tq(e){for(var t=e.split(/\n+/g),n=xq(t.shift()),r=[],i=0;i<t.length;i++){var a=xq(t[i]);if(a){var o=a.split(Mq),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function kq(e,t){var n=e.split(new RegExp("\n*"+mq+"\n*","g")),r={series:[]};return s["k"](n,(function(e,n){if(wq(e)){var i=Sq(e),a=t[n],o=a.axisDim+"Axis";a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=Tq(e);r.series.push(i)}})),r}var Lq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),o=r.get("lang")||[];a.innerHTML=o[0]||r.get("title"),a.style.cssText="margin:10px 20px",a.style.color=r.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var c=r.get("optionToContent"),d=r.get("contentToOption"),h=bq(e);if(s["w"](c)){var f=c(t.getOption());s["C"](f)?l.innerHTML=f:s["v"](f)&&l.appendChild(f)}else{u.readOnly=r.get("readOnly");var p=u.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),u.value=h.value,l.appendChild(u)}var m=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var b=this;function x(){n.removeChild(i),b._dom=null}te(v,"click",x),te(_,"click",(function(){if(null==d&&null!=c||null!=d&&null==c)x();else{var e;try{e=s["w"](d)?d(l,t.getOption()):kq(u.value,m)}catch(n){throw x(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),x()}})),v.innerHTML=o[1],_.innerHTML=o[2],_.style.cssText=v.style.cssText=y,!r.get("readOnly")&&g.appendChild(_),g.appendChild(v),i.appendChild(a),i.appendChild(l),i.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(JU);function Oq(e,t){return s["H"](e,(function(e,n){var r=t&&t[n];if(s["A"](r)&&!s["t"](r)){var i=s["A"](e)&&!s["t"](e);i||(e={value:e});var a=null!=r.name&&null==e.name;return e=s["i"](e,r),a&&delete e.name,e}return e}))}kb({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];s["k"](e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:Oq(e.data,i)})}else n.push(s["m"]({type:"scatter"},e))})),t.mergeOption(s["i"]({series:n},e.newOption))}));var Dq=Lq,Aq=s["k"],Iq=Ei();function Cq(e,t){var n=jq(e);Aq(t,(function(t,r){for(var i=n.length-1;i>=0;i--){var a=n[i];if(a[r])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var s=o.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function Eq(e){var t=jq(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Aq(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function Pq(e){Iq(e).snapshots=null}function Yq(e){return jq(e).length}function jq(e){var t=Iq(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Nq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){Pq(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(JU);kb({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var Rq=Nq,Hq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Fq=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=Bq(t,e);Object(s["k"])(Wq,(function(e,t){(!n||!n.include||Object(s["r"])(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=Uq[e.brushType](0,n,t);e.__rangeOffset={offset:Xq[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(s["k"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(s["k"])(r.coordSyses,(function(r){var i=Uq[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(s["k"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=Uq[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?Xq[e.brushType](r.values,i.offset,Kq(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(s["H"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:MR(r),isTargetByCursor:TR(r,e,n.coordSysModel),getLinearBrushOtherExtent:SR(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(s["r"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=Bq(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<Vq.length;s++)if(Vq[s](r,a))return a}return!0},e}();function zq(e){return e[0]>e[1]&&e.reverse(),e}function Bq(e,t){return Yi(e,t,{includeMainTypes:Hq})}var Wq={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Object(s["f"])(),o={},l={};(n||r||i)&&(Object(s["k"])(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0})),Object(s["k"])(r,(function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0})),Object(s["k"])(i,(function(e){a.set(e.id,e),o[e.id]=!0,l[e.id]=!0})),a.each((function(e){var i=e.coordinateSystem,a=[];Object(s["k"])(i.getCartesians(),(function(e,t){(Object(s["r"])(n,e.getAxis("x").model)>=0||Object(s["r"])(r,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:Gq.grid,xAxisDeclared:o[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){Object(s["k"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Gq.geo})}))}},Vq=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Gq={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Tg(e)),t}},Uq={lineX:Object(s["h"])(qq,0),lineY:Object(s["h"])(qq,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[zq([i[0],a[0]]),zq([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=Object(s["H"])(n,(function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}));return{values:a,xyMinMax:i}}};function qq(e,t,n,r){var i=n.getAxis(["x","y"][e]),a=zq(Object(s["H"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var Xq={lineX:Object(s["h"])(Zq,0),lineY:Object(s["h"])(Zq,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(s["H"])(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function Zq(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Kq(e,t){var n=Jq(e),r=Jq(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Jq(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var $q=Fq,Qq=s["k"],eX=Oi("toolbox-dataZoom_"),tX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new wR(n.getZr()),this._brushController.on("brush",s["c"](this._onBrush,this)).mount()),aX(e,t,this,r,n),iX(e,t)},t.prototype.onclick=function(e,t,n){nX[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new $q(rX(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(a("x",n,t[0]),a("y",n,t[1])):a({lineX:"x",lineY:"y"}[r],n,t)}})),Cq(r,n),this._dispatchZoomAction(n)}function a(e,t,i){var a=t.getAxis(e),s=a.model,l=o(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=sN(0,i.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function o(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];Qq(e,(function(e,n){t.push(s["d"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(JU),nX={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Eq(this.ecModel))}};function rX(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function iX(e,t){e.setIconStatus("back",Yq(t)>1?"emphasis":"normal")}function aX(e,t,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new $q(rX(e),t,{include:["grid"]}),s=o.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}bd("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],a=rX(r),o=Yi(e,a);return Qq(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),Qq(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:eX+t+a};o[n]=a,i.push(o)}}));var oX=tX;function sX(e){e.registerComponentModel(nq),e.registerComponentView(sq),QU("saveAsImage",uq),QU("magicType",pq),QU("dataView",Dq),QU("dataZoom",oX),QU("restore",Rq),Nb(KU)}var lX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Jc),uX=lX;function cX(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function dX(e){if(o["a"].domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var hX=dX(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fX=dX(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function pX(e,t){if(!e)return t;t=Tc(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function mX(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var gX=pX(fX,"transition"),yX=pX(hX,"transform"),vX="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(o["a"].transform3dSupported?"will-change:transform;":"");function _X(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function bX(e,t,n){if(!Object(s["C"])(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Ec(t);var a,o=_X(n),l=Math.max(1.5*Math.round(i),6),u="",c=yX+":";Object(s["r"])(["left","right"],o)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===o?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===o?225:45)+"deg)");var d=a*Math.PI/180,h=l+i,f=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),p=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;u+=";"+o+":-"+p+"px";var m=t+" solid "+i+"px;",g=["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+c+";","border-bottom:"+m,"border-right:"+m,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function xX(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=o["a"].transformSupported?","+yX+r:",left"+r+",top"+r),gX+":"+i}function wX(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!o["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=o["a"].transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+yX+":"+s+";":[["top",0],["left",0],[hX,s]]}function MX(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Object(s["P"])(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+l+"px "+u+"px "+o+"px "+a),Object(s["k"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function SX(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),d=e.getModel("textStyle"),h=cp(e,"html"),f=u+"px "+c+"px "+o+"px "+l;return r.push("box-shadow:"+f),t&&i&&r.push(xX(i,n)),a&&r.push("background-color:"+a),Object(s["k"])(["width","color","radius"],(function(t){var n="border-"+t,i=Tc(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))})),r.push(MX(d)),null!=h&&r.push("padding:"+kc(h).join("px ")+"px"),r.join(";")+";"}function TX(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&H(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kX=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,o["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(Object(s["C"])(i)?document.querySelector(i):Object(s["v"])(i)?i:Object(s["w"])(i)&&i(e.getDom()));TX(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=r.handler,n=r.painter.getViewportRoot();Q(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=mX(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=vX+SX(e,!this._firstShow,this._longHide)+wX(i[0],i[1],!0)+"border-color:"+Ec(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(null!=e){var o="";if(Object(s["C"])(i)&&"item"===n.get("trigger")&&!cX(n)&&(o=bX(n,r,i)),Object(s["C"])(e))a.innerHTML=e+o;else if(e){a.innerHTML="",Object(s["t"])(e)||(e=[e]);for(var l=0;l<e.length;l++)Object(s["v"])(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(o&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=o,a.appendChild(u)}}}else a.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(TX(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,i=wX(n[0],n[1]);Object(s["k"])(i,(function(e){r[e[0]]=e[1]}))}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",o["a"].transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Object(s["c"])(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),LX=kX,OX=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),IX(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;s["A"](e)&&Ed(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new Ls({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:cp(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),s["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){a.el.style[e]=n.get(e)})),s["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){a.el.style[e]=o.get(e)||0})),this._zr.add(this.el);var l=this;this.el.on("mouseover",(function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0})),this.el.on("mouseout",(function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=AX(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;IX(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=DX(i.borderWidth||0),o=AX(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(s["c"](this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function DX(e){return Math.max(0,e)}function AX(e){var t=DX(e.shadowBlur||0),n=DX(e.shadowOffsetX||0),r=DX(e.shadowOffsetY||0);return{left:DX(t-n),right:DX(t+n),top:DX(t-r),bottom:DX(t+r)}}function IX(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var CX=OX,EX=new us({shape:{x:-1,y:-1,width:2,height:2}}),PX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){if(!o["a"].node&&t.getDom()){var n=e.getComponent("tooltip"),r=this._renderMode=Bi(n.get("renderMode"));this._tooltipContent="richText"===r?new CX(t):new LX(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!o["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?ey(this,"_updatePosition",50,"fixRate"):ty(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");lV("itemTooltip",this._api,Object(s["c"])((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!o["a"].node&&n.getDom()){var i=jX(r,n);this._ticket="";var a=r.dataByCoordSys,s=zX(r,t,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=EX;u.x=r.x,u.y=r.y,u.update(),Os(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=yV(r,t),d=c.point[0],h=c.point[1];null!=d&&null!=h&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(jX(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),u=YX([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var a,o,s=Os(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Xy(n,(function(e){return null!=Os(e).dataIndex?(a=e,!0):null!=Os(e).tooltipConfig?(o=e,!0):void 0}),!0),a?this._showSeriesItemTooltip(e,a,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(s["c"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=YX([t.tooltipOption],r),o=this._renderMode,l=[],u=Kf("section",{blocks:[],noHeader:!0}),c=[],d=new dp;Object(s["k"])(e,(function(e){Object(s["k"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var a=qW(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=Kf("section",{header:a,noHeader:!Object(s["T"])(a),sortBlocks:!0,blocks:[]});u.blocks.push(h),Object(s["k"])(e.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),p=u.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=sO(t.axis,{value:i}),m.axisValueLabel=a,m.marker=d.makeTooltipMarker("item",Ec(m.color),o);var g=af(f.formatTooltip(p,!0,null)),y=g.frag;if(y){var v=YX([f],r).get("valueFormatter");h.blocks.push(v?Object(s["m"])({valueFormatter:v},y):y)}g.text&&c.push(g.text),l.push(m)}}))}}))})),u.blocks.reverse(),c.reverse();var h=t.position,f=a.get("order"),p=np(u,d,o,f,n.get("useUTC"),a.get("textStyle"));p&&c.unshift(p);var m="richText"===o?"\n\n":"<br/>",g=c.join(m);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(a,h,i[0],i[1],this._tooltipContent,l):this._showTooltipContent(a,g,l,Math.random()+"",i[0],i[1],h,null,d)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Os(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),l=i.dataModel||o,u=i.dataIndex,c=i.dataType,d=l.getData(c),h=this._renderMode,f=e.positionDefault,p=YX([d.getItemModel(u),l,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get("trigger");if(null==m||"item"===m){var g=l.getDataParams(u,c),y=new dp;g.marker=y.makeTooltipMarker("item",Ec(g.color),h);var v=af(l.formatTooltip(u,!1,c)),_=p.get("order"),b=p.get("valueFormatter"),x=v.frag,w=x?np(b?Object(s["m"])({valueFormatter:b},x):x,y,h,_,r.get("useUTC"),p.get("textStyle")):v.text,M="item_"+l.name+"_"+u;this._showOrMove(p,(function(){this._showTooltipContent(p,w,g,M,e.offsetX,e.offsetY,e.position,e.target,y)})),n({type:"showTip",dataIndexInside:u,dataIndex:d.getRawIndex(u),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=Os(t),a=i.tooltipConfig,o=a.option||{},l=o.encodeHTMLContent;if(Object(s["C"])(o)){var u=o;o={content:u,formatter:u},l=!0}l&&r&&o.content&&(o=Object(s["d"])(o),o.content=U(o.content));var c=[o],d=this._ecModel.getComponent(i.componentMainType,i.componentIndex);d&&c.push(d),c.push({formatter:o.content});var h=e.positionDefault,f=YX(c,this._tooltipModel,h?{position:h}:null),p=f.get("content"),m=Math.random()+"",g=new dp;this._showOrMove(f,(function(){var n=Object(s["d"])(f.get("formatterParams")||{});this._showTooltipContent(f,p,n,m,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,l,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var d=e.get("formatter");o=o||e.get("position");var h=t,f=this._getNearestPoint([i,a],n,e.get("trigger"),e.get("borderColor")),p=f.color;if(d)if(Object(s["C"])(d)){var m=e.ecModel.get("useUTC"),g=Object(s["t"])(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=d,y&&(h=oc(g.axisValue,h,m)),h=Ac(h,n,!0)}else if(Object(s["w"])(d)){var v=Object(s["c"])((function(t,r){t===this._ticket&&(c.setContent(r,u,e,p,o),this._updatePosition(e,o,i,a,c,n,l))}),this);this._ticket=r,h=d(n,r,v)}else h=d;c.setContent(h,u,e,p,o),c.show(e,p),this._updatePosition(e,o,i,a,c,n,l)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(s["t"])(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(s["t"])(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var l=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=i.getSize(),d=e.get("align"),h=e.get("verticalAlign"),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),Object(s["w"])(t)&&(t=t([n,r],a,i.el,f,{viewSize:[l,u],contentSize:c.slice()})),Object(s["t"])(t))n=Hr(t[0],l),r=Hr(t[1],u);else if(Object(s["A"])(t)){var p=t;p.width=c[0],p.height=c[1];var m=zc(p,{width:l,height:u});n=m.x,r=m.y,d=null,h=null}else if(Object(s["C"])(t)&&o){var g=HX(t,f,c,e.get("borderWidth"));n=g[0],r=g[1]}else{g=NX(n,r,i,l,u,d?null:20,h?null:20);n=g[0],r=g[1]}if(d&&(n-=FX(d)?c[0]/2:"right"===d?c[0]:0),h&&(r-=FX(h)?c[1]/2:"bottom"===h?c[1]:0),cX(e)){g=RX(n,r,i,l,u);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(s["k"])(n,(function(n,a){var o=n.dataByAxis||[],l=e[a]||{},u=l.dataByAxis||[];i=i&&o.length===u.length,i&&Object(s["k"])(o,(function(e,n){var a=u[n]||{},o=e.seriesDataIndices||[],l=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===l.length,i&&Object(s["k"])(o,(function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(s["k"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!o["a"].node&&t.getDom()&&(ty(this,"_updatePosition"),this._tooltipContent.dispose(),pV("itemTooltip",t))},t.type="tooltip",t}(Op);function YX(e,t,n){var r,i=t.ecModel;n?(r=new Ou(n,i,i),r=new Ou(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ou&&(o=o.get("tooltip",!0)),Object(s["C"])(o)&&(o={formatter:o}),o&&(r=new Ou(o,r,i)))}return r}function jX(e,t){return e.dispatchAction||Object(s["c"])(t.dispatchAction,t)}function NX(e,t,n,r,i,a,o){var s=n.getSize(),l=s[0],u=s[1];return null!=a&&(e+l+a+2>r?e-=l+a:e+=a),null!=o&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function RX(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function HX(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function FX(e){return"center"===e||"middle"===e}function zX(e,t,n){var r=ji(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var a=Hi(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s,l=n.getViewOfComponentModel(o);return l.group.traverse((function(t){var n=Os(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:o.componentIndex,el:s}:void 0}}}var BX=PX;function WX(e){Nb(AV),e.registerComponentModel(uX),e.registerComponentView(BX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s["L"])}var VX=["rect","polygon","keep","clear"];function GX(e,t){var n=di(e?e.brush:[]);if(n.length){var r=[];s["k"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;s["t"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),l=o.type||(o.type=[]);l.push.apply(l,r),UX(l),t&&!l.length&&l.push.apply(l,VX)}}function UX(e){var t={};s["k"](e,(function(e){t[e]=1})),e.length=0,s["k"](t,(function(t,n){e.push(n)}))}var qX=s["k"];function XX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function ZX(e,t,n){var r={};return qX(t,(function(t){var a=r[t]=i();qX(e[t],(function(e,r){if(pP.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new pP(i),"opacity"===r&&(i=s["d"](i),i.type="colorAlpha",a.__hidden.__alphaForOpacity=new pP(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function KX(e,t,n){var r;s["k"](n,(function(e){t.hasOwnProperty(e)&&XX(t[e])&&(r=!0)})),r&&s["k"](n,(function(n){t.hasOwnProperty(n)&&XX(t[n])?e[n]=s["d"](t[n]):delete e[n]}))}function JX(e,t,n,r,i,a){var o,l={};function u(e){return By(n,o,e)}function c(e,t){Vy(n,o,e,t)}function d(e,s){o=null==a?e:s;var d=n.getRawDataItem(o);if(!d||!1!==d.visualMap)for(var h=r.call(i,e),f=t[h],p=l[h],m=0,g=p.length;m<g;m++){var y=p[m];f[y]&&f[y].applyVisual(e,u,c)}}s["k"](e,(function(e){var n=pP.prepareVisualTypes(t[e]);l[e]=n})),null==a?n.each(d):n.each([a],d)}function $X(e,t,n,r){var i={};return s["k"](e,(function(e){var n=pP.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,a){var o,s;function l(e){return By(a,s,e)}function u(e,t){Vy(a,s,e,t)}null!=r&&(o=a.getDimensionIndex(r));var c=a.getStore();while(null!=(s=e.next())){var d=a.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var h=null!=r?c.get(o,s):s,f=n(h),p=t[f],m=i[f],g=0,y=m.length;g<y;g++){var v=m[g];p[v]&&p[v].applyVisual(h,l,u)}}}}}function QX(e){var t=e.brushType,n={point:function(r){return eZ[t].point(r,n,e)},rect:function(r){return eZ[t].rect(r,n,e)}};return n}var eZ={lineX:tZ(0),lineY:tZ(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&KA(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=r[0];return!!(KA(r,i,a)||KA(r,i+o,a)||KA(r,i,a+s)||KA(r,i+o,a+s)||De.create(e).contain(l[0],l[1])||Pg(i,a,i+o,a,r)||Pg(i,a,i,a+s,r)||Pg(i+o,a,i+o,a+s,r)||Pg(i,a+s,i+o,a+s,r))||void 0}}};function tZ(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return nZ(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),nZ(s[0],o)||nZ(s[1],o)||nZ(o[0],s)||nZ(o[1],s)}}}}function nZ(e,t){return t[0]<=e&&e<=t[1]}var rZ=["inBrush","outOfBrush"],iZ="__ecBrushSelect",aZ="__ecInBrushSelectEvent";function oZ(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new $q(t.option,e);n.setInputRanges(t.areas,e)}))}function sZ(e,t,n){var r,i,a=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),oZ(e),e.eachComponent({mainType:"brush"},(function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:s["d"](t.areas),selected:[]};a.push(o);var l=t.option,u=l.brushLink,c=[],d=[],h=[],f=!1;n||(r=l.throttleType,i=l.throttleDelay);var p=s["H"](t.areas,(function(e){var t=hZ[e.brushType],n=s["i"]({boundingRect:t?t(e):void 0},e);return n.selectors=QX(n),n})),m=ZX(t.option,rZ,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===u||!!c[e]}function y(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;f=f||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(d[t]=1)}))}function _(n,r,i){if(n.brushSelector&&!dZ(t,r)&&(s["k"](p,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f=f||y(i)})),g(r)&&y(i))){var a=n.getData();a.each((function(e){cZ(n,i,a,e)&&(d[e]=1)}))}}s["t"](u)&&s["k"](u,(function(e){c[e]=1})),e.eachSeries((function(e,t){var n=h[t]=[];"parallel"===e.subType?v(e,t):_(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=h[t],i=e.getData(),a=g(t)?function(e){return d[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return cZ(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?f:y(r))&&JX(rZ,m,i,a)}))})),lZ(t,r,i,a,n)}function lZ(e,t,n,r,i){if(i){var a=e.getZr();if(!a[aZ]){a[iZ]||(a[iZ]=uZ);var o=ey(a,iZ,n,t);o(e,r)}}}function uZ(e,t){if(!e.isDisposed()){var n=e.getZr();n[aZ]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[aZ]=!1}}function cZ(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function dZ(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(s["t"](n)?s["r"](n,t)<0:t!==n)}var hZ={rect:function(e){return fZ(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&fZ(t)}};function fZ(e){return new De(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var pZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new wR(t.getZr())).on("brush",s["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){oZ(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:s["d"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:s["d"](n),$from:t})},t.type="brush",t}(Op),mZ=pZ,gZ="#ddd",yZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return a(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&KX(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:gZ},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=s["H"](e,(function(e){return vZ(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=vZ(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Jc);function vZ(e,t){return s["I"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ou(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var _Z=yZ,bZ=["rect","polygon","lineX","lineY","keep","clear"],xZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",a=a||!!e.areas.length})),this._brushType=r,this._brushMode=i,s["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?a:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return s["k"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:bZ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(JU),wZ=xZ;function MZ(e){e.registerComponentView(mZ),e.registerComponentModel(_Z),e.registerPreprocessor(GX),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sZ),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},s["L"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},s["L"]),QU("brush",wZ)}var SZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Jc),TZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),l=s["P"](e.get("textBaseline"),e.get("textVerticalAlign")),u=new Ls({style:iu(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),d=e.get("subtext"),h=new Ls({style:iu(a,{text:d,fill:a.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);u.silent=!f&&!m,h.silent=!p&&!m,f&&u.on("click",(function(){Pc(f,"_"+e.get("target"))})),p&&h.on("click",(function(){Pc(p,"_"+e.get("subtarget"))})),Os(u).eventData=Os(h).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(u),d&&r.add(h);var g=r.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=zc(y,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||(o=e.get("left")||e.get("right"),"middle"===o&&(o="center"),"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),l||(l=e.get("top")||e.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?v.y+=v.height:"middle"===l&&(v.y+=v.height/2),l=l||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var _={align:o,verticalAlign:l};u.setStyle(_),h.setStyle(_),g=r.getBoundingRect();var b=v.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new us({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}},t.type="title",t}(Op);function kZ(e){e.registerComponentModel(SZ),e.registerComponentView(TZ)}var LZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(s["k"])(n,(function(t,n){var r,a=Ti(pi(t),"");Object(s["A"])(t)?(r=Object(s["d"])(t),r.value=n):r=n,e.push(r),i.push(a)}))):e=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number",o=this._data=new KM([{name:"value",type:a}],this);o.initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Jc),OZ=LZ,DZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="timeline.slider",t.defaultOption=Eu(OZ.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(OZ);Object(s["K"])(DZ,rf.prototype);var AZ=DZ,IZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="timeline",t}(Op),CZ=IZ,EZ=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}return a(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(FO),PZ=EZ,YZ=Math.PI,jZ=Ei(),NZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return Kf("nameValue",{noName:!0,value:t})},Object(s["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,o,e)}),this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r=e.get(["label","position"]),i=e.get("orient"),a=HZ(e,t);n=null==r||"auto"===r?"horizontal"===i?a.y+a.height/2<t.getHeight()/2?"-":"+":a.x+a.width/2<t.getWidth()/2?"+":"-":Object(s["C"])(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var o,l,u,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},d={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:YZ/2},f="vertical"===i?a.height:a.width,p=e.getModel("controlStyle"),m=p.get("show",!0),g=m?p.get("itemSize"):0,y=m?p.get("itemGap"):0,v=g+y,_=e.get(["label","rotate"])||0;_=_*YZ/180;var b=p.get("position",!0),x=m&&p.get("showPlayBtn",!0),w=m&&p.get("showPrevBtn",!0),M=m&&p.get("showNextBtn",!0),S=0,T=f;"left"===b||"bottom"===b?(x&&(o=[0,0],S+=v),w&&(l=[S,0],S+=v),M&&(u=[T-g,0],T-=v)):(x&&(o=[T-g,0],T-=v),w&&(l=[0,0],S+=v),M&&(u=[T-g,0],T-=v));var k=[S,T];return e.get("inverse")&&k.reverse(),{viewRect:a,mainLength:f,orient:i,rotation:h[i],labelRotation:_,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[i],playPosition:o,prevBtnPosition:l,nextBtnPosition:u,axisExtent:k,controlSize:g,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=ue(),o=i.x,l=i.y+i.height;fe(a,a,[-o,-l]),pe(a,a,-YZ/2),fe(a,a,[o,l]),i=i.clone(),i.applyTransform(a)}var u=y(i),c=y(n.getBoundingRect()),d=y(r.getBoundingRect()),h=[n.x,n.y],f=[r.x,r.y];f[0]=h[0]=u[0][0];var p=e.labelPosOpt;if(null==p||Object(s["C"])(p)){var m="+"===p?0:1;v(h,c,u,1,m),v(f,d,u,1,1-m)}else{m=p>=0?0:1;v(h,c,u,1,m),f[1]=h[1]+p}function g(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(h),r.setPosition(f),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=RZ(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new PZ("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new Sr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new Nm({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(s["m"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Nm({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(s["i"])({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(s["k"])(o,(function(e){var o=n.dataToCoord(e.value),l=a.getItemModel(e.value),u=l.getModel("itemStyle"),c=l.getModel(["emphasis","itemStyle"]),d=l.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Object(s["c"])(i._changeTimeline,i,e.value)},f=zZ(l,u,t,h);f.ensureState("emphasis").style=c.getItemStyle(),f.ensureState("progress").style=d.getItemStyle(),Ol(f);var p=Os(f);l.get("tooltip")?(p.dataIndex=e.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,a=n.getLabelModel();if(a.get("show")){var o=r.getData(),l=n.getViewLabels();this._tickLabels=[],Object(s["k"])(l,(function(r){var a=r.tickValue,l=o.getItemModel(a),u=l.getModel("label"),c=l.getModel(["emphasis","label"]),d=l.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),f=new Ls({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(s["c"])(i._changeTimeline,i,a),silent:!1,style:iu(u,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=iu(c),f.ensureState("progress").style=iu(d),t.add(f),Ol(f),jZ(f).dataIndex=a,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel("controlStyle").getItemStyle(),l=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),c=r.get("inverse",!0);function d(e,n,u,c){if(e){var d=sr(Object(s["P"])(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-d/2,d,d],f=FZ(r,n+"Icon",h,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-a:0,rectHover:!0,style:o,onclick:u});f.ensureState("emphasis").style=l,t.add(f),Ol(f)}}d(e.nextBtnPosition,"next",Object(s["c"])(this._changeTimeline,this,c?"-":"+")),d(e.prevBtnPosition,"prev",Object(s["c"])(this._changeTimeline,this,c?"+":"-")),d(e.playPosition,u?"stop":"play",Object(s["c"])(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),l=this,u={onCreate:function(e){e.draggable=!0,e.drift=Object(s["c"])(l._handlePointerDrag,l),e.ondragend=Object(s["c"])(l._handlePointerDragend,l),BZ(e,l._progressLine,a,n,r,!0)},onUpdate:function(e){BZ(e,l._progressLine,a,n,r)}};this._currentPointer=zZ(o,o,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=zr(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return kg(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,a){var o=i.dataToCoord(n),s=Math.abs(o-e);s<r&&(r=s,t=a)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",jZ(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(CZ);function RZ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ML({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new RL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new kL}}function HZ(e,t){return zc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function FZ(e,t,n,r){var i=r.style,a=Eg(e.get(["controlStyle",t]),r||{},new De(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function zZ(e,t,n,r,i,a){var o=t.get("color");if(i)i.setColor(o),n.add(i),a&&a.onUpdate(i);else{var l=e.get("symbol");i=lv(l,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i)}var u=t.getItemStyle(["color"]);i.setStyle(u),r=Object(s["I"])({rectHover:!0,z2:100},r,!0);var c=uv(e.get("symbolSize"));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var d=cv(e.get("symbolOffset"),c);d&&(r.x=(r.x||0)+d[0],r.y=(r.y||0)+d[1]);var h=e.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function BZ(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var WZ=NZ;function VZ(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(s["i"])({currentIndex:r.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function GZ(e){var t=e&&e.timeline;s["t"](t)||(t=t?[t]:[]),s["k"](t,(function(e){e&&UZ(e)}))}function UZ(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),qZ(e),XZ(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});XZ(r,"position")||(r.position=e.controlPosition),"none"!==r.position||XZ(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}s["k"](e.data||[],(function(e){s["A"](e)&&!s["t"](e)&&(!XZ(e,"value")&&XZ(e,"name")&&(e.value=e.name),qZ(e))}))}function qZ(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};s["k"](r,(function(e,t){a[t]||XZ(i,t)||(i[t]=e)})),n.label&&!XZ(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function XZ(e,t){return e.hasOwnProperty(t)}function ZZ(e){e.registerComponentModel(AZ),e.registerComponentView(WZ),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),VZ(e),e.registerPreprocessor(GZ)}function KZ(e,t){if(!e)return!1;for(var n=Object(s["t"])(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function JZ(e){hi(e,"label",["show"])}var $Z=Ei(),QZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(o["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),a=$Z(e)[i];n&&n.data?(a?a._mergeOption(n,t,!0):(r&&JZ(n),s["k"](n.data,(function(e){e instanceof Array?(JZ(e[0]),JZ(e[1])):JZ(e)})),a=this.createMarkerModelFromSeries(n,this,t),s["m"](a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),$Z(e)[i]=a):$Z(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Kf("section",{header:this.name,blocks:[Kf("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=rf.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return $Z(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Jc);s["K"](QZ,rf.prototype);var eK=QZ,tK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(eK),nK=tK;function rK(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function iK(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function aK(e,t,n,r,i,a){var o=[],s=sS(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=fK(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(n,c),o[a]=t.get(l,c);var d=t.get(r,c),h=Br(t.get(r,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,d]}var oK={min:Object(s["h"])(aK,"min"),max:Object(s["h"])(aK,"max"),average:Object(s["h"])(aK,"average"),median:Object(s["h"])(aK,"median")};function sK(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!iK(t)&&!Object(s["t"])(t.coord)&&Object(s["t"])(i)){var a=lK(t,n,r,e);if(t=Object(s["d"])(t),t.type&&oK[t.type]&&a.baseAxis&&a.valueAxis){var o=Object(s["r"])(i,a.baseAxis.dim),l=Object(s["r"])(i,a.valueAxis.dim),u=oK[t.type](n,a.baseDataDim,a.valueDataDim,o,l);t.coord=u[0],t.value=u[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(s["t"])(i))for(var c=t.coord,d=0;d<2;d++)oK[c[d]]&&(c[d]=fK(n,n.mapDimension(i[d]),c[d]));else t.coord=[];return t}}function lK(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(uK(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function uK(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function cK(e,t){return!(e&&e.containData&&t.coord&&!rK(t))||e.containData(t.coord)}function dK(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!rK(t)&&!rK(n))||e.containZone(t.coord,n.coord)}function hK(e,t){return e?function(e,n,r,i){var a=i<2?e.coord&&e.coord[i]:e.value;return uf(a,t[i])}:function(e,n,r,i){return uf(e.value,t[i])}}function fK(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var pK=Ei(),mK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this.markerGroupMap=Object(s["f"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){pK(e).keep=!1})),t.eachSeries((function(e){var i=eK.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!pK(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){pK(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(s["k"])(e,(function(e){var r=eK.getMarkerModelFromSeries(e,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(e){e&&(t?fl(e):pl(e))}))}}))},t.type="marker",t}(Op),gK=mK;function yK(e,t,n){var r=t.coordinateSystem;e.each((function(i){var a,o=e.getItemModel(i),s=Hr(o.get("x"),n.getWidth()),l=Hr(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)}))}var vK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=eK.getMarkerModelFromSeries(e,"markPoint");t&&(yK(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new kS),c=_K(i,e,t);t.setData(c),yK(t.getData(),e,r),c.each((function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if(Object(s["w"])(r)||Object(s["w"])(i)||Object(s["w"])(a)||Object(s["w"])(l)){var d=t.getRawValue(e),h=t.getDataParams(e);Object(s["w"])(r)&&(r=r(d,h)),Object(s["w"])(i)&&(i=i(d,h)),Object(s["w"])(a)&&(a=a(d,h)),Object(s["w"])(l)&&(l=l(d,h))}var f=n.getModel("itemStyle").getItemStyle(),p=Wy(o,"color");f.fill||(f.fill=p),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:l,symbolKeepAspect:u,style:f})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Os(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(gK);function _K(e,t,n){var r;r=e?Object(s["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["m"])(Object(s["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new KM(r,n),a=Object(s["H"])(n.get("data"),Object(s["h"])(sK,t));e&&(a=Object(s["n"])(a,Object(s["h"])(cK,e)));var o=hK(!!e,r);return i.initData(a,null,o),i}var bK=vK;function xK(e){e.registerComponentModel(nK),e.registerComponentView(bK),e.registerPreprocessor((function(e){KZ(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(eK),MK=wK,SK=Ei(),TK=function(e,t,n,r){var i,a=e.getData();if(Object(s["t"])(r))i=r;else{var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var l=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)l=t.getAxis(null!=r.yAxis?"y":"x"),u=Object(s["O"])(r.yAxis,r.xAxis);else{var c=lK(r,a,t,e);l=c.valueAxis;var d=lS(a,c.valueDataDim);u=fK(a,d,o)}var h="x"===l.dim?0:1,f=1-h,p=Object(s["d"])(r),m={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,m.coord[f]=1/0;var g=n.get("precision");g>=0&&Object(s["z"])(u)&&(u=+u.toFixed(Math.min(g,20))),p.coord[h]=m.coord[h]=u,i=[p,m,{type:o,valueIndex:r.valueIndex,value:u}]}else i=[]}var y=[sK(e,i[0]),sK(e,i[1]),Object(s["m"])({},i[2])];return y[2].type=y[2].type||null,Object(s["I"])(y[2],y[0]),Object(s["I"])(y[2],y[1]),y};function kK(e){return!isNaN(e)&&!isFinite(e)}function LK(e,t,n,r){var i=1-e,a=r.dimensions[e];return kK(t[i])&&kK(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function OK(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(LK(1,n,r,e)||LK(0,n,r,e)))return!0}return cK(e,t[0])&&cK(e,t[1])}function DK(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=Hr(s.get("x"),i.getWidth()),u=Hr(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,d=e.get(c[0],t),h=e.get(c[1],t);a=o.dataToPoint([d,h])}if(US(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");c=o.dimensions;kK(e.get(c[0],t))?a[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):kK(e.get(c[1],t))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];e.setItemLayout(t,a)}var AK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=eK.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=SK(t).from,a=SK(t).to;i.each((function(t){DK(i,t,!0,e,n),DK(a,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new WY);this.group.add(u.group);var c=IK(i,e,t),d=c.from,h=c.to,f=c.line;SK(t).from=d,SK(t).to=h,t.setData(f);var p=t.get("symbol"),m=t.get("symbolSize"),g=t.get("symbolRotate"),y=t.get("symbolOffset");function v(t,n,i){var a=t.getItemModel(n);DK(t,n,i,e,r);var l=a.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=Wy(o,"color")),t.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(s["P"])(a.get("symbolOffset",!0),y[i?0:1]),symbolRotate:Object(s["P"])(a.get("symbolRotate",!0),g[i?0:1]),symbolSize:Object(s["P"])(a.get("symbolSize"),m[i?0:1]),symbol:Object(s["P"])(a.get("symbol",!0),p[i?0:1]),style:l})}Object(s["t"])(p)||(p=[p,p]),Object(s["t"])(m)||(m=[m,m]),Object(s["t"])(g)||(g=[g,g]),Object(s["t"])(y)||(y=[y,y]),c.from.each((function(e){v(d,e,!0),v(h,e,!1)})),f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[d.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=d.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(e,"symbolOffset"),fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),u.updateData(f),c.line.eachItemGraphicEl((function(e){Os(e).dataModel=t,e.traverse((function(e){Os(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(gK);function IK(e,t,n){var r;r=e?Object(s["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["m"])(Object(s["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new KM(r,n),a=new KM(r,n),o=new KM([],n),l=Object(s["H"])(n.get("data"),Object(s["h"])(TK,t,e,n));e&&(l=Object(s["n"])(l,Object(s["h"])(OK,e)));var u=hK(!!e,r);return i.initData(Object(s["H"])(l,(function(e){return e[0]})),null,u),a.initData(Object(s["H"])(l,(function(e){return e[1]})),null,u),o.initData(Object(s["H"])(l,(function(e){return e[2]}))),o.hasItemOption=!0,{from:i,to:a,line:o}}var CK=AK;function EK(e){e.registerComponentModel(MK),e.registerComponentView(CK),e.registerPreprocessor((function(e){KZ(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var PK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(eK),YK=PK,jK=Ei(),NK=function(e,t,n,r){var i=r[0],a=r[1];if(i&&a){var o=sK(e,i),l=sK(e,a),u=o.coord,c=l.coord;u[0]=Object(s["O"])(u[0],-1/0),u[1]=Object(s["O"])(u[1],-1/0),c[0]=Object(s["O"])(c[0],1/0),c[1]=Object(s["O"])(c[1],1/0);var d=Object(s["J"])([{},o,l]);return d.coord=[o.coord,l.coord],d.x0=o.x,d.y0=o.y,d.x1=l.x,d.y1=l.y,d}};function RK(e){return!isNaN(e)&&!isFinite(e)}function HK(e,t,n,r){var i=1-e;return RK(t[i])&&RK(n[i])}function FK(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return US(e,"cartesian2d")?!(!n||!r||!HK(1,n,r,e)&&!HK(0,n,r,e))||dK(e,i,a):cK(e,i)||cK(e,a)}function zK(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=Hr(s.get(n[0]),i.getWidth()),u=Hr(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),h=o.clampData(c),f=o.clampData(d),p=[];"x0"===n[0]?p[0]=h[0]>f[0]?d[0]:c[0]:p[0]=h[0]>f[0]?c[0]:d[0],"y0"===n[1]?p[1]=h[1]>f[1]?d[1]:c[1]:p[1]=h[1]>f[1]?c[1]:d[1],a=r.getMarkerPosition(p,n,!0)}else{var m=e.get(n[0],t),g=e.get(n[1],t),y=[m,g];o.clampData&&o.clampData(y,y),a=o.dataToPoint(y,!0)}if(US(o,"cartesian2d")){var v=o.getAxis("x"),_=o.getAxis("y");m=e.get(n[0],t),g=e.get(n[1],t);RK(m)?a[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):RK(g)&&(a[1]=_.toGlobalCoord(_.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var BK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],WK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=eK.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(s["H"])(BK,(function(i){return zK(r,t,i,e,n)}));r.setItemLayout(t,i);var a=r.getItemGraphicEl(t);a.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,{group:new Sr});this.group.add(u.group),this.markKeep(u);var c=VK(i,e,t);t.setData(c),c.each((function(t){var n=Object(s["H"])(BK,(function(n){return zK(c,t,n,e,r)})),a=i.getAxis("x").scale,l=i.getAxis("y").scale,u=a.getExtent(),d=l.getExtent(),h=[a.parse(c.get("x0",t)),a.parse(c.get("x1",t))],f=[l.parse(c.get("y0",t)),l.parse(c.get("y1",t))];zr(h),zr(f);var p=!(u[0]>h[1]||u[1]<h[0]||d[0]>f[1]||d[1]<f[0]),m=!p;c.setItemLayout(t,{points:n,allClipped:m});var g=c.getItemModel(t).getModel("itemStyle").getItemStyle(),y=Wy(o,"color");g.fill||(g.fill=y,Object(s["C"])(g.fill)&&(g.fill=Ht["f"](g.fill,.4))),g.stroke||(g.stroke=y),c.setItemVisual(t,"style",g)})),c.diff(jK(u).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Am({shape:{points:t.points}});c.setItemGraphicEl(e,n),u.group.add(n)}})).update((function(e,n){var r=jK(u).data.getItemGraphicEl(n),i=c.getItemLayout(e);i.allClipped?r&&u.group.remove(r):(r?Gl(r,{shape:{points:i.points}},t,e):r=new Am({shape:{points:i.points}}),c.setItemGraphicEl(e,r),u.group.add(r))})).remove((function(e){var t=jK(u).data.getItemGraphicEl(e);u.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var r=c.getItemModel(n),i=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),nu(e,ru(r),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(s["C"])(i.fill)?Ht["f"](i.fill,1):"#000"}),Pl(e,r),Al(e,null,null,r.get(["emphasis","disabled"])),Os(e).dataModel=t})),jK(u).data=c,u.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(gK);function VK(e,t,n){var r,i,a=["x0","y0","x1","y1"];if(e){var o=Object(s["H"])(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return Object(s["m"])(Object(s["m"])({},r),{name:e,ordinalMeta:null})}));i=Object(s["H"])(a,(function(e,t){return{name:e,type:o[t%2].type}})),r=new KM(i,n)}else i=[{name:"value",type:"float"}],r=new KM(i,n);var l=Object(s["H"])(n.get("data"),Object(s["h"])(NK,t,e,n));e&&(l=Object(s["n"])(l,Object(s["h"])(FK,e)));var u=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return uf(a,i[r])}:function(e,t,n,r){return uf(e.value,i[r])};return r.initData(l,null,u),r.hasItemOption=!0,r}var GK=WK;function UK(e){e.registerComponentModel(YK),e.registerComponentView(GK),e.registerPreprocessor((function(e){KZ(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var qK=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},XK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),s["t"](t)&&s["k"](t,(function(e,r){s["C"](e)&&(e={type:e}),t[r]=s["I"](e,qK(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider,s=o.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(s)),s.length?t=t.concat(s):i=!0}else i=!0;i&&ki(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,i=s["f"](),a=s["H"](r,(function(e){return(s["C"](e)||s["z"](e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Ou(e,this,this.ecModel))}),this);this._data=s["n"](a,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;s["k"](r,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;s["k"](e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;s["k"](e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&s["r"](this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Jc),ZK=XK,KK=s["h"],JK=s["k"],$K=Sr,QK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return a(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new $K),this.group.add(this._selectorGroup=new $K),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var o=e.get("selector",!0),l=e.get("selectorPosition",!0);!o||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,o,a,l);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},d=e.get("padding"),h=zc(u,c,d),f=this.layoutInner(e,i,h,r,o,l),p=zc(s["i"]({width:f.width,height:f.height},u),c,d);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iq(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var l=this.getContentGroup(),u=s["f"](),c=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),JK(t.getData(),(function(i,a){var o=i.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var h=new $K;return h.newline=!0,void l.add(h)}var f=n.getSeriesByName(o)[0];if(!u.get(o)){if(f){var p=f.getData(),m=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),y=p.getVisual("style"),v=this._createItem(f,o,a,i,t,e,m,y,g,c,r);v.on("click",KK(nJ,o,null,r,d)).on("mouseover",KK(iJ,f.name,null,r,d)).on("mouseout",KK(aJ,f.name,null,r,d)),n.ssr&&v.eachChild((function(e){var t=Os(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(o,!0)}else n.eachRawSeries((function(l){if(!u.get(o)&&l.legendVisualProvider){var h=l.legendVisualProvider;if(!h.containName(o))return;var f=h.indexOfName(o),p=h.getItemVisual(f,"style"),m=h.getItemVisual(f,"legendIcon"),g=Object(Ht["h"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=s["m"](s["m"]({},p),{fill:Object(Ht["i"])(g,"rgba")}));var y=this._createItem(l,o,a,i,t,e,{},p,m,c,r);y.on("click",KK(nJ,null,o,r,d)).on("mouseover",KK(iJ,null,o,r,d)).on("mouseout",KK(aJ,null,o,r,d)),n.ssr&&y.eachChild((function(e){var t=Os(e);t.seriesIndex=l.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(o,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();JK(e,(function(e){var r=e.type,i=new Ls({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});a.add(i);var o=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);nu(i,{normal:o,emphasis:s},{defaultText:e.title}),Ol(i)}))},t.prototype._createItem=function(e,t,n,r,i,a,o,l,u,c,d){var h=e.visualDrawType,f=i.get("itemWidth"),p=i.get("itemHeight"),m=i.isSelected(t),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon");u=v||u||"roundRect";var _=eJ(u,r,o,l,h,m,d),b=new $K,x=r.getModel("textStyle");if(!s["w"](e.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;b.add(tJ({itemWidth:f,itemHeight:p,icon:u,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:u,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));var M="left"===a?f+5:-5,S=a,T=i.get("formatter"),k=t;s["C"](T)&&T?k=T.replace("{name}",null!=t?t:""):s["w"](T)&&(k=T(t));var L=m?x.getTextColor():r.get("inactiveColor");b.add(new Ls({style:iu(x,{text:k,x:M,y:p/2,fill:L,align:S,verticalAlign:"middle"},{inheritColor:L})}));var O=new us({shape:b.getBoundingRect(),style:{fill:"transparent"}}),D=r.getModel("tooltip");return D.get("show")&&Rg({el:O,componentModel:i,itemName:t,itemTooltipOption:D.option}),b.add(O),b.eachChild((function(e){e.silent=!0})),O.silent=!c,this.getContentGroup().add(b),Ol(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Hc(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),i){Hc("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",m=0===f?"height":"width",g=0===f?"y":"x";"end"===a?d[f]+=l[p]+h:u[f]+=c[p]+h,d[1-f]+=l[m]/2-c[m]/2,s.x=d[0],s.y=d[1],o.x=u[0],o.y=u[1];var y={x:0,y:0};return y[p]=l[p]+h+c[p],y[m]=Math.max(l[m],c[m]),y[g]=Math.min(0,c[g]+d[1-f]),y}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Op);function eJ(e,t,n,r,i,a,o){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),JK(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?Jv(d,o):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!a){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function tJ(e){var t=e.icon||"roundRect",n=lv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function nJ(e,t,n,r){aJ(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),iJ(e,t,n,r)}function rJ(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(t=n[r].states.emphasis))r++;return t&&t.hoverLayer}function iJ(e,t,n,r){rJ(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function aJ(e,t,n,r){rJ(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var oJ=QK;function sJ(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function lJ(e,t,n){var r="allSelect"===e||"inverseSelect"===e,i={},a=[];n.eachComponent({mainType:"legend",query:t},(function(n){r?n[e]():n[e](t.name),uJ(n,i),a.push(n.componentIndex)}));var o={};return n.eachComponent("legend",(function(e){Object(s["k"])(i,(function(t,n){e[t?"select":"unSelect"](n)})),uJ(e,o)})),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function uJ(e,t){var n=t||{};return Object(s["k"])(e.getData(),(function(t){var r=t.get("name");if("\n"!==r&&""!==r){var i=e.isSelected(r);Object(s["q"])(n,r)?n[r]=n[r]&&i:n[r]=i}})),n}function cJ(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(s["h"])(lJ,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(s["h"])(lJ,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(s["h"])(lJ,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(s["h"])(lJ,"select")),e.registerAction("legendUnSelect","legendunselected",Object(s["h"])(lJ,"unSelect"))}function dJ(e){e.registerComponentModel(ZK),e.registerComponentView(oJ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,sJ),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),cJ(e)}var hJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Uc(t);e.prototype.init.call(this,t,n,r),fJ(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),fJ(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Eu(ZK.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(ZK);function fJ(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Gc(t,n,{type:"box",ignoreSize:!!i})}var pJ=hJ,mJ=Sr,gJ=["width","height"],yJ=["x","y"],vJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return a(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new mJ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new mJ)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,l){var u=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),h=s["t"](d)?d:[d,d];p("pagePrev",0);var f=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",a=Eg(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:s["c"](u._pageGo,u,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=e,c.add(a)}c.add(new Ls({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),l=e.getOrient().index,u=gJ[l],c=yJ[l],d=gJ[1-l],h=yJ[1-l];i&&Hc("horizontal",o,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),p=o.getBoundingRect(),m=[-p.x,-p.y],g=s["d"](n);i&&(g[u]=n[u]-p[u]-f);var y=this._layoutContentAndController(e,r,g,l,u,d,h,c);if(i){if("end"===a)m[l]+=y[u]+f;else{var v=p[u]+f;m[l]-=v,y[c]-=v}y[u]+=p[u]+f,m[1-l]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+m[1-l]),o.x=m[0],o.y=m[1],o.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,l){var u=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;Hc(e.get("orient"),u,e.get("itemGap"),r?n.width:null,r?null:n.height),Hc("horizontal",d,e.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),f=d.getBoundingRect(),p=this._showController=h[i]>n[i],m=[-h.x,-h.y];t||(m[r]=u[l]);var g=[0,0],y=[-f.x,-f.y],v=s["P"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var _=e.get("pageButtonPosition",!0);"end"===_?y[r]+=n[i]-f[i]:g[r]+=f[i]+v}y[1-r]+=h[a]/2-f[a]/2,u.setPosition(m),c.setPosition(g),d.setPosition(y);var b={x:0,y:0};if(b[i]=p?n[i]:h[i],b[a]=Math.max(h[a],f[a]),b[o]=Math.min(0,f[o]+y[1-r]),c.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-v,0),x[a]=b[a],c.setClipPath(new us({shape:x})),c.__rectSize=x[i]}else d.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&Gl(u,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;s["k"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",a=null!=t[i],o=n.childOfName(r);o&&(o.setStyle("fill",a?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,l=t.pageCount;r&&i&&r.setStyle("text",s["C"](i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==l?"":l+""):i({current:o,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=gJ[i],o=yJ[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var f=v(u);h.contentPosition[i]=-f.s;for(var p=s+1,m=f,g=f,y=null;p<=c;++p)y=v(l[p]),(!y&&g.e>m.s+r||y&&!_(y,m.s))&&(m=g.i>m.i?g:y,m&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=m.i),++h.pageCount)),g=y;for(p=s-1,m=f,g=f,y=null;p>=-1;--p)y=v(l[p]),y&&_(g,y.s)||!(m.i<g.i)||(g=m,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=m.i),++h.pageCount,++h.pageIndex),m=y;return h;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function _(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var a=r.__legendDataIndex;null==n&&null!=a&&(n=i),a===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(oJ),_J=vJ;function bJ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function xJ(e){Nb(dJ),e.registerComponentModel(pJ),e.registerComponentView(_J),bJ(e)}function wJ(e){Nb(dJ),Nb(xJ)}var MJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.inside",t.defaultOption=Eu(EU.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(EU),SJ=MJ,TJ=Ei();function kJ(e,t,n){TJ(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function LJ(e,t){for(var n=TJ(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||OJ(n,o))}}}function OJ(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function DJ(e,t){var n={model:t,containsPoint:Object(s["h"])(IJ,t),dispatchAction:Object(s["h"])(AJ,e),dataZoomInfoMap:null,controller:null},r=n.controller=new gA(e.getZr());return Object(s["k"])(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function AJ(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function IJ(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function CJ(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each((function(e){var a=e.model,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");r[n+o]>r[n+t]&&(t=o),i=i&&a.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function EJ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=TJ(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(s["f"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=DU(e);Object(s["k"])(n.infoList,(function(n){var i=n.model.uid,a=r.get(i)||r.set(i,DJ(t,n.model)),o=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(s["f"])());o.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];null!=a&&(t=i.get(a))}if(t){var o=CJ(i);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),ey(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else OJ(r,e)}))}))}var PJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return a(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),kJ(r,t,{pan:Object(s["c"])(YJ.pan,this),zoom:Object(s["c"])(YJ.zoom,this),scrollMove:Object(s["c"])(YJ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){LJ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NU),YJ={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=NJ[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return sN(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:jJ((function(e,t,n,r,i,a){var o=NJ[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:jJ((function(e,t,n,r,i,a){var o=NJ[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n);return o.signal*(e[1]-e[0])*a.scrollDelta}))};function jJ(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,i);return sN(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}var NJ={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},RJ=PJ;function HJ(e){ZU(e),e.registerComponentModel(SJ),e.registerComponentView(RJ),EJ(e)}var FJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Eu(EU.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(EU),zJ=FJ,BJ=us,WJ=7,VJ=1,GJ=30,UJ=7,qJ="horizontal",XJ="vertical",ZJ=5,KJ=["line","bar","candlestick","scatter"],JJ={easing:"cubicOut",duration:100,delay:0},$J=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return a(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(s["c"])(this._onBrush,this),this._onBrushEnd=Object(s["c"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),ey(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ty(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Sr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),r=n?UJ:0,i=this._findCoordRect(),a={width:t.getWidth(),height:t.getHeight()},o=this._orient===qJ?{right:a.width-i.x-i.width,top:a.height-GJ-WJ-r,width:i.width,height:GJ}:{right:WJ,top:i.y,width:GJ,height:i.height},l=Uc(e.option);Object(s["k"])(["right","top","width","height"],(function(e){"ph"===l[e]&&(l[e]=o[e])}));var u=zc(l,a);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===XJ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==qJ||i?n===qJ&&i?{scaleY:o?1:-1,scaleX:-1}:n!==XJ||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new BJ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new BJ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(s["c"])(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(o),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,h=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],g=f[1]/(i.count()-1),y=0,v=Math.round(i.count()/t[0]);i.each([o],(function(e,t){if(v>0&&t%v)y+=g;else{var n=null==e||isNaN(e)||""===e,r=n?0:Rr(e,u,h,!0);n&&!d&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&d&&(p.push([y,0]),m.push([y,0])),p.push([y,r]),m.push([y,r]),y+=g,d=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var _=this.dataZoomModel,b=0;b<3;b++){var x=w(1===b);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(e){var t=_.getModel(e?"selectedDataBackground":"dataBackground"),n=new Sr,r=new Am({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Em({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,a){var o=e.getAxisProxy(i,a).getTargetSeriesModels();Object(s["k"])(o,(function(e){if(!n&&!(!0!==t&&Object(s["r"])(KJ,e.get("type"))<0)){var o,l=r.getComponent(LU(i),a).axis,u=QJ(i),c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(o=c.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),n={thisAxis:l,series:e,thisDim:i,otherDim:u,otherAxisInverse:o}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,l=this.api,u=o.get("borderRadius")||0,c=o.get("brushSelect"),d=t.filler=new BJ({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new BJ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:u},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:VJ,fill:"rgba(0,0,0,0)"}})),Object(s["k"])([0,1],(function(t){var a=o.get("handleIcon");!av[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var l=lv(a,-1,0,2,2,null,!0);l.attr({cursor:e$(this._orient),draggable:!0,drift:Object(s["c"])(this._onDragMove,this,t),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=o.get("handleSize");this._handleHeight=Hr(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(o.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Ol(l);var d=o.get("handleColor");null!=d&&(l.style.fill=d),i.add(n[t]=l);var h=o.getModel("textStyle"),f=o.get("handleLabel")||{},p=f.show||!1;e.add(r[t]=new Ls({silent:!0,invisible:!p,style:iu(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=d;if(c){var f=Hr(o.get("moveHandleSize"),a[1]),p=t.moveHandle=new us({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=.8*f,g=t.moveHandleIcon=lv(o.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=a[1]+f/2-.5,p.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(a[1]/2,Math.max(f,10));h=t.moveZone=new us({invisible:!0,shape:{y:a[1]-y,height:f+y}}),h.on("mouseover",(function(){l.enterEmphasis(p)})).on("mouseout",(function(){l.leaveEmphasis(p)})),i.add(p),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:e$(this._orient),drift:Object(s["c"])(this._onDragMove,this,"all"),ondragstart:Object(s["c"])(this._showDataInfo,this,!0),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Rr(e[0],[0,100],t,!0),Rr(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];sN(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?Rr(a.minSpan,o,i,!0):null,null!=a.maxSpan?Rr(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=zr([Rr(r[0],i,o,!0),Rr(r[1],i,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=zr(n.slice()),i=this._size;Object(s["k"])([0,1],(function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=t.dataShadowSegs,l=[0,r[0],r[1],i[0]],u=0;u<o.length;u++){var c=o[u],d=c.getClipPath();d||(d=new us,c.setClipPath(d)),d.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,u=e?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=zr(this._handleEnds.slice());function d(e){var t=Tg(n.handles[e].parent,this.group),o=Lg(0===e?"right":"left",t),s=this._handleWidth/2+ZJ,l=kg([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===qJ?"middle":o,align:i===qJ?o:"center",text:a[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return Object(s["w"])(r)?r(e,a):Object(s["C"])(r)?r.replace("{value}",a):a},t.prototype._showDataInfo=function(e){var t=this.dataZoomModel.get("handleLabel")||{},n=t.show||!1,r=this.dataZoomModel.getModel(["emphasis","handleLabel"]),i=r.get("show")||!1,a=e||this._dragging?i:n,o=this._displayables,s=o.handleLabels;s[0].attr("invisible",!a),s[1].attr("invisible",!a),o.moveHandle&&this.api[a?"enterEmphasis":"leaveEmphasis"](o.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,re(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=kg([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new _e(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),a=[0,100];this._range=zr([Rr(n.x,i,a,!0),Rr(n.x+n.width,i,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(re(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new BJ({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?JJ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=DU(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(NU);function QJ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function e$(e){return"vertical"===e?"ns-resize":"ew-resize"}var t$=$J;function n$(e){e.registerComponentModel(zJ),e.registerComponentView(t$),ZU(e)}function r$(e){Nb(HJ),Nb(n$)}var i$={get:function(e,t,n){var r=s["d"]((a$[e]||{})[t]);return n&&s["t"](r)?r[r.length-1]:r}},a$={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},o$=i$,s$=pP.mapVisual,l$=pP.eachVisual,u$=s["t"],c$=s["k"],d$=zr,h$=Rr,f$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&KX(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=s["c"](e,this),this.controllerVisuals=ZX(this.option.controller,t,e),this.targetVisuals=ZX(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=di(e),t},t.prototype.eachTargetSeries=function(e,t){s["k"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,a=i.precision,o=this.dataBound,l=i.formatter;n=n||["<",">"],s["t"](e)&&(e=e.slice(),r=!0);var u=t?e:r?[c(e[0]),c(e[1])]:c(e);return s["C"](l)?l.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):s["w"](l)?r?l(e[0],e[1]):l(e):r?e[0]===o[0]?n[0]+" "+u[1]:e[1]===o[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=d$([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});s["I"](r,n),s["I"](i,n);var a=this.isCategory();function o(n){u$(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function l(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},c$(r,(function(e,t){if(pP.isValidType(t)){var n=o$.get(t,"inactive",a);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function u(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),o=i||"roundRect";c$(this.stateList,(function(i){var l=this.itemSize,u=e[i];u||(u=e[i]={color:a?r:[r]}),null==u.symbol&&(u.symbol=t&&s["d"](t)||(a?o:[o])),null==u.symbolSize&&(u.symbolSize=n&&s["d"](n)||(a?l[0]:[l[0],l[0]])),u.symbol=s$(u.symbol,(function(e){return"none"===e?o:e}));var c=u.symbolSize;if(null!=c){var d=-1/0;l$(c,(function(e){e>d&&(d=e)})),u.symbolSize=s$(c,(function(e){return h$(e,[0,d],[0,l[0]],!0)}))}}),this)}o.call(this,r),o.call(this,i),l.call(this,r,"inRange","outOfRange"),u.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Jc),p$=f$,m$=[20,140],g$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=m$[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=m$[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):s["t"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),s["k"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=zr((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=y$(this,"outOfRange",this.getExtent()),n=y$(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,l=t.length;o<l&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&r.length&&i(n[a],"outOfRange"),i(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<t[o])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[o],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Eu(p$.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(p$);function y$(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var v$=g$,_$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return a(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=kc(t.get("padding")||0),r=e.getBoundingRect();e.add(new us({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var r=n.forceState,i=this.visualMapModel,a={};if("color"===t){var o=i.get("contentColor");a.color=o}function l(e){return a[e]}function u(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)],d=pP.prepareVisualTypes(c);return s["k"](d,(function(r){var i=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=c.__alphaForOpacity),pP.dependsOn(r,t)&&i&&i.applyVisual(e,l,u)})),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Bc(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(Op),b$=_$,x$=[["left","right","width"],["top","bottom","height"]];function w$(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o="horizontal"===r.orient?1:0,s=x$[o],l=[0,null,10],u={},c=0;c<3;c++)u[x$[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var d=[["x","width",3],["y","height",0]][o],h=zc(u,a,r.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+.5*h[d[1]]<.5*a[d[1]]?0:1]}function M$(e,t){return s["k"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var S$=Rr,T$=s["k"],k$=Math.min,L$=Math.max,O$=12,D$=6,A$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return a(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=s["c"](this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=s["c"](this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,a=i.get("textGap"),o=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Ls({style:iu(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=w$(t,this.api,r),l=n.mainGroup=this._createBarGroup(o),u=new Sr;l.add(u),u.add(n.outOfRange=I$()),u.add(n.inRange=I$(null,a?P$(this._orient):null,s["c"](this._dragHandle,this,"all",!1),s["c"](this._dragHandle,this,"all",!0))),u.setClipPath(new us({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),d=L$(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,l,0,r,d,i),this._createHandle(t,l,1,r,d,i)),this._createIndicator(t,l,r,d,i),e.add(l)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=s["c"](this._dragHandle,this,n,!1),l=s["c"](this._dragHandle,this,n,!0),u=sr(e.get("handleSize"),r[0]),c=lv(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),d=P$(this._orient);c.attr({cursor:d,draggable:!0,drift:o,ondragend:l,onmousemove:function(e){re(e.event)}}),c.x=r[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Yl(c,!0),t.add(c);var h=this.visualMapModel.textStyleModel,f=new Ls({cursor:d,draggable:!0,drift:o,onmousemove:function(e){re(e.event)},ondragend:l,style:iu(h,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[u,0],m=this._shapes;m.handleThumbs[n]=c,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=sr(e.get("indicatorSize"),n[0]),o=lv(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(o instanceof es){var u=o.style;o.useStyle(s["m"]({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else o.useStyle(l);t.add(o);var c=this.visualMapModel.textStyleModel,d=new Ls({silent:!0,invisible:!0,style:iu(c,{x:0,y:0,text:""})});this.group.add(d);var h=[("horizontal"===i?r/2:D$)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=d,f.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():E$(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[S$(t[0],n,r,!0),S$(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];sN(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[S$(r[0],i,a,!0),S$(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,o);return{barColor:new Jm(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,"color",t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Sr("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),l=this._applyTransform("left",n.mainGroup);T$([0,1],(function(u){var c=i[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var d=S$(e[u],[0,o[1]],s,!0),h=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=h/o[0],c.x=o[0]-h/2;var f=kg(n.handleLabelPoints[u],Tg(c,this.group));if("horizontal"===this._orient){var p="left"===l||"top"===l?(o[0]-h)/2:(o[0]-h)/-2;f[1]+=p}a[u].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",c),h=this.getControllerVisual(e,"symbolSize"),f=S$(e,a,s,!0),p=o[0]-h/2,m={x:u.x,y:u.y};u.y=f,u.x=p;var g=kg(l.indicatorLabelPoint,Tg(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),_=this._orient,b="horizontal"===_;y.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:b?v:"middle",align:b?"center":v});var x={x:p,y:f,style:{fill:d}},w={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};u.x=m.x,u.y=m.y,u.animateTo(x,M),y.animateTo(w,M)}else u.attr(x),y.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var T=0;T<S.length;T++)this.api.enterBlur(S[T])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=k$(L$(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=k$(L$(i[0],e),i[1]);var o=C$(n,a,i),s=[e-o,e+o],l=S$(e,i,a,!0),u=[S$(s[0],i,a,!0),S$(s[1],i,a,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var c=this._hoverLinkDataIndices,d=[];(t||E$(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=Ii(c,d);this._dispatchHighDown("downplay",M$(h[0],n)),this._dispatchHighDown("highlight",M$(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Xy(e.target,(function(e){var n=Os(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",M$(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Tg(t,r?null:this.group);return s["t"](e)?kg(e,i,n):Lg(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(b$);function I$(e,t,n,r){return new Am({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){re(e.event)},ondragend:r})}function C$(e,t,n){var r=O$/2,i=e.get("hoverLinkDataSize");return i&&(r=S$(i,t,n,!0)/2),r}function E$(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function P$(e){return"vertical"===e?"ns-resize":"ew-resize"}var Y$=A$,j$={type:"selectDataRange",event:"dataRangeSelected",update:"update"},N$=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},R$=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push($X(t.stateList,t.targetVisuals,s["c"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(s["c"](H$,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function H$(e,t,n,r){for(var i=t.targetVisuals[r],a=pP.prepareVisualTypes(i),o={color:Wy(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,h)}return o.color;function d(e){return o[e]}function h(e,t){o[e]=t}}var F$=s["k"];function z$(e){var t=e&&e.visualMap;s["t"](t)||(t=t?[t]:[]),F$(t,(function(e){if(e){B$(e,"splitList")&&!B$(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&s["t"](t)&&F$(t,(function(e){s["A"](e)&&(B$(e,"start")&&!B$(e,"min")&&(e.min=e.start),B$(e,"end")&&!B$(e,"max")&&(e.max=e.end))}))}}))}function B$(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var W$=!1;function V$(e){W$||(W$=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(j$,N$),Object(s["k"])(R$,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(z$))}function G$(e){e.registerComponentModel(v$),e.registerComponentView(Y$),V$(e)}var U$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return a(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],q$[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=s["d"](i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=s["H"](this._pieceList,(function(e){return e=s["d"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=pP.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}s["k"](t.pieces,(function(e){s["k"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),s["k"](n,(function(e,n){var r=!1;s["k"](this.stateList,(function(e){r=r||a(t,e,n)||a(t.target,e,n)}),this),!r&&s["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=o$.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,s["k"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var a=!1;s["k"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=s["d"](e)},t.prototype.getValueState=function(e){var t=pP.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),(function(t,r){var a=pP.findPieceIndex(t,n);a===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),a=i[i.length-1].interval[1],a!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return s["k"](i,(function(e){var t=e.interval;t&&(t[0]>o&&l([o,t[0]],"outOfRange"),l(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function l(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Eu(p$.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(p$),q$={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var a=(r[1]-r[0])/i;while(+a.toFixed(n)!==a&&n<5)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,l=r[0];o<i;l+=a,o++){var u=o===i-1?r[1]:l+a;e.push({interval:[l,u],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),ni(e),s["k"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;s["k"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),X$(t,e)},pieces:function(e){var t=this.option;s["k"](t.pieces,(function(t,n){s["A"](t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],d=0;d<2;d++){for(var h=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==a[d];f++)a[d]=t[h[f]],o[d]=l[f],c[d]=2===f;null==a[d]&&(a[d]=u[d])}c[0]&&a[1]===1/0&&(o[0]=0),c[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=pP.retrieveVisuals(t),e.push(r)}),this),X$(t,e),ni(e),s["k"](e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function X$(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var Z$=U$,K$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),l=t.itemSize,u=this._getViewData(),c=u.endsText,d=s["O"](t.get("showLabel",!0),!c),h=!t.get("selectedMode");c&&this._renderEndsText(e,c[0],l,d,o),s["k"](u.viewPieceList,(function(r){var u=r.piece,c=new Sr;c.onclick=s["c"](this._onItemClick,this,u),this._enableHoverLink(c,r.indexInModelPieceList);var f=t.getRepresentValue(u);if(this._createItemSymbol(c,f,[0,0,l[0],l[1]],h),d){var p=this.visualMapModel.getValueState(f);c.add(new Ls({style:{x:"right"===o?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:o,font:i,fill:a,opacity:"outOfRange"===p?.5:1},silent:h}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],l,d,o),Hc(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:M$(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return w$(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Sr,o=this.visualMapModel.textStyleModel;a.add(new Ls({style:iu(o,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=s["H"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=lv(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=s["d"](n.selected),a=t.getSelectedMapKey(e);"single"===r||!0===r?(i[a]=!0,s["k"](i,(function(e,t){i[t]=t===a}))):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(b$),J$=K$;function $$(e){e.registerComponentModel(Z$),e.registerComponentView(J$),V$(e)}function Q$(e){Nb(G$),Nb($$)}var eQ={label:{enabled:!0},decal:{show:!1}},tQ=Ei(),nQ={};function rQ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=s["d"](eQ);s["I"](r.label,e.getLocaleModel().get("aria"),!1),s["I"](n.option,r,!1),i(),a()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=s["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),tQ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(s["w"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Td(t.ecModel,t.name,nQ,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",c(i,r))}else{var a=t.getRawData(),o={},l=tQ(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var u=a.count();a.each((function(e){var r=o[e],i=a.getName(e)||e+"",s=Td(t.ecModel,i,l,u),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(d,s))}))}}function c(e,t){var n=e?s["m"](s["m"]({},t),e):t;return n.dirty=!0,n}}))}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=s["i"](a.option,i),a.get("enabled"))if(r.setAttribute("role","img"),a.get("description"))r.setAttribute("aria-label",a.get("description"));else{var c,d=e.getSeriesCount(),h=a.get(["data","maxCount"])||10,f=a.get(["series","maxCount"])||10,p=Math.min(d,f);if(!(d<1)){var m=l();if(m){var g=a.get(["general","withTitle"]);c=o(g,{title:m})}else c=a.get(["general","withoutTitle"]);var y=[],v=d>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);c+=o(v,{seriesCount:d}),e.eachSeries((function(e,t){if(t<p){var n=void 0,r=e.get("name"),i=r?"withName":"withoutName";n=d>1?a.get(["series","multiple",i]):a.get(["series","single",i]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:u(e.subType)});var l=e.getData();if(l.count()>h){var c=a.get(["data","partialData"]);n+=o(c,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var f=a.get(["data","separator","middle"]),m=a.get(["data","separator","end"]),g=a.get(["data","excludeDimensionId"]),v=[],_=0;_<l.count();_++)if(_<h){var b=l.getName(_),x=g?s["n"](l.getValues(_),(function(e,t){return-1===s["r"](g,t)})):l.getValues(_),w=a.get(["data",b?"withName":"withoutName"]);v.push(o(w,{name:b,value:x.join(f)}))}n+=v.join(f)+m,y.push(n)}}));var _=a.getModel(["series","multiple","separator"]),b=_.get("middle"),x=_.get("end");c+=y.join(b)+x,r.setAttribute("aria-label",c)}}}}function o(e,t){if(!s["C"](e))return e;var n=e;return s["k"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function l(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function u(t){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function iQ(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},s["k"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function aQ(e){e.registerPreprocessor(iQ),e.registerVisual(e.PRIORITY.VISUAL.ARIA,rQ)}var oQ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},sQ=function(){function e(e){var t=this._condVal=Object(s["C"])(e)?new RegExp(e):Object(s["B"])(e)?e:null;if(null==t){var n="";0,Ed(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(s["C"])(t)?this._condVal.test(e):!!Object(s["z"])(t)&&this._condVal.test(e+"")},e}(),lQ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),uQ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),cQ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),dQ=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),hQ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function fQ(e,t){if(!0===e||!1===e){var n=new lQ;return n.value=e,n}var r="";return yQ(e)||Ed(r),e.and?pQ("and",e,t):e.or?pQ("or",e,t):e.not?mQ(e,t):gQ(e,t)}function pQ(e,t,n){var r=t[e],i="";Object(s["t"])(r)||Ed(i),r.length||Ed(i);var a="and"===e?new uQ:new cQ;return a.children=Object(s["H"])(r,(function(e){return fQ(e,n)})),a.children.length||Ed(i),a}function mQ(e,t){var n=e.not,r="";yQ(n)||Ed(r);var i=new dQ;return i.child=fQ(n,t),i.child||Ed(r),i}function gQ(e,t){for(var n="",r=t.prepareGetValue(e),i=[],a=Object(s["F"])(e),o=e.parser,l=o?df(o):null,u=0;u<a.length;u++){var c=a[u];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var d=Object(s["q"])(oQ,c)?oQ[c]:c,h=e[c],f=l?l(h):h,p=gf(d,f)||"reg"===d&&new sQ(f);p||Ed(n),i.push(p)}}i.length||Ed(n);var m=new hQ;return m.valueGetterParam=r,m.valueParser=l,m.getValue=t.getValue,m.subCondList=i,m}function yQ(e){return Object(s["A"])(e)&&!Object(s["u"])(e)}var vQ=function(){function e(e,t){this._cond=fQ(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function _Q(e,t){return new vQ(e,t)}var bQ={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=_Q(e.config,{valueGetterAttrMap:Object(s["f"])({dimension:!0}),prepareGetValue:function(e){var t="",r=e.dimension;Object(s["q"])(e,"dimension")||Ed(t);var i=n.getDimensionInfo(r);return i||Ed(t),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),i=[],a=0,o=n.count();a<o;a++)t=n.getRawDataItem(a),r.evaluate()&&i.push(t);return{data:i}}};var xQ={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=di(n);i.length||Ed(r);var a=[];Object(s["k"])(i,(function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;if(null==n&&Ed(r),"asc"!==i&&"desc"!==i&&Ed(r),s&&"min"!==s&&"max"!==s){var l="";0,Ed(l)}if("asc"!==i&&"desc"!==i){var u="";0,Ed(u)}var c=t.getDimensionInfo(n);c||Ed(r);var d=o?df(o):null;o&&!d&&Ed(r),a.push({dimIdx:c.index,parser:d,comparator:new pf(i,s)})}));var o=t.sourceFormat;o!==rd&&o!==id&&Ed(r);for(var l=[],u=0,c=t.count();u<c;u++)l.push(t.getRawDataItem(u));return l.sort((function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var l=i.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:l}}};function wQ(e){e.registerTransform(bQ),e.registerTransform(xQ)}var MQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return a(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new zf(this),Bf(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Bf(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ld},t}(Jc),SQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return a(t,e),t.type="dataset",t}(Op);function TQ(e){e.registerComponentModel(MQ),e.registerComponentView(SQ)}var kQ=bo.CMD;function LQ(e,t){return Math.abs(e-t)<1e-5}function OQ(e){var t,n,r,i,a,o=e.data,s=e.len(),l=[],u=0,c=0,d=0,h=0;function f(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,r,i){LQ(e,r)&&LQ(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,a,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),d=Math.sin(e),h=Math.cos(n),f=Math.sin(n),p=c*a+r,m=d*o+i,g=h*a+r,y=f*o+i,v=a*l*u,_=o*l*u;t.push(p-v*d,m+_*c,g+v*f,y-_*h,g,y)}for(var g=0;g<s;){var y=o[g++],v=1===g;switch(v&&(u=o[g],c=o[g+1],d=u,h=c,y!==kQ.L&&y!==kQ.C&&y!==kQ.Q||(t=[d,h])),y){case kQ.M:u=d=o[g++],c=h=o[g++],f(d,h);break;case kQ.L:n=o[g++],r=o[g++],p(u,c,n,r),u=n,c=r;break;case kQ.C:t.push(o[g++],o[g++],o[g++],o[g++],u=o[g++],c=o[g++]);break;case kQ.Q:n=o[g++],r=o[g++],i=o[g++],a=o[g++],t.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),a+2/3*(r-a),i,a),u=i,c=a;break;case kQ.A:var _=o[g++],b=o[g++],x=o[g++],w=o[g++],M=o[g++],S=o[g++]+M;g+=1;var T=!o[g++];n=Math.cos(M)*x+_,r=Math.sin(M)*w+b,v?(d=n,h=r,f(d,h)):p(u,c,n,r),u=Math.cos(S)*x+_,c=Math.sin(S)*w+b;for(var k=(T?-1:1)*Math.PI/2,L=M;T?L>S:L<S;L+=k){var O=T?Math.max(L+k,S):Math.min(L+k,S);m(L,O,_,b,x,w)}break;case kQ.R:d=u=o[g++],h=c=o[g++],n=d+o[g++],r=h+o[g++],f(n,h),p(n,h,n,r),p(n,r,d,r),p(d,r,d,h),p(d,h,n,h);break;case kQ.Z:t&&p(u,c,d,h),u=d,c=h;break}}return t&&t.length>2&&l.push(t),l}function DQ(e,t,n,r,i,a,o,s,l,u){if(LQ(e,n)&&LQ(t,r)&&LQ(i,o)&&LQ(a,s))l.push(o,s);else{var c=2/u,d=c*c,h=o-e,f=s-t,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var m=n-e,g=r-t,y=i-o,v=a-s,_=m*m+g*g,b=y*y+v*v;if(_<d&&b<d)l.push(o,s);else{var x=h*m+f*g,w=-h*y-f*v,M=_-x*x,S=b-w*w;if(M<d&&x>=0&&S<d&&w>=0)l.push(o,s);else{var T=[],k=[];Tt(e,n,i,o,.5,T),Tt(t,r,a,s,.5,k),DQ(T[0],k[0],T[1],k[1],T[2],k[2],T[3],k[3],l,u),DQ(T[4],k[4],T[5],k[5],T[6],k[6],T[7],k[7],l,u)}}}}function AQ(e,t){var n=OQ(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],d=a[u++],h=a[u++],f=a[u++],p=a[u++],m=a[u++];DQ(s,l,c,d,h,f,p,m,o,t),s=p,l=m}r.push(o)}return r}function IQ(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,d=n-c;if(d>0)for(u=0;u<d;u++)l[u%o]+=1;return l}function CQ(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-r,c=l>Math.abs(u),d=IQ([l,u],c?0:1,t),h=(c?s:u)/d.length,f=0;f<d.length;f++)for(var p=(c?u:s)/d[f],m=0;m<d[f];m++){var g={};c?(g.startAngle=a+h*f,g.endAngle=a+h*(f+1),g.r0=r+p*m,g.r=r+p*(m+1)):(g.startAngle=a+p*m,g.endAngle=a+p*(m+1),g.r0=r+h*f,g.r=r+h*(f+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function EQ(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=IQ([r,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",d=e[s]/o.length,h=0;h<o.length;h++)for(var f=e[l]/o[h],p=0;p<o[h];p++){var m={};m[u]=h*d,m[c]=p*f,m[s]=d,m[l]=f,m.x+=e.x,m.y+=e.y,n.push(m)}}function PQ(e,t,n,r){return e*r-n*t}function YQ(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,h=PQ(c,d,l,u);if(Math.abs(h)<1e-6)return null;var f=e-i,p=t-a,m=PQ(f,p,c,d)/h;return m<0||m>1?null:new _e(m*l+e,m*u+t)}function jQ(e,t,n){var r=new _e;_e.sub(r,n,t),r.normalize();var i=new _e;_e.sub(i,e,t);var a=i.dot(r);return a}function NQ(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function RQ(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],l=YQ(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:jQ(l,t,n),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort((function(e,t){return e.projPt-t.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}var h=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[h],m=[f];for(a=u.idx+1;a<=c.idx;a++)NQ(p,e[a].slice());NQ(p,f),NQ(p,h);for(a=c.idx+1;a<=u.idx+r;a++)NQ(m,e[a%r].slice());return NQ(m,h),NQ(m,f),[{points:p},{points:m}]}function HQ(e){var t=e.points,n=[],r=[];qa(t,n,r);var i=new De(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new _e,c=new _e;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),RQ(t,u,c)}function FQ(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),a=e(t);FQ(e,a[0],i,r),FQ(e,a[1],n-i,r)}return r}function zQ(e,t){for(var n=[],r=0;r<t;r++)n.push($p(e));return n}function BQ(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function WQ(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function VQ(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":EQ(i,t,r),n=us;break;case"sector":CQ(i,t,r),n=wm;break;case"circle":CQ({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=wm;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,l=Object(s["H"])(AQ(e.getUpdatedPathProxy(),o),(function(e){return WQ(e)})),u=l.length;if(0===u)FQ(HQ,{points:l[0]},t,r);else if(u===t)for(var c=0;c<u;c++)r.push({points:l[c]});else{var d=0,h=Object(s["H"])(l,(function(e){var t=[],n=[];qa(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return d+=r,{poly:e,area:r}}));h.sort((function(e,t){return t.area-e.area}));var f=t;for(c=0;c<u;c++){var p=h[c];if(f<=0)break;var m=c===u-1?f:Math.ceil(p.area/d*t);m<0||(FQ(HQ,{points:p.poly},m,r),f-=m)}}n=Am;break}if(!n)return zQ(e,t);var g=[];for(c=0;c<r.length;c++){var y=new n;y.setShape(r[c]),BQ(e,y),g.push(y)}return g}function GQ(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],h=l,f=2;f<s;){var p=o[f-2],m=o[f-1],g=o[f++],y=o[f++],v=o[f++],_=o[f++],b=o[f++],x=o[f++];if(h<=0)d.push(g,y,v,_,b,x);else{for(var w=Math.min(h,c-1)+1,M=1;M<=w;M++){var S=M/w;Tt(p,g,v,b,S,i),Tt(m,y,_,x,S,a),p=i[3],m=a[3],d.push(i[1],a[1],i[2],a[2],p,m),g=i[5],y=a[5],v=i[6],_=a[6]}h-=w-1}}return o===e?[d,t]:[e,d]}function UQ(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function qQ(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(n=GQ(l,u),c=n[0],d=n[1],r=c,i=d):(d=UQ(i||l,l),c=l):(c=UQ(r||u,u),d=u),a.push(c),o.push(d)}return[a,o]}function XQ(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],d=s*c-u*l;t+=d,n+=(s+u)*d,r+=(l+c)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function ZQ(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=6*u,d=0,h=0;h<s;h+=2){var f=0===h?c:(c+h-2)%l+2,p=e[f]-n[0],m=e[f+1]-n[1],g=t[h]-r[0],y=t[h+1]-r[1],v=g-p,_=y-m;d+=v*v+_*_}d<a&&(a=d,o=u)}return o}function KQ(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function JQ(e,t,n,r){for(var i,a=[],o=0;o<e.length;o++){var s=e[o],l=t[o],u=XQ(s),c=XQ(l);null==i&&(i=u[2]<0!==c[2]<0);var d=[],h=[],f=0,p=1/0,m=[],g=s.length;i&&(s=KQ(s));for(var y=6*ZQ(s,l,u,c),v=g-2,_=0;_<v;_+=2){var b=(y+_)%v+2;d[_+2]=s[b]-u[0],d[_+3]=s[b+1]-u[1]}if(d[0]=s[y]-u[0],d[1]=s[y+1]-u[1],n>0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var M=Math.sin(w),S=Math.cos(w),T=0;for(_=0;_<s.length;_+=2){var k=d[_],L=d[_+1],O=l[_]-c[0],D=l[_+1]-c[1],A=O*S-D*M,I=O*M+D*S;m[_]=A,m[_+1]=I;var C=A-k,E=I-L;T+=C*C+E*E}if(T<p){p=T,f=w;for(var P=0;P<m.length;P++)h[P]=m[P]}}else for(var Y=0;Y<g;Y+=2)h[Y]=l[Y]-c[0],h[Y+1]=l[Y+1]-c[1];a.push({from:d,to:h,fromCp:u,toCp:c,rotation:-f})}return a}function $Q(e){return e.__isCombineMorphing}var QQ="__mOriginal_";function e0(e,t,n){var r=QQ+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=a?a.apply(this,t):i.apply(this,t),o&&o.apply(this,t),e}}function t0(e,t){var n=QQ+t;e[n]&&(e[t]=e[n],e[n]=null)}function n0(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function r0(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=qQ(OQ(n),OQ(r)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&n0(a,s),l&&n0(o,l),e0(t,"updateTransform",{replace:u}),t.transform=null;var c=JQ(a,o,10,Math.PI),d=[];e0(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<c.length;a++){var o=c[a],s=o.from,l=o.to,u=o.rotation*n,h=o.fromCp,f=o.toCp,p=Math.sin(u),m=Math.cos(u);T(i,h,f,n);for(var g=0;g<s.length;g+=2){var y=s[g],v=s[g+1],_=l[g],b=l[g+1],x=y*r+_*n,w=v*r+b*n;d[g]=x*m-w*p+i[0],d[g+1]=x*p+w*m+i[1]}var M=d[0],S=d[1];e.moveTo(M,S);for(g=2;g<s.length;){_=d[g++],b=d[g++];var k=d[g++],L=d[g++],O=d[g++],D=d[g++];M===_&&S===b&&k===O&&L===D?e.lineTo(O,D):e.bezierCurveTo(_,b,k,L,O,D),M=O,S=D}}}})}function i0(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;function a(){t0(t,"buildPath"),t0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return r0(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(s["i"])({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function a0(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s,l=0,u=(1<<o)/2;u>0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),l+=u*u*(3*c^d),0===d&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function o0(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(s["H"])(e,(function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),o=Object(s["H"])(a,(function(a,o){return{cp:a,z:a0(a[0],a[1],t,n,r,i),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function s0(e){return VQ(e.path,e.count)}function l0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function u0(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];$Q(n)?i(n.childrenRef()):n instanceof Uo&&r.push(n)}}i(e);var a=r.length;if(!a)return l0();var o=n.dividePath||s0,l=o({path:t,count:a});if(l.length!==a)return console.error("Invalid morphing: unmatched splitted path"),l0();r=o0(r),l=o0(l);for(var u=n.done,c=n.during,d=n.individualDelay,h=new Jn,f=0;f<a;f++){var p=r[f],m=l[f];m.parent=t,m.copyTransform(h),d||r0(p,m)}function g(e){for(var t=0;t<l.length;t++)l[t].addSelfToZr(e)}function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,t0(t,"addSelfToZr"),t0(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return l},e0(t,"addSelfToZr",{after:function(e){g(e)}}),e0(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<l.length;t++)l[t].removeSelfFromZr(e)}});var v=l.length;if(d){var _=v,b=function(){_--,0===_&&(y(),u&&u())};for(f=0;f<v;f++){var x=d?Object(s["i"])({delay:(n.delay||0)+d(f,v,r[f],l[f]),done:b},n):n;i0(r[f],l[f],x)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(s["i"])({during:function(e){for(var n=0;n<v;n++){var r=l[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){y();for(var t=0;t<e.length;t++)t0(e[t],"updateTransform");u&&u()}},n));return t.__zr&&g(t.__zr),{fromIndividuals:r,toIndividuals:l,count:v}}function c0(e,t,n){var r=t.length,i=[],a=n.dividePath||s0;function o(e){for(var t=0;t<e.length;t++){var n=e[t];$Q(n)?o(n.childrenRef()):n instanceof Uo&&i.push(n)}}if($Q(e)){o(e.childrenRef());var l=i.length;if(l<r)for(var u=0,c=l;c<r;c++)i.push($p(i[u++%l]));i.length=r}else{i=a({path:e,count:r});var d=e.getComputedTransform();for(c=0;c<i.length;c++)i[c].setLocalTransform(d);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),l0()}i=o0(i),t=o0(t);var h=n.individualDelay;for(c=0;c<r;c++){var f=h?Object(s["i"])({delay:(n.delay||0)+h(c,r,i[c],t[c])},n):n;i0(i[c],t[c],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function d0(e){return Object(s["t"])(e[0])}function h0(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[i].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var f0={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=$p(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function p0(e,t,n,r,i,a){if(e.length&&t.length){var o=Wl("update",r,i);if(o&&o.duration>0){var l,u,c=r.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},o);d0(e)&&(l=e,u=t),d0(t)&&(l=t,u=e);for(var h=l?l===e:e.length>t.length,f=l?h0(u,l):h0(h?t:e,[h?e:t]),p=0,m=0;m<f.length;m++)p+=f[m].many.length;var g=0;for(m=0;m<f.length;m++)y(f[m],h,g,p),g+=f[m].many.length}}function y(e,t,r,i,o){var l=e.many,u=e.one;if(1!==l.length||o)for(var h=Object(s["i"])({dividePath:f0[n],individualDelay:c&&function(e,t,n,a){return c(e+r,i)}},d),f=t?u0(l,u,h):c0(u,l,h),p=f.fromIndividuals,m=f.toIndividuals,g=p.length,v=0;v<g;v++){x=c?Object(s["i"])({delay:c(v,g)},d):d;a(p[v],m[v],t?l[v]:e.one,t?e.one:l[v],x)}else{var _=t?l[0]:u,b=t?u:l[0];if($Q(_))y({many:[_],one:b},!0,r,i,!0);else{var x=c?Object(s["i"])({delay:c(r,i)},d):d;i0(_,b,x),a(_,b,_,b,x)}}}}function m0(e){if(!e)return[];if(Object(s["t"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(m0(e[n]));return t}var r=[];return e.traverse((function(e){e instanceof Uo&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)})),r}var g0=1e4,y0=0,v0=1,_0=2,b0=Ei();function x0(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&0===i.otherDims[t])return n[r]}}function w0(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+""}}function M0(e,t,n,r){var i=r?"itemChildGroupId":"itemGroupId",a=x0(e,i);if(a){var o=w0(e,t,a);return o}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";return s&&s[l]?s[l]+"":r?void 0:n||e.getId(t)}function S0(e){var t=[];return Object(s["k"])(e,(function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>g0))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:M0(n,a,r,!1),childGroupId:M0(n,a,r,!0),divide:e.divide,dataIndex:a})})),t}function T0(e,t,n){e.traverse((function(e){e instanceof Uo&&Ul(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function k0(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function L0(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function O0(e,t,n){var r=Wl("update",n,t);r&&e.traverse((function(e){if(e instanceof Ra){var t=$l(e);t&&e.animateFrom({style:t},r)}}))}function D0(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function A0(e,t,n){var r=S0(e),i=S0(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Object(s["m"])(Object(s["m"])({},n.style),e.style):e.style},i)}var o=!1,l=y0,u=Object(s["f"])(),c=Object(s["f"])();r.forEach((function(e){e.groupId&&u.set(e.groupId,!0),e.childGroupId&&c.set(e.childGroupId,!0)}));for(var d=0;d<i.length;d++){var h=i[d].groupId;if(c.get(h)){l=v0;break}var f=i[d].childGroupId;if(f&&u.get(f)){l=_0;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?l===v0?n.childGroupId:n.groupId:l===_0?n.childGroupId:n.groupId}}var m=D0(r,i),g={};if(!m)for(d=0;d<i.length;d++){var y=i[d],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function _(e,t){var n=r[t],s=i[e],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(L0(c),u?(L0(u),k0(u),o=!0,p0(m0(u),m0(c),s.divide,l,e,a)):T0(c,l,e)):c&&O0(c,s.dataIndex,l)}new bM(r,i,p(!0,m),p(!1,m),null,"multiple").update(_).updateManyToOne((function(e,t){var n=i[e],l=n.data,u=l.hostModel,c=l.getItemGraphicEl(n.dataIndex),d=Object(s["n"])(Object(s["H"])(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==c&&!g[e.id]}));c&&(L0(c),d.length?(Object(s["k"])(d,(function(e){L0(e),k0(e)})),o=!0,p0(m0(d),m0(c),n.divide,u,e,a)):T0(c,u,n.dataIndex))})).updateOneToMany((function(e,t){var n=r[t],l=n.data.getItemGraphicEl(n.dataIndex);if(!l||!g[l.id]){var u=Object(s["n"])(Object(s["H"])(e,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l})),c=i[e[0]].data.hostModel;u.length&&(Object(s["k"])(u,(function(e){return L0(e)})),l?(L0(l),k0(l),o=!0,p0(m0(l),m0(u),n.divide,c,e[0],a)):Object(s["k"])(u,(function(t){return T0(t,c,e[0])})))}})).updateManyToMany((function(e,t){new bM(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return i[e].data.getId(i[e].dataIndex)})).update((function(n,r){_(e[n],t[r])})).execute()})).execute(),o&&Object(s["k"])(t,(function(e){var t=e.data,r=t.hostModel,i=r&&n.getViewOfSeriesModel(r),a=Wl("update",r,0);i&&r.isAnimationEnabled()&&a&&a.duration>0&&i.group.traverse((function(e){e instanceof Uo&&!e.animators.length&&e.animateFrom({style:{opacity:0}},a)}))}))}function I0(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function C0(e){return Object(s["t"])(e)?e.sort().join(","):e}function E0(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function P0(e,t){var n=Object(s["f"])(),r=Object(s["f"])(),i=Object(s["f"])();return Object(s["k"])(e.oldSeries,(function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],l=I0(t),u=C0(l);r.set(u,{dataGroupId:a,data:o}),Object(s["t"])(l)&&Object(s["k"])(l,(function(e){i.set(e,{key:u,dataGroupId:a,data:o})}))})),Object(s["k"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),o=I0(e),l=C0(o),u=r.get(l);if(u)n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:E0(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:E0(a),data:a}]});else if(Object(s["t"])(o)){0;var c=[];Object(s["k"])(o,(function(e){var t=r.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:E0(t.data),data:t.data})})),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:t,data:a,divide:E0(a)}]})}else{var d=i.get(o);if(d){var h=n.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:E0(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:t,data:a,divide:E0(a)})}}}})),n}function Y0(e,t){for(var n=0;n<e.length;n++){var r=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(r)return n}}function j0(e,t,n,r){var i=[],a=[];Object(s["k"])(di(e.from),(function(e){var n=Y0(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:E0(t.oldData[n]),groupIdDim:e.dimension})})),Object(s["k"])(di(e.to),(function(e){var r=Y0(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:E0(i),groupIdDim:e.dimension})}})),i.length>0&&a.length>0&&A0(i,a,r)}function N0(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(s["k"])(di(n.seriesTransition),(function(e){Object(s["k"])(di(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][gp]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var r=b0(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(s["k"])(di(i),(function(e){j0(e,r,n,t)}));else{var a=P0(r,n);Object(s["k"])(a.keys(),(function(e){var n=a.get(e);A0(n.oldSeries,n.newSeries,t)}))}Object(s["k"])(n.updatedSeries,(function(e){e[gp]&&(e[gp]=!1)}))}for(var o=e.getSeries(),l=r.oldSeries=[],u=r.oldDataGroupIds=[],c=r.oldData=[],d=0;d<o.length;d++){var h=o[d].getData();h.count()<g0&&(l.push(o[d]),u.push(o[d].get("dataGroupId")),c.push(h))}}))}Nb([jx]),Nb([gM]),Nb([gT,pk,Rk,HD,oA,bC,vE,UP,dj,xj,Cj,NR,gH,PH,cF,vF,zF,$F,Oz,Rz,rB,EW]),Nb(IV),Nb(MG),Nb(_C),Nb(ZG),Nb(jR),Nb(aU),Nb(MU),Nb(sX),Nb(WX),Nb(AV),Nb(MZ),Nb(kZ),Nb(ZZ),Nb(xK),Nb(EK),Nb(UK),Nb(wJ),Nb(r$),Nb(HJ),Nb(n$),Nb(Q$),Nb(G$),Nb($$),Nb(aQ),Nb(wQ),Nb(TQ),Nb(N0),Nb(Sx)},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function i(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(o=n["return"](),Object(o)!==o))return}finally{if(u)throw i}}return s}}var a=n("06c5");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(a["a"])(e,t)||o()}},3886:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"39a6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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 i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे";break}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां";break}return i.replace(/%d/i,e)}var i=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||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return i}))},"3a39":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=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}});return r}))},"3a6c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",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:"[下]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+"日";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 年"}});return t}))},"3b1b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=e.defineLocale("tg",{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:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"3c0d":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!==~~(e/10)}function o(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(a(e)?"roky":"let"):i+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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}});return s}))},"3de5":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},r=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}});return r}))},"3e92":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},r=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}});return r}))},"408a":function(e,t,n){var r=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},"41ef":function(e,t,n){"use strict";n.d(t,"h",(function(){return v})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return M})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return T})),n.d(t,"i",(function(){return k})),n.d(t,"e",(function(){return L})),n.d(t,"d",(function(){return D}));var r=n("d51b"),i=n("6d8b"),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return e=Math.round(e),e<0?0:e>255?255:e}function s(e){return e=Math.round(e),e<0?0:e>360?360:e}function l(e){return e<0?0:e>1?1:e}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100):l(parseFloat(t))}function d(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function h(e,t,n){return e+(t-e)*n}function f(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var m=new r["a"](20),g=null;function y(e,t){g&&p(g,t),g=m.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=m.get(e);if(n)return p(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in a)return p(t,a[r]),y(e,t),t;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===i){var l=r.substr(0,o),d=r.substr(o+1,s-(o+1)).split(","),h=1;switch(l){case"rgba":if(4!==d.length)return 3===d.length?f(t,+d[0],+d[1],+d[2],1):f(t,0,0,0,1);h=c(d.pop());case"rgb":return d.length>=3?(f(t,u(d[0]),u(d[1]),u(d[2]),3===d.length?h:c(d[3])),y(e,t),t):void f(t,0,0,0,1);case"hsla":return 4!==d.length?void f(t,0,0,0,1):(d[3]=c(d[3]),_(d,t),y(e,t),t);case"hsl":return 3!==d.length?void f(t,0,0,0,1):(_(d,t),y(e,t),t);default:return}}f(t,0,0,0,1)}else{if(4===i||5===i){var g=parseInt(r.slice(1,4),16);return g>=0&&g<=4095?(f(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,5===i?parseInt(r.slice(4),16)/15:1),y(e,t),t):void f(t,0,0,0,1)}if(7===i||9===i){g=parseInt(r.slice(1,7),16);return g>=0&&g<=16777215?(f(t,(16711680&g)>>16,(65280&g)>>8,255&g,9===i?parseInt(r.slice(7),16)/255:1),y(e,t),t):void f(t,0,0,0,1)}}}}function _(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=c(e[1]),i=c(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return t=t||[],f(t,o(255*d(s,a,n+1/3)),o(255*d(s,a,n)),o(255*d(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function b(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,h=((s-a)/6+l/2)/l;r===s?t=h-d:i===s?t=1/3+c-h:a===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}function x(e,t){var n=v(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return k(n,4===n.length?"rgba":"rgb")}}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),s=t[i],u=t[a],c=r-i;return n[0]=o(h(s[0],u[0],c)),n[1]=o(h(s[1],u[1],c)),n[2]=o(h(s[2],u[2],c)),n[3]=l(h(s[3],u[3],c)),n}}function M(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),s=v(t[i]),u=v(t[a]),c=r-i,d=k([o(h(s[0],u[0],c)),o(h(s[1],u[1],c)),o(h(s[2],u[2],c)),l(h(s[3],u[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:a,value:r}:d}}function S(e,t,n,r){var i=v(e);if(e)return i=b(i),null!=t&&(i[0]=s(t)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),k(_(i),"rgba")}function T(e,t){var n=v(e);if(n&&null!=t)return n[3]=l(t),k(n,"rgba")}function k(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function L(e,t){var n=v(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var O=new r["a"](100);function D(e){if(Object(i["C"])(e)){var t=O.get(e);return t||(t=x(e,-.1),O.put(e,t)),t}if(Object(i["x"])(e)){var n=Object(i["m"])({},e);return n.colorStops=Object(i["H"])(e.colorStops,(function(e){return{offset:e.offset,color:x(e.color,-.1)}})),n}return e}},"423e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"440c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"viru "+e:"virun "+e}function i(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,n=e/10;return i(0===t?n:t)}if(e<1e4){while(e>=10)e/=10;return i(e)}return e/=1e3,i(e)}var a=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:n,past:r,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}});return a}))},"485c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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ı"},n=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:"bir neçə saniyə",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,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}});return n}))},"49ab":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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<1200?"上午":1200===r?"中午":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 年"}});return t}))},"4ba9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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}});return n}))},"4c98":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=e.defineLocale("ar-ps",{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]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return r}))},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("1c0b"),a=n("7b0b"),o=n("d039"),s=n("a640"),l=[],u=l.sort,c=o((function(){l.sort(void 0)})),d=o((function(){l.sort(null)})),h=s("sort"),f=c||!d||!h;r({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?u.call(a(this)):u.call(a(this),i(e))}})},5038:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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_Agt_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:0,doy:6}});return t}))},5120:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a=["Do","Lu","Má","Cé","Dé","A","Sa"],o=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:a,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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return o}))},5294:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],r=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}});return r}))},"52bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"55c9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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,a=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},monthsRegex:i,monthsShortRegex:i,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:"MM/DD/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",w:"una semana",ww:"%d semanas",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}});return a}))},"576c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_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:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"598a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r=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}});return r}))},"5aff":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},n=e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}});return n}))},"5b14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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 i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var i=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("_"),monthsParseExact:!0,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}});return i}))},"5c3a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},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 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},"5cbb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"5fbd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+n},week:{dow:1,doy:4}});return t}))},6062:function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},6117:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".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:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، 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:"[كېلەركى] 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,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6403:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"65db":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, 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[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},6784:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],r=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}});return r}))},6887:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+i(r[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function i(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,u=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],h=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],f=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("_"),weekdaysParse:h,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:h,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:u,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}});return f}))},"688b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},6909:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"6ce3":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"6d79":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=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){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"6d83":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"6d8b":function(e,t,n){"use strict";n.d(t,"p",(function(){return g})),n.d(t,"G",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"I",(function(){return _})),n.d(t,"J",(function(){return b})),n.d(t,"m",(function(){return x})),n.d(t,"i",(function(){return w})),n.d(t,"r",(function(){return M})),n.d(t,"s",(function(){return S})),n.d(t,"K",(function(){return T})),n.d(t,"u",(function(){return k})),n.d(t,"k",(function(){return L})),n.d(t,"H",(function(){return O})),n.d(t,"N",(function(){return D})),n.d(t,"n",(function(){return A})),n.d(t,"o",(function(){return I})),n.d(t,"F",(function(){return C})),n.d(t,"c",(function(){return P})),n.d(t,"h",(function(){return Y})),n.d(t,"t",(function(){return j})),n.d(t,"w",(function(){return N})),n.d(t,"C",(function(){return R})),n.d(t,"D",(function(){return H})),n.d(t,"z",(function(){return F})),n.d(t,"A",(function(){return z})),n.d(t,"E",(function(){return W})),n.d(t,"v",(function(){return V})),n.d(t,"x",(function(){return G})),n.d(t,"y",(function(){return U})),n.d(t,"B",(function(){return q})),n.d(t,"l",(function(){return X})),n.d(t,"O",(function(){return Z})),n.d(t,"P",(function(){return K})),n.d(t,"Q",(function(){return J})),n.d(t,"S",(function(){return $})),n.d(t,"M",(function(){return Q})),n.d(t,"b",(function(){return ee})),n.d(t,"T",(function(){return te})),n.d(t,"R",(function(){return re})),n.d(t,"f",(function(){return ue})),n.d(t,"e",(function(){return ce})),n.d(t,"g",(function(){return de})),n.d(t,"j",(function(){return he})),n.d(t,"q",(function(){return fe})),n.d(t,"L",(function(){return pe})),n.d(t,"a",(function(){return me}));var r=n("726e"),i=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),a=D(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,d=s.map,h=function(){}.constructor,f=h?h.prototype:null,p="__proto__",m=2311;function g(){return m++}function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function v(e){if(null==e||"object"!==typeof e)return e;var t=e,n=o.call(e);if("[object Array]"===n){if(!ie(e)){t=[];for(var r=0,s=e.length;r<s;r++)t[r]=v(e[r])}}else if(a[n]){if(!ie(e)){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(r=0,s=e.length;r<s;r++)t[r]=e[r]}}}else if(!i[n]&&!ie(e)&&!V(e))for(var u in t={},e)e.hasOwnProperty(u)&&u!==p&&(t[u]=v(e[u]));return t}function _(e,t,n){if(!z(t)||!z(e))return n?v(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==p){var i=e[r],a=t[r];!z(a)||!z(i)||j(a)||j(i)||V(a)||V(i)||B(a)||B(i)||ie(a)||ie(i)?!n&&r in e||(e[r]=v(t[r])):_(i,a,n)}return e}function b(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=_(n,e[r],t);return n}function x(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==p&&(e[n]=t[n]);return e}function w(e,t,n){for(var r=C(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}r["d"].createCanvas;function M(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function S(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function T(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else w(e,t,n)}function k(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function L(e,t,n){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function O(e,t,n){if(!e)return[];if(!t)return $(e);if(e.map&&e.map===d)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function D(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function A(e,t,n){if(!e)return[];if(!t)return $(e);if(e.filter&&e.filter===u)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function I(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function C(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function E(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(c.call(arguments)))}}var P=f&&N(f.bind)?f.call.bind(f.bind):E;function Y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(c.call(arguments)))}}function j(e){return Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)}function N(e){return"function"===typeof e}function R(e){return"string"===typeof e}function H(e){return"[object String]"===o.call(e)}function F(e){return"number"===typeof e}function z(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function B(e){return!!i[o.call(e)]}function W(e){return!!a[o.call(e)]}function V(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function G(e){return null!=e.colorStops}function U(e){return null!=e.image}function q(e){return"[object RegExp]"===o.call(e)}function X(e){return e!==e}function Z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function K(e,t){return null!=e?e:t}function J(e,t,n){return null!=e?e:null!=t?t:n}function $(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return c.apply(e,t)}function Q(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ee(e,t){if(!e)throw new Error(t)}function te(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ne="__ec_primitive__";function re(e){e[ne]=!0}function ie(e){return e[ne]}var ae=function(){function e(){this.data={}}return e.prototype["delete"]=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return C(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),oe="function"===typeof Map;function se(){return oe?new Map:new ae}var le=function(){function e(t){var n=j(t);this.data=se();var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&L(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,r){e.call(t,n,r)}))},e.prototype.keys=function(){var e=this.data.keys();return oe?Array.from(e):e},e.prototype.removeKey=function(e){this.data["delete"](e)},e}();function ue(e){return new le(e)}function ce(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function de(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&x(n,t),n}function he(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function fe(e,t){return e.hasOwnProperty(t)}function pe(){}var me=180/Math.PI},"6e98":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6f12":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it-ch",{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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}});return t}))},"6f50":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"6f53":function(e,t,n){var r=n("83ab"),i=n("df75"),a=n("fc6a"),o=n("d1e7").f,s=function(e){return function(t){var n,s=a(t),l=i(s),u=l.length,c=0,d=[];while(u>c)n=l[c++],r&&!o.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},7118:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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("_"),r=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}});return r}))},"726e":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h}));var r=12,i="sans-serif",a=r+"px "+i,o=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-o)/s;t[r]=i}return t}var c=u(l),d={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,i){if(!e){var o=d.createCanvas();e=o&&o.getContext("2d")}if(e)return t!==i&&(t=e.font=i||a),e.measureText(n);n=n||"",i=i||a;var s=/((?:\d+)?\.?\d*)px/.exec(i),l=s&&+s[1]||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var h=0;h<n.length;h++){var f=c[n[h]];u+=null==f?l:f*l}return{width:u}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function h(e){for(var t in d)e[t]&&(d[t]=e[t])}},7333:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-il",{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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"74dc":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},7558:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?i[n][0]:i[n][1]}function n(e){e=""+e;var t=e.substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}var r=e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var r=t.toLowerCase();return r.includes("w")||r.includes("m")?e+".":e+n(e)},week:{dow:1,doy:4}});return r}))},"76d6":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("1c0b"),o=n("825a");r({target:"Iterator",proto:!0,real:!0},{every:function(e){return o(this),a(e),!i(this,(function(t){if(!e(t))return i.stop()}),void 0,!1,!0).stopped}})},"7a29":function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return s})),n.d(t,"j",(function(){return u})),n.d(t,"q",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return b})),n.d(t,"o",(function(){return x})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return M})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return T})),n.d(t,"c",(function(){return k}));var r=n("6d8b"),i=n("41ef"),a=n("22d1"),o=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(i["h"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function u(e){return e<l&&e>-l}function c(e){return o(1e3*e)/1e3}function d(e){return o(1e4*e)/1e4}function h(e){return"matrix("+c(e[0])+","+c(e[1])+","+c(e[2])+","+c(e[3])+","+d(e[4])+","+d(e[5])+")"}var f={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(e){return e&&!!e.image}function v(e){return e&&!!e.svgElement}function _(e){return y(e)||v(e)}function b(e){return"linear"===e.type}function x(e){return"radial"===e.type}function w(e){return e&&("linear"===e.type||"radial"===e.type)}function M(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r["a"],a=Object(r["P"])(e.scaleX,1),s=Object(r["P"])(e.scaleY,1),l=e.skewX||0,u=e.skewY||0,c=[];return(t||n)&&c.push("translate("+t+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===a&&1===s||c.push("scale("+a+","+s+")"),(l||u)&&c.push("skew("+o(l*r["a"])+"deg, "+o(u*r["a"])+"deg)"),c.join(" ")}var k=function(){return a["a"].hasGlobalWindow&&Object(r["w"])(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,n("b639").Buffer)},"7be6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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 i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"rokmi"}}var a=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:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,a=n("44d2"),o=n("ae40"),s="find",l=!0,u=o(s);s in[]&&Array(1)[s]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!u},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},"7f33":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_À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:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},8096:function(e,t,n){},8155:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund",i;case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami",i;case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami",i;case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi",i;case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci",i;case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti",i}}var n=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}});return n}))},"81e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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,t,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":a=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta";break}return a=i(e,r)+" "+a,a}function i(e,r){return e<10?r?n[e]:t[e]:e}var 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}});return a}))},8230:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=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}});return r}))},"84aa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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 дена",w:"седмица",ww:"%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}});return t}))},8689:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},r=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}});return r}))},8840:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},"898b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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,a=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:i,monthsShortRegex:i,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"});return a}))},"8d47":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var n=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(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],i=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",i%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}});return n}))},"8d57":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}var o=e.defineLocale("pl",{months:function(e,r){return e?/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("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},"8df48":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},r=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}});return r}))},"8e73":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,o){var s=r(t),l=i[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar",{months:o,monthsShort:o,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:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("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}});return s}))},9043:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=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}});return r}))},"90ea":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:"[下]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+"日";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 年"}});return t}))},9152:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+f]=255&o,f+=p,o/=256,u-=8);e[n+f-p]|=128*m}},9339:function(e,t,n){(function(t){
/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),a=n(19),o=n(45),s=n(46),l=n(47),u=n(48),c=n(49),d=n(12),h=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:a.default,Embed:u.default,Scroll:o.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,o={},s={},l={},u={};function c(e,t){var n=h(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,a=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(a,t)}function d(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?d(e.parentNode,n):null}function h(e,t){var n;if(void 0===t&&(t=a.ANY),"string"===typeof e)n=u[e]||o[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof e)e&a.LEVEL&a.BLOCK?n=u["block"]:e&a.LEVEL&a.INLINE&&(n=u["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return f(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)o[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=c,t.find=d,t.query=h,t.register=f},function(e,t,n){var r=n(51),i=n(11),a=n(3),o=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+o.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+o.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=o.iterator(this.ops),i=0;while(i<t&&r.hasNext()){var a;i<e?a=r.next(e-i):(a=r.next(t-i),n.push(a)),i+=o.length(a)}return new l(n)},l.prototype.compose=function(e){var t=o.iterator(this.ops),n=o.iterator(e.ops),r=[],a=n.peek();if(null!=a&&"number"===typeof a.retain&&null==a.attributes){var s=a.retain;while("insert"===t.peekType()&&t.peekLength()<=s)s-=t.peekLength(),r.push(t.next());a.retain-s>0&&n.next(a.retain-s)}var u=new l(r);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),h=n.next(c);if("number"===typeof h.retain){var f={};"number"===typeof d.retain?f.retain=c:f.insert=d.insert;var p=o.attributes.compose(d.attributes,h.attributes,"number"===typeof d.retain);if(p&&(f.attributes=p),u.push(f),!n.hasNext()&&i(u.ops[u.ops.length-1],f)){var m=new l(t.rest());return u.concat(m).chop()}}else"number"===typeof h["delete"]&&"number"===typeof d.retain&&u.push(h)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),a=new l,u=r(n[0],n[1],t),c=o.iterator(this.ops),d=o.iterator(e.ops);return u.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),a.push(d.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),a["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var s=c.next(n),l=d.next(n);i(s.insert,l.insert)?a.retain(n,o.attributes.diff(s.attributes,l.attributes)):a.push(l)["delete"](n);break}t-=n}})),a.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=o.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var a=n.peek(),s=o.length(a)-n.peekLength(),u="string"===typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=o.iterator(this.ops),r=o.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var a=Math.min(n.peekLength(),r.peekLength()),s=n.next(a),u=r.next(a);if(s["delete"])continue;u["delete"]?i.push(u):i.retain(a,o.attributes.transform(s.attributes,u.attributes,t))}else i.retain(o.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=o.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,a,c,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});h<f;++h)if(t=arguments[h],null!=t)for(n in t)r=u(d,n),i=u(t,n),d!==i&&(p&&i&&(s(i)||(a=o(i)))?(a?(a=!1,c=r&&o(r)?r:[]):c=r&&s(r)?r:{},l(d,{name:n,newValue:e(p,c,i)})):"undefined"!==typeof i&&l(d,{name:n,newValue:i}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(3),o=y(a),s=n(2),l=y(s),u=n(0),c=y(u),d=n(16),h=y(d),f=n(6),p=y(f),m=n(7),g=y(m);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}function b(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)}var x=1,w=function(e){function t(){return v(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=c.default.query(e,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var a=c.default.create(M.blotName);this.parent.insertBefore(a,0===e?this:this.next),a.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(c.default.Embed);w.scope=c.default.Scope.BLOCK_BLOT;var M=function(e){function t(e){v(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return b(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),S(t))}),new l.default).insert("\n",S(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,a){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,a):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,a),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var a=n.split("\n"),o=a.shift();o.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var s=this;a.reduce((function(e,t){return s=s.split(e,!0),s.insertAt(0,t),t.length}),e+o.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof h.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+x),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-x)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var a=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},a}}]),t}(c.default.Block);function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:S(e.parent,t))}M.blotName="block",M.tagName="P",M.defaultChild="break",M.allowedChildren=[p.default,c.default.Embed,g.default],t.bubbleFormats=S,t.BlockEmbed=w,t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=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}}();n(50);var o=n(2),s=S(o),l=n(14),u=S(l),c=n(8),d=S(c),h=n(9),f=S(h),p=n(0),m=S(p),g=n(15),y=S(g),v=n(3),_=S(v),b=n(10),x=S(b),w=n(34),M=S(w);function S(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var L=(0,x.default)("quill"),O=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,e),this.options=D(t,r),this.container=this.options.container,null==this.container)return L.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e){e===d.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(d.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;A.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var a=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),x.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&L.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||L.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,a=I(e,t,n),o=i(a,4);return e=o[0],t=o[1],n=o[3],A.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;return A.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(m.default.query(e,m.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,T({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,T({},e,t))}return n.setSelection(r,d.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,a){var o=this,s=void 0,l=I(e,t,n,r,a),u=i(l,4);return e=u[0],t=u[1],s=u[2],a=u[3],A.call(this,(function(){return o.editor.formatLine(e,t,s)}),a,e,0)}},{key:"formatText",value:function(e,t,n,r,a){var o=this,s=void 0,l=I(e,t,n,r,a),u=i(l,4);return e=u[0],t=u[1],s=u[2],a=u[3],A.call(this,(function(){return o.editor.formatText(e,t,s)}),a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=I(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=I(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return A.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),a,t)}},{key:"insertText",value:function(e,t,n,r,a){var o=this,s=void 0,l=I(e,0,n,r,a),u=i(l,4);return e=u[0],s=u[2],a=u[3],A.call(this,(function(){return o.editor.insertText(e,t,s)}),a,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,a=I(e,t,n),o=i(a,4);return e=o[0],t=o[1],n=o[3],A.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return A.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),a=i.ops[i.ops.length-1];null!=a&&"string"===typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var o=r.compose(i);return o}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var a=I(t,n,r),o=i(a,4);t=o[0],n=o[1],r=o[3],this.selection.setRange(new g.Range(t,n),r),r!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return A.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function D(e,t){if(t=(0,_.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==O.DEFAULTS.theme){if(t.theme=O.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=M.default;var n=(0,_.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=O.import("modules/"+t);return null==n?L.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,_.default)(!0,{},O.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function A(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===d.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),a=this.editor.delta,o=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=C(i,o,t):0!==r&&(i=C(i,n,r,t)),this.setSelection(i,d.default.sources.SILENT)),o.length()>0){var l,u,c=[d.default.events.TEXT_CHANGE,o,a,t];if((l=this.emitter).emit.apply(l,[d.default.events.EDITOR_CHANGE].concat(c)),t!==d.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return o}function I(e,t,n,i,a){var o={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(a=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(a=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(o=n,a=i):"string"===typeof n&&(null!=i?o[n]=i:a=n),a=a||d.default.sources.API,[e,t,o,a]}function C(e,t,n,r){if(null==e)return null;var a=void 0,o=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==d.default.sources.USER)})),u=i(l,2);a=u[0],o=u[1]}else{var c=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===d.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),h=i(c,2);a=h[0],o=h[1]}return new g.Range(a,o-a)}O.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},O.events=d.default.events,O.sources=d.default.sources,O.version="1.3.7",O.imports={delta:s.default,parchment:m.default,"core/module":f.default,"core/theme":M.default},t.expandConfig=D,t.overload=I,t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(7),o=u(a),s=n(0),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var f=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"formatAt",value:function(e,n,r,a){if(t.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var o=this.isolate(e,n);a&&o.wrap(r,a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,a)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);f.allowedChildren=[f,l.default.Embed,o.default],f.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function l(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)}var u=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default.Text);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(54),o=u(a),s=n(10),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var f=(0,l.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var m=function(e){function t(){c(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",f.error),e}return h(t,e),r(t,[{key:"emit",value:function(){f.log.apply(f,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function a(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];(t=console)[e].apply(t,a)}}function o(e){return r.reduce((function(t,n){return t[n]=a.bind(console,n,e),t}),{})}a.level=o.level=function(e){i=e},t.default=o},function(e,t,n){var r=Array.prototype.slice,i=n(52),a=n(53),o=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}function u(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=r.call(e),t=r.call(t),o(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=i(e),h=i(t)}catch(f){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),u=d.length-1;u>=0;u--)if(d[u]!=h[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!o(e[c],t[c],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},o=n(2),s=g(o),l=n(0),u=g(l),c=n(4),d=g(c),h=n(6),f=g(h),p=n(7),m=g(p);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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}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)}var b=function(e){function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _(t,e),t}(f.default);b.blotName="code",b.tagName="CODE";var x=function(e){function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(m.default,this.length()-1),o=r(i,1),s=o[0];null!=s&&s.deleteAt(s.length()-1,1),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var a=this.newlineIndex(e);if(!(a<0||a>=e+n)){var o=this.newlineIndex(e,!0)+1,s=a-o+1,l=this.isolate(o,s),c=l.next;l.format(r,i),c instanceof t&&c.formatAt(0,e-o+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(m.default,e),a=r(i,2),o=a[0],s=a[1];o.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=u.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof u.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(d.default);x.blotName="code-block",x.tagName="PRE",x.TAB="  ",t.Code=b,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=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}}(),o=n(2),s=k(o),l=n(20),u=k(l),c=n(0),d=k(c),h=n(13),f=k(h),p=n(24),m=k(p),g=n(4),y=k(g),v=n(16),_=k(v),b=n(21),x=k(b),w=n(11),M=k(w),S=n(3),T=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,A=function(){function e(t){O(this,e),this.scroll=t,this.delta=this.getDelta()}return a(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var a=this.scroll.length();return this.scroll.batchStart(),e=C(e),e.reduce((function(e,o){var s=o.retain||o.delete||o.insert.length||1,l=o.attributes||{};if(null!=o.insert){if("string"===typeof o.insert){var c=o.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),e>=a&&!c.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,c);var h=t.scroll.line(e),f=i(h,2),p=f[0],m=f[1],v=(0,T.default)({},(0,g.bubbleFormats)(p));if(p instanceof y.default){var _=p.descendant(d.default.Leaf,m),b=i(_,1),x=b[0];v=(0,T.default)(v,(0,g.bubbleFormats)(x))}l=u.default.attributes.diff(v,l)||{}}else if("object"===r(o.insert)){var w=Object.keys(o.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,o.insert[w])}a+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var a=n.scroll.lines(e,Math.max(t,1)),o=t;a.forEach((function(t){var a=t.length();if(t instanceof f.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+o)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);o-=a}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),a=t[0];a instanceof y.default?n.push(a):a instanceof d.default.Leaf&&r.push(a)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(d.default.Leaf,e,t));var a=[n,r].map((function(e){if(0===e.length)return{};var t=(0,g.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=I((0,g.bubbleFormats)(n),t)}return t}));return T.default.apply(T.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(L({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,x.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===y.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof _.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),a=i(r,2),o=a[0],l=a[1],u=0,c=new s.default;null!=o&&(u=o instanceof f.default?o.newlineIndex(l)-l+1:o.length()-l,c=o.delta().slice(l,l+u-1).insert("\n"));var d=this.getContents(e,t+u),h=d.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(e).concat(h);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(D)&&d.default.find(t[0].target)){var i=d.default.find(t[0].target),a=(0,g.bubbleFormats)(i),o=i.offset(this.scroll),l=t[0].oldValue.replace(m.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(i.value()),h=(new s.default).retain(o).concat(u.diff(c,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,M.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function I(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function C(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,x.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,x.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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=n(0),o=m(a),s=n(21),l=m(s),u=n(11),c=m(u),d=n(8),h=m(d),f=n(10),p=m(f);function m(e){return e&&e.__esModule?e:{default:e}}function g(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)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=(0,p.default)("quill:selection"),_=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,e),this.index=t,this.length=n},b=function(){function e(t,n){var r=this;y(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,h.default.sources.USER),1)})),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(e,t){e===h.default.events.TEXT_CHANGE&&t.length()>0&&r.update(h.default.sources.SILENT)})),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(h.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,a=n.startOffset,o=n.endNode,s=n.endOffset;r.setNativeRange(i,a,o,s)}})),this.update(h.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(h.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,a=this.scroll.leaf(e),o=r(a,2),s=o[0],l=o[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var d=document.createRange();if(t>0){d.setStart(i,l);var h=this.scroll.leaf(e+t),f=r(h,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=r(p,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var g="left",y=void 0;return i instanceof Text?(l<i.data.length?(d.setStart(i,l),d.setEnd(i,l+1)):(d.setStart(i,l-1),d.setEnd(i,l),g="right"),y=d.getBoundingClientRect()):(y=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:y.top+y.height,height:y.height,left:y[g],right:y[g],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return v.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],a=n[1],s=o.default.find(i,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof o.default.Container?l+s.length():l+s.index(i,a)})),a=Math.min(Math.max.apply(Math,g(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(g(i)));return new _(s,a-s)}},{key:"normalizeNative",value:function(e){if(!x(this.root,e.startContainer)||!e.collapsed&&!x(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],a=this.scroll.length();return n.forEach((function(e,n){e=Math.min(a-1,e);var o=void 0,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],d=u.position(c,0!==n),h=r(d,2);o=h[0],c=h[1],i.push(o,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,i)),o=r(a,1),s=o[0],l=s;if(t.length>0){var u=this.scroll.line(Math.min(t.index+t.length,i)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var d=e.getBoundingClientRect();n.top<d.top?e.scrollTop-=d.top-n.top:n.bottom>d.bottom&&(e.scrollTop+=n.bottom-d.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||i||e!==o.startContainer||t!==o.startOffset||n!==o.endContainer||r!==o.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),a.removeAllRanges(),a.addRange(s)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof t&&(n=t,t=!1),v.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,g(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),a=i[0],o=i[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(t,this.lastRange)){var s;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var u,d=[h.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((s=this.emitter).emit.apply(s,[h.default.events.EDITOR_CHANGE].concat(d)),e!==h.default.sources.SILENT)(u=this.emitter).emit.apply(u,d)}}}]),e}();function x(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=_,t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(o.default.Embed);d.blotName="break",d.tagName="BR",t.default=d},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),o=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=l(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof o.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],a=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,a]:i instanceof t?i.descendant(e,a):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],a=r;return this.children.forEachAt(n,r,(function(n,r,o){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,a))),a-=o})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],a=r[1];if(i)i.insertAt(a,t,n);else{var s=null==n?o.create("text",t):o.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new o.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=o.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],a=r[1],o=[[this,e]];return i instanceof t?o.concat(i.path(a,n)):(null!=i&&o.push([i,a]),o)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=o.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=o.find(e.nextSibling));var r=l(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(a.default);function l(e){var t=o.find(e);if(null==t)try{t=o.create(e)}catch(n){t=o.create(o.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),o=n(17),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(o.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=o},function(e,t,n){var r=n(11),i=n(3),a={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var a in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[a]&&void 0===t[a]&&(r[a]=e[a]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new o(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function o(e){this.ops=e,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=a.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=a},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(d){n=function(){}}try{r=Set}catch(d){r=function(){}}try{i=Promise}catch(d){i=function(){}}function a(o,s,l,u,d){"object"===typeof s&&(l=s.depth,u=s.prototype,d=s.includeNonEnumerable,s=s.circular);var h=[],f=[],p="undefined"!=typeof t;function m(o,l){if(null===o)return null;if(0===l)return o;var g,y;if("object"!=typeof o)return o;if(e(o,n))g=new n;else if(e(o,r))g=new r;else if(e(o,i))g=new i((function(e,t){o.then((function(t){e(m(t,l-1))}),(function(e){t(m(e,l-1))}))}));else if(a.__isArray(o))g=[];else if(a.__isRegExp(o))g=new RegExp(o.source,c(o)),o.lastIndex&&(g.lastIndex=o.lastIndex);else if(a.__isDate(o))g=new Date(o.getTime());else{if(p&&t.isBuffer(o))return g=t.allocUnsafe?t.allocUnsafe(o.length):new t(o.length),o.copy(g),g;e(o,Error)?g=Object.create(o):"undefined"==typeof u?(y=Object.getPrototypeOf(o),g=Object.create(y)):(g=Object.create(u),y=u)}if(s){var v=h.indexOf(o);if(-1!=v)return f[v];h.push(o),f.push(g)}for(var _ in e(o,n)&&o.forEach((function(e,t){var n=m(t,l-1),r=m(e,l-1);g.set(n,r)})),e(o,r)&&o.forEach((function(e){var t=m(e,l-1);g.add(t)})),o){var b;y&&(b=Object.getOwnPropertyDescriptor(y,_)),b&&null==b.set||(g[_]=m(o[_],l-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(o);for(_=0;_<x.length;_++){var w=x[_],M=Object.getOwnPropertyDescriptor(o,w);(!M||M.enumerable||d)&&(g[w]=m(o[w],l-1),M.enumerable||Object.defineProperty(g,w,{enumerable:!1}))}}if(d){var S=Object.getOwnPropertyNames(o);for(_=0;_<S.length;_++){var T=S[_];M=Object.getOwnPropertyDescriptor(o,T);M&&M.enumerable||(g[T]=m(o[T],l-1),Object.defineProperty(g,T,{enumerable:!1}))}}return g}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),m(o,l)}function o(e){return Object.prototype.toString.call(e)}function s(e){return"object"===typeof e&&"[object Date]"===o(e)}function l(e){return"object"===typeof e&&"[object Array]"===o(e)}function u(e){return"object"===typeof e&&"[object RegExp]"===o(e)}function c(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return a.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},a.__objToStr=o,a.__isDate=s,a.__isArray=l,a.__isRegExp=u,a.__getRegExpFlags=c,a}();"object"===typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},o=n(0),s=v(o),l=n(8),u=v(l),c=n(4),d=v(c),h=n(16),f=v(h),p=n(13),m=v(p),g=n(25),y=v(g);function v(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}function x(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)}function w(e){return e instanceof d.default||e instanceof c.BlockEmbed}var M=function(e){function t(e,n){_(this,t);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return x(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),o=r(i,2),s=o[0],l=o[1],u=this.line(e+n),d=r(u,1),h=d[0];if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=h&&s!==h&&l>0){if(s instanceof c.BlockEmbed||h instanceof c.BlockEmbed)return void this.optimize();if(s instanceof m.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===h))return void this.optimize()}else if(h instanceof m.default){var g=h.newlineIndex(0);g>-1&&h.split(g+1)}var y=h.children.head instanceof f.default?null:h.children.head;s.moveChildren(h,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var o=s.default.create(n,r);this.appendChild(o)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(w,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],a=r;return t.children.forEachAt(n,r,(function(t,n,r){w(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,a))),a-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);M.blotName="scroll",M.className="ql-editor",M.tagName="DIV",M.defaultChild="block",M.allowedChildren=[d.default,c.BlockEmbed,y.default],t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=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}}(),o=n(21),s=S(o),l=n(11),u=S(l),c=n(3),d=S(c),h=n(2),f=S(h),p=n(20),m=S(p),g=n(0),y=S(g),v=n(5),_=S(v),b=n(10),x=S(b),w=n(9),M=S(w);function S(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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}function O(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)}var D=(0,x.default)("quill:keyboard"),A=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",I=function(e){function t(e,n){k(this,t);var r=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist["list"])&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},j),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0},P)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},P)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},Y),r.addBinding({key:t.keys.DELETE},{collapsed:!1},Y),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),r.listen(),r}return O(t,e),a(t,null,[{key:"match",value:function(e,t){return t=H(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),a(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=H(e);if(null==r||null==r.key)return D.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,d.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var a=n.which||n.keyCode,o=(e.bindings[a]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),c=i(l,2),d=c[0],h=c[1],f=e.quill.getLeaf(s.index),p=i(f,2),m=p[0],g=p[1],v=0===s.length?[m,g]:e.quill.getLeaf(s.index+s.length),_=i(v,2),b=_[0],x=_[1],w=m instanceof y.default.Text?m.value().slice(0,g):"",M=b instanceof y.default.Text?b.value().slice(x):"",S={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:e.quill.getFormat(s),offset:h,prefix:w,suffix:M},T=o.some((function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==S.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,u.default)(t.format[e],S.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&(!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,s,S))}));T&&n.preventDefault()}}}}))}}]),t}(M.default);function C(e,t){var n,r=e===I.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},T(n,r,/^$/),T(n,"handler",(function(n){var r=n.index;e===I.keys.RIGHT&&(r+=n.length+1);var a=this.quill.getLeaf(r),o=i(a,1),s=o[0];return!(s instanceof y.default.Embed)||(e===I.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,_.default.sources.USER):this.quill.setSelection(n.index-1,_.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,_.default.sources.USER):this.quill.setSelection(n.index+n.length+1,_.default.sources.USER),!1)})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),a=r[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=i(s,1),u=l[0];if(null!=u&&u.length()>1){var c=a.formats(),d=this.quill.getFormat(e.index-1,1);o=m.default.attributes.diff(c,d)||{}}}var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-h,h,_.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-h,h,o,_.default.sources.USER),this.quill.focus()}}function P(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},a=0,o=this.quill.getLine(e.index),s=i(o,1),l=s[0];if(t.offset>=l.length()-1){var u=this.quill.getLine(e.index+1),c=i(u,1),d=c[0];if(d){var h=l.formats(),f=this.quill.getFormat(e.index,1);r=m.default.attributes.diff(h,f)||{},a=d.length()}}this.quill.deleteText(e.index,n,_.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+a-1,n,r,_.default.sources.USER)}}function Y(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=m.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,_.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,_.default.sources.USER),this.quill.setSelection(e.index,_.default.sources.SILENT),this.quill.focus()}function j(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,_.default.sources.USER),this.quill.setSelection(e.index+1,_.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],_.default.sources.USER))}))}function N(e){return{key:I.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=y.default.query("code-block"),r=t.index,a=t.length,o=this.quill.scroll.descendant(n,r),s=i(o,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),d=l.newlineIndex(u,!0)+1,h=l.newlineIndex(c+u+a),f=l.domNode.textContent.slice(d,h).split("\n");u=0,f.forEach((function(t,i){e?(l.insertAt(d+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:a+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(d+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:a-=n.TAB.length),u+=t.length+1})),this.quill.update(_.default.sources.USER),this.quill.setSelection(r,a,_.default.sources.SILENT)}}}}function R(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],_.default.sources.USER)}}}function H(e){if("string"===typeof e||"number"===typeof e)return H({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=I.keys[e.key.toUpperCase()])e.key=I.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[A]=e.shortKey,delete e.shortKey),e}I.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},I.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:I.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",_.default.sources.USER)}},outdent:{key:I.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",_.default.sources.USER)}},"outdent backspace":{key:I.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",_.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,_.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:I.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,_.default.sources.USER)}},tab:{key:I.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new f.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,_.default.sources.SILENT)}},"list empty enter":{key:I.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,_.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,_.default.sources.USER)}},"checklist enter":{key:I.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],a=n[1],o=(0,d.default)({},r.formats(),{list:"checked"}),s=(new f.default).retain(e.index).insert("\n",o).retain(r.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,_.default.sources.USER),this.quill.setSelection(e.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:I.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),a=r[0],o=r[1],s=(new f.default).retain(e.index).insert("\n",t.format).retain(a.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,_.default.sources.USER),this.quill.setSelection(e.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),a=i(r,2),o=a[0],s=a[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",_.default.sources.USER),this.quill.history.cutoff();var u=(new f.default).retain(e.index-s).delete(n+1).retain(o.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,_.default.sources.SILENT)}},"code exit":{key:I.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],a=n[1],o=(new f.default).retain(e.index+r.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,_.default.sources.USER)}},"embed left":C(I.keys.LEFT,!1),"embed left shift":C(I.keys.LEFT,!0),"embed right":C(I.keys.RIGHT,!1),"embed right shift":C(I.keys.RIGHT,!0)}},t.default=I,t.SHORTKEY=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=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}}(),o=n(0),s=c(o),l=n(7),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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}function f(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)}var p=function(e){function t(e,n){d(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return f(t,e),a(t,null,[{key:"value",value:function(){}}]),a(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);var r=this,a=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)a+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(a,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,a=void 0,o=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];i=l[0],a=l[1],o=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof u.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=a){var d=[a,o].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),h=r(d,2);return a=h[0],o=h[1],{startNode:i,startOffset:a,endNode:i,endOffset:o}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=s(r),a=n(4),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),t}(i.default.Container);d.allowedChildren=[o.default,a.BlockEmbed,d],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(o.default.Attributor.Style),h=new o.default.Attributor.Class("color","ql-color",{scope:o.default.Scope.INLINE}),f=new d("color","color",{scope:o.default.Scope.INLINE});t.ColorAttributor=d,t.ColorClass=h,t.ColorStyle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(6),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return h(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(o.default);function h(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=d,t.sanitize=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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=n(23),o=u(a),s=n(107),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=0;function h(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var f=function(){function e(t){var n=this;c(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=D(r),a=n(5),o=D(a),s=n(4),l=D(s),u=n(16),c=D(u),d=n(25),h=D(d),f=n(24),p=D(f),m=n(35),g=D(m),y=n(6),v=D(y),_=n(22),b=D(_),x=n(7),w=D(x),M=n(55),S=D(M),T=n(42),k=D(T),L=n(23),O=D(L);function D(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":h.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":v.default,"blots/scroll":b.default,"blots/text":w.default,"modules/clipboard":S.default,"modules/history":k.default,"modules/keyboard":O.default}),i.default.register(l.default,c.default,p.default,v.default,b.default,w.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var a=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)a.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var o=r.create(this.statics.scope);a.wrap(o),o.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),a=this.split(e);this.parent.insertBefore(i,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),a=n(33),o=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=a.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=o.query(t,o.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function a(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=a(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=a(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function a(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[a(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[a(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[a(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(t,n){i(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();a.DEFAULTS={modules:{}},a.themes={default:a},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=u(a),s=n(7),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var f="\ufeff",p=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(f),n.rightGuard=document.createTextNode(f),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return h(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(f).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=f,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(o.default.Embed);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r=n(0),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",o),l=new i.default.Attributor.Class("align","ql-align",o),u=new i.default.Attributor.Style("align","text-align",o);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r=n(0),i=o(r),a=n(26);function o(e){return e&&e.__esModule?e:{default:e}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),l=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r=n(0),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",o),l=new i.default.Attributor.Class("direction","ql-direction",o),u=new i.default.Attributor.Style("direction","direction",o);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d={scope:o.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new o.default.Attributor.Class("font","ql-font",d),f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(o.default.Attributor.Style),p=new f("font","font-family",d);t.FontStyle=p,t.FontClass=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r=n(0),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=o,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=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}}(),i=n(0),a=c(i),o=n(5),s=c(o),l=n(9),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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}function f(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)}var p=function(e){function t(e,n){d(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return f(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],s.default.sources.USER),this.ignoreChange=!1;var r=g(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(u.default);function m(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=a.default.query(e,a.default.Scope.BLOCK)})))}function g(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return m(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(3),o=M(a),s=n(2),l=M(s),u=n(8),c=M(u),d=n(23),h=M(d),f=n(34),p=M(f),m=n(59),g=M(m),y=n(60),v=M(y),_=n(28),b=M(_),x=n(61),w=M(x);function M(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(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}function k(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)}var L=[!1,"center","right","justify"],O=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],D=[!1,"serif","monospace"],A=["1","2","3",!1],I=["small",!1,"large","huge"],C=function(e){function t(e,n){S(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,i),r}return k(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n]["rtl"];else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&Y(e,L),new v.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&Y(e,O,"background"===n?"#ffffff":"#000000"),new g.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?Y(e,D):e.classList.contains("ql-header")?Y(e,A):e.classList.contains("ql-size")&&Y(e,I)),new b.default(e)}));var r=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),t}(p.default);C.DEFAULTS=(0,o.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),e.quill.setSelection(r.index+1,c.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){S(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return k(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){h.default.match(t,"enter")?(e.save(),t.preventDefault()):h.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,c.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=P(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(w.default);function P(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){var t,n=this.iterator();while(t=n())e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0)){var r,i=this.find(e),a=i[0],o=i[1],s=e-o,l=this.iterator(a);while((r=l())&&s<e+t){var u=r.length();e>s?n(r,e-s,Math.min(t,s+u-e)):n(r,0,Math.min(u,e+t-s)),s+=u}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),o={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,o),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var o=[].slice.call(this.observer.takeRecords());while(o.length>0)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),o=c.slice();while(o.length>0)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1);function o(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var a=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),a.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)){var o=this.isolate(t,n);o.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&o(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),o=a.create(n,r);i.parent.insertBefore(o,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),o=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=o},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],a=0;a<r;a++)if(t=n[a],e.call(i,t,a,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,i=0;function a(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.length<n)&&(n=null);var r=u(e,t),a=e.substring(0,r);e=e.substring(r),t=t.substring(r),r=c(e,t);var s=e.substring(e.length-r);e=e.substring(0,e.length-r),t=t.substring(0,t.length-r);var l=o(e,t);return a&&l.unshift([i,a]),s&&l.push([i,s]),h(l),null!=n&&(l=m(l,n)),l=g(l),l}function o(e,t){var o;if(!e)return[[r,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return o=[[r,l.substring(0,c)],[i,u],[r,l.substring(c+u.length)]],e.length>t.length&&(o[0][0]=o[2][0]=n),o;if(1==u.length)return[[n,e],[r,t]];var h=d(e,t);if(h){var f=h[0],p=h[1],m=h[2],g=h[3],y=h[4],v=a(f,m),_=a(p,g);return v.concat([[i,y]],_)}return s(e,t)}function s(e,t){for(var i=e.length,a=t.length,o=Math.ceil((i+a)/2),s=o,u=2*o,c=new Array(u),d=new Array(u),h=0;h<u;h++)c[h]=-1,d[h]=-1;c[s+1]=0,d[s+1]=0;for(var f=i-a,p=f%2!=0,m=0,g=0,y=0,v=0,_=0;_<o;_++){for(var b=-_+m;b<=_-g;b+=2){var x=s+b;L=b==-_||b!=_&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1;var w=L-b;while(L<i&&w<a&&e.charAt(L)==t.charAt(w))L++,w++;if(c[x]=L,L>i)g+=2;else if(w>a)m+=2;else if(p){var M=s+f-b;if(M>=0&&M<u&&-1!=d[M]){var S=i-d[M];if(L>=S)return l(e,t,L,w)}}}for(var T=-_+y;T<=_-v;T+=2){M=s+T;S=T==-_||T!=_&&d[M-1]<d[M+1]?d[M+1]:d[M-1]+1;var k=S-T;while(S<i&&k<a&&e.charAt(i-S-1)==t.charAt(a-k-1))S++,k++;if(d[M]=S,S>i)v+=2;else if(k>a)y+=2;else if(!p){x=s+f-T;if(x>=0&&x<u&&-1!=c[x]){var L=c[x];w=s+L-x;if(S=i-S,L>=S)return l(e,t,L,w)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=a(i,o),c=a(s,l);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,a=0;while(n<i)e.substring(a,i)==t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;var n=0,r=Math.min(e.length,t.length),i=r,a=0;while(n<i)e.substring(e.length-i,e.length-a)==t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function d(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){var r,i,a,o,s=e.substring(n,n+Math.floor(e.length/4)),l=-1,d="";while(-1!=(l=t.indexOf(s,l+1))){var h=u(e.substring(n),t.substring(l)),f=c(e.substring(0,n),t.substring(0,l));d.length<f+h&&(d=t.substring(l-f,l)+t.substring(l,l+h),r=e.substring(0,n-f),i=e.substring(n+h),a=t.substring(0,l-f),o=t.substring(l+h))}return 2*d.length>=e.length?[r,i,a,o,d]:null}var a,o,s,l,d,h=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!h&&!f)return null;a=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(o=a[0],s=a[1],l=a[2],d=a[3]):(l=a[0],d=a[1],o=a[2],s=a[3]);var p=a[4];return[o,s,l,d,p]}function h(e){e.push([i,""]);var t,a=0,o=0,s=0,l="",d="";while(a<e.length)switch(e[a][0]){case r:s++,d+=e[a][1],a++;break;case n:o++,l+=e[a][1],a++;break;case i:o+s>1?(0!==o&&0!==s&&(t=u(d,l),0!==t&&(a-o-s>0&&e[a-o-s-1][0]==i?e[a-o-s-1][1]+=d.substring(0,t):(e.splice(0,0,[i,d.substring(0,t)]),a++),d=d.substring(t),l=l.substring(t)),t=c(d,l),0!==t&&(e[a][1]=d.substring(d.length-t)+e[a][1],d=d.substring(0,d.length-t),l=l.substring(0,l.length-t))),0===o?e.splice(a-s,o+s,[r,d]):0===s?e.splice(a-o,o+s,[n,l]):e.splice(a-o-s,o+s,[n,l],[r,d]),a=a-o-s+(o?1:0)+(s?1:0)+1):0!==a&&e[a-1][0]==i?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,s=0,o=0,l="",d="";break}""===e[e.length-1][1]&&e.pop();var f=!1;a=1;while(a<e.length-1)e[a-1][0]==i&&e[a+1][0]==i&&(e[a][1].substring(e[a][1].length-e[a-1][1].length)==e[a-1][1]?(e[a][1]=e[a-1][1]+e[a][1].substring(0,e[a][1].length-e[a-1][1].length),e[a+1][1]=e[a-1][1]+e[a+1][1],e.splice(a-1,1),f=!0):e[a][1].substring(0,e[a+1][1].length)==e[a+1][1]&&(e[a-1][1]+=e[a+1][1],e[a][1]=e[a][1].substring(e[a+1][1].length)+e[a+1][1],e.splice(a+1,1),f=!0)),a++;f&&h(e)}var f=a;function p(e,t){if(0===t)return[i,e];for(var r=0,a=0;a<e.length;a++){var o=e[a];if(o[0]===n||o[0]===i){var s=r+o[1].length;if(t===s)return[a+1,e];if(t<s){e=e.slice();var l=t-r,u=[o[0],o[1].slice(0,l)],c=[o[0],o[1].slice(l)];return e.splice(a,1,u,c),[a+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}function m(e,t){var n=p(e,t),r=n[1],a=n[0],o=r[a],s=r[a+1];if(null==o)return e;if(o[0]!==i)return e;if(null!=s&&o[1]+s[1]===s[1]+o[1])return r.splice(a,2,s,o),y(r,a,2);if(null!=s&&0===s[1].indexOf(o[1])){r.splice(a,2,[s[0],o[1]],[0,o[1]]);var l=s[1].slice(o[1].length);return l.length>0&&r.splice(a+2,0,[s[0],l]),y(r,a,3)}return e}function g(e){for(var t=!1,a=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s<e.length;s+=1)e[s-2][0]===i&&o(e[s-2][1])&&e[s-1][0]===n&&a(e[s-1][1])&&e[s][0]===r&&a(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));if(!t)return e;var l=[];for(s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}function y(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],a=e[r+1];i[0]===a[1]&&e.splice(r,2,[i[0],i[1]+a[1]])}return e}f.INSERT=r,f.DELETE=n,f.EQUAL=i,e.exports=f},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"===typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}t=e.exports=n?r:i,t.supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),o.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var a=0,o=i.length,s=new Array(o);a<o;a++)s[a]=i[a].fn;return s},o.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},o.prototype.on=function(e,t,n){var i=new a(t,n||this),o=r?r+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},o.prototype.once=function(e,t,n){var i=new a(t,n||this,!0),o=r?r+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},o.prototype.removeListener=function(e,t,n,a){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==t||a&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[o]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||a&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new i:delete this._events[o]}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=r,o.EventEmitter=o,"undefined"!==typeof e&&(e.exports=o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=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}}(),o=n(3),s=k(o),l=n(2),u=k(l),c=n(0),d=k(c),h=n(5),f=k(h),p=n(10),m=k(p),g=n(9),y=k(g),v=n(36),_=n(37),b=n(13),x=k(b),w=n(26),M=n(38),S=n(39),T=n(40);function k(e){return e&&e.__esModule?e:{default:e}}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(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}function A(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)}var I=(0,m.default)("quill:clipboard"),C="__ql-matcher",E=[[Node.TEXT_NODE,J],[Node.TEXT_NODE,X],["br",G],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,K],["li",q],["b",B.bind(B,"bold")],["i",B.bind(B,"italic")],["style",U]],P=[v.AlignAttribute,M.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Y=[v.AlignStyle,_.BackgroundStyle,w.ColorStyle,M.DirectionStyle,S.FontStyle,T.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){O(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach((function(e){var t=i(e,2),a=t[0],o=t[1];(n.matchVisual||o!==Z)&&r.addMatcher(a,o)})),r}return A(t,e),a(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,L({},x.default.blotName,t[x.default.blotName]))}var r=this.prepareMatching(),a=i(r,2),o=a[0],s=a[1],l=z(this.container,o,s);return H(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),I.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,f.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new u.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,f.default.sources.USER),t.quill.setSelection(r.length()-n.length,f.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var a=i(r,2),o=a[0],s=a[1];switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(o),(function(e){e[C]=e[C]||[],e[C].push(s)}));break}})),[t,n]}}]),t}(y.default);function N(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return N(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},L({},t,n),r.attributes))}),new u.default)}function R(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function H(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function F(e){if(0===e.childNodes.length)return!1;var t=R(e);return["block","list-item"].indexOf(t.display)>-1}function z(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new u.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var a=z(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(a=t.reduce((function(e,t){return t(i,e)}),a),a=(i[C]||[]).reduce((function(e,t){return t(i,e)}),a)),r.concat(a)}),new u.default):new u.default}function B(e,t,n){return N(n,e,!0)}function W(e,t){var n=d.default.Attributor.Attribute.keys(e),r=d.default.Attributor.Class.keys(e),i=d.default.Attributor.Style.keys(e),a={};return n.concat(r).concat(i).forEach((function(t){var n=d.default.query(t,d.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(n=P[t],null==n||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),n=Y[t],null==n||n.attrName!==t&&n.keyName!==t||(n=Y[t],a[n.attrName]=n.value(e)||void 0))})),Object.keys(a).length>0&&(t=N(t,a)),t}function V(e,t){var n=d.default.query(e);if(null==n)return t;if(n.prototype instanceof d.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new u.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=N(t,n.blotName,n.formats(e)));return t}function G(e,t){return H(t,"\n")||t.insert("\n"),t}function U(){return new u.default}function q(e,t){var n=d.default.query(e);if(null==n||"list-item"!==n.blotName||!H(t,"\n"))return t;var r=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(d.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new u.default).retain(t.length()-1).retain(1,{indent:r}))}function X(e,t){return H(t,"\n")||(F(e)||t.length()>0&&e.nextSibling&&F(e.nextSibling))&&t.insert("\n"),t}function Z(e,t){if(F(e)&&null!=e.nextElementSibling&&!H(t,"\n\n")){var n=e.offsetHeight+parseFloat(R(e).marginTop)+parseFloat(R(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function K(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===R(e).fontStyle&&(n.italic=!0),r.fontWeight&&(R(e).fontWeight.startsWith("bold")||parseInt(R(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=N(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new u.default).insert("\t").concat(t)),t}function J(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!R(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&F(e.parentNode)||null!=e.previousSibling&&F(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&F(e.parentNode)||null!=e.nextSibling&&F(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=W,t.matchBlot=V,t.matchNewline=X,t.matchSpacing=Z,t.matchText=J},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(6),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(o.default);d.blotName="bold",d.tagName=["STRONG","B"],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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=n(2),o=m(a),s=n(0),l=m(s),u=n(5),c=m(u),d=n(10),h=m(d),f=n(9),p=m(f);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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}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)}var b=(0,h.default)("quill:toolbar"),x=function(e){function t(e,n){y(this,t);var i,a=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(a.options.container)){var o=document.createElement("div");M(o,a.options.container),e.container.parentNode.insertBefore(o,e.container),a.container=o}else"string"===typeof a.options.container?a.container=document.querySelector(a.options.container):a.container=a.options.container;return a.container instanceof HTMLElement?(a.container.classList.add("ql-toolbar"),a.controls=[],a.handlers={},Object.keys(a.options.handlers).forEach((function(e){a.addHandler(e,a.options.handlers[e])})),[].forEach.call(a.container.querySelectorAll("button, select"),(function(e){a.attach(e)})),a.quill.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.SELECTION_CHANGE&&a.update(t)})),a.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var e=a.quill.selection.getRange(),t=r(e,1),n=t[0];a.update(n)})),a):(i=b.error("Container required for toolbar",a.options),v(a,i))}return _(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void b.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void b.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var a=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];a=!s.hasAttribute("selected")&&(s.value||!1)}else a=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1),h=d[0];if(null!=t.handlers[n])t.handlers[n].call(t,a);else if(l.default.query(n).prototype instanceof l.default.Embed){if(a=prompt("Enter "+n),!a)return;t.quill.updateContents((new o.default).retain(h.index).delete(h.length).insert(g({},n,a)),c.default.sources.USER)}else t.quill.format(n,a,c.default.sources.USER);t.update(h)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),a=i[0],o=i[1];if("SELECT"===o.tagName){var s=void 0;if(null==e)s=null;else if(null==t[a])s=o.querySelector("option[selected]");else if(!Array.isArray(t[a])){var l=t[a];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=o.querySelector('option[value="'+l+'"]')}null==s?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(null==e)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var u=t[a]===o.getAttribute("value")||null!=t[a]&&t[a].toString()===o.getAttribute("value")||null==t[a]&&!o.getAttribute("value");o.classList.toggle("ql-active",u)}else o.classList.toggle("ql-active",null!=t[a])}))}}]),t}(p.default);function w(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function M(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)w(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?S(n,t,r):w(n,t,r)}})),e.appendChild(n)}))}function S(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}x.DEFAULTS={},x.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,c.default.sources.USER)},direction:function(e){var t=this.quill.getFormat()["align"];"rtl"===e&&null==t?this.quill.format("align","right",c.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",e,c.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,c.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",e,c.default.sources.USER)}}},t.default=x,t.addControls=M},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(28),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return c(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),a=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=a:r.style.fill=a)}}]),t}(o.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(28),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(t,e),r(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(o.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(t,n){var r=this;i(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),a=0;if(i.right>r.right&&(a=r.right-i.right,this.root.style.left=t+a+"px"),i.left<r.left&&(a=r.left-i.left,this.root.style.left=t+a+"px"),i.bottom>r.bottom){var o=i.bottom-i.top,s=e.bottom-e.top+o;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=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}}(),o=n(3),s=y(o),l=n(8),u=y(l),c=n(43),d=y(c),h=n(27),f=y(h),p=n(15),m=n(41),g=y(m);function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}function b(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)}var x=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(e){function t(e,n){v(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=x);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return b(t,e),a(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),g.default),this.tooltip=new M(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers["link"].call(e,!n.format.link)}))}}]),t}(d.default);w.DEFAULTS=(0,s.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var M=function(e){function t(e,n){v(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return b(t,e),a(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,u.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===u.default.sources.USER){var a=e.quill.scroll.descendant(f.default,t.index),o=r(a,2),s=o[0],l=o[1];if(null!=s){e.linkRange=new p.Range(t.index-l,s.length());var c=f.default.formats(s.domNode);return e.preview.textContent=c,e.preview.setAttribute("href",c),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);M.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=ne(r),a=n(36),o=n(38),s=n(64),l=n(65),u=ne(l),c=n(66),d=ne(c),h=n(67),f=ne(h),p=n(37),m=n(26),g=n(39),y=n(40),v=n(56),_=ne(v),b=n(68),x=ne(b),w=n(27),M=ne(w),S=n(69),T=ne(S),k=n(70),L=ne(k),O=n(71),D=ne(O),A=n(72),I=ne(A),C=n(73),E=ne(C),P=n(13),Y=ne(P),j=n(74),N=ne(j),R=n(75),H=ne(R),F=n(57),z=ne(F),B=n(41),W=ne(B),V=n(28),G=ne(V),U=n(59),q=ne(U),X=n(60),Z=ne(X),K=n(61),J=ne(K),$=n(108),Q=ne($),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":y.SizeStyle},!0),i.default.register({"formats/align":a.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":y.SizeClass,"formats/blockquote":u.default,"formats/code-block":Y.default,"formats/header":d.default,"formats/list":f.default,"formats/bold":_.default,"formats/code":P.Code,"formats/italic":x.default,"formats/link":M.default,"formats/script":T.default,"formats/strike":L.default,"formats/underline":D.default,"formats/image":I.default,"formats/video":E.default,"formats/list/item":h.ListItem,"modules/formula":N.default,"modules/syntax":H.default,"modules/toolbar":z.default,"themes/bubble":Q.default,"themes/snow":te.default,"ui/icons":W.default,"ui/picker":G.default,"ui/icon-picker":Z.default,"ui/color-picker":q.default,"ui/tooltip":J.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(o.default.Attributor.Class),h=new d("indent","ql-indent",{scope:o.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function l(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)}var u=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(4),a=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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}function u(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)}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(a.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=d(a),s=n(4),l=d(s),u=n(25),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}function m(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)}var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,[{key:"format",value:function(e,n){e!==y.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);g.blotName="list-item",g.tagName="LI";var y=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=o.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return m(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof g)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),a=this.split(r);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(c.default);y.blotName="list",y.scope=o.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[g],t.ListItem=g,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function l(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)}var u=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(6),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(o.default);d.blotName="script",d.tagName=["SUB","SUP"],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function l(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)}var u=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="strike",u.tagName="S",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function l(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)}var u=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="underline",u.tagName="U",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=l(a),s=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function d(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)}var h=["alt","height","width"],f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){h.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return h.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(4),o=n(27),s=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function d(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)}var h=["height","width"],f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){h.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return h.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(35),o=d(a),s=n(5),l=d(s),u=n(9),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}function p(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)}var m=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(o.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(e){function t(){h(this,t);var e=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),r(t,null,[{key:"register",value:function(){l.default.register(m,!0)}}]),t}(c.default);t.FormulaBlot=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=n(0),o=f(a),s=n(5),l=f(s),u=n(9),c=f(u),d=n(13),h=f(d);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function g(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)}var y=function(e){function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(h.default);y.className="ql-syntax";var v=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),_=function(e){function t(e,n){p(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return g(t,e),r(t,null,[{key:"register",value:function(){l.default.register(v,!0),l.default.register(y,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(c.default);_.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=y,t.CodeToken=v,t.default=_},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},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=n(3),o=p(a),s=n(8),l=p(s),u=n(43),c=p(u),d=n(15),h=n(41),f=p(h);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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}function y(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)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],_=function(e){function t(e,n){m(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return y(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default)}}]),t}(c.default);_.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){m(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var a=r.quill.getLines(t.index,t.length);if(1===a.length)r.position(r.quill.getBounds(t));else{var o=a[a.length-1],s=r.quill.getIndex(o),u=Math.min(o.length()-1,t.index+t.length-s),c=r.quill.getBounds(new d.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return y(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(u.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=_},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},"953d":function(e,t,n){!function(t,r){e.exports=r(n("9339"))}(0,(function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n.n(r),a=n(6),o=n(5),s=o(i.a,a.a,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.quillEditor=t.Quill=void 0;var i=n(0),a=r(i),o=n(1),s=r(o),l=window.Quill||a.default,u=function(e,t){t&&(s.default.props.globalOptions.default=function(){return t}),e.component(s.default.name,s.default)},c={Quill:l,quillEditor:s.default,install:u};t.default=c,t.Quill=l,t.quillEditor=s.default,t.install=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=r(i),o=n(3),s=r(o),l=window.Quill||a.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),t.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var e=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new l(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(t){t?e.$emit("focus",e.quill):e.$emit("blur",e.quill)})),this.quill.on("text-change",(function(t,n,r){var i=e.$refs.editor.children[0].innerHTML,a=e.quill,o=e.quill.getText();"<p><br></p>"===i&&(i=""),e._content=i,e.$emit("input",e._content),e.$emit("change",{html:i,text:o,quill:a})})),this.$emit("ready",this.quill))}},watch:{content:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},value:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},disabled:function(e,t){this.quill&&this.quill.enable(!e)}}}},function(e,t){e.exports=function(e,t,n,r,i,a){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var u,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):r&&(u=r),u){var d=c.functional,h=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),h(e,t)}):c.beforeCreate=h?[].concat(h,u):[u]}return{esModule:o,exports:s,options:c}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quill-editor"},[e._t("toolbar"),e._v(" "),n("div",{ref:"editor"})],2)},i=[],a={render:r,staticRenderFns:i};t.a=a}])}))},"957c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(i[r],+e)}var r=[/^янв/i,/^фев/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:r,longMonthsParse:r,shortMonthsParse:r,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:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},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}});return i}))},"958b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var n=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},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"},relativeTime:{future:"%s дараа",past:"%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:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return n}))},9609:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=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){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},9686:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=e.defineLocale("bn-bd",{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||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return r}))},"972c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},i=" ";return(e%100>=20||e>=100&&e%100===0)&&(i=" de "),e+i+r[n]}var n=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return n}))},9797:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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=e,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=r[t]),e+n},week:{dow:1,doy:4}});return t}))},"9a9a":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("1c0b"),o=n("825a");r({target:"Iterator",proto:!0,real:!0},{some:function(e){return o(this),a(e),i(this,(function(t){if(e(t))return i.stop()}),void 0,!1,!0).stopped}})},"9f26":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],a=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("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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:"[Aujourd’hui à] 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",w:"une semaine",ww:"%d semaines",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}});return a}))},a356:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,i,a,o){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-dz",{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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}});return a}))},a753:function(e,t,n){},a7fa:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},aaf2:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?i[n][0]:i[n][1]}var n=e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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: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:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}});return n}))},ada2:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(i[r],+e)}function r(e,t){var n,r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r["nominative"].slice(1,7).concat(r["nominative"].slice(0,1)):e?(n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",r[n][e.day()]):r["nominative"]}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,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:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},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}});return a}))},b29d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},b3eb:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}var n=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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b469:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}var n=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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b53d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},b540:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},b5b7:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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,a=e.defineLocale("es-mx",{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:i,monthsShortRegex:i,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});return a}))},b639:function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=n("1fb5"),i=n("9152"),a=n("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,r):"string"===typeof t?p(e,t,n):y(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,r){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function f(e,t){if(d(t),e=l(e,t<0?0:0|v(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(t,n);e=l(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function m(e,t){var n=t.length<0?0:0|v(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=m(e,t),e}function y(e,t){if(u.isBuffer(t)){var n=0|v(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&a(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),u.alloc(+e)}function b(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return Y(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function M(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return-1}function T(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function k(e,t,n,r){return ee(K(t,e.length-n),e,n,r)}function L(e,t,n,r){return ee(J(t),e,n,r)}function O(e,t,n,r){return L(e,t,n,r)}function D(e,t,n,r){return ee(Q(t),e,n,r)}function A(e,t,n,r){return ee($(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return P(r)}t.Buffer=u,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):x.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(l[d]!==c[d]){a=l[d],o=c[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return M(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return M(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return T(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return L(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function P(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}function Y(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=Z(e[a]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function H(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function W(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,a){return a||W(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function G(e,t,n,r,a){return a||W(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||H(e,t,this.length);var r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||H(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||H(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||H(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||H(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||H(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||H(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||H(e,t,this.length);var r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||H(e,t,this.length);var r=t,i=1,a=this[e+--r];while(r>0&&(i*=256))a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||H(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||H(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||H(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||H(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||H(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||H(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||H(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||H(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||H(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;this[t]=255&e;while(++o<n&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a<n&&(o*=256))e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return G(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return G(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=u.isBuffer(e)?e:K(new u(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function q(e){if(e=X(e).replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function $(e,t){for(var n,r,i,a=[],o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function Q(e){return r.toByteArray(q(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("a691"),a=n("408a"),o=n("1148"),s=n("d039"),l=1..toFixed,u=Math.floor,c=function(e,t,n){return 0===t?n:t%2===1?c(e,t-1,n*e):c(e*e,t/2,n)},d=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},h=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));r({target:"Number",proto:!0,forced:h},{toFixed:function(e){var t,n,r,s,l=a(this),h=i(e),f=[0,0,0,0,0,0],p="",m="0",g=function(e,t){var n=-1,r=t;while(++n<6)r+=e*f[n],f[n]=r%1e7,r=u(r/1e7)},y=function(e){var t=6,n=0;while(--t>=0)n+=f[t],f[t]=u(n/e),n=n%e*1e7},v=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(t=d(l*c(2,69,1))-69,n=t<0?l*c(2,-t,1):l/c(2,t,1),n*=4503599627370496,t=52-t,t>0){g(0,n),r=h;while(r>=7)g(1e7,0),r-=7;g(c(10,r,1),0),r=t-1;while(r>=23)y(1<<23),r-=23;y(1<<r),g(1,1),y(2),m=v()}else g(0,n),g(1<<-t,0),m=v()+o.call("0",h);return h>0?(s=m.length,m=p+(s<=h?"0."+o.call("0",h-s)+m:m.slice(0,s-h)+"."+m.slice(s-h))):m=p+m,m}})},b7e9:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-sg",{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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},b84c:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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}});return t}))},b97c:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}var o=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:a,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},bb71:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}var n=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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},c109:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},c1df:function(e,t,n){(function(e){var t;//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(t,n){e.exports=n()})(0,(function(){"use strict";var r,i;function a(){return r.apply(null,arguments)}function o(e){r=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function d(e){return void 0===e}function h(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function y(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=y()),e._pf}function _(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=v(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function b(e){var t=g(NaN);return null!=e?m(v(t),e):v(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var x=a.momentProperties=[],w=!1;function M(e,t){var n,r,i,a=x.length;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=v(t)),d(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=x[n],i=t[r],d(i)||(e[r]=i);return e}function S(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,a.updateOffset(this),w=!1)}function T(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return m((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,s=[],l=arguments.length;for(i=0;i<l;i++){if(r="","object"===typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])u(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,D={};function A(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),D[e]||(k(t),D[e]=!0)}function I(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e){var t,n;for(n in e)u(e,n)&&(t=e[n],I(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,t){var n,r=m({},e);for(n in t)u(t,n)&&(l(e[n])&&l(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&l(e[n])&&(r[n]=m({},r[n]));return r}function P(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var Y={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return I(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},z={};function B(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(z[e]=i),t&&(z[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=W(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=I(r[i])?r[i].call(t,e):r[i];return a}}function G(e,t){return e.isValid()?(t=U(t,e.localeData()),F[t]=F[t]||V(t),F[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}H.lastIndex=0;while(n>=0&&H.test(e))e=e.replace(H,r),H.lastIndex=0,n-=1;return e}var q={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"};function X(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Z="Invalid date";function K(){return this._invalidDate}var J="%d",$=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var ee={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(e,t,n,r){var i=this._relativeTime[n];return I(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ne(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)}var re={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ie(e){return"string"===typeof e?re[e]||re[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)u(e,n)&&(t=ie(n),t&&(r[t]=e[n]));return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function se(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var le,ue=/\d/,ce=/\d\d/,de=/\d{3}/,he=/\d{4}/,fe=/[+-]?\d{6}/,pe=/\d\d?/,me=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ve=/\d{1,4}/,_e=/[+-]?\d{1,6}/,be=/\d+/,xe=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[+-]?\d+(\.\d{1,3})?/,Te=/[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,ke=/^[1-9]\d?/,Le=/^([1-9]\d|\d)/;function Oe(e,t,n){le[e]=I(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return u(le,e)?le[e](t._strict,t._locale):new RegExp(Ae(e))}function Ae(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ee(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ce(t)),n}le={};var Pe={};function Ye(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=Ee(e)}),r=e.length,n=0;n<r;n++)Pe[e[n]]=i}function je(e,t){Ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ne(e,t,n){null!=t&&u(Pe,e)&&Pe[e](t,n._a,n,e)}function Re(e){return e%4===0&&e%100!==0||e%400===0}var He=0,Fe=1,ze=2,Be=3,We=4,Ve=5,Ge=6,Ue=7,qe=8;function Xe(e){return Re(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Oe("Y",xe),Oe("YY",pe,ce),Oe("YYYY",ve,he),Oe("YYYYY",_e,fe),Oe("YYYYYY",_e,fe),Ye(["YYYYY","YYYYYY"],He),Ye("YYYY",(function(e,t){t[He]=2===e.length?a.parseTwoDigitYear(e):Ee(e)})),Ye("YY",(function(e,t){t[He]=a.parseTwoDigitYear(e)})),Ye("Y",(function(e,t){t[He]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return Ee(e)+(Ee(e)>68?1900:2e3)};var Ze,Ke=$e("FullYear",!0);function Je(){return Re(this.year())}function $e(e,t){return function(n){return null!=n?(et(this,e,n),a.updateOffset(this,t),this):Qe(this,e)}}function Qe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function et(e,t,n){var r,i,a,o,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=29!==s||1!==o||Re(a)?s:28,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function tt(e){return e=ie(e),I(this[e])?this[e]():this}function nt(e,t){if("object"===typeof e){e=ae(e);var n,r=se(e),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(e=ie(e),I(this[e]))return this[e](t);return this}function rt(e,t){return(e%t+t)%t}function it(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=rt(t,12);return e+=(t-n)/12,1===n?Re(e)?29:28:31-n%7%2}Ze=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},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Oe("M",pe,ke),Oe("MM",pe,ce),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Ye(["M","MM"],(function(e,t){t[Fe]=Ee(e)-1})),Ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Fe]=i:v(n).invalidMonth=e}));var at="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,lt=Te,ut=Te;function ct(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months["standalone"]}function dt(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ht(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?(i=Ze.call(this._shortMonthsParse,o),-1!==i?i:null):(i=Ze.call(this._longMonthsParse,o),-1!==i?i:null):"MMM"===t?(i=Ze.call(this._shortMonthsParse,o),-1!==i?i:(i=Ze.call(this._longMonthsParse,o),-1!==i?i:null)):(i=Ze.call(this._longMonthsParse,o),-1!==i?i:(i=Ze.call(this._shortMonthsParse,o),-1!==i?i:null))}function ft(e,t,n){var r,i,a;if(this._monthsParseExact)return ht.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=g([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.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}}function pt(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=Ee(t);else if(t=e.localeData().monthsParse(t),!h(t))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,it(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function mt(e){return null!=e?(pt(this,e),a.updateOffset(this,!0),this):Qe(this,"Month")}function gt(){return it(this.year(),this.month())}function yt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=lt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ut),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _t(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],o=[],s=[];for(t=0;t<12;t++)n=g([2e3,t]),r=Ie(this.monthsShort(n,"")),i=Ie(this.months(n,"")),a.push(r),o.push(i),s.push(i),s.push(r);a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function bt(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function xt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n,i=(7+xt(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Mt(e,t,n,r,i){var a,o,s=(7+n-r)%7,l=wt(e,r,i),u=1+7*(t-1)+s+l;return u<=0?(a=e-1,o=Xe(a)+u):u>Xe(e)?(a=e+1,o=u-Xe(e)):(a=e,o=u),{year:a,dayOfYear:o}}function St(e,t,n){var r,i,a=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?(i=e.year()-1,r=o+Tt(i,t,n)):o>Tt(e.year(),t,n)?(r=o-Tt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Tt(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(Xe(e)-r+i)/7}function kt(e){return St(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Oe("w",pe,ke),Oe("ww",pe,ce),Oe("W",pe,ke),Oe("WW",pe,ce),je(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ee(e)}));var Lt={dow:0,doy:6};function Ot(){return this._week.dow}function Dt(){return this._week.doy}function At(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ct(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function Et(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Oe("d",pe),Oe("e",pe),Oe("E",pe),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),je(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e})),je(["d","e","E"],(function(e,t,n,r){t[r]=Ee(e)}));var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Te,Ht=Te,Ft=Te;function zt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=g([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(i=Ze.call(this._weekdaysParse,o),-1!==i?i:null):"ddd"===t?(i=Ze.call(this._shortWeekdaysParse,o),-1!==i?i:null):(i=Ze.call(this._minWeekdaysParse,o),-1!==i?i:null):"dddd"===t?(i=Ze.call(this._weekdaysParse,o),-1!==i?i:(i=Ze.call(this._shortWeekdaysParse,o),-1!==i?i:(i=Ze.call(this._minWeekdaysParse,o),-1!==i?i:null))):"ddd"===t?(i=Ze.call(this._shortWeekdaysParse,o),-1!==i?i:(i=Ze.call(this._weekdaysParse,o),-1!==i?i:(i=Ze.call(this._minWeekdaysParse,o),-1!==i?i:null))):(i=Ze.call(this._minWeekdaysParse,o),-1!==i?i:(i=Ze.call(this._weekdaysParse,o),-1!==i?i:(i=Ze.call(this._shortWeekdaysParse,o),-1!==i?i:null)))}function Gt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=g([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.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}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Qe(this,"Day");return null!=e?(e=Ct(e,this.localeData()),this.add(e-t,"d")):t}function qt(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")}function Xt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Et(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=g([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),i=Ie(this.weekdaysShort(n,"")),a=Ie(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);o.sort(e),s.sort(e),l.sort(e),u.sort(e),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("^("+o.join("|")+")","i")}function Qt(){return this.hours()%12||12}function en(){return this.hours()||24}function tn(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function nn(e,t){return t._meridiemParse}function rn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Qt),B("k",["kk",2],0,en),B("hmm",0,0,(function(){return""+Qt.apply(this)+N(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Qt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),tn("a",!0),tn("A",!1),Oe("a",nn),Oe("A",nn),Oe("H",pe,Le),Oe("h",pe,ke),Oe("k",pe,ke),Oe("HH",pe,ce),Oe("hh",pe,ce),Oe("kk",pe,ce),Oe("hmm",me),Oe("hmmss",ge),Oe("Hmm",me),Oe("Hmmss",ge),Ye(["H","HH"],Be),Ye(["k","kk"],(function(e,t,n){var r=Ee(e);t[Be]=24===r?0:r})),Ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ye(["h","hh"],(function(e,t,n){t[Be]=Ee(e),v(n).bigHour=!0})),Ye("hmm",(function(e,t,n){var r=e.length-2;t[Be]=Ee(e.substr(0,r)),t[We]=Ee(e.substr(r)),v(n).bigHour=!0})),Ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Be]=Ee(e.substr(0,r)),t[We]=Ee(e.substr(r,2)),t[Ve]=Ee(e.substr(i)),v(n).bigHour=!0})),Ye("Hmm",(function(e,t,n){var r=e.length-2;t[Be]=Ee(e.substr(0,r)),t[We]=Ee(e.substr(r))})),Ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Be]=Ee(e.substr(0,r)),t[We]=Ee(e.substr(r,2)),t[Ve]=Ee(e.substr(i))}));var an=/[ap]\.?m?\.?/i,on=$e("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var ln,un={calendar:Y,longDateFormat:q,invalidDate:Z,ordinal:J,dayOfMonthOrdinalParse:$,relativeTime:ee,months:at,monthsShort:ot,week:Lt,weekdays:Yt,weekdaysMin:Nt,weekdaysShort:jt,meridiemParse:an},cn={},dn={};function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function pn(e){var t,n,r,i,a=0;while(a<e.length){i=fn(e[a]).split("-"),t=i.length,n=fn(e[a+1]),n=n?n.split("-"):null;while(t>0){if(r=gn(i.slice(0,t).join("-")),r)return r;if(n&&n.length>=t&&hn(i,n)>=t-1)break;t--}a++}return ln}function mn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function gn(r){var i=null;if(void 0===cn[r]&&"undefined"!==typeof e&&e&&e.exports&&mn(r))try{i=ln._abbr,t,n("4678")("./"+r),yn(i)}catch(a){cn[r]=null}return cn[r]}function yn(e,t){var n;return e&&(n=d(t)?bn(e):vn(e,t),n?ln=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ln._abbr}function vn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=cn[e])A("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."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(n=gn(t.parentLocale),null==n)return dn[t.parentLocale]||(dn[t.parentLocale]=[]),dn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new P(E(r,t)),dn[e]&&dn[e].forEach((function(e){vn(e.name,e.config)})),yn(e),cn[e]}return delete cn[e],null}function _n(e,t){if(null!=t){var n,r,i=un;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(E(cn[e]._config,t)):(r=gn(e),null!=r&&(i=r._config),t=E(i,t),null==r&&(t.abbr=e),n=new P(t),n.parentLocale=cn[e],cn[e]=n),yn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===yn()&&yn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ln;if(!s(e)){if(t=gn(e),t)return t;e=[e]}return pn(e)}function xn(){return O(cn)}function wn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Fe]<0||n[Fe]>11?Fe:n[ze]<1||n[ze]>it(n[He],n[Fe])?ze:n[Be]<0||n[Be]>24||24===n[Be]&&(0!==n[We]||0!==n[Ve]||0!==n[Ge])?Be:n[We]<0||n[We]>59?We:n[Ve]<0||n[Ve]>59?Ve:n[Ge]<0||n[Ge]>999?Ge:-1,v(e)._overflowDayOfYear&&(t<He||t>ze)&&(t=ze),v(e)._overflowWeeks&&-1===t&&(t=Ue),v(e)._overflowWeekday&&-1===t&&(t=qe),v(e).overflow=t),e}var Mn=/^\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)?)?$/,Sn=/^\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)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ln=[["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/]],On=/^\/?Date\((-?\d+)/i,Dn=/^(?:(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}))$/,An={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(e){var t,n,r,i,a,o,s=e._i,l=Mn.exec(s)||Sn.exec(s),u=kn.length,c=Ln.length;if(l){for(v(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){i=kn[t][0],r=!1!==kn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(Ln[t][1].exec(l[3])){a=(l[2]||" ")+Ln[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Wn(e)}else e._isValid=!1}function Cn(e,t,n,r,i,a){var o=[En(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Yn(e,t,n){if(e){var r=jt.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return v(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function jn(e,t,n){if(e)return An[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return 60*a+i}function Nn(e){var t,n=Dn.exec(Pn(e._i));if(n){if(t=Cn(n[4],n[3],n[2],n[5],n[6],n[7]),!Yn(n[1],t,e))return;e._a=t,e._tzm=jn(n[8],n[9],n[10]),e._d=xt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=On.exec(e._i);null===t?(In(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hn(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,i,a,o=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[ze]&&null==e._a[Fe]&&Bn(e),null!=e._dayOfYear&&(a=Hn(e._a[He],r[He]),(e._dayOfYear>Xe(a)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=xt(a,0,e._dayOfYear),e._a[Fe]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[We]&&0===e._a[Ve]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?xt:bt).apply(null,o),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&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,i,a,o,s,l,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(a=1,o=4,n=Hn(t.GG,e._a[He],St(Jn(),1,4).year),r=Hn(t.W,1),i=Hn(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=St(Jn(),a,o),n=Hn(t.gg,e._a[He],u.year),r=Hn(t.w,u.week),null!=t.d?(i=t.d,(i<0||i>6)&&(l=!0)):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Tt(n,a,o)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=Mt(n,r,i,a,o),e._a[He]=s.year,e._dayOfYear=s.dayOfYear)}function Wn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,o,s,l,u=""+e._i,c=u.length,d=0;for(r=U(e._f,e._locale).match(R)||[],l=r.length,t=0;t<l;t++)i=r[t],n=(u.match(De(i,e))||[])[0],n&&(o=u.substr(0,u.indexOf(n)),o.length>0&&v(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),Ne(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-d,u.length>0&&v(e).unusedInput.push(u),e._a[Be]<=12&&!0===v(e).bigHour&&e._a[Be]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Be]=Vn(e._locale,e._a[Be],e._meridiem),s=v(e).era,null!==s&&(e._a[He]=e._locale.erasConvertYear(s,e._a[He])),zn(e),wn(e)}else Nn(e);else In(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Gn(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(0===l)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,o=!1,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Wn(t),_(t)&&(o=!0),a+=v(t).charsLeftOver,a+=10*v(t).unusedTokens.length,v(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));m(e,n||t)}function Un(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function qn(e){var t=new S(wn(Xn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Xn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new S(wn(t)):(f(t)?e._d=t:s(n)?Gn(e):n?Wn(e):Zn(e),_(e)||(e._d=null),e))}function Zn(e){var t=e._i;d(t)?e._d=new Date(a.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Rn(e):s(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):l(t)?Un(e):h(t)?e._d=new Date(t):a.createFromInputFallback(e)}function Kn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(l(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,qn(a)}function Jn(e,t,n,r){return Kn(e,t,n,r,!1)}a.createFromInputFallback=L("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var $n=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Qn=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function er(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function tr(){var e=[].slice.call(arguments,0);return er("isBefore",e)}function nr(){var e=[].slice.call(arguments,0);return er("isAfter",e)}var rr=function(){return Date.now?Date.now():+new Date},ir=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n,r=!1,i=ir.length;for(t in e)if(u(e,t)&&(-1===Ze.call(ir,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[ir[n]]){if(r)return!1;parseFloat(e[ir[n]])!==Ee(e[ir[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Ar(NaN)}function lr(e){var t=ae(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function ur(e){return e instanceof lr}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function dr(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&Ee(e[r])!==Ee(t[r]))&&o++;return o+a}function hr(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),Oe("Z",Me),Oe("ZZ",Me),Ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pr(Me,e)}));var fr=/([\+\-]|\d\d)/gi;function pr(e,t){var n,r,i,a=(t||"").match(e);return null===a?null:(n=a[a.length-1]||[],r=(n+"").match(fr)||["-",0,0],i=60*r[1]+Ee(r[2]),0===i?0:"+"===r[0]?i:-i)}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(T(e)||f(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Jn(e).local()}function gr(e){return-Math.round(e._d.getTimezoneOffset())}function yr(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(e=pr(Me,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=gr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Yr(this,Ar(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:gr(this)}function vr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _r(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(gr(this),"m")),this}function xr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=pr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Mr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),t=Xn(t),t._a?(e=t._isUTC?g(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&dr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function Lr(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Or=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ar(e,t){var n,r,i,a=e,o=null;return ur(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Or.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:Ee(o[ze])*n,h:Ee(o[Be])*n,m:Ee(o[We])*n,s:Ee(o[Ve])*n,ms:Ee(cr(1e3*o[Ge]))*n}):(o=Dr.exec(e))?(n="-"===o[1]?-1:1,a={y:Ir(o[2],n),M:Ir(o[3],n),w:Ir(o[4],n),d:Ir(o[5],n),h:Ir(o[6],n),m:Ir(o[7],n),s:Ir(o[8],n)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(i=Er(Jn(a.from),Jn(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new lr(a),ur(e)&&u(e,"_locale")&&(r._locale=e._locale),ur(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Ir(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cr(e,t){var n={};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 Er(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Cr(e,t):(n=Cr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var i,a;return null===r||isNaN(+r)||(A(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."),a=n,n=r,r=a),i=Ar(n,r),Yr(this,i,e),this}}function Yr(e,t,n,r){var i=t._milliseconds,o=cr(t._days),s=cr(t._months);e.isValid()&&(r=null==r||r,s&&pt(e,Qe(e,"Month")+s*n),o&&et(e,"Date",Qe(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}Ar.fn=lr.prototype,Ar.invalid=sr;var jr=Pr(1,"add"),Nr=Pr(-1,"subtract");function Rr(e){return"string"===typeof e||e instanceof String}function Hr(e){return T(e)||f(e)||Rr(e)||h(e)||zr(e)||Fr(e)||null===e||void 0===e}function Fr(e){var t,n,r=l(e)&&!c(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=a.length;for(t=0;t<o;t+=1)n=a[t],i=i||u(e,n);return r&&i}function zr(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Rr(e)})).length),t&&n}function Br(e){var t,n,r=l(e)&&!c(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||u(e,n);return r&&i}function Wr(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"}function Vr(e,t){1===arguments.length&&(arguments[0]?Hr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),r=mr(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(I(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Jn(n)))}function Gr(){return new S(this)}function Ur(e,t){var n=T(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function qr(e,t){var n=T(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Xr(e,t,n,r){var i=T(e)?e:Jn(e),a=T(t)?t:Jn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n)))}function Zr(e,t){var n,r=T(e)?e:Jn(e);return!(!this.isValid()||!r.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Jr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=mr(e,this),!r.isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ie(t),t){case"year":a=Qr(this,r)/12;break;case"month":a=Qr(this,r);break;case"quarter":a=Qr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Ce(a)}function Qr(e,t){if(e.date()<t.date())return-Qr(t,e);var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(i,"months");return t-a<0?(n=e.clone().add(i-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(i+1,"months"),r=(t-a)/(n-a)),-(i+r)||0}function ei(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ni(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ri(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)}function ii(e,t){return this.isValid()&&(T(e)&&e.isValid()||Jn(e).isValid())?Ar({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.from(Jn(),e)}function oi(e,t){return this.isValid()&&(T(e)&&e.isValid()||Jn(e).isValid())?Ar({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Jn(),e)}function li(e){var t;return void 0===e?this._locale._abbr:(t=bn(e),null!=t&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=L("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 ci(){return this._locale}var di=1e3,hi=60*di,fi=60*hi,pi=3506328*fi;function mi(e,t){return(e%t+t)%t}function gi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pi:new Date(e,t,n).valueOf()}function yi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pi:Date.UTC(e,t,n)}function vi(e){var t,n;if(e=ie(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:gi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mi(t+(this._isUTC?0:this.utcOffset()*hi),fi);break;case"minute":t=this._d.valueOf(),t-=mi(t,hi);break;case"second":t=this._d.valueOf(),t-=mi(t,di);break}return this._d.setTime(t),a.updateOffset(this,!0),this}function _i(e){var t,n;if(e=ie(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:gi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-mi(t+(this._isUTC?0:this.utcOffset()*hi),fi)-1;break;case"minute":t=this._d.valueOf(),t+=hi-mi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=di-mi(t,di)-1;break}return this._d.setTime(t),a.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function xi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Mi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){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()}}function Ti(){return this.isValid()?this.toISOString():null}function ki(){return _(this)}function Li(){return m({},v(this))}function Oi(){return v(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ai(e,t){var n,r,i,o=this._eras||bn("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=a(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=a(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function Ii(e,t,n){var r,i,a,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r];break}else if([a,o,s].indexOf(e)>=0)return l[r]}function Ci(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function Ei(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Yi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function ji(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()}function Ni(e){return u(this,"_erasNameRegex")||Vi.call(this),e?this._erasNameRegex:this._erasRegex}function Ri(e){return u(this,"_erasAbbrRegex")||Vi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Hi(e){return u(this,"_erasNarrowRegex")||Vi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Wi(e,t){return t._eraYearOrdinalRegex||be}function Vi(){var e,t,n,r,i,a=[],o=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=Ie(u[e].name),r=Ie(u[e].abbr),i=Ie(u[e].narrow),o.push(n),a.push(r),s.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Gi(e,t){B(0,[e,e.length],0,t)}function Ui(e){return $i.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qi(e){return $i.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Xi(){return Tt(this.year(),1,4)}function Zi(){return Tt(this.isoWeekYear(),1,4)}function Ki(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function Ji(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function $i(e,t,n,r,i){var a;return null==e?St(this,r,i).year:(a=Tt(e,r,i),t>a&&(t=a),Qi.call(this,e,t,n,r,i))}function Qi(e,t,n,r,i){var a=Mt(e,t,n,r,i),o=xt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function ea(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Oe("N",Fi),Oe("NN",Fi),Oe("NNN",Fi),Oe("NNNN",zi),Oe("NNNNN",Bi),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e})),Oe("y",be),Oe("yy",be),Oe("yyy",be),Oe("yyyy",be),Oe("yo",Wi),Ye(["y","yy","yyy","yyyy"],He),Ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[He]=n._locale.eraYearOrdinalParse(e,i):t[He]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Gi("gggg","weekYear"),Gi("ggggg","weekYear"),Gi("GGGG","isoWeekYear"),Gi("GGGGG","isoWeekYear"),Oe("G",xe),Oe("g",xe),Oe("GG",pe,ce),Oe("gg",pe,ce),Oe("GGGG",ve,he),Oe("gggg",ve,he),Oe("GGGGG",_e,fe),Oe("ggggg",_e,fe),je(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Ee(e)})),je(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),Oe("Q",ue),Ye("Q",(function(e,t){t[Fe]=3*(Ee(e)-1)})),B("D",["DD",2],"Do","date"),Oe("D",pe,ke),Oe("DD",pe,ce),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],ze),Ye("Do",(function(e,t){t[ze]=Ee(e.match(pe)[0])}));var ta=$e("Date",!0);function na(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),Oe("DDD",ye),Oe("DDDD",de),Ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ee(e)})),B("m",["mm",2],0,"minute"),Oe("m",pe,Le),Oe("mm",pe,ce),Ye(["m","mm"],We);var ra=$e("Minutes",!1);B("s",["ss",2],0,"second"),Oe("s",pe,Le),Oe("ss",pe,ce),Ye(["s","ss"],Ve);var ia,aa,oa=$e("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Oe("S",ye,ue),Oe("SS",ye,ce),Oe("SSS",ye,de),ia="SSSS";ia.length<=9;ia+="S")Oe(ia,be);function sa(e,t){t[Ge]=Ee(1e3*("0."+e))}for(ia="S";ia.length<=9;ia+="S")Ye(ia,sa);function la(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}aa=$e("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ca=S.prototype;function da(e){return Jn(1e3*e)}function ha(){return Jn.apply(null,arguments).parseZone()}function fa(e){return e}ca.add=jr,ca.calendar=Vr,ca.clone=Gr,ca.diff=$r,ca.endOf=_i,ca.format=ri,ca.from=ii,ca.fromNow=ai,ca.to=oi,ca.toNow=si,ca.get=tt,ca.invalidAt=Oi,ca.isAfter=Ur,ca.isBefore=qr,ca.isBetween=Xr,ca.isSame=Zr,ca.isSameOrAfter=Kr,ca.isSameOrBefore=Jr,ca.isValid=ki,ca.lang=ui,ca.locale=li,ca.localeData=ci,ca.max=Qn,ca.min=$n,ca.parsingFlags=Li,ca.set=nt,ca.startOf=vi,ca.subtract=Nr,ca.toArray=Mi,ca.toObject=Si,ca.toDate=wi,ca.toISOString=ti,ca.inspect=ni,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Ti,ca.toString=ei,ca.unix=xi,ca.valueOf=bi,ca.creationData=Di,ca.eraName=Ei,ca.eraNarrow=Pi,ca.eraAbbr=Yi,ca.eraYear=ji,ca.year=Ke,ca.isLeapYear=Je,ca.weekYear=Ui,ca.isoWeekYear=qi,ca.quarter=ca.quarters=ea,ca.month=mt,ca.daysInMonth=gt,ca.week=ca.weeks=At,ca.isoWeek=ca.isoWeeks=It,ca.weeksInYear=Ki,ca.weeksInWeekYear=Ji,ca.isoWeeksInYear=Xi,ca.isoWeeksInISOWeekYear=Zi,ca.date=ta,ca.day=ca.days=Ut,ca.weekday=qt,ca.isoWeekday=Xt,ca.dayOfYear=na,ca.hour=ca.hours=on,ca.minute=ca.minutes=ra,ca.second=ca.seconds=oa,ca.millisecond=ca.milliseconds=aa,ca.utcOffset=yr,ca.utc=_r,ca.local=br,ca.parseZone=xr,ca.hasAlignedHourOffset=wr,ca.isDST=Mr,ca.isLocal=Tr,ca.isUtcOffset=kr,ca.isUtc=Lr,ca.isUTC=Lr,ca.zoneAbbr=la,ca.zoneName=ua,ca.dates=L("dates accessor is deprecated. Use date instead.",ta),ca.months=L("months accessor is deprecated. Use month instead",mt),ca.years=L("years accessor is deprecated. Use year instead",Ke),ca.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),ca.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var pa=P.prototype;function ma(e,t,n,r){var i=bn(),a=g().set(r,t);return i[n](a,e)}function ga(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return ma(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ma(e,r,n,"month");return i}function ya(e,t,n,r){"boolean"===typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var i,a=bn(),o=e?a._week.dow:0,s=[];if(null!=n)return ma(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=ma(t,(i+o)%7,r,"day");return s}function va(e,t){return ga(e,t,"months")}function _a(e,t){return ga(e,t,"monthsShort")}function ba(e,t,n){return ya(e,t,n,"weekdays")}function xa(e,t,n){return ya(e,t,n,"weekdaysShort")}function wa(e,t,n){return ya(e,t,n,"weekdaysMin")}pa.calendar=j,pa.longDateFormat=X,pa.invalidDate=K,pa.ordinal=Q,pa.preparse=fa,pa.postformat=fa,pa.relativeTime=te,pa.pastFuture=ne,pa.set=C,pa.eras=Ai,pa.erasParse=Ii,pa.erasConvertYear=Ci,pa.erasAbbrRegex=Ri,pa.erasNameRegex=Ni,pa.erasNarrowRegex=Hi,pa.months=ct,pa.monthsShort=dt,pa.monthsParse=ft,pa.monthsRegex=vt,pa.monthsShortRegex=yt,pa.week=kt,pa.firstDayOfYear=Dt,pa.firstDayOfWeek=Ot,pa.weekdays=zt,pa.weekdaysMin=Wt,pa.weekdaysShort=Bt,pa.weekdaysParse=Gt,pa.weekdaysRegex=Zt,pa.weekdaysShortRegex=Kt,pa.weekdaysMinRegex=Jt,pa.isPM=rn,pa.meridiem=sn,yn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===Ee(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),a.lang=L("moment.lang is deprecated. Use moment.locale instead.",yn),a.langData=L("moment.langData is deprecated. Use moment.localeData instead.",bn);var Ma=Math.abs;function Sa(){var e=this._data;return this._milliseconds=Ma(this._milliseconds),this._days=Ma(this._days),this._months=Ma(this._months),e.milliseconds=Ma(e.milliseconds),e.seconds=Ma(e.seconds),e.minutes=Ma(e.minutes),e.hours=Ma(e.hours),e.months=Ma(e.months),e.years=Ma(e.years),this}function Ta(e,t,n,r){var i=Ar(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ka(e,t){return Ta(this,e,t,1)}function La(e,t){return Ta(this,e,t,-1)}function Oa(e){return e<0?Math.floor(e):Math.ceil(e)}function Da(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Oa(Ia(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=Ce(a/1e3),l.seconds=e%60,t=Ce(e/60),l.minutes=t%60,n=Ce(t/60),l.hours=n%24,o+=Ce(n/24),i=Ce(Aa(o)),s+=i,o-=Oa(Ia(i)),r=Ce(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Aa(e){return 4800*e/146097}function Ia(e){return 146097*e/4800}function Ca(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ie(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Aa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ia(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)}}function Ea(e){return function(){return this.as(e)}}var Pa=Ea("ms"),Ya=Ea("s"),ja=Ea("m"),Na=Ea("h"),Ra=Ea("d"),Ha=Ea("w"),Fa=Ea("M"),za=Ea("Q"),Ba=Ea("y"),Wa=Pa;function Va(){return Ar(this)}function Ga(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ua(e){return function(){return this.isValid()?this._data[e]:NaN}}var qa=Ua("milliseconds"),Xa=Ua("seconds"),Za=Ua("minutes"),Ka=Ua("hours"),Ja=Ua("days"),$a=Ua("months"),Qa=Ua("years");function eo(){return Ce(this.days()/7)}var to=Math.round,no={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ro(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function io(e,t,n,r){var i=Ar(e).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),l=to(i.as("d")),u=to(i.as("M")),c=to(i.as("w")),d=to(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=r,ro.apply(null,h)}function ao(e){return void 0===e?to:"function"===typeof e&&(to=e,!0)}function oo(e,t){return void 0!==no[e]&&(void 0===t?no[e]:(no[e]=t,"s"===e&&(no.ss=t-1),!0))}function so(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=no;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(a=Object.assign({},no,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=io(this,!i,a,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var lo=Math.abs;function uo(e){return(e>0)-(e<0)||+e}function co(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,l=lo(this._milliseconds)/1e3,u=lo(this._days),c=lo(this._months),d=this.asSeconds();return d?(e=Ce(l/60),t=Ce(e/60),l%=60,e%=60,n=Ce(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=uo(this._months)!==uo(d)?"-":"",o=uo(this._days)!==uo(d)?"-":"",s=uo(this._milliseconds)!==uo(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ho=lr.prototype;return ho.isValid=or,ho.abs=Sa,ho.add=ka,ho.subtract=La,ho.as=Ca,ho.asMilliseconds=Pa,ho.asSeconds=Ya,ho.asMinutes=ja,ho.asHours=Na,ho.asDays=Ra,ho.asWeeks=Ha,ho.asMonths=Fa,ho.asQuarters=za,ho.asYears=Ba,ho.valueOf=Wa,ho._bubble=Da,ho.clone=Va,ho.get=Ga,ho.milliseconds=qa,ho.seconds=Xa,ho.minutes=Za,ho.hours=Ka,ho.days=Ja,ho.weeks=eo,ho.months=$a,ho.years=Qa,ho.humanize=so,ho.toISOString=co,ho.toString=co,ho.toJSON=co,ho.locale=li,ho.localeData=ci,ho.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),ho.lang=ui,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Oe("x",xe),Oe("X",Se),Ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ye("x",(function(e,t,n){n._d=new Date(Ee(e))})),
//! moment.js
a.version="2.30.1",o(Jn),a.fn=ca,a.min=tr,a.max=nr,a.now=rr,a.utc=g,a.unix=da,a.months=va,a.isDate=f,a.locale=yn,a.invalid=b,a.duration=Ar,a.isMoment=T,a.weekdays=ba,a.parseZone=ha,a.localeData=bn,a.isDuration=ur,a.monthsShort=_a,a.weekdaysMin=wa,a.defineLocale=vn,a.updateLocale=_n,a.locales=xn,a.weekdaysShort=xa,a.normalizeUnits=ie,a.relativeTimeRounding=ao,a.relativeTimeThreshold=oo,a.calendarFormat=Wr,a.prototype=ca,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}))}).call(this,n("62e4")(e))},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,a=n("44d2"),o=n("ae40"),s="findIndex",l=!0,u=o(s);s in[]&&Array(1)[s]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!u},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},c7aa:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},c8f32:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,a=n("44d2"),o=n("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cf1e9:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,o=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===r&&n&&"godinu"===a?e+" godina":e+" "+a)}},n=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:"D. M. 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(){var e=["[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"];return e[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:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},cf51:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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: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}});function n(e,t,n,r){var i={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?i[n][0]:i[n][1]}return t}))},cf75:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-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",t}function r(e){var t=e;return t=-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",t}function i(e,t,n,r){var i=a(e);switch(n){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"}}function a(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}var o=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 wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH 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:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},d26a:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},r=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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}});return r}))},d2d4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:"há %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º",invalidDate:"Data inválida"});return t}))},d51b:function(e,t,n){"use strict";var r=function(){function e(e){this.value=e}return e}(),i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),a=function(){function e(e){this._list=new i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=a},d69a:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fil",{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}});return t}))},d6b6:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},d716:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},d9f8:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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:"[Aujourd’hui à] 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")}}});return t}))},db29:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=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:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|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}});return a}))},dc4d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],a=e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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}});return a}))},e0c5:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},r=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}});return r}))},e1d3:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e81d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},r=e.defineLocale("km",{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 ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%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}});return r}))},ebe4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))},ec18:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}var n=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}});return n}))},ec2e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-in",{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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:6}});return t}))},eda5:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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?"පෙ.ව.":"පෙර වරු"}});return t}))},f260:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},f3ff:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},r=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}});return r}))},f6b46:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["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"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],o=e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:a,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){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return o}))},facd:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=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:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|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",w:"één week",ww:"%d weken",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}});return a}))},fd7e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},fffc:function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("1c0b"),o=n("825a");r({target:"Iterator",proto:!0,real:!0},{find:function(e){return o(this),a(e),i(this,(function(t){if(e(t))return i.stop(t)}),void 0,!1,!0).result}})},ffff:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=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}});return t}))}}]);