@grapecity-software/spread-common 18.1.4 → 18.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * SpreadJS Library 18.1.4
3
+ * SpreadJS Library 18.2.0
4
4
  *
5
5
  * Copyright(c) GrapeCity Software inc. All rights reserved.
6
6
  *
@@ -9,4 +9,4 @@
9
9
  * https://www.grapecity.com.cn/developer/spreadjs
10
10
  *
11
11
  */
12
- var GC;(()=>{var e,n,t;function i(t){var r,r,r=n[t];return void 0!==r||(r=n[t]={exports:{}},e[t](r,r.exports,i)),r.exports}e={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var a;!function(){"use strict";var e,n,t,r,i;function o(t){var r,r,r=n[t];return void 0!==r||(r=n[t]={exports:{}},e[t].call(r.exports,r,r.exports,o)),r.exports}e={"./src/common/common.entry.ts":function(t,r,e){var n,i,o,a,u,s,f,c,y,m,M,h,n=this&&this.__createBinding||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&("get"in i?r.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){t[n=void 0===n?e:n]=r[e]}),i=this&&this.__exportStar||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,o=e("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return o.ft}}),a=e("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return a.lt}}),u=e("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return u.Uf}}),s=e("./src/common/util/datetimehelper.ts"),Object.defineProperty(r,"ct",{enumerable:!0,get:function(){return s.ct}}),Object.defineProperty(r,"B3",{enumerable:!0,get:function(){return s.getSR}}),f=e("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return f.st}}),c=e("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return c.$T}}),y=e("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return y.zf}}),m=e("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return m.rbush}}),M=e("./src/common/util/common.ts"),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){M.HandleExcelSpecialDate=t},get:function(){return M.HandleExcelSpecialDate}}),i(e("./src/common/util/common.ts"),r),h=e("./src/common/culture/cultureInfo.ts"),Object.defineProperty(r,"CultureInfo",{enumerable:!0,get:function(){return h.CultureInfo}}),Object.defineProperty(r,"CultureManager",{enumerable:!0,get:function(){return h.CultureManager}}),i(e("./src/common/util/functionhelper.ts"),r)},"./src/common/culture/cultureInfo.ts":function(j,t,r){var e,n,u,a,i,f,o,s,c,n,y,r,m,M,h,d,E,r,n,l,e,v,p,b,g,R,F,n,_,w,D,H;function N(t){return t.split("\xa0").join(" ").toUpperCase()}function k(t){for(var r,e,n,r=[],e=0,n=t.length;e<n;e++)r[e]=N(t[e]);return r}function $(t,r,e){var t=N(t),r=r.indexOf(t);return r=-1===r?e.indexOf(t):r}function S(t){if(t){var t=t.charCodeAt(0);if(11904<=t&&t<12032||8208<=t&&t<8252||12288<=t&&t<40960||43360<=t&&t<43392||44032<=t&&t<55215||63744<=t&&t<64256||65280<=t&&t<65535)return!0}return!1}function I(t,r,e){var n;return" "===t||e&&"\u3000"===t?0:(n=e&&e(t),r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!e||n?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!e||n?5:4:n?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1)}function x(t,r,e){var n,i,o,a,u,s;if(!t)return[];for(n=[t[0]],o=I(t[i=0],r,e),a=1;a<t.length;a++)u=I(t[a],r,e),h[s=o+""+u]&&n[++i]===f&&(n[i]=""),n[i]+=t[a],o=u;return n}function P(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\xa4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"\u2030",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=f,this.predefinedFormats={},this.TimelineDateOrder=[M.quarterOrMonth,M.date,M.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=f}function C(){}function B(){var t,r,t=_.call(this)||this;return O.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),O.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!(r=["MMM yyyy","MMMM yyyy"]),r]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"}},t}function G(){var t,r,e,n,i,n,t=w.call(this)||this,r,e;return O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\u62fe","\u5104","\u9621","\u767e","\u62fe","\u842c","\u9621","\u767e","\u62fe",""],numbers:["\u3007","\u58f1","\u5f10","\u53c2","\u56db","\u4f0d","\u516d","\u4e03","\u516b","\u4e5d"]},3:{letters:o,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},{Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"}]),O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],n=["1","2","3","4","5","6","7","8","9","10","11","12",""],n,"\u5348\u524d",!(n=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"]),["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],i,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd",["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",n,"ggge/mmmm/d\u65e5"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.QPt=['gggee"\u5e74"MM"\u6708"dd"\u65e5','gggee"\u5e74"M"\u6708"d"\u65e5','ge"\u5e74"M"\u6708"d"\u65e5','ggge"\u5e74"M"\u6708"d"\u65e5','ggee"\u5e74"M"\u6708"d"\u65e5','gge"\u5e74"M"\u6708"d"\u65e5'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\xa5-411]#,##0_);[Red]([$\xa5-411]#,##0)","[$\xa5-411]#,##0_);([$\xa5-411]#,##0)","[$\xa5-411]#,##0;[Red][$\xa5-411]#,##0","[$\xa5-411]#,##0;-[$\xa5-411]#,##0","[$\xa5-411]#,##0;[Red]-[$\xa5-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"\u6642"mm"\u5206";@','h"\u6642"mm"\u5206"ss"\u79d2";@'],Special:{"\u90f5\u4fbf\u756a\u53f7":"[<=999]000;[<=9999]000-00;000-0000","\u96fb\u8a71\u756a\u53f7\uff08\u6771\u4eac)":"[<=99999999]####-####;(00) ####-####","\u6b63\u8ca0\u8a18\u53f7 \uff08+ = \u25b3; - = \u25b2)":'"\u25b3" #,##0;"\u25b2" #,##0',"\u6f22\u6570\u5b57\uff08\u5341\u4e8c\u4e07\u4e09\u5343\u56db\u767e\uff09":"[DBNum1][$-411]General","\u5927\u5b57 (\u58f1\u62fe\u5f10\u842c\u53c2\u9621\u56db\u767e)":"[DBNum2][$-411]General","\u5168\u89d2 (\uff11\uff12\uff13\uff14\uff15)":"[DBNum3][$-411]0","\u5168\u89d2 \u6841\u533a\u5207\u308a\uff08\uff11\uff12,\uff13\uff14\uff15\uff09":"[DBNum3][$-411]#,##0"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},t.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d","\u300d","\u3002","\u3001","\u30fc"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b","\u300c","$","\uff04","\\","\uffe5"],lineBreakingStrategy:function(t,r){return x(t,r,S)}},t.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],t}function A(){var t,r,e,n,i,n,t=D.call(this)||this,r,e;return O.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"\xa5",!1,"\u975e\u6570\u5b57","\u8d1f\u65e0\u7a77\u5927",1,1,"\u6b63\u65e0\u7a77\u5927",{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u25cb","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u4edf","\u4f70","\u62fe","\u4ebf","\u4edf","\u4f70","\u62fe","\u4e07","\u4edf","\u4f70","\u62fe",""],numbers:["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"]},3:{letters:o,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},{Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"}]),O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],n=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],n,"\u4e0a\u5348",!(n=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"]),["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708",""],i,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d",["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",n]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(t,r){var e=t.localeCompare(r,"zh");return e<0&&"\u4e00"<=t&&r<"\u4e00"||0<e&&"\u4e00"<=r&&t<"\u4e00"?-e:e},t.predefinedFormats={Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$\xa5-804]#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]#,##0","[$\xa5-804]#,##0;[$\xa5-804]-#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"\u5e74"m"\u6708"d"\u65e5";@','[DBNum1][$-804]yyyy"\u5e74"m"\u6708";@','[DBNum1][$-804]m"\u6708"d"\u65e5";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"\u65f6"mm"\u5206";@','h"\u65f6"mm"\u5206"ss"\u79d2";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2";@','[DBNum1][$-804]h"\u65f6"mm"\u5206";@','[DBNum1][$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@'],Special:{"\u90ae\u653f\u7f16\u7801":"000000","\u4e2d\u6587\u5c0f\u5199\u5b57\u6bcd":"[DBNum1][$-804]General","\u4e2d\u6587\u5927\u5199\u5b57\u6bcd":"[DBNum2][$-804]General"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},t.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return x(t,r,S)}},t}function L(){var t,r,e,n,n,t=H.call(this)||this,r,e;return O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\uf9d1","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\uf973","\u5104","\u9621","\u767e","\uf973","\u842c","\u9621","\u767e","\uf973",""],numbers:["\uf9b2","\u58f9","\u8cb3","\uf96b","\u56db","\u4f0d","\uf9d1","\u4e03","\u516b","\u4e5d"]},3:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]},4:{letters:["\uc870","\ucc9c","\ubc31","\uc2ed","\uc5b5","\ucc9c","\ubc31","\uc2ed","\ub9cc","\ucc9c","\ubc31","\uc2ed",""],numbers:["\u25cb","\uc77c","\uc774","\uc0bc","\uc0ac","\uc624","\uc721","\uce60","\ud314","\uad6c"]}},{Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"}]),O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],n=["1","2","3","4","5","6","7","8","9","10","11","12",""],n,"\uc624\uc804",!(n=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""]),["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],1,"yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd h:mm:ss","yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd","h:mm:ss","M'\uc6d4' d'\uc77c'",n,n,"\uc11c\uae30","\uc624\ud6c4","yyyy-MM-dd",["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],"tt h:mm","yyyy'\ub144' M'\uc6d4'","yyyy\ub144/mmmm/d\uc77c"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red][$\u20a9-412]#,##0","[$\u20a9-412]#,##0;-[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red]-[$\u20a9-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',"yyyy-mm-dd;@",'yyyy"\ub144" m"\uc6d4" d"\uc77c";@','yy"\u5e74" m"\u6708" d"\u65e5";@','yyyy"\ub144" m"\uc6d4";@','m"\uc6d4" d"\uc77c";@',"yy-m-d;@","yy-m-d h:mm;@",'m"\u6708"d"\u65e5";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"\uc2dc" mm"\ubd84";@','h"\uc2dc" mm"\ubd84" ss"\ucd08";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84" ss"\ucd08";@'],Special:{"\uc6b0\ud3b8 \ubc88\ud638":"000-000","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 4\uc790\ub9ac)":"[<=999999]####-####;(0##) ####-####","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 3\uc790\ub9ac)":"[<=9999999]###-####;(0##) ###-####","\uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638":"000000-0000000","\uc22b\uc790(\ud55c\uc790)":"[DBNum1][$-412]General","\uc22b\uc790(\ud55c\uc790-\uac16\uc740\uc790)":"[DBNum2][$-412]General","\uc22b\uc790(\ud55c\uae00)":"[DBNum4][$-412]General"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},t}function O(t,r,e){for(var n,i,o,a,n=this,o=0,a=r.length;o<a;o++)i=r[o],n[t][i]=e[o]}function z(t,r){var e;"object"==typeof document&&("function"!=typeof CustomEvent?(e=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):e=new CustomEvent("cultureChanged",{}),e.cultureInfo=t,i.gcCultureInfo=t,i.gcCultureObj=r,document.dispatchEvent(e))}function T(){this.KPt=1,this.JPt={}}e=this&&this.__extends||(F=function(t,r){return(F=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,r){t.__proto__=r}:function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}))(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}F(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t.XPt=t.CultureInfo=t.TimelineDateOrder=void 0,n=r("./src/common/util/types.ts"),u=r("./src/common/util/common.ts"),a=r("./src/common/util/arrayhelper.ts"),i="undefined"!=typeof window?window:r.g,f=void 0,o=null,s=n.lt.y0,c=n.lt.Dh,r=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],m=(n=["MM/dd/yyyy","MM/d/yyyy","M/dd/yyyy","M/d/yyyy","yy/MM/dd","yy/MM/d","yy/M/dd","yy/M/d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d"]).concat(y=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"]),s(n,function(t,e){s(y,function(t,r){t<y.length-4&&m.push(e+" "+r)})}),m=m.concat(r),s(r,function(t,e){s(y,function(t,r){t<y.length-4&&m.push(e+" "+r)})}),(n=M=t.TimelineDateOrder||(t.TimelineDateOrder={}))[n.year=1]="year",n[n.quarterOrMonth=2]="quarterOrMonth",n[n.date=3]="date",h={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1},P.prototype.mTe=function(){return[" "]},P.prototype.FAe=function(t){var r,e,n,r=this,e,n={lineBreakingChar:r.mTe()};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,n):x(t,n)},P.prototype.hse=function(t){var r;return this.TextFormat&&this.TextFormat.lineBreakingStrategy?(r={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart},this.TextFormat.lineBreakingStrategy(t,r)):x(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},P.prototype.qPt=function(){var t,r,r,e;return this.$Pt||(r=(r=[r=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),r+" h:mm",r+" h:mm:ss",r+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(m),1041===this.id&&(e=t.eraFormatter,r=(r=r.concat(this.QPt)).concat(e)),r=r.concat(t.preselectedFormatters),this.$Pt=r),this.$Pt},P.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=k(r.DateTimeFormat.monthNames),r.eGt=k(r.DateTimeFormat.monthGenitiveNames)),$(t,r.nGt,r.eGt)},P.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=k(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=k(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),$(t,r.rGt,r.oGt)},P.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=k(r.DateTimeFormat.dayNames)),r.uGt.indexOf(N(t))},P.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=k(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(N(t))},d=P,t.CultureInfo=d,C.fGt=function(t){return t>=C.lGt()&&t<=C.hGt()},C.dGt=function(){var t,r,e,t=d.eras;if(t===f)return this.vGt;for(r=[],e=0;e<t.length;e++)r[e]=new Date(t[e].startDate.replace(/-/g,"/"));return r},C.mGt=function(t){var r,e,n,i,o;switch(t){case"g":r="symbol",e=C.gGt;break;case"gg":r="abbreviation",e=C.pGt;break;case"ggg":r="name",e=C.DEt;break;default:return[]}if(i=[],(n=d.eras)===f)return e;for(o=0;o<n.length;o++)i[o]=n[o][r];return i},C.hGt=function(){var t,t,t=d.eras;return t!==f&&0<t.length?((t=new Date(t[t.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},C.lGt=function(){var t=d.eras;return t!==f&&0<t.length?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},C.wGt=function(){var t=d.eras;return t!==f?t.length:this.MGt},C.CGt=function(){var t,r,e,n,i,t=d.eras;if(t===f)return this.SGt;for(r=[],e=1;e<t.length;e++)n=new Date(t[e-1].startDate.replace(/-/g,"/")),i=new Date(t[e].startDate.replace(/-/g,"/")),r[e-1]=i.getFullYear()-n.getFullYear()+1;return r[e-1]=99,r},C.TGt=function(t){var r,e,n,r={AGt:-1,IGt:-1};if(!C.fGt(t)){if(!(t>C.hGt()))return r;t=C.hGt()}for(e=0;e<C.wGt();e++)if(t<(n=e+1!==C.wGt()?C.dGt()[e+1]:C.xGt(C.hGt(),1))){r.AGt=e,r.IGt=t.getFullYear()-C.dGt()[e].getFullYear()+1;break}return r},C.xGt=function(t,r){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+r),new Date(t.valueOf())},C.NGt=function(t,r){var e;return C.dGt()[t].getFullYear()+r-1},C.kGt=function(t,r){var e,n;for(r=r.toUpperCase(),e=C.mGt(t),n=0;n<e.length;n++)if(e[n]===r)return n;return-1},C.DGt=function(t,r,e){var n,r,i,n,n,i,n=C,r=n.TGt(r),i=r.AGt;if(0<=i&&0<(n=n.mGt(t)).length)return n[i];if(0<=(n=r.IGt)){if("1"===(i=n.toString())&&e)return i="\u5143";if("ee"===t)return i=1===i.length?"0"+i:i;if("e"===t)return i}return""},C.vGt=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],C.MGt=5,C.SGt=[45,15,64,31,99],C.bGt=new Date(2117,11,31,23,59,59),C.yGt=new Date(1868,8,8),C._Gt=["1,m","2,t","3,s","4,h","5,r"],C.EGt=[0,1,2,3,0,1,2,3],C.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],C.gGt=["M","T","S","H","R"],C.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],C.jGt=99,C.eraExcelFormatter="[$-ja-JP-x-gannen]",C.eraInternalFormatter="[$-411]",t.XPt=C,e(B,_=d),r=B,e(G,w=d),n=G,e(A,D=d),A.prototype.mTe=function(){return[" ","\u3000"]},l=A,e(L,H=d),e=L,v={invariant:new d,"en-us":new r,"ja-jp":new n,"zh-cn":new l,"ko-kr":new e},p={},b=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],g=["wmk1","wmk2"],T.instance=function(){return this.OGt||(this.OGt=new this)},T.prototype.culture=function(t){if(0===arguments.length)return T.RGt;t&&T.RGt!==t&&(T.RGt=t.toLowerCase(),this.KPt++,z(T.RGt,T.OGt.getCultureInfo()))},T.prototype.addCultureInfo=function(t,r,e){var n,i,o,a,n;if(r&&r instanceof d){if(n=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,i=r.NumberFormat.arrayListSeparator,o=r.NumberFormat.arrayGroupSeparator,n===r.NumberFormat.listSeparator||o===i)throw(a=new u.ResourceManager(u.SR)).getResource().Exp_Separator;v[t.toLowerCase()]=r}e&&"object"==typeof e&&(n=t.toLowerCase(),p[n]=c(!0,{},e),this.KPt++)},T.prototype.getCultureInfoDict=function(){return v},T.prototype.getCultureInfo=function(t){var r,e,n;if(0===arguments.length)return v[T.RGt];for(n in"string"==typeof t&&(t=t.toLowerCase()),e=o,r=v)if(n===t||r[n].id!==f&&r[n].id===t){e=r[n];break}return e},T.prototype.getLanguage=function(t){var t;return"string"==typeof t?(t=t.toLowerCase(),p[t]):o},T.prototype.getResources=function(t){var r,r,r=this.culture().toLowerCase();return"string"==typeof(t=t!==o&&t!==f?t:r)&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):o},T.prototype.BGt=function(t){var r,e,n,i,o,a,u,s,t,r,r="PivotTables",e="ReportSheet",n="GanttSheet",i="DataChart",o="Sheets",a="CalcEngine",u="Functions",s="TableFunctions",t=c(!0,{},t);return t[r]&&this.LGt(t[r],g),t[e]&&this.LGt(t[e],g),t[n]&&this.LGt(t[n],g),t[i]&&this.LGt(t[i],g),t[o]&&this.LGt(t[o],b),(r=t[a])&&(t[u]=r.wmt,t[s]=r.d2t,delete r.wmt,delete r.d2t),t},T.prototype.LGt=function(t,r){for(var e,n,i,e=0,n=r;e<n.length;e++)delete t[i=n[e]]},T.prototype.FGt=function(t,r,e){var n,i,o,n=p[t.toLowerCase()];for(i in r)a.Uf.OS(b,i)||null!==(o=this.PGt(n,i,e))&&"string"==typeof o&&"string"==typeof r[i]&&(r[i]=o);r.wmt&&n.Functions&&this.GGt(n.Functions,r.wmt),r.d2t&&n.TableFunctions&&c(!0,r.d2t,n.TableFunctions)},T.prototype.PGt=function(t,r,e){var n,i;if(t.hasOwnProperty(r))return t[r];if(e&&(n=t[e])&&"object"==typeof n&&n.hasOwnProperty(r))return n[r];for(i in t)if((n=t[i])&&"object"==typeof n&&n.hasOwnProperty(r))return n[r];return null},T.prototype.GGt=function(t,r){var e,n,i,o,a,u,s,f,e={};for(n in r)if(t.hasOwnProperty(n))for(s in i=r[n],o=t[n],a=i.parameters,u=o.parameters,i.description=o.description,a)u.hasOwnProperty(s)&&"string"==typeof(f=u[s])&&(a[s].name=f);return e},T.prototype.Fe=function(t){var t=this.getCultureInfo(t),t;return t=(t=t||v[T.RGt])||new d},T.prototype.xat=function(t,r){var e,t,n,e,t=(this.getCultureInfo(t)||this.getCultureInfo("en-US")).DateTimeFormat,n=t.filterDialogDateFormatter;return n=0<=r.indexOf("g")||0<=r.indexOf("e")?t.EraFilterDialogDateFormatter||n:n},T.RGt="en-us",t.CultureManager=T.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var i,o,e;function a(t,r){var e,n;for(e in r)r.hasOwnProperty(e)&&(n=r[e],Array.isArray(n)?(t[e]=[],a(t[e],r[e])):n!==i&&"object"==typeof n?(t[e]={},a(t[e],r[e])):t[e]=r[e])}function n(){}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,i=null,o=void 0,n.Eit=function(t,r,e){t.splice(r,0,e)},n.ZP=function(t,r){t.push(r)},n.OS=function(t,r){return-1<t.indexOf(r)},n.VP=function(t,r){var r=t.indexOf(r);-1<r&&t.splice(r,1)},n.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},n.hD=function(t,r,e){return t.indexOf(r,e)},n.d5=function(t,r,e){if(!(r<0))for(var n=0;n<e&&r+n<t.length;n++)t[r+n]=i},n.N2t=function(t,r){for(var e,n,n=e=(r=r<0?-1:r)+1;n<t.length;n++)if(t[n]!==o&&t[n]!==i)return n;return-1},n.tR=function(t){return t&&t.length},n.Gf=function(t){var r=[];return a(r,t),r},r.Uf=n},"./src/common/util/colorhelper.ts":function(t,r,i){var e,o,s,f,a,c,y,n,m,u;function M(t,r,e){return e<0&&(e+=240),240<e&&(e-=240),e<40?t+((r-t)*e+20)/40:e<120?r:e<160?t+((r-t)*(160-e)+20)/40:t}function h(t,r,e){var n,i,o,a,u;return 0===e?n=i=o=c(255*r/240+"",10):(u=a=void 0,n=d(a=2*r-(u=r<=120?c((r*(240+e)+120)/240+""):r+e-c((r*e+120)/240+"")),u,t+80),i=d(a,u,t),o=d(a,u,t-80)),{a:255,r:n,g:i,b:o}}function d(t,r,e){return s(c((255*M(t,r,e)+120)/240+""),255)}function l(t){var r,e,n,t,i,o,a,o,a,u,t,r=this,e=t.r,n=t.g,t=t.b,i=f(f(e,n),t),o=s(s(e,n),t),a=i+o;r.HGt=c((240*a+255)/510+"",10),0==(o=i-o)?(r.zGt=0,r.wv=160):(r.HGt<=120?r.zGt=c((240*o+a/2)/a+"",10):r.zGt=c((240*o+(510-a)/2)/(510-a)+"",10),a=(40*(i-e)+o/2)/o,u=(40*(i-n)+o/2)/o,t=(40*(i-t)+o/2)/o,r.wv=c(e===i?t-u+"":n===i?80+a-t+"":160+u-a+"",10),r.wv<0&&(r.wv+=240),240<r.wv&&(r.wv-=240))}function v(t){var r,e,n,i,r,o,a,u,r,n;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),i=n="",6===(e=r.length)||8===e?(n=r.substr(0,6),8===e&&(i=r.substr(6,2))):3!==e&&4!==e||(n=(r=r.split(3===e?/(.)/:/(..)/)).filter(Boolean).map(function(t){return parseInt(3===e?t+t:t,16)}).map(function(t){return t.toString(16).padStart(2,"0")}).join(""),4===e&&(i=r[3]+r[3])),[o=parseInt(n.slice(0,2),16),a=parseInt(n.slice(2,4),16),u=parseInt(n.slice(4,6),16),r=i?parseInt(i,16):255]):t.toLowerCase()in y?y[t.toLowerCase()]:null!==(n=m.exec(t))?(r=void 0===n[4]?255:255*+n[4],[n[1],n[2],n[3],r]):null}function p(){}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,e=i("./src/common/util/numberhelper.ts"),o=e.st.VGt,s=Math.min,f=Math.max,a=Math.abs,c=parseInt,y={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},l.prototype.YGt=function(t){var r,e,n,r=this,e=r.HGt,n=r.ZGt(r.HGt,500,!0);return h(r.wv,e+(n-e)*t,r.zGt)},l.prototype.ZGt=function(t,r,e){if(0!==r){if(e)return 0<r?(t*(1e3-r)+241*r)/1e3:t*(r+1e3)/1e3;240<(t=(t+=240*r/1e3)<0?0:t)&&(t=240)}return t},n=l,m=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,p.j=function(t){var r,e,n,i,r=t.a,e=t.r,n=t.g,i=t.b;return 3===arguments.length&&(r=255,e=t,n=arguments[1],i=arguments[2]),4===arguments.length&&(r=t,e=arguments[1],n=arguments[2],i=arguments[3]),255===r?"#"+o(e,!0,2)+o(n,!0,2)+o(i,!0,2):"rgba("+e+","+n+","+i+","+r+")"},p.Tv=function(t,r){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(r):t.a===r.a&&t.r===r.r&&t.g===r.g&&t.b===r.b},p.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},p.Km=function(t,r){var e,n,i,t,o,e=255-a(t.r-r.r),n=255-a(t.g-r.g),i=255-a(t.b-r.b),t=a(t.a-r.a);return!!(.9<=(o=((e/=255)+(n/=255)+(i/=255))/3)&&t<=.05)},p.Uv=function(t){var r,e,n,r=255^t.r,e=255^t.g,n=255^t.b;return p.j(t.a,r,e,n)},p.WGt=function(t){var r,e,n,n;return"object"==typeof document&&((r=p.xf)||(e=document.createElement("canvas"))&&e.getContext&&(r=p.xf=e.getContext("2d",{willReadFrequently:!0})),r||((n=i("canvas"))&&n.createCanvas&&(e=n.createCanvas(2,2),r=p.xf=e.getContext("2d")),r))?(r.clearRect(1,1,1,1),r.fillStyle=t,r.fillRect(1,1,1,1),(n=r.getImageData(1,1,1,1))?n.data:null):v(t)},p._=function(t){var r,e,n,i,t;return t instanceof p||null!==t&&"object"==typeof t?t:(i=n=e=r=0,t&&(t=p.WGt(t))&&(e=t[0],n=t[1],i=t[2],r=t[3]),{a:r,r:e,g:n,b:i})},p.Cv=function(t,r){var t,r;return 0===r?t:(t=new n(t),r=c((0<r?(240-t.HGt)*r:t.HGt*r)+"",10),p.QGt(t.wv,t.HGt+r,t.zGt))},p.YGt=function(t,r){var t,e,t,t=p._(t),e,t=new n(t).YGt(r);return p.j(t)},p.Dz=M,p.QGt=h,r.ft=p},"./src/common/util/common.ts":function(t,r,e){var i,n,e,o,a;function u(t,r){this.res=t,this.KGt=r,this.JPt=i.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,r),this.KPt=0}function s(t,r,e,n){var i,o,a,u,s;if(t&&0<=e&&e<r){for(i=[],a=o=void 0,a=e;a<r;a++)void 0!==t[a]&&i.push(a);for(o=i.length,a=0;a<o;a++)s=t[u=i[o-a-1]],t[u]=null,t[Math.floor(u)+n]=s}}function f(t,r,e,n){var i,o,a,u,s,f;if(t&&0<=e&&e<r){for(i=[],a=e+n,u=o=void 0,u=e;u<r;u++)void 0!==t[u]&&(e<=u&&u<a?t[u]=null:a<=u&&i.push(u));for(o=i.length,u=0;u<o;u++)f=t[s=i[u]],t[s]=null,t[Math.floor(s)-n]=f}}function c(t,r){return t.hasOwnProperty(r)}function y(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.X8=r.J8=r.ResourceManager=r.SR=void 0,i=e("./src/common/culture/cultureInfo.ts"),n=e("./src/common/util/util.res.en.ts"),e=e("./src/common/util/types.ts"),r.SR={en:n},o=e.lt.Dh,u.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},u.prototype.XGt=function(t,r){var e,n;r&&(n=(e=i.CultureManager.culture()).toLowerCase(),this.JPt[n]=this.JPt[n]||{},this.JPt[n][r]=t,i.CultureManager.JPt=this.JPt)},u.prototype.JGt=function(t,r){var e,n,r,n,e=i.CultureManager.culture();return t&&e?(n=i.CultureManager.KPt,this.KPt!==n||r?(this.KPt=n,i.CultureManager.getLanguage(e)?(r=o(!0,{},t.en),i.CultureManager.FGt(e,r,this.KGt),r):(n=e.substr(0,2).toLowerCase(),t.hasOwnProperty(n)?t[n]:t.en)):void 0):{}},r.ResourceManager=u,r.J8=s,r.X8=f,r.kh=c,r.ut=y},"./src/common/util/datetimehelper.ts":function(t,P,r){var e,k,M,C,r,a,A,$,S,x,n,O,T,r,o,i;function j(t,r){if(e.HandleExcelSpecialDate)return e.HandleExcelSpecialDate.apply(null,[t,r]);switch(r){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();default:return}}function E(t,r,e,n){var i,o,a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,F,g,_,w,D,H,N,k,$,i=e.DateTimeFormat,o=i.Calendar.convert;if(!r||!r.length)return e&&e.name.length?o?E(t,i.fullDateTimePattern,e):t.toLocaleString():t.toString();function S(){return c||y||(c=m.test(r),y=!0),c}function x(t,r){return d?d[r]:j(t,r)}for(a=i.eras,s="",m=/([^d]|^)(d|dd)([^d]|$)/g,M=0,h=B(),!(u="s"===r)&&o&&(d=o.fromGregorian(t)),v=l=-2,p={y4:""},b=0;g=h.lastIndex,F=h.exec(r),g=r.slice(g,F?F.index:r.length),p.y4="",M+=R(g,p),s+=p.y4,F;b++)if(M%2==1)s+=F[0];else switch(_=x(t,0),w=t.getDay(),D=t.getHours(),H=t.getMinutes(),N=t.getSeconds(),k=t.getMilliseconds(),$=t.getTimezoneOffset(),F[0]){case"dddd":s+=i.dayNames[w];break;case"ddd":s+=i.abbreviatedDayNames[w];break;case"dd":c=!0,s+=A(x(t,2),2);break;case"d":c=!0,s+=x(t,2);break;case"MMMM":s+=(i.monthGenitiveNames&&S()?i.monthGenitiveNames:i.monthNames)[x(t,1)];break;case"MMM":s+=(i.abbreviatedMonthGenitiveNames&&S()?i.abbreviatedMonthGenitiveNames:i.abbreviatedMonthNames)[x(t,1)];break;case"MM":s+=A(x(t,1)+1,2);break;case"M":s+=x(t,1)+1;break;case"yyyy":case"yyy":s+=0<=l?C.XPt.DGt("ee",t,n):A(d?d[0]:_,4);break;case"yy":s+=0<=l?C.XPt.DGt("ee",t,n):A((d?d[0]:_)%100,2);break;case"y":s+=0<=l?C.XPt.DGt("e",t,n):((d?d[0]:_)%100).toString();break;case"hh":s+=A(f=0===(f=D%12)?12:f,2);break;case"h":s+=f=0===(f=D%12)?12:f;break;case"HH":s+=A(D,2);break;case"H":s+=D.toString();break;case"mm":s+=A(H,2);break;case"m":s+=H.toString();break;case"ss":s+=A(N,2);break;case"s":s+=N.toString();break;case"tt":s+=D<12?i.amDesignator:i.pmDesignator;break;case"t":s+=(D<12?i.amDesignator:i.pmDesignator).charAt(0);break;case"f":case"0":s+=A(k,3).charAt(0);break;case"ff":case"00":s+=A(k,3).substr(0,2);break;case"fff":case"000":s+=A(k,3);break;case"z":s+=((f=$/60)<=0?"+":"-")+O(T(f));break;case"zz":s+=((f=$/60)<=0?"+":"-")+A(O(T(f)),2);break;case"zzz":s+=((f=$/60)<=0?"+":"-")+A(O(T(f)),2)+":"+A(T($%60),2);break;case"g":case"gg":case"ggg":a&&(l=(l===b-1||(s+=C.XPt.DGt(F[0],t,n)),b));break;case"e":case"ee":a?v=(v===b-1||(s+=C.XPt.DGt(F[0],t,n)),b):s+=A(d?d[0]:_,4);break;case"/":s+=i.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(F[0]))throw new Error((0,P.getSR)().Exp_InvalidDateFormat);s+=F[0]}return s.toString()}function R(t,r){for(var e,n,i,o,a,e=0,n=x,i=0,o=t.length;i<o;i++)switch(a=t.charAt(i)){case'"':n?r.y4+="'":e++,n=x;break;case"\\":n&&(r.y4+="\\"),n=!n;break;default:r.y4+=a,n=x}return e}function I(t,r){var e,n,e,e=new Date,n;return t.DateTimeFormat.eras&&r<100&&(r+=(e=C.XPt.TGt(e).IGt)-e%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function B(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g}function G(t,r,e){var n,i,o,a,u,s,f,c,y,m,m;if(t.qGt){if(t.qGt[r])return t.qGt[r]}else t.qGt={};for(n=(n=(n=r).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),i="^",o={y4:""},a=[],s=u=0,f=B();(c=f.exec(n))!==$;)if(o.y4="",y=n.slice(u,c.index),u=f.lastIndex,s+=R(y,o),i+=o.y4,s%2==1)i+=c[0];else{switch(c[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":i+="(\\D+)";break;case"tt":case"t":i+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":i+=e?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":i+="(\\d{2}|\\d{4})";break;case"fff":case"000":i+="(\\d{3})";break;case"ff":case"00":i+="(\\d{2})";break;case"f":case"0":i+="(\\d)";break;case"zzz":i+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i+="([+-]?\\d\\d?)";break;case"/":i+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,P.getSR)().Exp_InvalidDateFormat)}M.Uf.ZP(a,c[0])}return o.y4="",R(n.slice(u),o),m={$Gt:m=(i=i+o.y4+"$").toString().replace(/\s+/g,"\\s+"),QMt:a,tUt:new RegExp(m)},t.qGt[r]=m}function s(t){var t=t.getTimezoneOffset();return t=-402===(t=-507===(t=-321===(t=-485===t?-485-43/60:t)?-321-10/60:t)?-507-52/60:t)?-402-4/60:t}function f(){}Object.defineProperty(P,"__esModule",{value:!0}),P.ct=P.getSR=void 0,e=r("./src/common/util/common.ts"),k=r("./src/common/util/stringhelper.ts"),M=r("./src/common/util/arrayhelper.ts"),C=r("./src/common/culture/cultureInfo.ts"),r=r("./src/common/util/types.ts"),a=r.lt.ht,A=k.zf.B9t,$=null,S=parseInt,n=!(x=!1),O=Math.floor,T=Math.abs,r=new e.ResourceManager(e.SR,"Common"),P.getSR=r.getResource.bind(r),o={},f.L9t=function(t,r,e,n){return E(t,r,e=e||C.CultureManager.Fe(),n)},f.Pe=function(t,r,e){return E(t,r,e||C.CultureManager.Fe())},f.Mjt=function(t,r,e){var n,i,o,o,a,u=x,a=e;for(a.slice(1).forEach(function(t){t&&(u=!0)}),i=(a=u?a:a.concat(r.qPt())).length,n=1;n<i;n++)if((o=a[n])&&(u=!0,o=f.nUt(t,o,r)))return o;return $},f.yU=function(t,r,e){var n,i;return(r||e||void 0===(i=o[t]))&&(n=r?[t,r]:[t],i=f.Mjt(t,e||C.CultureManager.Fe(),n),r||e||(o[t]=i)),i&&new Date(i)},f.Z6t=function(t,r){return f.Mjt(t,C.CultureManager.Fe("invariant"),[t,r])},f.nUt=function(t,r,e){var n,i,r,o,a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,F,_,w,w,D,D,r,t,H,N,r;if(t=t.trim(),(o=(r=G(n=e.DateTimeFormat,r,i=1041===e.id)).tUt.exec(t))===$)return $;for(a=r.QMt,v=y=c=f=s=u=$,b=p=x,g=l=d=h=m=0,F=a.length;g<F;g++)if(_=o[g+1])switch(a[g]){case"dd":case"d":if((c=S(_,10))<1||31<c)return $;break;case"MMMM":if((f=e.tGt(_))<0||11<f)return $;break;case"MMM":if((f=e.iGt(_))<0||11<f)return $;break;case"M":case"MM":case"%M":if((f=S(_,10)-1)<0||11<f)return $;break;case"e":case"ee":if((s=i&&"\u5143"===_?1:I(e,S(_,10)))<0||9999<s)return $;break;case"y":case"yy":case"yyy":case"yyyy":if((s=S(_,10))<0||9999<s)return $;break;case"h":case"hh":case"H":case"HH":if((m=S(_,10))<0)return $;break;case"m":case"mm":if((h=S(_,10))<0||59<h)return $;break;case"s":case"ss":if((d=S(_,10))<0||59<d)return $;break;case"tt":case"t":if(p=(w=_.toUpperCase())===n.pmDesignator.toUpperCase(),b=w===n.amDesignator.toUpperCase(),p||b)break;return $;case"f":case"0":if((l=100*S(_,10))<0||999<l)return $;break;case"ff":case"00":if((l=10*S(_,10))<0||999<l)return $;break;case"fff":case"000":if((l=S(_,10))<0||999<l)return $;break;case"dddd":if((y=e.aGt(_))<0||6<y)return $;break;case"ddd":if((y=e.sGt(_))<0||6<y)return $;break;case"zzz":if(2!==(w=_.split(/:/)).length)return $;if((M=S(w[0],10))<-12||13<M)return $;if((D=S(w[1],10))<0||59<D)return $;v=60*M+(k.zf.fJ(_,"-")?-D:D);break;case"z":case"zz":if((M=S(_,10))<-12||13<M)return $;v=60*M;break;case"g":case"gg":case"ggg":if(!(D=_)||!n.eras)return $;if((u=C.XPt.kGt(a[g],D))<0)return $}if(t=(r=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(N=n.Calendar.convert)&&(H=N.fromGregorian(t)),N||(H=[t.getFullYear(),t.getMonth(),t.getDate()]),s===$?s=H[0]:s<100&&(n.eras&&u!==$?s=C.XPt.NGt(u||0,s):s+=30<=s?1900:2e3),f===$&&(f=H[1]),c===$&&(c=r?H[2]:1),N){if((t=N.toGregorian(s,f,c))===$)return $}else{if(t.setFullYear(s,f,c),t.getDate()!==c)return $;if(y!==$&&t.getDay()!==y)return $}return p&&m<12?m+=12:b&&12===m&&(m=0),t.setHours(m,h,d,l),v!==$&&(r=t.getMinutes()-(v+t.getTimezoneOffset()),t.setHours(t.getHours()+r/60,r%60)),t},f.Y0=function(t){var r,e,n,t,i,o,a,u,r,e,n=s(new Date(864e5*(t-25569))),t=Math.round(864e5*(t-25569+n/1440)),i=new Date(t),o,a,u=s(new Date(t+36e5*(0<=n?1:-1)));return 60<=T(n-u)?new Date(t+60*(u-n)*1e3):i},f.dJ=function(t){var t;if("/OADate("===t.substr(0,8))return t=parseFloat(t.substr(8,t.length-10)),f.Y0(t)},f.Q0=function(t){return"/OADate("+f.o0(t)+")/"},f.o0=function(t){var r;return!a(t)&&(t="number"!=typeof t&&"string"!=typeof t?t:new Date(t))instanceof Date?(r=s(t),(1440*t.getTime()+3181192704e6-864e5*r)/124416e6):0},f._DT=function(t){var r,e,n,i,o,r=$,e=!0;if(a(t)?r=f.Y0(0):t instanceof Date?r=new Date(t.valueOf()):"string"==typeof t?((n=f.yU(t))||(isNaN(t)?!f.u6t(t)&&(n=new Date(t),isNaN(n.valueOf())&&(e=x),!(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(t.replace(/ |\n/g,"").trim()))||4!==o.length||-1!==o.indexOf(n.getFullYear().toString())&&-1!==o.indexOf((n.getMonth()+1).toString())&&-1!==o.indexOf(n.getDate().toString()))||(e=x):(n=f.Y0(parseFloat(t)))||(e=x)),r=n):"number"==typeof t?r=f.Y0(t):e=x,e)return r;throw(0,P.getSR)().Exp_InvalidCast},f.u6t=function(t){var r,n,e,i,o,r=C.CultureManager.Fe().DateTimeFormat,n=f.eUt,e=function(r,t){var e=0;return t.forEach(function(t){t&&-1<r.indexOf(t)&&e++}),1<e},i=function(t,r){var t,e;return!!(t&&-1<t.indexOf(" "))&&2<=(e=(t=t.split(" ")).length)&&r.indexOf(t[e-2])<=-1&&!isNaN(t[e-1])},o=function(r){var e=!1;return n.forEach(function(t){-1<r.indexOf(t)&&(e=!0)}),e};return e(t,r.monthNames)||e(t,r.abbreviatedMonthNames)||e(t,r.dayNames)||e(t,r.abbreviatedDayNames)||i(t,r.monthNames.concat(r.abbreviatedMonthNames))||o(t)},f.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},f.eUt=["@","#","!","`","^","$","*","(",")","&"],P.ct=f},"./src/common/util/functionhelper.ts":function(t,r,e){var z,K,J,V;function f(t){return t}function c(t,r,e,n,i,o,a,u,s,j,f){var c,y,m,M,h,d,l,v,p,b,g,F,_,w,D,H,N,k,$,E,R,I,B,S,x,P,C,A,G,L,O,T,N=e[J],k=e[V],$=r[J],E=r[V],R=n[J],I=n[V],B=1===k,S=1===E;if($===N&&E===k){for(l=N*k,c=A=C=P=x=0;c<N;c++)for(y=0;y<k;y++){if(M=o(e[c][y]),h=o(r[c][y]),t&&(K(M)||K(h)))return s;x+=M,P+=M*M,C+=h=j(h),A+=M*h}for(G=l*A-x*C,v=i?(C*P-x*A)/(l*P-x*x):0,(1<(L=(d=i?G/(l*P-x*x):A/P).toString()).indexOf("000000000000")||1<L.indexOf("999999999999"))&&(d=z.st.E8(d,12),v=z.st.E8(v,12)),p=[],c=0;c<R;c++)for(p[c]=[],y=0;y<I;y++){if(M=o(n[c][y]),t&&K(M))return s;p[c][y]=0==G?r[0][0]:f(z.st.Jme(d*M,v))}return a?new a(p):p}if(S&&$===N||1===$&&E===k){for(M=[],h=[],D=k+1,H=k+2,c=0;c<N;c++){if(v=o(g=S?r[c][0]:r[0][c]),t&&K(v))return s;h[c]=B?j(v):v}for(c=0;c<N;c++)for(M[c]=[],y=0;y<k;y++){if(v=o(e[c][y]),t&&K(v))return s;M[c][y]=v}for(O=[],d=0;d<D;d++)for(O[d]=[],l=0;l<H;l++)O[d][l]=0;for(m=0;m<N;m++)for(O[0][D]+=h[m],c=0;c<k;c++)for(O[0][g=c+1]+=M[m][c],O[g][0]=O[0][g],O[g][D]+=M[m][c]*h[m],y=c;y<k;y++)O[_=y+1][g]+=M[m][c]*M[m][y],O[g][_]=O[_][g];for(O[0][0]=N,b=T=i?0:1;b<D;b++){if(t){if(0===O[b][b]){for(w=!1,y=b+1;!w&&y<D;y++)if(0!==O[y][b]){for(m=0;m<H;m++)_=O[b][m],O[b][m]=O[y][m],O[y][m]=_;w=!0}if(!w)return u}}else{for(c=b;c<D&&0===O[c][b];)c++;if(D<=c)return u;for(F=T;F<H;F++)g=O[b][F],O[b][F]=O[c][F],O[c][F]=g}for(g=1/O[b][b],F=T;F<H;F++)O[b][F]*=g;for(c=T;c<D;c++)if(c!==b)for(g=-O[c][b],F=0;F<H;F++)O[c][F]+=g*O[b][F];i||(O[0][D]=0)}for(p=[],S||(p[0]=[]),c=0;c<R;c++){for(S&&(p[c]=[]),g=O[0][D],y=0;y<k;y++){if(v=o(S?n[c][y]:n[y][c]),t&&K(v))return s;g+=O[y+1][D]*v}S?p[c][0]=f(g):p[0][c]=f(g)}return a?new a(p):p}return u}function n(t,r,e,n,i,o,a,u){return c(!0,t,r,e,n,i,o,u,a,f,f)}function i(t,r,e,n,i,o,a){for(var u,s,u=0;u<t[J];u++)for(s=0;s<t[V];s++)if(t[u][s]<=0)return o;return c(!1,t,r,e,n,f,i,a,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,z=e("./src/common/util/numberhelper.ts"),K=isNaN,J="rowCount",V="colCount",r.eit=n,r.iit=i},"./src/common/util/numberhelper.ts":function(j,t,r){var e,n,i,f,o,c,N,y,v,a,m,M,p,k,u,b,s,g,h,d,l,$,F,r,_,H,S,x,E,w,P,D;function R(t,r,e,n){return r&&0!==r.length&&"i"!==r?I(t,r,e.NumberFormat,n):e&&0<e.name.length?t.toLocaleString():t.toString()}function I(t,r,e,n){var i;return Z(t,L(r),e,n)}function B(t,r){for(var e,n,t,i,r,o,a,i,o,a,e=u(b(t)),n={iUt:1,rUt:0};10<=e&&Number.isFinite(e);)e/=10,n.iUt++;return i=(t=t.toString()).search(/e/gi),r=t.indexOf(r),-1!==i?(a=$(t,0,i),i=$(t,i+1),o=0,-1!==r&&(o=$(a,r+1).length),a=M(i),n.rUt=o=(o=o-a)<0?0:o):(o=0,-1!==r&&(o=$(t,r+1).length),n.rUt=o),n}function G(t){for(var r,e,n,r={oUt:t.charAt(0),aUt:0,tUt:0},e="",n=1;n<t.length;n++)if("+"===(e=t.charAt(n)))r.aUt=1;else{if("-"!==e){if("0"!==e)throw new Error(_().Exp_InvalidExponentFormat);r.tUt=t.length-n;break}r.aUt=-1}return r}function L(t){for(var r,e,n,i,o,a,u,s,f,c,y,m,M,h,d,l,r={uUt:v,sUt:v,rCt:p,fxt:0,d0:0,cUt:0,fUt:v},e="",n=p,i=p,o=p,a=p,u=p,s=p,c=v,y=[],m=0;m<t.length;m++){if(f=t.charAt(m),n)e+=f,'"'===f&&(y.push(e),e="",n=p);else if(i){if("E"===c||"e"===c){if(!(0<=["+","-","0"].indexOf(f))){i=p,m--;continue}e+=f}else if("+"===c||"-"===c){if("0"!==f){i=p,m--;continue}e+=f}else if("0"===c){if("0"!==f){i=p,u||(u=k,r.fUt=G(e)),m--;continue}e+=f}}else if("*"!==c&&"_"!==c&&"\\"!==c||""===e)if("*"===f||"_"===f||"\\"===f)s=p,""!==e&&(y.push(e),e=""),e+=f;else if("'"===f)s=p,""!==e&&(y.push(e),e=""),y.push(f);else if('"'===f)s=p,n=k,""!==e&&(y.push(e),e=""),e+=f;else if(0<=w.indexOf(f))s=k,w.indexOf(c)<0&&""!==e&&(y.push(e),e=""),e+=f;else if("."!==f||o)if("%"===f)s=p,r.d0++,""!==e&&(y.push(e),e=""),y.push(f);else if("\u2030"===f)s=p,r.cUt++,""!==e&&(y.push(e),e=""),y.push(f);else if(","===f)if(s){for(M=void 0,""!==e&&(y.push(e),e=""),h=k,d="",l=m+1;l<t.length;l++)if(M=t.charAt(l),'"'===d)'"'===M&&(d="");else if("\\"===d||"_"===d)d="";else{if(0<=w.indexOf(M)){h=p;break}if("."===M||";"===M)break;d=M}h?r.fxt++:o||(M=t.charAt(m+1))&&0<=w.indexOf(M)&&(a=k)}else e+=f;else"E"===f||"e"===f?(s=p,i=k,""!==e&&(y.push(e),e="")):(s=p,0<=w.indexOf(c)&&""!==e&&(y.push(e),e="")),e+=f;else""!==e&&(y.push(e),e=""),r.uUt=y,y=[],o=k,s=p;else e+=f,y.push(e),e="";c=f}return""!==e&&(i&&!u&&(r.fUt=G(e)),y.push(e)),a&&(r.rCt=k),o?r.sUt=y:r.uUt=y,r}function z(t,r,e,n){for(var i,o,a,u,s,f,c,y,m,M,i=r[0],o=1,a=0,u=p,s=t.length,f=0;f<s;f++)if("number"===(c=t[f].type)){for(y="",M=(m=t[f].value).length-1;0<=M;){if(!(1<=i&&i<=9||0===i&&o===r.length))throw new Error(_().Exp_InvalidNumberGroupSize);/\d/gi.test(m[M])?(u&&(y&&t.push({type:"number",value:y}),t.push({type:"groupSeparator",value:e}),y="",u=p),a++):a=0,y=m[M]+y,a===i&&0<i&&(u=k,a=0,o<r.length)&&(i=r[o],o++),M--}y&&t.push({type:c,value:y})}else"fillingChar"===c&&(n.infillIndex=t.length-s),t.push({type:c,value:t[f].value});t.splice(0,s)}function K(t,r,e,n,i,o){var a,a,u,s,u,a=rt(t,-r),a=(u=(a=(t=a=isFinite(a)?a:t).toString()).split(/e/i))[0],s=1<u.length?m(u[1],10):0;return a=(u=a.split("."))[0],u=1<u.length?u[1]:"",0<s?(a+=(u=y(u,s)).slice(0,s),u=$(u,s)):s<0&&(s=-s,u=(a=t<0?o+N(a.replace(o,""),1+s):N(a,1+s)).slice(-s,a.length)+u,a=a.slice(0,-s)),a+(u=0<r?i+(u=u.length>r?u.slice(0,r):y(u,r)):"")}function J(t,r,e,n){var t=t;return 0<r&&(t=T(t*s(100,r),15)),0<e&&(t=T(t*s(1e3,e),15)),t=0<n?T(t/s(1e3,n),15):t}function V(t){var r,e,n,r=v;if(t)for(r="",e=0;e<t.length;e++)n=t[e],/^(0|#|\?)+/g.test(n)&&(r+=n);return r}function C(t,r){return t===r||0!==t&&0!==r&&(b(t-r)<b(t)/D||(t=T(t,15),r=T(r,15),b(t-r)<b(t)/D))}function W(t,r){return C(t,-r)?0:t+r}function U(t,r,e){var n,i,o,a,e,u,t,n={value:t,exponentValue:0},i,o=B(t,".").iUt,a=b(t),e=e?e.length:1;if(1<=a)e<o?(n.value=t/s(10,o-=e),n.exponentValue=o):n.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(a<1&&0<a){for(r.aUt=-1,u=s(10,e);10*a<u&&!C(10*a,u);)a*=10,n.exponentValue++;t=s(10,n.exponentValue),n.value*=h<t?0:t}return n}function q(t,r,e,n,i,o,a,u){var s,f,c,y,m,M,u,h,d,l,v,p,b,g,F,_,w,D,H,s=u.numberGroupSizes,f=u.numberGroupSeparator,c=u.negativeSign,y=u.percentSymbol,m=u.perMilleSymbol,M=n.fUt,u=$(r,0,1);for(r=0===(h=1===(r=u===c?$(r,1):r).length&&"0"===r?0:r.length)?"":r,d=0,l="",v=t.length-1;0<=v;v--)if(p="",b=t[v],/^(0|#|\?)+/g.test(b)){if(l!==e){for(g=b.length,F=h-d-1;0<=F&&0<g;F--)p=(_=r.charAt(F))+p,g--,d++;for(w=g-1;0<=w;w--)d++,"0"===(D=b[w])?p=D+p:"?"===D&&(""!==p&&(o.push({type:"number",value:p}),p=""),o.push({type:"numberPlaceholder",value:D}));""!==(p=(l=b+l)===e&&d<h?r.substr(0,h-d)+p:p)&&o.push({type:"number",value:p})}}else n.fUt&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(b)?(a.replaceExponent=k,H="",H=(H=(H+=M.oUt)+x[M.aUt])+N(i.toString(),M.tUt),o.push({type:"exponent",value:H})):"_"===b[0]?o.push({type:"placeholder",value:b[1]}):"*"===b[0]?a.hasInfilling||(o.push({type:"fillingChar",value:b[1]}),a.hasInfilling=!0,a.infillIndex=o.length-1):"\\"===b[0]?2===b.length&&o.push({type:"text",value:b[1]}):'"'===b[0]&&'"'===b[b.length-1]?2<b.length&&o.push({type:"text",value:b.substr(1,b.length-2)}):b===y?o.push({type:"percent",value:b}):b===m?o.push({type:"permille",value:b}):P[b]?o.push({type:"currency",value:b}):o.push({type:"text",value:b});u===c&&e&&o.push({type:"text",value:u}),n.rCt===k&&z(o,s,f,a),o.reverse(),a.infillIndex=o.length-1-a.infillIndex}function Y(t,r,e,n,i,o,a,u,s){var f,c,y,s,m,M,h,d,l,v,p,b,g,F,_,w,D,f=s.numberDecimalSeparator,c=s.percentSymbol,y=s.perMilleSymbol,s=r.indexOf(f),m=i.fUt;for((0<s||n!==H||e!==S)&&a.push({type:"decimalSeparator",value:f}),M=-1!==s?r.substring(s+1):"",d="",l=h=0;l<t.length;l++)if(v=t[l],/^(0|#|\?)+/g.test(v)){if(p="",d!==e){for(b=v.length,g=0,F=h;0<b&&0<M.length-h;)p+=M.charAt(F),b--,h++,g++,F++;for(_=g;0<b;)w=v[_],_++,h++,b--,"0"===w?p+=w:"?"===w&&(""!==p&&(a.push({type:"number",value:p}),p=""),a.push({type:"numberPlaceholder",value:w}));""!==p&&a.push({type:"number",value:p}),d+=v}}else m&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)?(u.replaceExponent=k,D="",D=(D=(D+=m.oUt)+x[m.aUt])+N(o.toString(),m.tUt),a.push({type:"exponent",value:D})):"_"===v[0]?a.push({type:"placeholder",value:v[1]}):"*"===v[0]?(a.push({type:"fillingChar",value:v[1]}),u.hasInfilling&&a.splice(u.infillIndex,1),u.hasInfilling=!0,u.infillIndex=a.length-1):"\\"===v[0]?2===v.length&&a.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?2<v.length&&a.push({type:"text",value:v.substr(1,v.length-2)}):v===c?a.push({type:"percent",value:v}):v===y?a.push({type:"permille",value:v}):P[v]?a.push({type:"currency",value:v}):a.push({type:"text",value:v})}function X(t,r){var e,n,e=t,n;return e=-1!==t.indexOf(r)?t.replace(/0+$/,""):e}function Z(t,r,e,n){var i,o,a,u,s,f,f,c,y,m,M,h,d,c,y,m,l,i=[];return t=J(t,r.d0,r.cUt,r.fxt),o=r.uUt,a=r.sUt,(o||a)&&(u=V(o),s=(s=V(a))||"",r.fUt&&(t=(f=U(t,r.fUt,u)).value,f=f.exponentValue),c=B(t,"."),1<b(t)&&15<c.iUt+c.rUt&&(t=T(t,15)),y=e.numberGroupSizes,m=e.numberGroupSeparator,M=e.numberDecimalSeparator,h=e.negativeSign,c=K(t,d=g(c.rUt,s.length),y,m,M,h),""===(c=n?c:X(c,M))?i.push({type:"text",value:(o?o.join(""):"")+(a?a.join(""):"")}):(y={hasInfilling:p,infillIndex:-1,replaceExponent:p},"10"!==(m=c.split(M)[0])||isNaN(f)||(m="1",f+=(l=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),o&&q(o,m,u,r,f,i,y,e),t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY&&("0"!==m&&""===u&&a&&i.push({type:"number",value:m}),a)&&Y(a,c,s,u,r,f,i,y,e))),i}function Q(t,r){var r,e,n,i,o,t,a,e,u,o,n,e,a,s,n,i,e;return(t=c(t)?"":f.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?M(t):t.match(/^0x[a-f0-9]+$/i)?m(t,10):(i=(n=A(t,r=r.NumberFormat,e=r.numberNegativePattern))[0],o=n[1],""===i&&1!==e&&(i=(n=A(t,r,1))[0],o=n[1]),""===i&&(i="+"),t=(e=(e=(o=o[0]===r.currencySymbol?$(o,1):o).indexOf("e"))<0?o.indexOf("E"):e)<0?(a=o,v):(a=$(o,0,e),$(o,e+1)),o=(n=a.indexOf("."))<0?(u=a,v):(u=$(a,0,n),$(a,n+".".length)),u=u.split(",").join(""),a=i+(u=","!==(e=",".replace(/\u00A0/g," "))?u.split(e).join(""):u),o!==v&&(a+="."+o),(s=a[a.length-1])===r.percentSymbol&&(a=$(a,0,a.length-1),-1===(n=(a=f.zf.s6t(a,"")).indexOf("."))&&(n=a.length),i="",a=i=(i=(i=i+$(a,0,n-2)+".")+$(a,n-2,2))+$(a,n+1)),t!==v&&(""===(e=A(t,r,1))[0]&&(e[0]="+"),a+="e"+e[0]+e[1]),a.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?M(a):NaN)}function A(t,r,e){var n,r,n=r.negativeSign,r=r.positiveSign;if(4!==e&&2!==e||(n=" "+n,r=" "+r),4===e||3===e){if(f.zf.dT(t,n))return["-",$(t,0,t.length-n.length)];if(f.zf.dT(t,r))return["+",$(t,0,t.length-r.length)]}else if(2===e||1===e){if(f.zf.fJ(t,n))return["-",$(t,n.length)];if(f.zf.fJ(t,r))return["+",$(t,r.length)]}else{if(0!==e)throw new Error("");if(f.zf.fJ(t,"(")&&f.zf.dT(t,")"))return["-",$(t,1,t.length-2)]}return["",t]}function tt(t,r,e){if(0!==b(u(t)-t))throw new Error(_().Exp_BadFormatSpecifier);var t=(0<=t?t:E+t+1).toString(16),t=r?t.toLowerCase():t.toUpperCase();return!c(e)&&t.length<e?N(t,e):t}function rt(t,r){var e,n;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(e=t<0)?-t:t,typeof r===a||0===r?(t=Math.round(t),e?-t:t):(n=t.toString().split("e"),t=Math.round(+(n[0]+"e"+(n[1]?+n[1]-r:-r))),+((n=(t=e?-t:t).toString().split("e"))[0]+"e"+(n[1]?+n[1]+r:r))))}function O(t){var r=o.CultureManager.Fe().NumberFormat;return r="string"==typeof t?o.CultureManager.Fe(t).NumberFormat:r}function et(t){var r,e,n,i,r="";if(Array.isArray(t)&&0<t.length)for(e=0;e<t.length;e++)n=t[e].type,i=t[e].value,"placeholder"===n?r+=" ":"fillingChar"!==n&&(r+="numberPlaceholder"===n?" ":i);return r}function T(t,r){return t="number"==typeof t&&t.toString().length>=r?+t.toPrecision(r):t}Object.defineProperty(t,"__esModule",{value:!0}),t.st=void 0,e=r("./src/common/util/common.ts"),n=r("./src/common/util/types.ts"),i=r("./src/common/util/regexhelper.ts"),f=r("./src/common/util/stringhelper.ts"),o=r("./src/common/culture/cultureInfo.ts"),c=n.lt.ht,N=f.zf.B9t,y=f.zf.lUt,v=null,a=void 0,m=parseInt,M=parseFloat,k=!(p=!1),u=Math.floor,b=Math.abs,s=Math.pow,g=Math.min,h=Number.MAX_VALUE,d="#dot#",l="#group#",$=function(t,r,e){return t.substr(r,e)},F=function(t){return i.$T.qT(t)},r=new e.ResourceManager(e.SR),_=r.getResource.bind(r),H="##################0",S="################",x={1:"+",0:"","-1":"-"},E=4294967295,w=["0","#","?"],P={"\xa4":"\xa4",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH\u20b5":"GH\u20b5","\u1265\u122d":"\u1265\u122d","\u0631.\u0633.\u200f":"\u0631.\u0633.\u200f",XDR:"XDR","\u062f.\u0625.\u200f":"\u062f.\u0625.\u200f","\u062f.\u0628.\u200f":"\u062f.\u0628.\u200f","\u062f.\u062c.\u200f":"\u062f.\u062c.\u200f","\u062c.\u0645.\u200f":"\u062c.\u0645.\u200f","\u20aa":"\u20aa","\u062f.\u0639.\u200f":"\u062f.\u0639.\u200f","\u062f.\u0627.\u200f":"\u062f.\u0627.\u200f","\u0641.\u062c.\u0642.\u200f":"\u0641.\u062c.\u0642.\u200f","\u062f.\u0643.\u200f":"\u062f.\u0643.\u200f","\u0644.\u0644.\u200f":"\u0644.\u0644.\u200f","\u062f.\u0644.\u200f":"\u062f.\u0644.\u200f","\u062f.\u0645.\u200f":"\u062f.\u0645.\u200f","\u0623.\u0645.\u200f":"\u0623.\u0645.\u200f","\u0631.\u0639.\u200f":"\u0631.\u0639.\u200f","\u0631.\u0642.\u200f":"\u0631.\u0642.\u200f","\u062c.\u0633.":"\u062c.\u0633.",S:"S","\xa3":"\xa3","\u0644.\u0633.\u200f":"\u0644.\u0633.\u200f","\u062f.\u062a.\u200f":"\u062f.\u062a.\u200f","\u0631.\u064a.\u200f":"\u0631.\u064a.\u200f","\u20b9":"\u20b9",TSh:"TSh","\u20ac":"\u20ac","\u20bc":"\u20bc","\u20bd":"\u20bd",K:"K","\u043b\u0432.":"\u043b\u0432.","\u20a6":"\u20a6",CFA:"CFA","\u09f3":"\u09f3","\xa5":"\xa5",KM:"KM","\u041a\u041c":"\u041a\u041c",USh:"USh","K\u010d":"K\u010d","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","\u0783.":"\u0783.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","\u20b1":"\u20b1",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","\u20a1":"\u20a1",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","\u20b2":"\u20b2","Bs.":"Bs.","\u0631\u064a\u0627\u0644":"\u0631\u064a\u0627\u0644",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","\u058f":"\u058f",ISK:"ISK","\u20be":"\u20be","\u200b":"\u200b","\u20b8":"\u20b8","\u17db":"\u17db","\u20a9":"\u20a9","\u0441\u043e\u043c":"\u0441\u043e\u043c",Kz:"Kz","\u20ad":"\u20ad",MTn:"MTn","\u0434\u0435\u043d":"\u0434\u0435\u043d","\u20ae":"\u20ae","\u0930\u0941":"\u0930\u0941","Afl.":"Afl.","\u07d6\u07d5.":"\u07d6\u07d5.","\u0440\u0443\u0431.":"\u0440\u0443\u0431.","z\u0142":"z\u0142","\u060b":"\u060b",R$:"R$",Db:"Db",RON:"RON","\u20b4":"\u20b4",MAD:"MAD","\u0dbb\u0dd4.":"\u0dbb\u0dd4.","Lek\xeb":"Lek\xeb",den:"den",RSD:"RSD","\u0434\u0438\u043d.":"\u0434\u0438\u043d.","\u0720.\u0723.\u200f":"\u0720.\u0723.\u200f","Rs.":"Rs.","\u0441\u043c\u043d":"\u0441\u043c\u043d","\u0e3f":"\u0e3f","m.":"m.","\u20ba":"\u20ba","\u2d37\u2d54":"\u2d37\u2d54","so\u02bbm":"so\u02bbm","\u0441\u045e\u043c":"\u0441\u045e\u043c","\u20ab":"\u20ab",HK$:"HK$",MOP:"MOP",NT$:"NT$"},D=Math.pow(2,48),t.st={yU:function(t){return Q(t,o.CultureManager.Fe())},Z6t:function(t){return Q(t,o.CultureManager.Fe("invariant"))},L9t:function(t,r,e,n){return R(t,r,e=e||o.CultureManager.Fe(),n)},Ge:function(t,r){var r,e,r;return t="string"==typeof t&&(e=(r=O(r)).numberDecimalSeparator,r=r.numberGroupSeparator,"."!==e&&(t=t.replace(F("[.]"),d)),","!==r&&(t=t.replace(F("[,]"),l)),"."!==e&&(t=t.replace(F(d),e)),","!==r)?t.replace(F(l),r):t},Jf:function(t,r){var r,e,r;return t="string"==typeof t&&(e=(r=O(r)).numberDecimalSeparator,r=r.numberGroupSeparator,"."!==e&&(t=t.replace(F("["+e+"]"),d)),","!==r&&(t=t.replace(F("["+r+"]"),l)),"."!==e&&(t=t.replace(F(d),".")),","!==r)?t.replace(F(l),","):t},hUt:function(t,r){var r,e,r;return!("string"==typeof t&&(e=(r=O(r)).numberDecimalSeparator,r=r.numberGroupSeparator,"."!==e&&"."!==r&&0<=t.indexOf(".")||","!==e&&","!==r&&0<=t.indexOf(",")))},dUt:function(t,r){return M(this.Jf(t,r))},VGt:tt,v0:L,vUt:Z,ukt:C,Jme:W,mUt:et,gUt:H,pUt:S,E8:T}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var o=Math.max,a=Math.min,m=Number.POSITIVE_INFINITY;function e(t,r){this.bUt=o(4,t||9),this.yUt=o(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function c(t,r,e){if(!e)return r.indexOf(t);for(var n=0;n<r.length;n++)if(e(t,r[n]))return n;return-1}function u(t,r){y(t,0,t.children.length,r,t)}function y(t,r,e,n,i){(i=i||g(null)).minX=m,i.minY=m,i.maxX=-m,i.maxY=-m;for(var o=r,a=void 0;o<e;o++)a=t.children[o],M(i,t.leaf?n(a):a);return i}function M(t,r){t.minX=a(t.minX,r.minX),t.minY=a(t.minY,r.minY),t.maxX=o(t.maxX,r.maxX),t.maxY=o(t.maxY,r.maxY)}function s(t,r){return t.minX-r.minX}function f(t,r){return t.minY-r.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function l(t,r){return(o(r.maxX,t.maxX)-a(r.minX,t.minX))*(o(r.maxY,t.maxY)-a(r.minY,t.minY))}function v(t,r){var e=o(t.minX,r.minX),n=o(t.minY,r.minY),i=a(t.maxX,r.maxX),t=a(t.maxY,r.maxY);return o(0,i-e)*o(0,t-n)}function p(t,r){return t.minX<=r.minX&&t.minY<=r.minY&&(0<=r.maxX&&r.maxX<=t.maxX||t.minX<0)&&(0<=r.maxY&&r.maxY<=t.maxY||t.minY<0)}function b(t,r){return(-1===t.minY||-1===r.minY||t.minY<=r.maxY&&r.minY<=t.maxY)&&(-1===t.minX||-1===r.minX||t.minX<=r.maxX&&r.minX<=t.maxX)}function g(t){return{children:t,height:1,leaf:!0,minX:m,minY:m,maxX:-m,maxY:-m}}(r.rbush=e).prototype={all:function(){return this.QP(this.data,[])},search:function(t){var r,e,n,i,o,a,u,s,r=this.data,e=[],n=this.toBBox;if(b(t,r))for(i=[];r;){for(o=0,a=r.children.length;o<a;o++)u=r.children[o],b(t,s=r.leaf?n(u):u)&&(r.leaf?e.push(u):p(t,s)?this.QP(u,e):i.push(u));r=i.pop()}return e},collides:function(t){var r,e,n,i,o,a,u,r=this.data,e=this.toBBox;if(b(t,r))for(n=[];r;){for(i=0,o=r.children.length;i<o;i++)if(a=r.children[i],b(t,u=r.leaf?e(a):a)){if(r.leaf||p(t,u))return!0;n.push(a)}r=n.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,r){if(t)for(var e=this.data,n=this.toBBox(t),i=[],o=[],a,u,s,f;e||i.length;){if(e||(e=i.pop(),u=i[i.length-1],a=o.pop(),f=!0),e.leaf&&-1!==(s=c(t,e.children,r)))return e.children.splice(s,1),i.push(e),this.MUt(i),this;f||e.leaf||!p(e,n)?u?(a++,e=u.children[a],f=!1):e=null:(i.push(e),o.push(a),e=(u=e).children[a=0])}return this},toBBox:function(t){return t},compareMinX:s,compareMinY:f,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var e=[];t;)t.leaf?r.push.apply(r,t.children):e.push.apply(e,t.children),t=e.pop();return r},CUt:function(t,r,e,n){for(var i,o,a,u,s,f,c,y;n.push(r),!r.leaf&&n.length-1!==e;){for(c=y=m,i=0,o=r.children.length;i<o;i++)s=h(a=r.children[i]),(f=l(t,a)-s)<y?(y=f,c=s<c?s:c,u=a):f===y&&s<c&&(c=s,u=a);r=u||r.children[0]}return r},Eit:function(t,r,e){var n,e,i,n,n=this.toBBox,e=e?t:n(t),i=[],n=this.CUt(e,this.data,r,i);for(n.children.push(t),M(n,e);0<=r&&i[r].children.length>this.bUt;)this.SUt(i,r),r--;this.TUt(e,i,r)},SUt:function(t,r){var e,n,i,i,n,e=t[r],n=e.children.length,i=this.yUt;this.AUt(e,i,n),i=this.IUt(e,i,n),(n=g(e.children.splice(i,e.children.length-i))).height=e.height,n.leaf=e.leaf,u(e,this.toBBox),u(n,this.toBBox),r?t[r-1].children.push(n):this.xUt(e,n)},xUt:function(t,r){this.data=g([t,r]),this.data.height=t.height+1,this.data.leaf=!1,u(this.data,this.toBBox)},IUt:function(t,r,e){for(var n,i,o,a,i,u,s,f,u=s=m,n=r;n<=e-r;n++)a=v(i=y(t,0,n,this.toBBox),o=y(t,n,e,this.toBBox)),i=h(i)+h(o),a<u?(u=a,f=n,s=i<s?i:s):a===u&&i<s&&(s=i,f=n);return f},AUt:function(t,r,e){var n=t.leaf?this.compareMinX:s,i=t.leaf?this.compareMinY:f,o,a;this.NUt(t,r,e,n)<this.NUt(t,r,e,i)&&t.children.sort(n)},NUt:function(t,r,e,n){t.children.sort(n);for(var i=this.toBBox,o=y(t,0,r,i),a=y(t,e-r,e,i),u=d(o)+d(a),s,f,s=r;s<e-r;s++)f=t.children[s],M(o,t.leaf?i(f):f),u+=d(o);for(s=e-r-1;r<=s;s--)f=t.children[s],M(a,t.leaf?i(f):f),u+=d(a);return u},TUt:function(t,r,e){for(var n=e;0<=n;n--)M(r[n],t)},MUt:function(t){for(var r=t.length-1,e=void 0;0<=r;r--)0===t[r].children.length?0<r?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():u(t[r],this.toBBox)},wUt:function(t){var r=["return a"," - b",";"];this.compareMinX=new Function("a","b",r.join(t[0])),this.compareMinY=new Function("a","b",r.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"./src/common/util/regexhelper.ts":function(t,r,e){var i,n,o,a;function f(){}Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,i=e("./src/common/util/stringhelper.ts"),n=!0,o="empty",f.bue=function(t,r){var e;if(r&&f.yue[r]&&f.yue[r][t])e=f.yue[r][t];else try{null==r?(e=new RegExp(t),r=o):e=new RegExp(t,r),f.yue[r]||(f.yue[r]={}),f.yue[r][t]=e}catch(t){return null}return e.lastIndex=0,e},f.qT=function(t){var r=f.kUt[t],r;return(r=r||(f.kUt[t]=new RegExp(t,"g"))).lastIndex=0,r},f.OJ=function(t){var r=f.DUt[t],r;return(r=r||(f.DUt[t]=new RegExp(t,"gi"))).lastIndex=0,r},f.jJ=function(t,r,e){var n,i,o,a,u,s;if(f._Ut[t])return f.EUt[t];if(f.qT(n=r?"[?*]+":"[~?*]+").test(t)){for(i=[],o=t.split(""),u={".":!(a=void 0),"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},s=0;s<o.length;s++)if("~"===(a=o[s])){if(!(s<o.length-1))break;"*"!==(a=o[++s])&&"?"!==a||i.push("\\"),i.push(a)}else"?"===a?i.push("."):"*"===a?(i.push("[\\s\\S]"),i.push(e?"+":"*")):(u[a]&&i.push("\\"),i.push(a));return i.join("")}return null},f.tbt=function(t,r,e){var t=f.jJ(t,r,e),t;return t=t&&"^"+t+"$"},f.jUt=function(t,r){for(var e,n,e="#"+t+"0#",n=1;0<r.indexOf(e);)e=i.zf.qS(e,"#"+t+(n-1)+"#","#"+t+n+"#"),n++;return e},f.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},f.kUt={},f.DUt={},f.yue={},f._Ut={},f.EUt={},r.$T=f},"./src/common/util/stringhelper.ts":function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.zf=void 0;var o=r("./src/common/util/regexhelper.ts");function a(t,r,e){return t.substr(r,e)}function u(t){return null==t}function n(t,r,e,n){var i,r;if(u(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,r=r,e&&(i=t.toLowerCase(),r=r.toLowerCase()),n(i,r))}i.zf={OS:function(t,r,e){return e&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||0<=t.indexOf(r)},hD:function(t,r,e){var e,n;return e?(e=t.toLowerCase(),n=r.toLowerCase(),e.indexOf(n)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var e=t;a(e,0,r.length)===r;)e=a(e,r.length);return e},s6t:function(t,r){if(!r)return t;for(var e=t;a(e,e.length-r.length,r.length)===r;)e=a(e,0,e.length-r.length);return e},Eit:function(t,r,e){var n,i;if(r<0||r>t.length||u(e))throw new Error;return(n=a(t,0,r))+e+(i=a(t,r,t.length-r))},VP:function(t,r,e){var n,i;if(u(e)&&(e=t.length-r),r<0||e<0||r+e>t.length)throw new Error;return(n=a(t,0,r))+(i=a(t,r+e,t.length-r-e))},fJ:function(t,r,e){return n(t,r,e=void 0===e?!1:e,function(t,r){return t.slice(0,r.length)===r})},dT:function(t,r,e){return n(t,r,e=void 0===e?!1:e,function(t,r){return t.slice(-r.length)===r})},Vi:function(t,r,e,n){if(r)return e=(""+e).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(n?"i":"")),e);throw new Error},OUt:function(t,r,e,n){return r=o.$T.D9t(r),i.zf.Vi(t,r,e,n)},gmt:function(t,r){var r=t.indexOf(r);return r<0||r>=t.length?t:a(t,0,r)},DU:function(t,r){for(var e=0,n=t.indexOf(r);0<=n;)e+=1,n=t.indexOf(r,n+1);return e},qS:function(t,r,e){return t.split(r).join(e)},I5:function(t,r){for(var e,n,i,e=t,n=0;n<r.length;n++)i=new RegExp("\\{"+n+"\\}","g"),e=e.replace(i,r[n]);return e},RUt:function(t,r,e){for(var n,i,n=t.toString(),i=n.length;i<r;i++)n=e?"0"+n:n+"0";return n},B9t:function(t,r){return i.zf.RUt(t,r,!0)},lUt:function(t,r){return i.zf.RUt(t,r,!1)},Dbt:function(t,r){return t===r||!t&&!r||t&&r&&t.toLowerCase()===r.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var r,e,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},e=o.$T.qT("(?:&|<|>|\"|'|`)");return e.test(t)?t.replace(e,function(t){return r[t]}):t},dI:function(t){var r,e,r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},e=o.$T.qT("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return e.test(t)?t.replace(e,function(t){return r[t]}):t},TY:function(t){for(var r,e,r=t,e=/javascript:/gi;r.match(e);)r=r.replace(e,"");return r}}},"./src/common/util/types.ts":function(t,y){var o,a;Object.defineProperty(y,"__esModule",{value:!0}),y.lt=void 0,o="undefined"!=typeof window?window.File:null,a="undefined"!=typeof window?window.Blob:null,y.lt={BUt:null,y0:function(t,r){var e,n,i,o;if(y.lt.Gh(t))for(n=0,i=t.length;n<i&&!1!==(e=r.call(t[n],n,t[n]));n++);else for(o in t)if(t.hasOwnProperty(o)&&!1===(e=r.call(t[o],o,t[o])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===y.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===y.lt.Oh(t)},jh:function(t){return y.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var r,e,n,i,o,a;if(null===t)return"null";if(!(r=y.lt.BUt))for(r=y.lt.BUt={},n=0,i=(e=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;n<i;n++)r["[object "+e[n]+"]"]=e[n].toLowerCase();return o=r.toString,"object"==(a=typeof t)||"function"==a?r[o.call(t)]||"object":a},Rh:function(t,r,e){var n,i;if(r){if(i=[].indexOf)return i.call(r,t,e);for(n=r.length,e=(e=y.lt.ht(e)?0:e)<0?Math.max(0,n+e):e;e<n;e++)if(e in r&&r[e]===t)return e}return-1},Bh:function(t,r){var e=r.length,n=t.length,i=0;if("number"==typeof e)for(;i<e;i++)t[n]=r[i],n++;else for(;void 0!==r[i];)t[n]=r[i],n++,i++;return t.length=n,t},Lh:function(t,r,e){var n,i,o,a,u,i=[];if(y.lt.Gh(t))for(o=0,a=t.length;o<a;o++)null!==(n=r(t[o],o,e))&&(i[i.length]=n);else for(u in u=void 0,t)t.hasOwnProperty(u)&&null!==(n=r(t[u],u,e))&&(i[i.length]=n);return i.concat([])},Dh:function(){for(var t,r,e,n,i,o,a,n,u,s,f,c,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(f=t.length,c=!(s=1),"boolean"==typeof(u=t[0]||{})&&(c=u,u=t[1]||{},s=2),"object"==typeof u||y.lt.Eh(u)||(u={}),f===s&&(u=this,--s);s<f;s++)if(!y.lt.ht(a=t[s]))for(o in a)e=u[o],u!==(i=a[o])&&(n=y.lt.Nh(i),c&&i&&(y.lt.Ph(i)||n)?(n=n?e&&y.lt.Nh(e)?e:[]:e&&y.lt.Ph(e)?e:{},u[o]=y.lt.Dh(c,n,i)):void 0!==i&&(u[o]=i));return u},Fh:function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}n.prototype=r.prototype,t.prototype=new n},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var r,e;if(!t||"object"!==y.lt.Oh(t)||t.nodeType||y.lt.Uh(t))return!1;r={}.hasOwnProperty;try{if(t.constructor&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||r.call(t,e)},Gh:function(t){var r,e;return!y.lt.ht(t)&&(r=t.length,e=y.lt.Oh(t),!y.lt.Uh(t))&&(!(1!==t.nodeType||!r)||"array"===e||"function"!==e&&(0===r||"number"==typeof r&&0<r&&r-1 in t))},Hh:function(t,r){var r=r||[];return null!==t&&(y.lt.Gh(Object(t))?y.lt.Bh(r,"string"==typeof t?[t]:t):[].push.call(r,t)),r},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t,r){if(void 0===r&&(r=!0),!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||y.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var e,n,i;if(o&&t instanceof o)return new o([t],t.name,{type:t.type,lastModified:t.lastModified});if(a&&t instanceof a)return new a([t],{type:t.type});for(n in e=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(n)&&(i=t[n],t.hasOwnProperty(n))&&e[n]!==i&&(e[n]="object"==typeof i?y.lt.tv(i):i);return r&&(e.toString=t.toString,e.valueOf=t.valueOf),e}}},"./src/common/util/util.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_Separator=r.Exp_InvalidCast=r.Exp_InvalidNumberFormat=r.Exp_BadFormatSpecifier=r.Exp_InvalidNumberGroupSize=r.Exp_InvalidSemicolons=r.Exp_InvalidExponentFormat=r.Exp_InvalidDateFormat=void 0,r.Exp_InvalidDateFormat="Invalid date format pattern",r.Exp_InvalidExponentFormat="invalid exponent format",r.Exp_InvalidSemicolons="invalid format : too many semicolons",r.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",r.Exp_BadFormatSpecifier="Bad Format Specifier",r.Exp_InvalidNumberFormat="Invalid number format pattern",r.Exp_InvalidCast="InvalidCastException",r.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},"./src/plugins/commands/commands.entry.ts":function(t,r,e){var n,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,n=e("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}}),i=e("./src/plugins/commands/undomanager.ts"),Object.defineProperty(r,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,r){var a,s,e,n;function i(t,r,e){var n,i;this.jS=t,this.LUt=r,this.Zc=e,n=this,Object.defineProperty(n,"shortcutKey",{get:function(){return n.FUt},set:function(t){var r,r,e,r=n.FUt;r!==t&&((r=(i=n.jS.PUt)[r])&&0<=(e=r.indexOf(n))&&r.splice(e,1),n.FUt=t)&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,n))}})}function o(t){this.DJ=t,this.aT={},this.GUt={},this.yGr={},this.PUt={}}Object.defineProperty(r,"__esModule",{value:!0}),r.CommandManager=r.Key=void 0,(n=a=r.Key||(r.Key={}))[n.left=37]="left",n[n.right=39]="right",n[n.up=38]="up",n[n.down=40]="down",n[n.tab=9]="tab",n[n.enter=13]="enter",n[n.shift=16]="shift",n[n.ctrl=17]="ctrl",n[n.space=32]="space",n[n.altkey=18]="altkey",n[n.home=36]="home",n[n.end=35]="end",n[n.pup=33]="pup",n[n.pdn=34]="pdn",n[n.backspace=8]="backspace",n[n.del=46]="del",n[n.esc=27]="esc",n[n.a=65]="a",n[n.c=67]="c",n[n.v=86]="v",n[n.x=88]="x",n[n.z=90]="z",n[n.y=89]="y",i.prototype.canUndo=function(){var t;return this.LUt.canUndo},i.prototype.execute=function(t,r,e){var n,i,o,a,u,n,s,f,i=this,a=!0,u=!0;if(i.LUt&&r&&(n={command:r,result:o,vM:e,actionType:e,metaData:null==(n=i.LUt)?void 0:n.metaData,r:null,isBefore:!0},i.jS.MGr(n),n.r)&&(o=u=!1),u){try{a=!1!==(o=(s=i.LUt.execute||i.LUt)(t,r,1===e))}catch(t){a=!1}r&&a&&i.jS.HUt({command:i.vKr(r),result:o,vM:e,actionType:e})}return i.jS&&r&&i.jS.MGr(f={command:r,result:o,vM:e,actionType:e,isBefore:!1}),o},i.prototype.vKr=function(t){return t&&!t.cmd&&(t.cmd=this.Zc),t},s=i,o.prototype.register=function(t,r,e,n,i,o,a){var u,r,u=this,r=new s(u,r,t);u[t]=r,e&&(r.shortcutKey=u.getShortcutKey(e,n,i,o,a))},o.prototype.getCommand=function(t){return this[t]},o.prototype.execute=function(t){var r=this[t.cmd];if(r)return r.execute(this.DJ,t,0)},o.prototype.setShortcutKey=function(t,r,e,n,i,o){var a,t,t,u,s,a=this;if(t)(t=a[t])&&(t.shortcutKey=a.getShortcutKey(r,e,n,i,o));else if(t=a.getShortcutKey(r,e,n,i,o),u=a.getCommands(t))for(s=u.length-1;0<=s;s--)u[s].shortcutKey=void 0},o.prototype.getShortcutKey=function(t,r,e,n,i){var o,o;if(t)return(o=(o="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):a[t])||t)+(r?"+ctrl":"")+(e?"+shift":"")+(n?"+alt":"")+(i?"+window":"")},o.prototype.getCommands=function(t){return this.PUt[t]},o.prototype.addListener=function(t,r){this.aT[t]=r},o.prototype.removeListener=function(t){delete this.aT[t]},o.prototype.HUt=function(t){var r,e,r=this.aT;for(e in r)r.hasOwnProperty(e)&&r[e](t)},o.prototype.cM=function(t,r){this.GUt[t]=r},o.prototype.zUt=function(t){delete this.GUt[t]},o.prototype.MGr=function(t){var r,e,r=this.GUt;for(e in r)r.hasOwnProperty(e)&&r[e](t)},o.prototype.L0=function(){this.DJ=null},r.CommandManager=o},"./src/plugins/commands/undomanager.ts":function(t,r){var e;function n(t,r,e){var n=this;n.DJ=t,n.VUt=r=r<0?2147483647:r,n.Hw=e,n.Nmt=[],n.kmt=[],n.YUt=!1}Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=void 0,n.prototype.dM=function(t,r){var e,n,i,o,e=this;if(t){if(1===r)e.kmt.push(t);else{if(n=e.VUt,i=e.Nmt.length,0<n&&n<=i)for(o=0;o<i-n+1;o++)e.Nmt.shift();e.Nmt.push(t),0===r&&(e.kmt=[])}e.YUt=!0}},n.prototype.canUndo=function(){return 0<this.Nmt.length},n.prototype.undo=function(){var t,r,e,n,i,t=this,r=t.Nmt,e=!0;if(t.Hw&&t.canUndo()){n=r[r.length-1];try{(i=t.DJ.commandManager()[n.cmd])&&(n.hM=!0,e=i.execute(t.DJ,n,1))}catch(t){e=!1}delete n.hM,!1!==e&&(r.pop(),t.YUt=!0,t.kmt.push(n))}return e},n.prototype.canRedo=function(){return 0<this.kmt.length},n.prototype.redo=function(){var t,r,e,n,i,t=this,r=t.kmt,e=!0;if(t.Hw&&t.canRedo()){n=r[r.length-1];try{(i=t.DJ.commandManager()[n.cmd])&&(n.hM=!0,e=i.execute(t.DJ,n,2))}catch(t){e=!1}delete n.hM,!1!==e&&(r.pop(),t.YUt=!0,t.Nmt.push(n))}return e},n.prototype.getRedoStack=function(){return this.kmt.slice()},n.prototype.getUndoStack=function(){return this.Nmt.slice()},n.prototype.maxSize=function(t){var r=this;return arguments.length<1?r.VUt:(0<=t&&(r.VUt=t),r)},n.prototype.clear=function(){this.Nmt=[],this.kmt=[]},n.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},n.prototype.L0=function(){this.DJ=null},n.prototype.setNewChangeStatus=function(t){this.YUt=t},n.prototype.getNewChangeStatus=function(){return this.YUt},r.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,r,e){var n,i,n=this&&this.__createBinding||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&("get"in i?r.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){t[n=void 0===n?e:n]=r[e]}),i=this&&this.__exportStar||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./src/plugins/formatter/formatter.ts"),r)},"./src/plugins/formatter/formatter.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_InvalidCast=r.Exp_ValueIllegal=r.Exp_TokenIllegal=r.Exp_DuplicatedDescriptor=r.Exp_ValueIsNull=r.Exp_FormatIllegal=r.Exp_InvalidBackslash=r.Exp_TokenIsNull=void 0,r.Exp_TokenIsNull="token is null",r.Exp_InvalidBackslash="the '\\' cannot be evaluated",r.Exp_FormatIllegal="format is illegal.",r.Exp_ValueIsNull="value is null",r.Exp_DuplicatedDescriptor="The type of descriptor was added.",r.Exp_TokenIllegal="token is illegal.",r.Exp_ValueIllegal="value is illegal.",r.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(a,t,r){var l,p,v,b,R,g,I,B,G,L,r,f,s,F,_,w,m,z,K,J,y,V,W,U,q,Y,D,X,c,Z,Q,tt,rt,M,H,N,u,k,h,et,$,d,S,nt,it,ot,at,B,ut,st,ft,ct,yt,mt,Mt,ht,dt,lt,vt,pt,bt;function e(t,r){var r,t,e,n;if(At.call(this,r),(r=this).Jq=t,e=T((t=r.Jq)[0],s,!1),n=t.indexOf("-"),!(e&&-1<n))throw new Error(f().Exp_TokenIllegal);r.ZUt=A(t,1,n-1),0<(t=p.zf.VP(t,0,n+1)).length&&(r.Iat=parseInt(t,16))}function n(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}function gt(t,r){var n,e,i,o,a,u,s,i;for(At.call(this,r),n=this,u=0,s=(a=["<=","<>",">=",">","<","="]).length;u<s;u++)if(p.zf.fJ(t,e=a[u],!0)){i=p.zf.VP(t,0,e.length),i=parseFloat(i),H(i)||(o=i);break}if(o===F&&o===_)throw new Error(f().Exp_TokenIllegal);n.value=o,n.WUt=e,n.isMeetCondition=function(t){var r=n.WUt,e=n.value;switch(r){case"<=":return t<=e;case"<>":return t!==e;case">=":return e<=t;case">":return e<t;case"<":return t<e;case"=":return t===e}}}function x(t,r){At.call(this,r);var r=this;if(r.token=t,r.type=parseInt(p.zf.VP(t,0,"dbnum".length),10),r.type<0||4<r.type)throw new Error(f().Exp_TokenIllegal)}function P(t,r,e,n,i,o){Ct.call(this,r,e,n,o);var r=this;r.pU=r.QUt(St(t)),r.KUt=i,r.JUt=2,r.Hc()}function Ft(t,r){var r,t,e;if(At.call(this,r),r=this,"h"===(t=h(t)[0]))e=3600;else if("m"===t)e=60;else{if("s"!==t)throw new Error(f().Exp_TokenIllegal);e=1}r.XUt=function(t){var t=t/1e3/e;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}function _t(t,r){var r,r;At.call(this,r),null!==(r=Y.exec(t))&&(r=Number(r[1]),0<=--r)&&r<q.length&&(t=q[r]),this.foreColor=t}function C(t,r,e,n){var e,n,i,t,r,t;function o(t,r){var e,n,i,o,a,u,s,e=[],n='"';if(t!==F&&""!==t){for(i=!1,a=!(o=[]),u=0;u<t.length;u++)(s=t[u])!==n||i||(a=!a),i||a||s!==r?o.push(s):(e.push(o.join("")),o=[]),i="\\"===s&&!i;e.push(o.join(""))}return e}Ct.call(this,r,e,n),(e=this).qUt=!1,e.JUt=1,e.$Ut=Nt(t),n=St(t),-1<(i=(n=Nt(n=r?O(n,e.j9t.Nat,e.j9t.currencySymbol()):n)).indexOf("/"))&&(t=o(n,"/"))&&2===t.length&&(e.tHt=t[1],r=t[0])&&(-1<(t=r.lastIndexOf(" "))?(e.nHt=A(r,0,t),e.eHt=A(r,t+1,r.length-t-1)):e.eHt=r),e.iHt=n}function i(t,r,e,n){Ct.call(this,r,e,n),0<arguments.length?(i.rHt(t)||$(),this.$Ut=t):this.$Ut="General",this.JUt=0}function o(t,r,e,n){var i,e,i=this;Ct.call(i,r,e,n),e=St(t,!1),e=$t(e=Nt(e=r?O(e,i.j9t.Nat,i.j9t.currencySymbol()):e)),i.pU=e,i.JUt=3}function A(t,r,e){return t.substr(r,e)}function wt(t){return b.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function Dt(t,r){if("\\"===t[r])throw new Error(f().Exp_InvalidBackslash);if(0<r-1&&r-1<t.length&&"\\"===t[r-1]){if(r-2<0)return 1;if(0<r-2&&r-2<t.length)return"\\"!==t[r-2]}}function Ht(t){if(t)return"["+t+"]";throw new Error(f().Exp_TokenIsNull)}function Nt(t){var r,e,n,i,o;if(t===_||t===F||""===t)return t;for(r="",n=!1,i=e=0;i<t.length;i++)'"'===(o=t[i])?(n=!n,r+=o):n?r+=o:"["===o?e++:"]"===o?--e<0&&(e=0):0===e&&(r+=o);return r.toString()}function kt(t){return t=O(t,"[",""),O(t,"]","")}function O(t,r,e){return!t||t===S.oHt||T(r,e,!0)?t:(r=r.replace(W,"\\$1"),t.replace(new RegExp(r,"g"),e))}function $t(t){for(var r,e,n,i,o,r=t.length,e=!1,n="",i=0;i<r;i++)"\\"===(o=t.charAt(i))?(e=!e)&&"@"!==t.charAt(i+1)||(n+=o):(e=!1,n+=o);return n}function T(t,r,e){return e?h(t)===h(r):t===r}function St(t,r){var e,n,i,o;for(1===arguments.length&&(r=!0),e=!1,n="",i=0;i<t.length;i++){if('"'===(o=t[i]))e=!e;else if(!e&&!r&&"/"===o&&!Dt(t,i))continue;n+=o}return n}function xt(t){for(var r,e,n,i,o,r="",e=!1,n=0,i=t.length;n<i;n++)'"'===(o=t[n])&&(e=!e),"E"===o||e||(r+=h(o));return r}function Pt(t,r){var e,n,i,o;if(t&&t!==S.oHt)for(n=xt(e=St(t)),i=0;i<r.length;i++)if(0===(o=n.indexOf(r[i]))||0<o&&"_"!==n[o-1]&&"*"!==n[o-1])return!0;return!1}function Ct(t,r,e,n){this.j9t=t,this.aHt=r,this.cultureName=e,this.O9t=n}function At(t){this.Nat=t}function Ot(t){var r,t,e,t=kt(t);return t&&t!==S.oHt&&(e=t[0],-1<["<",">","="].indexOf(e)?(r=ut).Name="ConditionalFormatPart":p.zf.fJ(t,"DBNum",!0)?(r=st).Name="DBNumberFormatPart":T(t[0],s,!1)&&-1<t.indexOf("-")?(r=at).Name="LocaleIDFormatPart":jt(t)?(r=ct).Name="ABSTimeFormatPart":t.indexOf(s)<0&&3<=t.length&&((r=yt).Name="ColorFormatPart")),r}function Tt(t,r){var e,t,e=!1,t=Pt(t=t?t.toString():S.oHt,["general"])?Mt:ft.a0(t)?ft:Pt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(e=!0,mt):(e=!0,ht);return{uHt:e,_type:t}}function jt(t){var r,e,n,r=h(t),e=r[0];if("h"===e||"m"===e||"s"===e){for(n=1;n<r.length;n++)if(e!==r[n])return;return 1}}function Et(t,r,e){var t,e,t=t?t.cultureInfo():N(e);return(r<4||4===r&&("ko-kr"===e||"ko-kr"===t.name()))&&(e=t.NumberFormat.dbNumber)?e[r]:F}function Rt(t,r,e,n,i){var o,e,o=t;if(!M(n)&&r instanceof Date){if(!(e=Et(e,n.type,i)))return t;o=n.sHt(o,e,!0),o=(o=(o=1===n.type?o.replace(new RegExp(K,"g"),J):o).replace("@"+m.cHt,v.ct.Pe(r,m.cHt))).replace("@"+m.fHt,v.ct.Pe(r,m.fHt)),o=n.sHt(o,e,!1)}return o}function It(t,r,e,n,i){var o,a,u,s,f,c,y;if(!M(n)&&(o=Et(e,n.type,i),!M(o)))for(a=!1,u=void 0,s=N(i),f=void 0,c=0,y=t.length;c<y;c++)"decimalSeparator"===t[c].type&&(a=!0,t[c].value=n.sHt(t[c].value,o,r),u=t[c].value),"number"===t[c].type&&(t[c].value=a?n.sHt(u+t[c].value,o,r).slice(1):n.sHt(t[c].value,o,r),"ja-JP"===s.name())&&1<t[c].value.length&&("\u4e00\u5343"!==(f=t[c].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[c].value=t[c].value.substr(1)));return t}function j(t,r){var e=this;0===arguments.length?(e.formatCached="General",e.E9t=new Mt):e.Hc(t,r)}function E(t,r){var e,n,e=bt.call(this,t,r)||this,n=e;return n.lHt=!0,n.PropertyChanged=[],S.Ji(t)&&(t="General"),n.formatCached=t,n.cultureName=r,n.init(),e}function Bt(t){for(var r,e,n,i,o,r=[],e=0,n=0,i=t.length,o=0;o<i;o++)"_"===t[o]?e++:(";"!==t[o]||0!==e&&e%2!=0||(r.push(t.substring(n,o)),n=o+1),e=0);return n<=i&&r.push(t.substring(n,i)),r}function Gt(i){for(var o,t,r,e,a,u,n,s,f,o=[],t=!1,r=!1,e="",a=function(t,r){return{type:t,content:r}},u=function(t){return!M(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},n=function(t,r){if(u(t)){for(var e=t,n=i[r+1];u(n)&&n.toLowerCase()===t.toLowerCase()&&(e+=n,r<i.length-1);)n=i[++r+1];o.push(a("symbolic",e))}else"a"===t&&"aaa"===i.slice(r,r+3).toLowerCase()?(o.push(a("symbolic",i.slice(r,r+3))),r+=2):o.push(a("text",t));return r},s=0;s<i.length;s++)if(f=i[s],t)o.push(a("text","\\"+f)),t=!1;else if(r&&'"'!==f)e+=f;else switch(f){case"\\":t=!0;break;case'"':r&&(o.push(a("text",'"'+e+'"')),e=""),r=!r;break;default:s=n(f,s)}return o}l=this&&this.__extends||(pt=function(t,r){return(pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,r){t.__proto__=r}:function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}))(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}pt(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t.Hf=t.FormatterBase=void 0,p=r("./src/common/util/stringhelper.ts"),v=r("./src/common/util/datetimehelper.ts"),b=r("./src/common/util/types.ts"),R=r("./src/common/util/numberhelper.ts"),g=r("./src/common/culture/cultureInfo.ts"),I=r("./src/common/util/common.ts"),B=r("./src/plugins/formatter/formatter.res.en.ts"),G=r("./src/plugins/formatter/formatterGrammar/lexer.ts"),L=r("./src/plugins/formatter/formatterGrammar/parser.ts"),b.lt.Dh(I.SR.en,B),r=new I.ResourceManager(I.SR),f=r.getResource.bind(r),s="$",b.lt.dt=function(t,r){if(b.lt.ht(t))return"null"===r;if(r){if(r instanceof Function&&t instanceof r)return!0;if(typeof t===r)return!0;if("function"===r&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===r.toLowerCase())return!0;if("DateTime"===r)return t instanceof Date;var t;if("TimeSpan"===r)return t instanceof Date&&0<=(t=v.ct.o0(t))&&t<1;"string"==typeof r&&"undefined number boolean string".indexOf(r)}return!1},b.lt.q8=function(t,r){return!!R.st.hUt(t,r)&&("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=R.st.Jf(t,r),b.lt.dt(t,"number")||b.lt.dt(t,"DateTime")||b.lt.dt(t,"TimeSpan")||t&&!b.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(2<=t.length&&"0"===t[0]&&"x"===t[1]))},b.lt.uJ=function(t){return b.lt.ht(t)||""===t?0:b.lt.dt(t,"number")?t:b.lt.dt(t,"string")&&!isNaN(t)?R.st.yU(t):b.lt.dt(t,"boolean")?t?1:0:b.lt.dt(t,"DateTime")?v.ct.o0(t):b.lt.dt(t,"TimeSpan")?Math.floor(v.ct.o0(t)):parseFloat(t)},F=null,_=void 0,w=Math.abs,m={fHt:"yy",hHt:"y",cHt:"yyyy",dHt:"m",vHt:"mm",mHt:"mmm",gHt:"mmmm",pHt:"mmmmm",bHt:"d",yHt:"dd",wHt:"aaa",MHt:"aaaa",CHt:"h",SHt:"hh",THt:"m",AHt:"mm",IHt:"s",xHt:"ss",IGt:"e",NHt:"AM/PM",kHt:"A/P",DHt:"@mmmmm",_Ht:new Date(1899,11,30,0,0,0,0)},z=[m.hHt,m.fHt,m.cHt,m.dHt,m.vHt,m.mHt,m.gHt,m.pHt,m.bHt,m.yHt,m.wHt,m.MHt,m.CHt,m.SHt,m.THt,m.AHt,m.IHt,m.xHt,"ggg","gg","g","ee","e"],K="\u4e00\u5341",J="\u5341",y={EHt:0,jHt:1,OHt:2,_text:3},V=[{EHt:0,jHt:0,OHt:0,_text:0},{EHt:0,jHt:1,OHt:0,_text:0},{EHt:0,jHt:1,OHt:2,_text:0},{EHt:0,jHt:1,OHt:2,_text:3}],W=new RegExp("([.+?*$^\\[\\](){}|/])","g"),U=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],q=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333"],Y=new RegExp("color\\s*(\\d+)","i"),D=b.lt.dt,X=b.lt.Nh,c=R.st,Z=c.gUt+"."+c.pUt,Q=c.mUt,tt=c.L9t,rt=c.E8,M=b.lt.ht,H=isNaN,N=function(t){return g.CultureManager.Fe(t)},u=function(t){return N(t).DateTimeFormat},k=function(t){return N(t).NumberFormat},h=function(t){return t&&t.toLowerCase()},et=function(t){return t&&t.toUpperCase()},$=function(){throw new Error(f().Exp_FormatIllegal)},d=function(){return g.CultureManager.booleanMapping},S={oHt:"",I5:function(){for(var t,r,e,n,i,o,a,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===arguments.length)return F;for(i=e[0],o=1;o<arguments.length;o++)a=new RegExp("\\{"+(o-1)+"\\}","gm"),i=i.replace(a,arguments[o]);return i},Ji:function(t){return!t||t===S.oHt}},it=function(t){var t=t.charCodeAt(0);return 48<=t&&t<=57},ot=function(t){var t=t.charCodeAt(0);return 9<=t&&t<=13||32===t||133===t||160===t},e.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=N(t.Iat)),t.RHt},e.prototype.currencySymbol=function(){return this.ZUt?p.zf.Vi(this.ZUt,"\\.",'"."'):S.oHt},e.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},e.prototype.toString=function(){return this.Jq?Ht(this.Jq):S.oHt},e.Name="LocaleIDFormatPart",at=e,n.prototype.format=function(t,r){return F},n.prototype.parse=function(t){return F},n.prototype.formatString=function(t){return this.formatCached},n.prototype.toJSON=function(){var t,r,t={};for(r in this)this.hasOwnProperty(r)&&(t[r]=this[r]);return t},n.prototype.fromJSON=function(t){if(t)for(var r in t)t[r]!==_&&(this[r]=t[r])},t.FormatterBase=B=n,gt.prototype.toString=function(){return Ht(this.WUt+this.value.toString())},ut=gt,x.prototype.sHt=function(t,r,e){var n,i,o,a,u,s,f,c,y,m;if(!t||t===S.oHt)return t;for(u=!(a=o=-1),y=(i=n=t).length-1;0<=y;y--)m=i[y],!H(m)&&!T(m," ",!1)||T(m,".",!1)&&!u?(T(m,".",!1)&&(u=!0),-1===o&&(o=y),a=y):-1<a&&-1<o&&(s=A(i,a,o-a+1),f=parseFloat(s),H(f)||(c=x.numberString(s,r,e),n=p.zf.VP(n,a,o-a+1),n=p.zf.Eit(n,a,c)),u=!(a=o=-1));return-1<a&&-1<o&&(s=A(i,a,o-a+1),f=parseFloat(s),H(f)||(c=x.numberString(s,r,e),n=p.zf.VP(n,a,o-a+1),n=p.zf.Eit(n,a,c))),n},x.prototype.toString=function(){if(-1<this.type)return Ht("DBNum"+this.type);throw new Error},x.numberString=function(t,r,e){var n,t,i,o,n=x.formatNumberString,t=t.split(".");if(t){if(1===t.length)return n(t[0],r.numbers,e?r.letters:F);if(2===t.length)return(i=n(t[0],r.numbers,e?r.letters:F))+"."+(o=n(t[1],r.numbers))}throw new Error(f().Exp_ValueIllegal)},x.formatNumberString=function(t,r,e){var n,i,o,a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,n=t,i=0,a=0;if(2===arguments.length){for(u="";i<n.length;i++)o=A(n,i,1),u+=r[a=parseInt(o,10)];return u}if(3===arguments.length){if(!e)return x.formatNumberString(t,r);for(s=0,f="",c=n.length,y=!1,m=[];i<c;i++)-1<(M=e.length-1-i)?m.push(e[M].toString()):m.push(S.oHt);for(h=[],d=m.length-1;0<=d;d--)h[m.length-d-1]=m[d];for(m=h,l=!1,d=0;d<c;d++)o=A(n,d,1),a=parseInt(o,10),v=void 0,p=S.oHt,0<c-d-16?(v=r[a],l=!(p="")):d!==c-1&&d!==c-5&&d!==c-9&&d!==c-13?"0"===o?(p=v="",s+=1):s=(p=(v="0"!==o&&0!==s?r[0]+r[a]:r[a],m[d]),0):"0"!==o&&0!==s?(v=r[0]+r[a],p=m[d],s=0):"0"!==o&&0===s||l?(v=r[a],p=m[d],s=0,l=!1):("0"===o&&3<=s?p=v="":11<=c?v="":(v="",p=m[d]),s+=1),(b=v+p===S.oHt)||(y=!1),d!==c-13||y||(p=m[d],y=!0),d!==c-9||y||(p=m[d],y=!0),d===c-1&&(p=m[d],y=!0),f=f+v+p;return 0===(g=parseInt(t,10))?r[0]:f}},st=x,P.prototype.Hc=function(){var t,r,e,n,i,o,a,t=this,r={y4:t.pU},e;if(P.a0(r.y4)){if(n=t.BHt(r),i=u(this.cultureName).amDesignator&&u(this.cultureName).pmDesignator,t.hasJD=t.Vi(r.y4,m.pHt,'"'+m.DHt+'"',!0,!1,r,!1),t.Vi(r.y4,m.gHt,"MMMM",!0,!1,r,!1),t.Vi(r.y4,m.mHt,"MMM",!0,!1,r,!1),t.LHt(r.y4,r),t.Vi(r.y4,m.wHt,"ddd",!0,!0,r,!0),t.Vi(r.y4,m.MHt,"dddd",!0,!0,r,!0),n&&i||(t.Vi(r.y4,m.CHt,"H",!0,!0,r,!1),t.Vi(r.y4,m.SHt,"HH",!0,!0,r,!1)),t.aHt&&(t.j9t||N(t.cultureName).NumberFormat.dbNumber)&&(t.FHt=t.FHt||t.Vi(r.y4,m.cHt,'"@'+m.cHt+'"',!0,!1,r,!0),t.FHt=t.FHt||t.Vi(r.y4,m.fHt,'"@'+m.fHt+'"',!0,!1,r,!0)),t.KUt)for(o=0;o<t.KUt.length;o++)a=t.KUt[o],t.Vi(r.y4,a.Nat,"@"+a.Nat,!0,!0,r,!0);t.PHt=r.y4}else $()},P.prototype.formatString=function(){return this.pU},P.prototype.format=function(r){var t,e,n,i,o,a,u,s,f,c,y,t=this,e=S.oHt,n=F;try{if((n=(n=v.ct._DT(r))&&H(n.valueOf())?F:n)?r=n:e=r.toString(),n&&(e=v.ct.L9t(n,t.PHt,t.j9t&&t.j9t.cultureInfo()||N(t.cultureName),t.O9t),t.hasJD&&(i=N(t.cultureName).DateTimeFormat.monthNames[n.getMonth()],e=p.zf.Vi(e,m.DHt,A(i,0,1))),t.KUt))for(o=24*(v.ct.o0(n)-v.ct.o0(m._Ht))*60*60*1e3,a=0;a<t.KUt.length;a++)s=(u=t.KUt[a]).XUt(o),M(s)||(f=u.Nat.replace("[","\\[").replace("]","\\]"),c=u.Nat.replace("[","").replace("]",""),y=p.zf.B9t(s+"",c.length),e=p.zf.Vi(e,"@"+f,y))}catch(t){e=wt(r)}return Rt(e,r,t.j9t,t.aHt,t.cultureName)},P.prototype.parse=function(r){var t,r,e,e,n;if(!r||r===S.oHt)return F;if(t=this,"true"===(e=h(r=r)))return!0;if("false"===e)return!1;if(t.PHt&&(e=v.ct.nUt(r,t.PHt,N(t.cultureName))))return e;try{return(n=v.ct._DT(r))&&!H(n)?n:(n=new Date(r),H(n.valueOf())?r:n)}catch(t){return r}},P.prototype.QUt=function(t){for(var r,e,n,i,o,a,r=t,e="",n=!1,i=0;i<r.length;i++)'"'===(o=r[i])?n=!n:n||"Y"!==o&&"D"!==o&&"S"!==o&&"E"!==o&&"G"!==o&&("M"!==o||T("A",a=r[i-1],!0)||T("P",a,!0))||(o=h(o)),e+=o;return e},P.prototype.BHt=function(t){var r,e,n,i,o,a,r=u(this.cultureName).amDesignator,e=u(this.cultureName).pmDesignator,n=[m.NHt];for(n.push(r&&e?r+"/"+e:m.NHt),n.push(m.kHt),i=["tt","tt","t"],o=t.y4,a=0;a<3;a++){if(p.zf.OS(o,i[a]))return!0;if(p.zf.OS(o,n[a],!0))return t.y4=p.zf.Vi(o,n[a],i[a],!0),!0}return!1},P.prototype.LHt=function(t,r){for(var e,n,i,o,a,e=Gt(t),n=-1,i=-1,o=0;o<e.length;o++)"symbolic"===(a=e[o]).type?"m"===a.content[0].toLowerCase()?0<=n?(a.content=a.content.toLowerCase(),n=-1):(a.content=a.content.toUpperCase(),i=o):"s"===a.content[0].toLowerCase()?0<=i&&(e[i].content=e[i].content.toLowerCase(),i=-1):i=("h"===a.content[0].toLowerCase()&&(n=o),-1):0<=i&&0<o&&"0"===a.content&&"."===e[o-1].content&&o===i+2&&(e[i].content=e[i].content.toLowerCase());r.y4=e.map(function(t){return t.content}).join("")},P.prototype.Vi=function(t,r,e,n,i,o,a){var u,s,f,c,y,m,M,h,d,l,v;if(n||i){for(u=[],s=!0,!P.hasDate(t)&&P.hasTime(t)&&(s=!1),f=!1,c=0;c<t.length;c++){if(y=t[c],P.hasTime(y)&&!f?s=!1:P.hasDate(y)&&!f&&(s=!0),n&&T(y,r[0],a)&&s||i&&T(y,r[0],a)&&!s){for(m=!0,M=0;M<r.length;M++)if(M+c>=t.length||!T(r[M],t[M+c],a)){m=!1;break}if(h=c+r.length-1,m&&1+h<t.length){for(d=t[h],l=-1,l=1+h;l<t.length&&T(d,t[l],a);l++);1+h<l&&(c=l,m=!1)}m&&!f&&u.splice(0,0,c)}'"'===y&&(f=!f)}if(o.y4=t,0<u.length){for(c=0;c<u.length;c++)o.y4=p.zf.VP(o.y4,v=u[c],r.length),o.y4=p.zf.Eit(o.y4,v,e);return!0}}return!1},P.hasTime=function(t){return-1<p.zf.hD(t,m.CHt[0],!0)||-1<p.zf.hD(t,m.IHt[0],!0)},P.hasDate=function(t){return-1<p.zf.hD(t,m.fHt[0],!0)||-1<p.zf.hD(t,m.bHt[0],!0)},P.a0=function(t,r){return Pt(t,r||z)},ft=P,t.Hf=ft,Ft.Name="ABSTimeFormatPart",ct=Ft,_t.prototype.toString=function(){return Ht(this.foreColor)},_t.Name="ColorFormatPart",yt=_t,C.prototype.formatString=function(){return this.$Ut},C.prototype.format=function(t){var r,e,t,n,i,o,a,u,s,f,c,y,m,m,m,M,h,h,d,l,l,h;return D(t,"boolean")?t.toString().toUpperCase():(r=this,e=b.lt.uJ(t),H(e)||!isFinite(e)||H(t)?"string"==typeof t?t:F:(t=N(r.cultureName),r.eHt&&r.tHt?(f={value:0},c={value:0},y={value:0},m=r.GHt(),C.getFraction(e,m,f,c,y)?(1<(m=C.getGCD(c.value,y.value))&&(c.value/=m,y.value/=m),r.nHt?(s="",1===y.value&&(f.value+=c.value,c.value=0,y.value=0),(m=Q(tt(f.value,r.nHt,t)))&&"0"!==m&&(s=s+m+" "),0===f.value&&e<0&&(s+=t.NumberFormat.negativeSign),0===e&&(s+="0"),i=r.tHt,o=parseFloat(i),!H(o)&&0<o&&(0!==c.value&&0!==y.value&&(c.value*=o/y.value),y.value=o,i=i.replace(/^\d+/,C.toNumberPlaceholder(o)),u=(a=Math.ceil(c.value))-c.value,c.value=u<=.5&&0<=u?parseFloat(a.toString()):parseFloat((a-1).toString())),M=r.eHt,h=parseFloat(M),H(h)||0!==h||(h=M.length,(l=(d=c.value.toString()).length)<h?M=M.substr(0,h-(h-l)):h<l&&(d=d.substr(0,l-(l-h)),c.value=parseInt(d,10))),l=r.UHt(c.value,y.value,M,i,t),0===c.value&&(l=l.replace(/./g," "),""===m)?"0 "+l:""===(s+=l)?"0":s):(s="",h=f.value*y.value+c.value,i=r.tHt,0<(o=parseFloat(i))?(h*=o/y.value,y.value=o,s+=(h=(u=(a=Math.ceil(h))-h)<=.5&&0<=u?parseFloat(a.toString()):parseFloat((a-1).toString()))+"/"+y.value):s+=r.UHt(h,y.value,r.eHt,r.tHt,t),0===h?"0":s)):e.toString()):It(n=tt(e,r.iHt,t),r.qUt,r.j9t,r.aHt,r.cultureName)))},C.prototype.parse=function(t){var r,e,e,n,i,o,i,n,i,n,a,u,i,n,o,s,r=this;if(t&&t!==S.oHt){if("TRUE"===(e=et(t))||e===d()&&d().boolean_true)return!0;if("FALSE"===e||e===d()&&d().boolean_false)return!1;if((e="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),n=r.eHt&&r.tHt,i=r.zHt(r.iHt).HHt,(n||i)&&(o=0,n&&r.nHt&&0<(i=(t=t.trim()).lastIndexOf(" "))&&i<t.length-1&&(o=parseInt(t.substr(0,i),10),t=t.substr(i+1)),0<(n=t.indexOf("/")))&&n<t.length-1&&(i=t.substr(0,n),n=t.substr(n+1),!(H(i)||H(n)||(a=parseInt(i,10),u=parseInt(n,10),H(a))||H(u)||0===u)))return o+a/u;if(t=r.VHt(t),t=r.YHt(t),n=(i=r.zHt(t)).HHt,o=i.$6t,r.ZHt(o)&&(o=p.zf.OUt(o,k(r.cultureName).numberGroupSeparator,"",!1),s=c.dUt(o,r.cultureName),!H(s))&&isFinite(s)){if(n&&(s=rt(s/100,15)),e){if("-"===o.charAt(0)||"+"===o.charAt(0))return F;s=-1*w(s)}return s}}return F},C.prototype.GHt=function(){var t,r,e,n,i,t,r=this.tHt,e=0;if(r)for(n=r.length,i=0;i<n&&r[i].match(/[#?\d]/);i++)e++;return e},C.prototype.ZHt=function(t){for(var r,e,n,i,o,a,u,r="",e=0,n=0,i=0,o=F,a=k(this.cultureName),u=t.length-1;-1<u;u--){if(t[u]===a.numberDecimalSeparator)e++,0<i&&(o=!1),r="";else if("e"===h(t[u])){if(n++,r="",u===t.length-1)return!1}else if(t[u]===a.numberGroupSeparator)o=3===r.length,i++,r="";else if("-"===t[u]||"+"===t[u]){if(0<u&&"e"!==h(t[u-1]))return!1}else{if(!it(t[u]))return!1;if(r+=t[u],0===u&&0===parseInt(r,10)&&o)return!1}if(1<e||1<n||!1===o)return!1}return!0},C.prototype.VHt=function(t){for(var r,e,n,t,i,o,a,a,u,r=t,e=[],n=0;n<r.length;n++)it(r[n])&&e.push(n);for(i=[(t=k(this.cultureName)).currencyDecimalSeparator,t.currencyGroupSeparator,t.currencySymbol,s,t.nanSymbol,t.negativeInfinitySymbol,t.negativeSign,t.numberDecimalSeparator,t.numberGroupSeparator,t.percentDecimalSeparator,t.percentGroupSeparator,t.percentSymbol,t.perMilleSymbol,t.positiveInfinitySymbol,t.positiveSign],o=r.length-1;-1<o;o--)if(a=r[o],ot(a)&&i.indexOf(a.toString())<=-1)(o<e[0]||e[e.length-1]<o)&&(r=p.zf.VP(r,o,1));else if(("-"===a||"+"===a)&&(a=0<o?r[o-1].toString():F,(u=["e","E","(",k(this.cultureName).currencySymbol,s]).indexOf(a)<0))break;return r},C.prototype.YHt=function(t){var r,e;if(p.zf.fJ(t,s)){if((r=p.zf.VP(t,0,1)).indexOf(s)<0)return r}else if(e=k(this.cultureName).currencySymbol,s!==e&&p.zf.fJ(t,e)&&(r=p.zf.VP(t,0,e.length)).indexOf(e)<0)return r;return t},C.prototype.zHt=function(t){var r,e,n,r=k(this.cultureName).percentSymbol,e=!0,n=t;return p.zf.fJ(t,r)?n=p.zf.VP(t,0,r.length):p.zf.dT(t,r)?n=p.zf.VP(t,t.length-r.length,r.length):e=!1,{$6t:n,HHt:e=p.zf.OS(n,r)?!1:e}},C.prototype.UHt=function(t,r,e,n,i){var o,a,u,s,i,o,o=Q(tt(t,e,i)),a,u,s=Q(tt("0."+r,"#."+n,i,!0)),i=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",o=o+"/"+s.substr(s.indexOf(i)+1);return""===e&&(o=t+o),""===n&&(o+=r),o},C.getGCD=function(t,r){var e,n,i;if(0===t)return w(r);if(0===r)return w(t);for(i=(e=Math.max(t,r))%(n=Math.min(t,r));0!==i;)i=(e=n)%(n=i);return w(n)},C.getFraction=function(t,r,e,n,i){var o,a,u,s,f,f,c,y,m,M,h,d,l,v,o=0,a=0,u=0,s=0,f=Math.ceil;for(0<t?o=1===(s=t-f(t)+1)?(s=0,t):f(t)-1:t<0&&(o=f(t),s=f(t)-t),f=Math.pow(10,r-1),(c=Math.pow(10,r)-1)<2&&(c=2),y=!1,m=0,M=f=f<2?2:f;M<=c&&(d=Math.round(h=M*s),v=w((l=d/M)-s),!((!y||v<w(m-s))&&(y=!0,m=l,a=d,u=M,v<1e-6)));M++);return e.value=o,n.value=a,i.value=u,y},C.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},mt=C,i.rHt=function(t){for(var r,e,n,i,o,a,r="",e=!1,n=-1,i=t.length,o=0;o<i;o++)'"'===(a=t[o])?n=(e=!e)?o:-1:e||(r+=a);return 0<n&&(r+=t.substring(n,i)),!(0<=r.indexOf("0")||0<=r.indexOf("#")||0<=r.indexOf(".")||0<=r.indexOf("@"))},i.prototype.WHt=function(){var t,r,t=this;return t.QHt||(r=O(r=t.$Ut,"General",Z),t.QHt=new mt(r,t.j9t,t.aHt,t.cultureName),t.QHt.qUt=!0),t.QHt},i.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new mt("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},i.prototype.formatString=function(){return p.zf.Vi(this.$Ut,"@NumberFormat","General")},i.prototype.format=function(t){var r,e,n,i,r=this;if(b.lt.q8(t,r.cultureName)){if(e=!r.j9t||r.j9t.allowScience(),(n=b.lt.uJ(t))!==_&&n!==F)return(99999999999<w(n)&&e||w(n)<1e-11&&0!==n?r.KHt():r.WHt()).format(t)}else{if(D(t,"string"))return i=$t(i=p.zf.Vi(r.formatString(),'"',"")),t;if(D(t,"boolean"))return t.toString().toUpperCase()}return""},i.prototype.parse=function(t){var r,e,n,n,i,o,a,u,i,s,f,o,r,c,y;if(S.Ji(t))return F;if("number"==typeof t)return t;if(r=!1,e=t.trim(),0<(n=p.zf.hD(e,"-",!1))&&!T(e.charAt(n-1),"E",!0)&&(r=!0),o=(i=(n=N(this.cultureName)).DateTimeFormat).dateSeparator,a=i.timeSeparator,u=i.monthNames,i=i.abbreviatedMonthNames,s=function(t,r){var e,n,i;if(!r||0===r.length)return!1;for(e=!1,n=0,i=r.length;n<i;n++)if(p.zf.OS(t,r[n],!0)){e=!0;break}return e},(r||p.zf.OS(e,o,!1)||p.zf.OS(e,a,!1)||p.zf.OS(e,"/",!1)||p.zf.OS(e,":",!1)||p.zf.OS(e,"-",!1)||p.zf.OS(e,"\u5e74",!1)||p.zf.OS(e,"\u6708",!1)||p.zf.OS(e,"\u65e5",!1)||s(e,u)||s(e,i)||"ja-JP"===n.name()&&0<=g.XPt.gGt.indexOf(e[0].toUpperCase())&&p.zf.OS(e,".",!1))&&(f=v.ct.yU(e)))return f;if((r="-"===e.charAt(0))||"+"===e.charAt(0)){if("("===(e=p.zf.VP(e,0,1)).charAt(0)&&")"===e.charAt(e.length-1))return t}else if("("===e.charAt(0)&&")"===e.charAt(e.length-1)&&(c=!0,"-"===(e=(e=e.substring(1,e.length-1)).trim()).charAt(0)||"+"===e.charAt(0)))return t;return(o=this.WHt().parse(e))===F||o===_||(y=c&&D(o,"boolean"))?t:(c||r)&&D(o,"number")?-1*w(o):o},Mt=i,o.prototype.format=function(t,r){var e,n,i,o,e=this;try{return i=n=void 0,i=t instanceof Date?v.ct.o0(t).toString():wt(t),o=e.XHt(e.pU),n=e.qHt(i,o.formatTokens,t,o.hasAtPart,r)}catch(t){return""}},o.prototype.parse=function(t){return t||""},o.prototype.formatString=function(){return this.pU},o.prototype.XHt=function(t){for(var r,e,n,i,o,a,u,r=[],e=!1,n="",i=!1,a=F,u=0;u<t.length;u++)o=t.charAt(u),i?('"'!==o?n+=o:(r.push(n+=o),n="",i=!1),a=o):"*"!==a&&"_"!==a&&"\\"!==a||""===n?"*"===o||"_"===o||"\\"===o?(a=o,""!==n&&(r.push(n),n=""),n+=o):"@"===o?(a=o,""!==n&&(r.push(n),n=""),r.push(o),e=!0):'"'===o?(a=o,""!==n&&r.push(n),n=o,i=!0):(n+=o,a=o):(r.push(n+=o),n="");return""!==n&&r.push(n),{formatTokens:r,hasAtPart:e}},o.prototype.qHt=function(t,r,e,n,i){var o,a,u,s,o=[],a=!1;if("string"!=typeof e||n||i)for(u=r.length-1;0<=u;u--)"*"===(s=r[u])[0]?a||(a=!0,o.push({type:"fillingChar",value:s[1]})):"_"===s[0]?o.push({type:"placeholder",value:s[1]}):'"'===s[0]&&'"'===s[s.length-1]?2<=s.length&&o.push({type:"text",value:s.substr(1,s.length-2)}):"\\@"===s?o.push({type:"text",value:"@"}):"@"===s[0]?o.push({type:"text",value:t}):o.push({type:"text",value:s});else o.push({type:"text",value:e});return o.reverse()},ht=o,dt=function(){return{pattern:U,formatter:["d-mmm","mmm-yy",u().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",u().shortDatePattern+" h:mm",u().shortDatePattern+" h:mm:ss",u().shortDatePattern+" h:mm:ss.0"]}},j.prototype.Hc=function(t,r){var e,n,i,o,a,u,s,f,c,y,m,M,M,h,d,l,d;for(t!==F&&t!==_||$(),(n=this).formatCached=e=t,o=i="",s=u=a=!1,f=[],c=0;c<t.length;c++)'"'===(y=t[c])?(u=!u,o+=y):u?o+=y:"["===y?(a&&$(),o&&(i=i||"",i+=o),o=y.toString(),a=!0):"]"===y?(a||$(),o?(m=(o+=y).toString(),(M=Ot(o.toString()))?"ABSTimeFormatPart"===M.Name?(f.push(new M(j.preProcessPart(m),m)),i+=o):m===g.XPt.eraExcelFormatter?(n.addPart(M,g.XPt.eraInternalFormatter),s=!0):n.addPart(M,m):(i+=M=j.partToNormalStr(m),e=O(t,m,M)),o=""):$(),a=!1):o+=y;o?a?$():i+=o:i=i||n.$Ht(),n.localeIDFormatPart&&(r=n.localeIDFormatPart.cultureInfo().name()),l=(d=Tt(i,h=n.conditionalFormatPart))._type,d=d.uHt?e:i,l?n.E9t=new l(d,n.localeIDFormatPart,n.dbNumberFormatPart,r,0<f.length?f:F,s):$()},j.prototype.$Ht=function(){var r,t,e,r=this,t="";return t=r.dbNumberFormatPart&&!(e=j.proNames.some(function(t){return"dbNumberFormatPart"!==t&&r[t]}))?"General":t},j.prototype.formatString=function(){for(var t,r,e,n,i,t=this,r="",e=0,n=j.proNames.length;e<n;e++)t[i=j.proNames[e]]&&(r+=t[i].toString());return r+=t.E9t.formatString()},j.prototype.addPart=function(t,r){for(var e,n,i,o,a,u,e=this,n=j.proNames,i=j.preProcessPart(r),o=0,a=n.length;o<a;o++)if(T(u=n[o],t.Name,!0)){if(e[u])throw new Error(f().Exp_DuplicatedDescriptor);e[u]=new t(i,r)}},j.prototype.format=function(t,r){return this.E9t.format(t,r)},j.prototype.parse=function(t){return this.E9t.parse(t)},j.checkFormatter=function(t){if(!t||t===S.oHt)throw new Error(f().Exp_TokenIllegal)},j.preProcessPart=function(t){j.checkFormatter(t);var t=kt(t);return j.checkFormatter(t),t},j.partToNormalStr=function(t){var t=j.preProcessPart(t);return'"'+(t=t[0]===s?t.slice(1):t)+'"'},j.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],lt=j,l(E,bt=B),E.prototype.toJSON=function(){var t,r,t=this,r={formatCached:t.formatCached};return t.cultureName&&(r.customerCultureName=t.cultureName),"general"===h(t.formatCached)&&delete r.formatCached,r},E.prototype.hasFormattedColor=function(){var t,r,e,t=this;for(r in y)if(y.hasOwnProperty(r)&&(e=t.getFormatter(y[r]))&&e.colorFormatPart)return!0;return!1},E.prototype.formatString=function(t){var r,e,n,i,o,r=this;if(0===arguments.length){for(e=S.oHt,n=0,i=r.formatters.length;n<i;n++)e+=(o=r.formatters[n]).formatString(),n!==i-1&&(e+=";");return e}if(t)return r.formatters=F,r.formatCached=t,r.init(),r.tzt("formatString"),r;throw new Error(f().Exp_ValueIsNull)},E.prototype.getFormatter=function(t){var r=this;return r.formatters&&r.formatters[t]},E.prototype.getPreferredEditingFormatter=function(t){var r,e,n,i,r,e,e=u(this.cultureName),n=k(this.cultureName),i=E.defFormatter;return D(t,"TimeSpan")?i(e.longTimePattern):D(t,"DateTime")?(r=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",i(e.shortDatePattern+r)):b.lt.q8(t,this.cultureName)?1e21<=(e=b.lt.uJ(t))||e<=1e-17&&0<e||e<=-1e21||e<0&&-1e-17<=e?i(null!=(r=n.scientificNotation)?r:"0.##############E+00"):i(Z):i("General")},E.prototype.getPreferredDisplayFormatter=function(t,r){var e,n,r,i,o,a,u,o,s,f,f,s,f,c,y,m,M,M,s,o,f,e,s,h,d,l,f,e=this,n=E.defFormatter;if((r=r||{value:F}).value=F,S.Ji(t))return new E;if(i=r.value=e.parse(r=t),D(i,"DateTime")||D(i,"TimeSpan")){for(a=(o=dt()).pattern,u=o.formatter,0<(f=(s=(o=N(e.cultureName)).DateTimeFormat).preselectedFormatters).length&&(a=a.concat([f]),u=u.concat([f[0]])),"ja-JP"===o.name()&&(a=a.concat([s.eraFormatter]),u=u.concat(["ge.M.d"]),f=o.QPt.filter(function(t){return"ggge"===t.substr(0,4)}),a=a.concat([f]),u=u.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),s=o.QPt.filter(function(t){return"gge"===t.substr(0,3)}),a=a.concat([s]),u=u.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),f=o.QPt.filter(function(t){return"ge"===t.substr(0,2)}),a=a.concat([f]),u=u.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),c=0;c<a.length;c++)for(y=a[c],m=0;m<y.length;m++)if(M=y[m],(M=v.ct.yU(t,M))&&M-i==0)return new E(u[c])}else if(b.lt.q8(i,e.cultureName)){if(o=(s=k(e.cultureName)).currencySymbol,f=s.numberDecimalSeparator,e=s.percentSymbol,s=s.numberGroupSeparator,h="E",f=(l=(d=p.zf.OS)(r,f))?".00":"",r[0]===o)return n(S.I5("{0}#,##0{1};[Red]({0}#,##0{1})",o,f));if(d(r,h,!0))return n("0.00E+00");if(r[0].toString()===e||r[r.length-1].toString()===e)return n(S.I5("0{0}%",f));if(d(r,s))return n(S.I5("#,##0{0}",f))}return n("General")},E.prototype.format=function(r,t){var e,n,i,o,n,a,u;if(D(r,"boolean"))return(r=d()?r?d().boolean_true:d().boolean_false:r).toString().toUpperCase();if(i=0,o=(e=this).vn(r)){n=o.colorFormatPart,t&&n&&(t.conditionalForeColor=t.value=n.foreColor),(n=b.lt.q8(r,e.cultureName))&&(i=b.lt.uJ(r)),a=S.oHt;try{n&&o===e.getFormatter(y.jHt)&&0!==this.expressionNumber?(a=o.format(o.considerNegSymbol?i:w(i)))===F&&D(r,"string")&&(a=r):(a=o.value)===_&&(u=!e.lHt&&o===e.getFormatter(y._text),a=o.format(r,n||u)),t&&(t.content=X(a)?a:[{type:"text",value:a}]),X(a)&&(a=c.mUt(a))}catch(t){D(r,"string")&&(a=r.toString())}return a}return n&&i<0?"-".toString():!D(r,"string")&&(r===_||r===F)?S.oHt:r.toString()},E.prototype.parse=function(t){var r=this;return r.formatters&&0<r.formatters.length?r.formatters[0].parse(t):F},E.prototype.init=function(){var t,r,e,n,i,t=this,r=t.formatCached;for(S.Ji(r)&&$(),t.formatters=[],e=Bt(r),t.lHt=1===e.length,(!e||e.length<1||4<e.length)&&$(),n=0;n<e.length;n++)-1!==e[n].indexOf("@")&&-1===e[n].indexOf("\\@")&&(n!==e.length-1?$():this.hasAt=!0),i=new lt(e[n],t.cultureName),t.formatters.push(i);t.getFormatter(y.EHt)||$(),this.nzt()},E.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;y=b.lt.Dh({},V[t]),this.hasAt&&0!==this.expressionNumber&&(y._text=this.formatters.length-1)},E.prototype.vn=function(t){var r,e,n,i,i,o,t,a,u,s,f,c,r=this;if(r.nzt(),n=(e=r.getFormatter(y.EHt))&&e.conditionalFormatPart,i=r.getFormatter(y._text),n&&(y.OHt=2,this.hasAt||(y._text=3)),"string"==typeof t&&H(t))return i||(n?t:e);if(b.lt.q8(t,r.cultureName)||D(t,"boolean")){if(i=r.getFormatter(y.jHt),o=r.getFormatter(y.OHt),t=b.lt.uJ(t),a=n&&e.conditionalFormatPart.isMeetCondition(t),s=(u=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(t),f=void 0,r.lHt||(n?a:0<t||0===t&&!o))f=e;else if(u?s:t<0)f=i;else if(o)f=o;else if(i){if(n&&u)return{value:c=t+""};f=i}return f&&(!n||u||f!==i||o||(f.considerNegSymbol=!0),n&&u&&f===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(f.considerNegSymbol=!0),this.expressionNumber<=1)&&(f.considerNegSymbol=!0),f}return F},E.prototype.tzt=function(t){var r,e,n,r=this;if(r.PropertyChanged)for(e=0;e<r.PropertyChanged.length;e++)"function"==typeof(n=r.PropertyChanged[e])&&n(r,t)},E.defFormatter=function(t){var r=E[t];return r||(r=new E(t),E[t]=r),r},E.test=function(t){var r,e,n,r=!0;try{e=new G.Lexer(t),(n=new L.Parser(e)).parse()}catch(t){r=!1}return r},t.GeneralFormatter=E},"./src/plugins/formatter/formatterGrammar/interface.ts":function(t,r){var e;Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=r.BACKSLASH=r.UNDERLINE=r.ASTERISK=r.DOUBLE_QUOTE=r.SEMICOLON=void 0,r.SEMICOLON=";",r.DOUBLE_QUOTE='"',r.ASTERISK="*",r.UNDERLINE="_",r.BACKSLASH="\\",r.throwError=function(){throw new Error("Invalid Number Format")}},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,e){var i,o,a,u,n;function s(t){this.Fmt=[],this.DZe=t,this.vHr()}Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,i=e("./src/plugins/formatter/formatterGrammar/interface.ts"),o=function(r){var t;return!!["0","#","?",".","%",",","/",i.BACKSLASH,i.ASTERISK,i.UNDERLINE,"@"].find(function(t){return t===r})},a=function(r){var t;return[i.BACKSLASH,i.ASTERISK,i.UNDERLINE].find(function(t){return t===r})},u=function(t,r){return{type:t,value:r}},s.prototype.vHr=function(){for(var t,r,e,n,t=0,r=this.DZe;t<r.length;t++)if(e=r[t],o(e))a(e)?(this.Fmt.push(u("symbol",e)),t<r.length-1&&(this.Fmt.push(u("char",r[t+1])),t++)):this.Fmt.push(u("symbol",e));else if(e===i.SEMICOLON)this.Fmt.push(u("semicolon",e));else{if(e===i.DOUBLE_QUOTE){if(-1!==(n=r.slice(t+1).search(i.DOUBLE_QUOTE))){this.Fmt.push(u("text",r.slice(t+1,n=n+t+1))),t=n;continue}(0,i.throwError)()}this.Fmt.push(u("char",e))}this.Fmt.push(u("EOF",""))},s.prototype.jbi=function(){return this.Fmt.shift()},r.Lexer=s},"./src/plugins/formatter/formatterGrammar/parser.ts":function(t,r,e){var n,i;function o(t){this.gHr=t,this.mHr=t.jbi()}Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,n=e("./src/plugins/formatter/formatterGrammar/interface.ts"),o.prototype.pHr=function(t){this.mHr.type===t?this.mHr=this.gHr.jbi():(0,n.throwError)()},o.prototype.parse=function(){for(var t=[];"EOF"!==this.mHr.type;)t.push(this.bHr()),4<t.length&&(0,n.throwError)();return{type:"numberFormat",body:t}},o.prototype.bHr=function(){for(var t,r,t=[];"semicolon"!==this.mHr.type&&"EOF"!==this.mHr.type;)r=this.mHr.type,t.push("symbol"===r?this.wHr():this.yHr());return"semicolon"===this.mHr.type&&this.pHr("semicolon"),{type:"formatPart",body:t}},o.prototype.wHr=function(){var t,r,t=this.mHr.value;return t===n.ASTERISK?(this.pHr("symbol"),r={type:"asterisk",body:this.mHr.value},this.pHr("char")):t===n.BACKSLASH?(this.pHr("symbol"),r={type:"char",body:this.mHr.value},this.pHr("char")):t===n.UNDERLINE?(this.pHr("symbol"),r={type:"underline",body:this.mHr.value},this.pHr("char")):(r={type:"symbol",body:this.mHr.value},this.pHr("symbol")),r},o.prototype.yHr=function(){var t,r,t=this.mHr.type;return"char"===t?(r={type:"char",body:this.mHr.value},this.pHr("char")):"text"===t&&(r={type:"text",body:this.mHr.value},this.pHr("text")),r},r.Parser=o},"./src/plugins/slicer/slicer.entry.ts":function(t,r,e){var n,i,n=this&&this.__createBinding||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&("get"in i?r.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){t[n=void 0===n?e:n]=r[e]}),i=this&&this.__exportStar||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,e){var e,c,N,a,i,o,n,u,s,k,f,e,e;function v(t){return"object"==typeof t&&t!==N&&t.text!==c}function y(){}function m(t,r){var e,n,t;if(t!==N&&t!==c){if(S(t)===a)r.value=t;else if(S(t)===o)r.value=t?1:0;else if(t instanceof Date)r.value=k.o0(t);else{if(S(t)!==i)return;if(0===x(t=t.trim()))return;if(e=!1,"%"===t.charAt(x(t)-1)&&(e=!0,t=t.substr(0,x(t)-1)),2<=x(t)&&"0"===t[0]&&"x"===t[1])return;if(n=Number(t).valueOf(),isNaN(n)||!isFinite(n)){if(t=new Date(t),isNaN(t))return;n=k.o0(t)}e&&(n/=100),r.value=n}return 1}}function l(t){var r,e,n,i,o,a,u,s,f,c,y,m,M,h,d,l,r=t.ezt;for(r||(t.izt=[],t.rzt=[]),e=r?t.ozt:t.izt,n=t.azt,i=t.uzt,o=r?t.szt:t.rzt,a=t.Mct,u=t.czt,s=t.fzt,f=t.SIr(),y={},m=0;m<f;m++){for(M=!1,h=void 0,d=0;d<x(a)&&(h=a[d],r&&h===t.lzt||(i[h]?($(y[l=t.columnNames[h]])&&(y[l]=t.getColumnIndex(l)),c=t.fue(y[l],m),M=!i[h][c]):n[h]&&(M=!n[h][m]),!M));d++);!M&&r&&(u?($(y[l=t.columnNames[h]])&&(y[l]=t.getColumnIndex(l)),M=!u[c=t.fue(y[l],m)]):s&&(M=!s[m])),M||(e[m]=!0)}for(d=0;d<x(e);d++)e[d]&&o.push(d)}function M(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?k.o0(t):t}function h(t){var r,e,n,r=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],e=t.columnNames,n=0;n<x(e);n++)r[(e[n]+"").toUpperCase()]=n}function p(t,r){var e,n,i,o,a,u,s,f,f,c,c,y,e=t.vzt,n=t.pzt,i=t.mzt,o,a=t.gzt[r]=[];for(t.bzt=[],t.xIr(r,[]),e[r]=[],n[r]={},i[r]=[],u={},s=0;s<t.SIr();s++)f=v(f=t.JNr(s,r))?f.text.trim():f,t.TIr(r,f),(c=u[M(f)])?(c.list.push(s),a[s]=c.index):(c=[s],e[r].push(f),i[r].push(c),y=x(i[r])-1,n[r][f]=y,a[s]=y,u[M(f)]={list:c,index:y})}function d(t,r,e){var n,i,o,a,u,s,f,c,y,y,m,M,h,d,l,n=t.yzt,i=t.getColumnIndex(r),o=[];if(i&&(a=t.ezt?t.wzt:t.Mzt[i],u=t.izt,a)){for(n[i]||t.Czt(i),s=[],f=n[i],c=0;c<x(f);c++)y=v(y=t.JNr(c,i))?y.value:y,s[f[c]]=y;for(m=t.Szt[i],c=0;c<x(a);c++){for(M=a[c],h=!1,l=(d=t.Tzt(s,M)).start;l<=d.end;l++)if(u[m[l]]){h=!0;break}h!==e&&o.push(M)}}return o}function b(t,r){var e,n,i,o,a,u,e=[],n=t.getColumnIndex(r);if(0<=n){for(i=x(t.getData(r)),o=t.ezt?t.ozt:t.izt,a=0;a<i;a++)o[a]||(u=t.fue(n,a),-1===e.indexOf(u)&&e.push(u));return e}}function g(t,r){var e,n,i,o,a,u,s,f,c,y,e=[],n={},i=t.getColumnIndex(r);if(0<=i)for(o=t.czt||t.fzt,a=t.uzt[i]||t.azt[i],u=t.ezt&&i===t.lzt?o:a,f=x((s=!!t.azt[i])?t.getData(r):t.getExclusiveData(r)),c=0;c<f;c++)!u||u[c]||n[y=s?t.fue(i,c):c]||(n[y]=!0,e.push(y));return e}function F(t,r){for(var e,n,i,o,a,u,s,f,c,y,m,M,e={},n=t.columnNames,o=x(n),i=0;i<o;i++)if(n[i]!==r)for(a=g(t,n[i]),u=0;u<x(a);u++)for(s=t.getRowIndexes(n[i],a[u]),f=0;f<x(s);f++)e[s[f]]||(e[s[f]]=!0);for(c={},o=t.SIr(),i=0;i<o;i++)y=t.getExclusiveRowIndex(r,i),e[i]||(c[y]=!0);for(m=x(t.getExclusiveData(r)),M=[],i=0;i<m;i++)c[i]||M.push(i);return M}function _(t,r,e,n){var i,r,o,a,u,s,s,f,c,y,i=t.getColumnIndex(r),r=t.yzt;for(r[i]||t.Czt(i),o=[],a=r[i],u=0;u<x(a);u++)s=v(s=t.JNr(u,i))?s.value:s,o[a[u]]=s;for(f=[],u=0;u<x(e);u++)for(c=t.Tzt(o,e[u]),y=0;y<x(a);y++)a[y]>=c.start&&a[y]<=c.end&&(f[y]=!0);n?(t.fzt=f,t.wzt=e):(t.Mzt[i]=e,t.azt[i]=f,delete t.uzt[i],delete t.Azt[i]),l(t)}function w(t,r,e,n){for(var r,i,o,r=t.getColumnIndex(r),i=[],o=0;o<x(e);o++)i[e[o]]=!0;n?t.czt=i:(t.uzt[r]=i,t.Azt[r]=e,delete t.Mzt[r],delete t.azt[r]),l(t)}function D(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function H(t,r){var e=this;e.hzt={},e.dzt=[],e.vzt=[],e.pzt=[],e.mzt=[],e.gzt=[],e.uzt=[],e.Azt=[],e.azt=[],e.Mzt=[],e.izt=[],e.rzt=[],e.Mct=[],e.szt=[],e.ozt=[],e.ezt=!1,e.aT=[],e.Upt=0,e.bzt=[],e.Szt=[],e.yzt=[],e.lue=0,Object.defineProperty(e,"data",{get:function(){return this.VEt()},set:function(t){e.HY(t)}}),e.Izt(t,r),e.AIr()}function $(t){return t===c||t===N}function S(t){return typeof t}function x(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,e=e("./src/common/util/datetimehelper.ts"),c=void 0,N=null,a="number",i="string",o="boolean",n=e.ct.o0,(e=u=r.FilteredOutDataType||(r.FilteredOutDataType={}))[e.all=0]="all",e[e.byCurrentColumn=1]="byCurrentColumn",e[e.byOtherColumns=2]="byOtherColumns",(e=s=r.SlicerAggregateType||(r.SlicerAggregateType={}))[e.average=1]="average",e[e.count=2]="count",e[e.counta=3]="counta",e[e.max=4]="max",e[e.min=5]="min",e[e.product=6]="product",e[e.stdev=7]="stdev",e[e.stdevp=8]="stdevp",e[e.sum=9]="sum",e[e.vars=10]="vars",e[e.varp=11]="varp",y.o0=function(t){return n(t)},y.quickSort=function(t){for(var r,e,n,r=x(t),e=[],n=0;n<r;n++)e[n]={index:n,value:t[n]};return y.quickSortImp(e)},y.quickSortImp=function(t){var r,e,n,i,o,a,u,s,f,r=t.length;if(r<=1)return t;for(e=y,i=t[n=Math.floor(r*Math.random())],o=[],a=[],u=[],s=0;s<r;s++)(n===s?u:(f=e.sortCompare(t[s].value,i.value))<0?o:0<f?a:u).push(t[s]);return e.quickSortImp(o).concat(u,e.quickSortImp(a))},y.isEquals=function(t,r){return!(!$(t)&&""!==t||!$(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():S(t)===i&&S(r)===i?t.toLowerCase()===r.toLowerCase():t===r)},y.isGreaterThan=function(t,r){var e=S(t),n=S(r);return e===o?t=t?1:0:t instanceof Date&&(t=y.o0(t)),n===o?r=r?1:0:r instanceof Date&&(r=y.o0(r)),e===n||e!==a&&n!==a?e===i&&n===i?t.toLowerCase()>r.toLowerCase():r<t:n===a},y.sortCompare=function(t,r){var e,n,i,o,e=y,n=-1,i=$(t)||""===t||S(t)===a&&isNaN(t),o=$(r)||""===r||S(r)===a&&isNaN(r);return i&&o?n=0:i?n=1:o?n=-1:e.isEquals(t,r)?n=0:e.isGreaterThan(t,r)&&(n=1),n},k=y,r.xzt=k,H.prototype.AIr=function(){for(var t,r,t=this,r=0;r<t.SIr();r++)t.izt[r]=!0,t.rzt.push(r)},H.prototype.VEt=function(){return this._data},H.prototype.HY=function(t){this._data=t},H.prototype.SIr=function(){return x(this._data)},H.prototype.JNr=function(t,r){return this._data[t][r]},H.prototype.IIr=function(t,r,e){this._data[t][r]=e},H.prototype.kIr=function(t,r){for(var e,n,i,o,e,n=this._data,i=x(this.columnNames),o=0;o<r;o++)n.splice(t,0,new Array(i))},H.prototype.tX=function(t,r){this._data.splice(t,r)},H.prototype.NIr=function(t,r){for(var e,n,e=this._data,n=0;n<x(e);n++)e[n].splice(t,r)},H.prototype.jIr=function(t,r,e){this.dzt[t][r]=e},H.prototype.DIr=function(t){return!!this.dzt[t]},H.prototype.jEe=function(t){return this.dzt[t]},H.prototype.xIr=function(t,r){this.dzt[t]=r},H.prototype.TIr=function(t,r){this.dzt[t].push(r)},H.prototype._Ir=function(t,r,e){this.dzt[t].splice(r,0,null!=e?e:c)},H.prototype.OIr=function(t,r,e){this.dzt[t].splice(r,e)},H.prototype.EIr=function(t,r){this.dzt.splice(t,r)},H.prototype.inPreview=function(){return this.ezt},H.prototype.Izt=function(t,r){var e=this;e._data=t,e.columnNames=r,h(e)},H.prototype.vue=function(t){var r=this;r.mue&&0===r.lue&&(r.Nzt("onDataChanged",t),r.mue=!1)},H.prototype.gue=function(){this.lue++},H.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},H.prototype.onDataChanged=function(t){for(var r,e,n,i,o,a,u,s,f,c,s,c,f,y,m,M,h,r=this,e=new Array(x(r.columnNames)),n=r.Azt,i=r.vzt,o=r.uzt,u={},a=0;a<x(t);a++)f=(s=t[a]).data,c=s.columnName,s=s.row,$(u[c])&&(u[c]=r.getColumnIndex(c)),c=u[c],s>=r.SIr()&&r.onRowsAdded(s,1,!1),r.IIr(s,c,f),f=v(f)?f.text:f,r.DIr(c)&&r.jIr(c,s,f),e[c]=!0;for(y=0;y<x(e);y++)if(e[y]){for(m=n[y],n[y]=m?[]:void 0,o[y]=m?[]:void 0,M=[],a=0;m&&a<x(m);a++)M.push(i[y][m[a]]);for(p(r,y),a=0;a<x(M);a++)h=r.pzt[y][M[a]],n[y].push(h),o[y][h]=!0}l(r),r.mue=!0,r.vue(t)},H.prototype.Nzt=function(t){for(var r,e,n,i,o,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];for(n=this.aT||[],i=0;i<x(n);i++)(o=n[i])[t]&&o[t].apply(o,r)},H.prototype.onColumnNameChanged=function(t,r){var e,n,i,e=this,n=e.hzt,i=e.getColumnIndex(t);i<0||(e.columnNames[i]=r,delete n[t.toUpperCase()],n[r.toUpperCase()]=i,e.Nzt("onColumnNameChanged",t,r))},H.prototype.onRowsAdded=function(t,r,e){var n,i,o,a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,F,_,w,D,H,n=this,i=x(n.columnNames),o=n.vzt,a=n.mzt,u=n.gzt,s=n.uzt,f=n.Azt,c=n.izt,y=n.rzt,m=n.Mct;for(n.bzt=[],n.kIr(t,r),h=0;h<i;h++){for(M=0;M<r;M++)n.DIr(h)&&n._Ir(h,t);if(v=void 0,l=o[h]){for(p=N,b=0;b<x(l);b++){for(g=a[h][b],F=0;F<x(g);F++)g[F]>=t&&(g[F]+=r);k.isEquals(l[b],N)&&(p=g,v=b)}for(p||(p=[],l.push(N),v=x(l)-1,n.pzt[h][N]=v,a[h].push(p),s[h]&&-1===m.indexOf(h)&&(s[h][v]=!0,f[h].push(v))),_=t;_<t+r;_++)p.push(_);for(d=t;d<t+r;d++)u[h].splice(d,0,v)}}for(w=!0,M=0;M<x(m);M++)D=u[h=m[M]][t],!0!==s[h][D]&&(w=!1);for(M=0;M<x(y);M++)y[M]>=t&&(y[M]+=r);for(d=n.SIr()-1;t+r<=d;d--)c[d]=c[d-r];for(H=0<x(m),d=t;d<t+r;d++)w&&y.push(d),c[d]=!H;e||n.Nzt("onRowsChanged",t,r,!0)},H.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},H.prototype.kzt=function(t,r,e){var n,i,o,a,u,s,f,c,y,m,M,h,d,n=this,i=n.Azt,o=n.vzt,a=n.uzt,u=x(n.columnNames);for(n.tX(t,r),f=0;f<u;f++){if(n.DIr(f)&&n.OIr(f,t,r),y=[],(c=i[f])&&e){for(s=0;s<x(c);s++){for(m=n.getRowIndexes(n.columnNames[f],c[s]),M=!0,h=0;h<x(m);h++)if(m[h]<t||m[h]>=t+r){M=!1;break}M||y.push(o[f][c[s]])}i[f]=[],a[f]=[]}if(p(n,f),c&&e)for(s=0;s<x(y);s++)d=n.pzt[f][y[s]],i[f].push(d),a[f][d]=!0}e&&l(n),n.Nzt("onRowsChanged",t,r,!1)},H.prototype.onColumnsRemoved=function(t,r){for(var e,n,i,o,a,u,s,f,c,y,m,M,e=this,n=[],i=e.Mct,o=t+r,a=t;a<o;a++)(u=e.columnNames[a])&&(s=a,n.push(u),-1!==i.indexOf(s))&&e.doUnfilter(u);for(m in f=e.uzt||e.azt,c=e.Azt||e.Mzt,y=e.hzt,e.NIr(t,r),e.bzt=[],e.columnNames.splice(t,r),e.EIr(t,r),e.vzt.splice(t,r),e.pzt.splice(t,r),e.mzt.splice(t,r),e.gzt.splice(t,r),f.splice(t,r),c.splice(t,r),y)y[m]>=t+r&&(y[m]-=r);for(a=0;a<x(n);a++)delete y[(u=n[a]).toUpperCase()],t=e.getColumnIndex(u),-1!==(M=i.indexOf(t))&&i.splice(M,1),e.Nzt("onColumnRemoved",n[a])},H.prototype.Dzt=function(){return this.bzt},H.prototype._zt=function(){return this.Szt},H.prototype.Czt=function(t){var r,e,n,i,o,o,a,u,s,f,c,y,r=this;for(r.DIr(t)||p(r,t),e=r.SIr(),n=[],i=0;i<e;i++)o=v(o=r.JNr(i,t))?o.value:o,n.push(o);for(a=k.quickSort(n),u=r.bzt[t]=[],s=r.Szt[t]=[],f=r.yzt[t]=[],c=0;c<x(a);c++)y=a[c],u.push(y.value),s.push(y.index),f[y.index]=c},H.prototype.getColumnIndex=function(t){var t=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===t?-1:t},H.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},H.prototype.getFilteredOutRowIndexes=function(){for(var t,r,e,n,i,t=this,r=t.SIr(),e=t.ezt?t.ozt:t.izt,n=[],i=0;i<r;i++)e[i]||n.push(i);return n},H.prototype.getData=function(t,r){var e,n,i,t,t,r,o,a,u,e=this,n=e.getColumnIndex(t);if(0<=n){if(r){for(e.bzt[n]||e.Czt(n),i=e.jEe(n),t=e.bzt[n],r=(t=e.Tzt(t,r)).start,o=t.end,a=[],u=r;u<=o;u++)a.push(i[e.Szt[n][u]]);return a}return e.DIr(n)||p(e,n),e.jEe(n)}return[]},H.prototype.aggregateData=function(t,r,e){var n,t,i,e,t,o,e,o,n,t,i,n=this,t=n.getColumnIndex(t);return t<0?c:(n.bzt[t]||n.Czt(t),o=x(t=n.bzt[t]),i=(e=n.Tzt(t,e)).start,e=e.end,5===r?o<=i?c:t[i]:4===r?e<0?c:t[e]:3===r?e<i?0:e-i+1:(n=(o=n.Ezt(t,r,i,e)).data1,t=o.data2,i=o.data3,1===r?n/=t:7===r||10===r?(n=(i*t-n*n)/(i*(i-1)),n=7===r?Math.sqrt(n):n):8!==r&&11!==r||(n=(i*t-n*n)/(i*i),n=8===r?Math.sqrt(n):n),n))},H.prototype.Ezt=function(t,r,e,n){for(var i,o,a,u,s,f,i=6===r?1:0,o=0,a=0,u=e;u<=n;u++)(s=t[u])===N&&s===c||m(s,f={value:N})&&(s=f.value,1===r?(i+=s,o++):2===r?i++:9===r?i+=s:6===r?i*=s:7!==r&&8!==r&&10!==r&&11!==r||(i+=s,o+=s*s,a++));return{data1:i,data2:o,data3:a}},H.prototype.Tzt=function(t,r){var e=x(t),n,i,o,a;if(r){if(r.min===-1/0)n=0;else for(o=0;o<e;o++)if(a=t[o],k.isEquals(r.min,a)||k.isGreaterThan(a,r.min)){n=o;break}if(n===c&&(n=e),i===1/0)i=e-1;else{for(o=e-1;0<=o;o--)if(a=t[o],k.isEquals(a,r.max)||k.isGreaterThan(r.max,a)){i=o;break}i===c&&(i=-1)}}else n=0,i=e-1;return{start:n,end:i}},H.prototype.getExclusiveData=function(t){var r=this,e=r.vzt,t=r.getColumnIndex(t);return 0<=t?(e[t]||p(r,t),e[t]):[]},H.prototype.getRowIndexes=function(t,r){var e=this,t=e.getColumnIndex(t);return 0<=t?(e.gzt[t]||p(e,t),e.mzt[t][r]):[]},H.prototype.getExclusiveRowIndex=function(t,r){var e=this,t=e.getColumnIndex(t);return e.fue(t,r)},H.prototype.fue=function(t,r){var e=this,n=e.gzt;return 0<=t?(n[t]||p(e,t),n[t][r]):-1},H.prototype.getFilteredIndexes=function(t){var r=[],e;return this.jzt(t,r,{}),r},H.prototype.jzt=function(t,r,e){for(var n,i,o,a,u,u,n=this,i=n.ezt?n.szt:n.rzt,o=n.getColumnIndex(t),a=0;a<x(i);a++)u=i[a],$(u=n.fue(o,u))||(e[u]?e[u]++:(e[u]=1,r.push(u)))},H.prototype.getFilteredRanges=function(t){return d(this,t,!1)},H.prototype.getFilteredOutRanges=function(t){return d(this,t,!0)},H.prototype.getFilteredOutIndexes=function(t,r){var e=this;return(0===r?b:1===r?g:F)(e,t)},H.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},H.prototype.detachListener=function(t){for(var r,e,r=this.aT||[],e=0;e<x(r);e++)if(r[e]===t){r.splice(e,1);break}},H.prototype.suspendFilteredEvents=function(){this.Upt++},H.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},H.prototype.doFilter=function(t,r,e){this.Ozt(t,r,e),this.onFiltered()},H.prototype.Ozt=function(t,r,e){var n,i,o,n=this,i=n.Mct,o=n.getColumnIndex(t);o<0||(e?(n.ezt=!0,n.lzt=o):n.ezt&&D(n,!1),i.indexOf(o)<0&&i.push(o),r.ranges?_(n,t,r.ranges,e):w(n,t,r.exclusiveRowIndexes,e))},H.prototype.clearPreview=function(){D(this,!0)},H.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},H.prototype.Rzt=function(t){var r,t,t,r=this;r.ezt&&D(r,!1),(t=r.getColumnIndex(t))<0||(delete r.Mzt[t],delete r.azt[t],delete r.uzt[t],delete r.Azt[t],l(r),0<=(t=r.Mct.indexOf(t))&&r.Mct.splice(t,1))},H.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},H.prototype.getListener=function(){return this.aT},r.GeneralSlicerData=H},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,e){var n,i,n=this&&this.__createBinding||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&("get"in i?r.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){t[n=void 0===n?e:n]=r[e]}),i=this&&this.__exportStar||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(r,y,e){var n,i,m,M,nt,q,h,d,it,R,O,rt,x,N,ot,at,et,P,z,ut,K,j,st,ft,ct,yt,o,pt,mt,bt,Mt,k,V,J,Y,$,X,l,I,B,G,Z,Q,tt,C,gt,Ft,_t,wt,A,T,E,Dt,Ht,Nt,a,w,kt,$t,v,p,b,g,F,St,D,xt,Pt,Ct,At,Ot,Tt,jt,_,u,s,f;function Et(t){this.x=t.x,this.y=t.y}function Rt(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}function H(t,r){return{x:t,y:r}}function It(t,r,e,n){return{x:t,y:r,width:e,height:n}}function Bt(t,r){for(var e,n,i,o,a,e=t[0],n=e&&e.value?e.value:e,o=1,a=t.length;o<a;o++)i=(e=t[o])&&e.value?e.value:e,(r&&i<n||!r&&n<i)&&(n=i);return n}function L(t,r,e,n,i,o,a){o&&(t.strokeStyle=o),a&&(t.lineWidth=a),t.beginPath(),t.moveTo(r,e),t.lineTo(n,i),t.stroke()}function Gt(t,r,e,n,i,o,a){t.save(),o&&(t.strokeStyle=o),a&&(t.lineWidth=a),t.beginPath(),t.moveTo(r,e),t.lineTo(n,i),t.closePath(),t.stroke(),t.restore()}function Lt(t,r,e,n,i,o,a,u){var s,f,c,y,m,M,h,d,l;if(t.save(),s=[o,a],t.setLineDash)t.beginPath(),t.strokeStyle=u,t.setLineDash(s),t.stroke(),t.moveTo(r,e),t.lineTo(n,i);else for(t.beginPath(),t.lineWidth=1,t.strokeStyle=u,y=(n-r)/(f=z(P(n-r,2)+P(i-e,2))),m=(i-e)/f,h=M=0;M<f;)M+=d=ot(s[h%2],f-M),(l=++h%2)&&t.moveTo(r,e),r+=d*y,e+=d*m,l&&t.lineTo(r,e);t.stroke(),t.restore()}function ht(t,r,e,n,i,o,a,u,s,f,c,y){r?L(t,e,n,i,o,c,y):L(t,a,u,s,f,c,y)}function S(t,r,e,n,i,o,a,u){t.save(),a&&(t.fillStyle=a),t.textBaseline=u||Q,t.beginPath(),t.font=i,t.textAlign=o,t.fillText(n="string"==typeof n?n:n+"",r,e),t.restore()}function W(t,r,e,n,i,o,a){r=Math.floor(r),e=Math.floor(e),n=Math.floor(n),i=Math.floor(i),a%2!=0&&(r===n?(r+=.5,n+=.5):e===i&&(e+=.5,i+=.5)),L(t,r,e,n,i,o,a)}function zt(t,r,e,n,i,o,a,u,s,f){var c,y,m,M;switch(o=Math.round(o),a=Math.round(a),s){case 0:a=Math.round(e+u),M=Math.round(a),m=Math.round(o+u),c=Math.round((o+m)/2),y=Math.round(a-Math.sin(rt/3)*u);break;case 1:o=Math.round(r+n-u),m=Math.round(o),M=Math.round(a+u),c=Math.round(o+Math.sin(rt/3)*u),y=Math.round((a+M)/2);break;case 2:a=Math.round(e+i-u),M=Math.round(a),m=Math.round(o+u),c=Math.round((o+m)/2),y=Math.round(a+Math.sin(rt/3)*u);break;case 3:o=r+u,m=Math.round(o),M=Math.round(a+u),c=Math.round(o-Math.sin(rt/3)*u),y=Math.round((a+M)/2)}t.beginPath(),t.moveTo(o,a),t.lineTo(c,y),t.lineTo(m,M),t.closePath(),t.fillStyle=f,t.fill()}function Kt(t,r,e,n,i){t.beginPath(),t.fillStyle=i,t.arc(r,e,n,0,2*Math.PI),t.fill()}function Jt(t,r,e,n,i,o){var r;r?Kt(t,e+(r=i/2),n+r,r,o):lt(t,e,n,i,i,o)}function Vt(t,r,e,n,i,o,a,u,s,f,c,y,m,M,h){var d,l,v,p,b,g;s?(d=Math.floor(r+.5*n),l=Math.floor(u?f-c:f),v=Math.floor(y),p=Math.floor(c),b=Math.floor(d-M/2),g=Math.floor(u?l-M/2:l+p+M/2),W(t,d,l,d,l+p,o,v)):(d=Math.floor(u?f:f-c),l=Math.floor(e+.5*i),v=Math.floor(c),p=Math.floor(y),b=Math.floor(u?d+v+M/2:d-M/2),g=Math.floor(l-M/2),W(t,d,l,d+v,l,o,p)),m?Wt(t,r,e,n,i,b,g,M,s,u,o):s?Jt(t,h,b,u?g:g-=M,M,a):Jt(t,h,u?b-=M:b,g,M,a)}function Wt(t,r,e,n,i,o,a,u,s,f,c){t.save(),zt(t,r,e,n,i,o,a,u,s?f?0:2:f?1:3,c),t.restore()}function Ut(t,r,e,n,i,o,a,u,s,f,c,y,m,M){var h,d,f,o,l,h=4,d=void 0;t.save(),t.beginPath(),t.rect(r,e,n,i),t.clip(),t.font=s+gt,t.fillStyle=V,t.fillStyle="black",f?(t.textBaseline=Z,0<(d=s+(f=m<M?M:m)+o+4+M/2)?(t.textAlign=I,c?t.fillText(u,r+n/2+M/2,y-f/2):t.fillText(u,r+n/2+M/2,y+f/2)):(t.textAlign=G,c?t.fillText(u,r+n/2,y-f-M/2-s):t.fillText(u,r+n/2,y+f+M/2+4))):(t.textBaseline=tt,0<(d=(o=t.measureText(u).width)+m+a+4+M/2)?m+M/2<o?c?(t.textAlign=B,t.fillText(u,y-4,e+i/2)):(t.textAlign=I,t.fillText(u,y+M/2,e+i/2)):(t.textAlign=G,c?t.fillText(u,y+m/2,e+i/2+s):t.fillText(u,y-m/2,e+i/2+s)):c?(t.textAlign=I,t.fillText(u,l=y+m+M/2+4,e+i/2)):(t.textAlign=B,t.fillText(u,l=y-m-M/2-4,e+i/2))),t.restore()}function qt(t){return m.ft.rp(h(t))<127.5?k:V}function dt(t,r,e,n,i,o,a,u){var s,f,c,y,u,s=u;return nt(u)&&(s=i),u=a?(f=r+s+o,y=n-2*s,c=t+i,e-2*i):(f=t+s,y=e-2*s,c=r+i,n-2*i),{left:f,top:c,width:y,height:u}}function Yt(t,r){for(var e,n,i,e=0,n=0,i=t.length;n<i;n++)e+=r&&!r(t[n])?0:t[n];return e}function Xt(t){return t*rt/180}function Zt(t,r,e,n){for(var i,o,a,u,s,i=[],a=0,u=0,s=t.length;a<s;a++)r?(r(t[a])?i[u]=e?e(t[a]):t[a]:i[u]=0,u++):(o=ct(t[a]),!ft(o)&&isFinite(o)&&(i[u]=o,u++));return n&&n(i),i}function lt(t,r,e,n,i,o){var a=et(r+n),u=et(e+i);r=et(r),e=et(e),n=et(a-r),i=et(u-e),t.beginPath(),t.fillStyle=o,t.fillRect(r,e,n,i),t.fill()}function Qt(t,r,e){return t=ot(t,r),t=at(t,e)}function vt(t,r,e,n,i){t.save(),t.rect(r,e,n,i),t.clip()}function tr(t,r){var e,n,i,o;return t&&r&&(e=at(t.x+t.width,r.x+r.width),n=at(t.y+t.height,r.y+r.height),i=ot(t.x,r.x),o=ot(t.y,r.y),e-i<=t.width+r.width)&&n-o<=t.height+r.height}function rr(t,r,e,n,i,o){var a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,a=e+i/2,u=n+o/2,s=5,f=ot(i,o)/2-5,c=-.5*rt,m=a+f*N(c),M=u+f*x(c),h=[],d=[];if(!(f<=0)){for(p=er(v=(l=Zt(r.values,function(t){return!nt(t)&&!ft(t)&&isFinite(t)},function(t){return ut(t)},function(t){1===t.length&&(t[1]=1-t[0])})).length,r.colors),b=Yt(l),t.save(),g=0;g<v;g++)y=c+l[g]/b*2*rt,t.beginPath(),t.moveTo(a,u),t.lineTo(m,M),t.arc(a,u,f,c,y,!1),t.lineTo(a,u),t.fillStyle=p[g],t.fill(),h.push(m),d.push(M),m=a+f*N(c=y),M=u+f*x(c);for(g=0;g<v;g++)L(t,a,u,h[g],d[g],k);t.restore()}}function er(t,r){var e,n,i,o,a,u,s,f,e=[],n=r.length;if(t<=n)e=r.slice(0,t);else{for(0===n?(e.push("darkgray"),n=1):e=r.slice(0),i=[],a=t-n+1,u=o=void 0,u=0;u<n;u++)i[u]=h(e[u]);for(u=n;u<t;u++){for(s in o=i[u%n])o.hasOwnProperty(s)&&(f=o[s],o[s]=O(f-f/a*(u/n)));o.a=255,e[u]=m.ft.j(o)}}return e}function nr(t){var r=f.call(this,H(t.x,t.y))||this;return r.value=t.value,r}function ir(t,r,e){return{x:t,y:r,value:e}}function or(t){return isNaN(t)||t===1/0?0:t}function ar(e,t,r,n,i,o){var a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,F,_,w,t,s,t,D,H,N,k,$,S,x,P,C,A,O;if(e.save(),a=t.points,u=t.mini,s=t.maxi,f=t.line1,c=t.line2,y=t.colorPositive,m=t.colorNegative,M=5,a=Zt(a,function(t){return!nt(t)&&!ft(t)&&isFinite(t)}),y=nt(y)?"#787878":y,m=nt(m)?mt:m,t=Bt(a,!1),s=nt(s)?t:s,d=at(s,t),s=Bt(a,!0),u=nt(u)?s:u,h=ot(u,s),l=(l=(d=d<0?0:d)<(l=0)?d:0)<(h=0<h?0:h)?h-1:l,v=a.length,t=dt(r,n,i,o,5),p=t.left,b=t.top,g=t.width,F=t.height,_=or(g/(v-1)),D=[],w=or((d-h)/F))for($=k=void 0,S=b+or((d-l)/w),P=x=void 0,C=0;C<v;C++)k=a[C],x=p+_*C,P=b+or((d-k)/w),0===C&&D.push(new Pt(ir(x,S,l))),0<C&&k*a[C-1]<0&&(N=D[D.length-1])&&($=ur(N.x,N.y,x,P,S),D.push(new Pt(ir($,S,l)))),D.push(new Pt(ir(x,P,k))),C===v-1&&D.push(new Pt(ir(x,S,l)));for(e.beginPath(),A=0,O=D.length;A<O;A++)(H=D[A])&&(0===A?e.moveTo(H.x,H.y):e.lineTo(H.x,H.y),N=D[A-1],H.value===l)&&N&&(e.fillStyle=N.value>l?y:m,e.fill(),A!==O-1)&&(e.beginPath(),e.moveTo(H.x,H.y));function T(t){var t,r,t;t===it&&typeof t!==j||(t=Qt(t,d,h),t=et(b+(r=0!==w?(d-t)/w:F/2))-.5,L(e,p,t,p+g,t,J))}T(f),T(c),e.restore()}function ur(t,r,e,n,i){return((r-i)*e+(i-n)*t)/(r-n)}function sr(i,t,r,j,E,R){var e,n,I,B,G,L,o,a,u,s,f,c,z,y,K,m,M,J,V,h,d,l,v,p,b,g,F,_,W,U,q,F,w,D,H,N,k,$,S,x,P,t,C,A,O,T,t,e,n,r,e=t.points1,n=t.points2,I=t.minX,B=t.maxX,G=t.minY,L=t.maxY,o=t.hLine,a=t.vLine,u=t.xMinZone,s=t.xMaxZone,f=t.yMinZone,c=t.yMaxZone,z=t.tags,y=t.drawSymbol,K=t.drawLines,m=t.color1,M=t.color2,J=t.dash,V=4,t=dt(r,j,E,R,5),C=t.left,A=t.top,O=t.width,T=t.height;if(e&&!(e.length<=0)&&!((h=mr(e)).length<=0||n&&0<n.length&&(d=mr(n)).length<=0)){for(vt(i,r,j,E,R),i.beginPath(),y=!!nt(y)||y,m=nt(m)?pt:m,M=nt(M)?mt:M,X(h,G,L,I,B),!nt(u)&&!nt(s)&&!nt(f)&&!nt(c)&&p<=u&&u<=b&&p<=s&&s<=b&&l<=f&&f<=v&&l<=c&&c<=v&&(t=at(p,u),e=ot(b,s),n=at(l,f),r=ot(v,c),lt(i,C+(t-p)*O/(b-p),A+(v-(r=r<=n?n+1:r))*T/(v-l),((e=e<=t?t+1:e)-t)*O/(b-p),(r-n)*T/(v-l),Mt)),$=k=-yt,x=S=yt,_=h.length,g=0;g<_-1;g++)Y(h,g,m,Q),z&&(0===g&&($<D&&(k=w,$=D),D<x)&&(S=w,x=D),$<N&&(k=H,$=N),N<x)&&(S=H,x=N);if(d&&0<d.length)for(X(d,l,v,p,b),_=d.length,g=0;g<_-1;g++)Y(d,g,M,tt);z&&(Z(k,$,mt),Z(S,x,"#0000FF")),!nt(o)&&l<=o&&o<=v&&(P=et(A+(v-o)*T/(v-l))-.5,yr(i,C,P,C+O,P,mt)),!nt(a)&&p<=a&&a<=b&&(P=et(C+(a-p)*O/(b-p))-.5,yr(i,P,A,P,A+T,mt)),i.restore()}function Y(t,r,e,n){F=t[r],W=F.x,U=F.y,F=t[r+1],q=F.x,F=F.y,w=C+(W-p)*O/(b-p),H=C+(q-p)*O/(b-p),D=A+(v-U)*T/(v-l),N=A+(v-F)*T/(v-l),K&&yr(i,w,D,H,N,e,J),y&&(0===r&&n(w,D),n(H,N))}function X(t,r,e,n,i){var o,t,o=fr(t,!0),t=fr(t,!1);l=nt(G)?o.y:r,v=nt(L)?t.y:e,p=nt(I)?o.x:n,b=(b=nt(B)?t.x:i)<=p?p+1:b,v=v<=l?l+1:v}function Z(t,r,e){i.beginPath(),i.arc(t-2,r-2,2,0,2*rt,!1),i.fillStyle=e,i.fill()}function Q(t,r){i.beginPath(),i.strokeStyle=m,i.arc(t-2,r-2,2,0,2*rt,!1),i.stroke()}function tt(t,r){i.beginPath(),i.strokeStyle=M,i.strokeRect(t-2,r-2,4,4)}}function fr(t,r){for(var e,n,i,o,a,u,e=r?1:-1,n=r?ot:at,i=new D(H(e*yt,e*yt)),o=t.length,u=0;u<o;u++)a=t[u],i.x=n(i.x,a.x),i.y=n(i.y,a.y);return i}function cr(t,r,e,n){return e/n*(r-t)+t}function yr(t,r,e,n,i,o,a){var u,s,f,c,y,m,M,h,d,l,v,p,b,g,F,_,w;if(a){for(u=z(P(n-r,2)+P(i-e,2)),f=6,c=2,y=4,l=d=h=M=void(s=0),l=r<=n?(h=n,d=M=r,e):(h=r,d=M=n,i),p=e-(v=(i-e)/(n-r))*r,(m=[]).push(new D(H(d,l))),b=[6,4,2,4];s<u;)for(g=0,F=b.length;g<F;g++)(s+=b[g])<=u&&(d=cr(M,h,s,u),m.push(new D(H(d,l=v*d+p))));for(_=0,w=m.length;_<w-1;_+=2)L(t,m[_].x,m[_].y,m[_+1].x,m[_+1].y,o)}else L(t,r,e,n,i,o)}function mr(t){var r,e,n,i,o,r=[],e=t.length;if(0<e)if(e<(n=t[0].length)){if(2<=e)for(i=0;i<n;i++)r.push(new D(H(t[0][i],t[1][i])))}else if(2<=n)for(o=0;o<e;o++)r.push(new D(H(t[o][0],t[o][1])));return r}function Mr(a,t,u,s,f,c){var r,e,n,i,o,y,m,M,h,d,l,v,p,b,g,F,_,t,l,w,D,H,w,N,k,p,$,S,n,b,i,M,x,P,C,r=t.measure,e=t.target,n=t.maxi,i=t.good,o=t.bad,y=t.forecast,m=t.tickUnit,M=t.colorScheme,h=t.vertical,d=5,l=t.measureColor,v=t.targetColor,p=t.maxiColor,b=t.goodColor,g=t.badColor,F=t.forecastColor,_=t.allowMeasureOverMaxi,t=t.barSize;if(!(nt(n)||n<0)&&(nt(t)||!(ft(t)||t<=0))){if(1<t&&(t=1),r=nt(r)||r<0?0:r,i=nt(i)||i<0?0:i,o=nt(o)||o<0?0:o,e=nt(e)?0:e,y=nt(y)?0:y,m=nt(m)?0:m,M=nt(M)?"#A0A0A0":M,l=nt(l)?"#252525":l,n<r&&!_&&(r=n,l=mt),n<i&&(i=n,l=mt),n<o&&(o=n,l=mt),n<e&&(e=0,l=mt),n<y&&(y=n,l=mt),w=dt(u,s,f,c,5,c-10,h),D=w.left,H=w.width,a.save(),w=nt(t)?.2:(1-t)/2,N=nt(t)?.6:t,k=_?at(n,r):n,A(nt(p)?q(M,1.66):p,n,k,w,N),A(nt(b)?q(M,1.33):b,i,k,w,N),A(nt(g)?M:g,o,k,w,N),p=.25*t/.6,A(l,r,k,$=nt(t)?.375:(1-p)/2,S=nt(t)?.25:p),0<y&&(n=D,H<(b=H*(y/k))&&(b=H),i=nt(t)?3:3*t/.6,ht(a,h,u+.5*f,n,u+.5*f,n-b,n,s+.5*c,n+b,s+.5*c,nt(F)?"#3690BF":F,i)),0<e&&(M=et(D-(h?1:-1)*H*(e/k))-.5,ht(a,h,u+f*w,M,u+f*(1-w),M,M,s+c*w,M,s+c*(1-w),nt(v)?mt:v,1)),0<m)for(x=O(k/m),P=void 0,C=0;C<=x;C++)P=et(D-H/k*m*(h?1:-1)*C)-.5,ht(a,h,u,P,u+.05*f,P,P,s+c,P,s+.95*c,bt,1);a.restore()}function A(t,r,e,n,i){var o,t,r;a.fillStyle=t,H<(t=H*(r/e))&&!_&&(t=H),r=new xt(h?It(u+f*n,D-t,f*i,t):It(D,s+c*n,t,c*i)),a.fillRect(r.x,r.y,r.width,r.height)}}function hr(t,r,e,n,i,o){var a,u,s,f,c,y,m,M,r,h,r,h,d,l,v,p,b,g,F,_,w,D,H,N,k,N,$,S,x,P,C,a=r.spreadData,u=r.showAverage,s=r.scaleStart,f=r.scaleEnd,c=r.style,y=r.colorScheme,m=r.vertical,M=5,r=a.length;if(!(r<=0)){for(h=a[0].key,r=a[r-1].key,s=nt(s)?h:s,f=nt(f)?r:f,c=nt(c)?4:c,y=nt(y)?bt:y,d=(h=dt(e,n,i,o,5,o-10,m)).left,l=h.width,v=h.top,p=h.height,vt(t,e,n,i,o),t.beginPath(),t.strokeStyle=y,t.fillStyle=y,F=Bt(a,!(t.lineWidth=2)),w=0,D=a.length;w<D;w++)if(N=(H=a[w]).key,k=H.value,b=d+(m?-1:1)*l*(N-s)/(f-s),b=m?(b=ot(b,d),at(b,d-l)):(b=at(b,d),ot(b,d+l)),b=et(b),1===c)ht(t,m,N=v+p/2-(_=(_=k/2*p/F)<.5?.5:_),b,$=v+p/2+_,b,b,N,b,$);else if(4===c)ht(t,m,v,b,v+(_=(_=k*p/F)<1?1:_),b,b,v+p,b,v+p-_);else if(6===c)ht(t,m,v,b,v+p,b,b,v,b,v+p);else for(S=2,x=1;x<=k;x++){switch(c){case 2:g=v+p/2-5-(k/2-x)*p/F;break;case 3:g=v+p-5-(P=dr(k,p,3,H.randomNumbers))[x-1];break;default:g=v+p-x*p/F}g=et(g),t.beginPath(),t.fillRect(m?g:b,m?b:g,2,2)}u&&ht(t,m,v-5,b=d-(m?1:-1)*l*((C=lr(a))-s)/(f-s),v+p+5,b,b,v-5,b,v+p+5,mt),t.restore()}}function dr(t,r,e,n){for(var i,o,a,u,s,f,i=[],o=at(100,10*t),a=0,u=[],s=0;i.length<t;)f=O(n[s]*r),s++,(o<a||vr(f,u))&&(i.push(f),u.push([f-e,f+e])),a++;return i}function lr(t){for(var r,e,n,i,o,r=0,e=0,n=0,i=t.length;n<i;n++)e+=(o=t[n]).value,r+=o.key*o.value;return 0===e?0:r/e}function vr(t,r){for(var e,n,i,e=0,n=r.length;e<n;e++)if((i=r[e])[0]<=t&&t<=i[1])return;return 1}function pr(i,t,r,e,n,o,a){var u,s,f,c,y,m,M,h,d,l,j,v,p,b,E,g,t,t,F,_,w,D,H,N,k,$,S,x,N,P,C,A,O,u=t.points,s=u&&u.length,f=t.colorRange,c=t.labelRange,y=t.maximum,m=t.targetRed,M=t.targetGreen,h=t.targetBlue,d=t.targetYellow,l=t.color,j=t.highlightPosition,v=t.vertical,p=t.textOrientation,b=t.textSize,E=5;if(!(nt(u)||s<=0)){if(l=nt(l)?bt:l,nt(f)||f.length!==s||br(f))for(f=[],g=0;g<s;g++)f.push(q(l,1+g/s));for(t=Yt(u,function(t){return 0<t}),y=nt(y)||y<t?t:y,p=nt(p)?0:p,b=nt(b)||b<=0?10:b,b=ft(b)?b:b*a.zoomFactor,t=dt(r,e,n,o,5,o-10,v),F=t.left,_=t.width,w=t.top,D=t.height,i.save(),H=F,P=0,C=s;P<C;P++)(N=u[P])<=0||(N=N/y*_,x=v?(k=r+.15*n,S=.7*n,$=H-N,N):(k=H,S=N,$=e+.15*o,.7*o),A=P+1===j?mt:f[P],i.save(),i.fillStyle=A,i.fillRect(k,$,S,x),(O=c&&c[P])&&(i.save(),i.fillStyle=qt(A),i.textBaseline=tt,i.textAlign=G,i.font=b+gt,i.rect(k,$,S,x),i.clip(),1===p?(i.translate(k+S/2,$),i.rotate(Math.PI/2),i.fillText(O,x/2,0)):i.fillText(O,k+S/2,$+x/2),i.restore()),H+=(v?-1:1)*N,i.restore());T(X,m,function(t){return 0<t}),T(Y,M),T(J,h),T("yellow",d),i.restore()}function T(t,r,e){var n,e;r!==it&&r!==R&&(r=y<r?y:r,!e||e(r))&&(e=(r=r<0?0:r)/y*_,v?(n=et(F-e)-.5,L(i,w,n,w+D,n,t)):(n=et(F+e)-.5,L(i,n,w,n,w+D,t)))}}function br(t){for(var r=0,e=t.length;r<e;r++)if(nt(t[r]))return 1}function gr(t,r,e,n,i,o){L(t,c(r),c(e),c(n),c(i),nt(o)?V:o,1)}function Fr(e,n,i,t,r){var t,o,a,u,s,f,t=.4*t;switch(n=c(n),i=c(i),e.beginPath(),e.moveTo(n,i),o=t/2,a=z(3)*t/2,u=t/z(3),r){case 0:s=[-o,0,o],f=[a,u,a];break;case 2:s=[-o,0,o],f=[-a,-u,-a];break;case 3:s=[a,u,a],f=[-o,0,o];break;case 1:s=[-a,-u,-a],f=[-o,0,o];break;default:s=[],f=[]}s.forEach(function(t,r){e.lineTo(c(n+t),c(i+f[r]))}),e.lineTo(n,i),e.closePath(),e.fillStyle=k,e.fill()}function _r(t,r,e,n,i,o,a){var u,s,f,c,e,y,m,M,h,d,l,v,p,b,u,c,g,e,p,e,e,t,F,u=e.value,s=e.colorScheme,f=e.axisVisible,c=e.barHeight,e=e.barWidth,y=5,m=5,M=!1,u=ct(u);if(!ft(u)){if(nt(c=0===t?c:e))g=.7;else{if(ft(c)||c<=0)return;g=Math.min(1,c)}1<u?(u=1,M=!0):u<-1&&(u=-1,M=!0),s=nt(s)?"grey":s,f=!!nt(f)||f,r.save(),0===t?(e=o-10,p=a*g,p=0<=u?(M&&(h=new D(H(n+5+e-5,i+a/2))),d=new xt(It(n+5,i+a*(1-g)/2,e*u,p)),l=new D(H(n+5,i+1)),v=new D(H(n+5,i+a)),1):(e=ut(e*u),M&&(h=new D(H(n+5+5,i+a/2))),d=new xt(It(n+o-5-e,i+a*(1-g)/2,e,p)),l=new D(H(n+o-5,i+1)),v=new D(H(n+o-5,i+a)),3),b=nt(c)?a:a*g):1===t&&(e=a-10,t=o*g,v=0<=u?(d=new xt(It(n+(1-g)/2*o,i+a-5-(F=e*u),t,F)),M&&(h=new D(H(n+o/2,i+a-5-F+5)),p=0),l=new D(H(n+1,i+a-5)),new D(H(n+o,i+a-5))):(u=ut(u),d=new xt(It(n+(1-g)/2*o,i+5,t,e*u)),M&&(h=new D(H(n+o/2,i+5+e-5)),p=2),l=new D(H(n+1,i+5)),new D(H(n+o,i+5))),b=nt(c)?o:o*g),r.beginPath(),d&&(lt(r,d.x,d.y,d.width,d.height,s),vt(r,d.x,d.y,d.width,d.height)),h&&Fr(r,h.x,h.y,b,p),r.restore(),f&&l&&gr(r,l.x,l.y,v.x,v.y),r.restore()}}function c(t){return et(t)-.5}function wr(t,r,e,n,i,o){_r(0,t,r,e,n,i,o)}function Dr(t,r,e,n,i,o){_r(1,t,r,e,n,i,o)}function Hr(b,t,g,F,_,w,r){var e,n,i,o,a,u,D,s,f,H,N,c,y,m,k,$,e,j,E,S,R,M,h,x,r,t,d,d,d,t,P,C,y,y,l,v,p,s,e=t.variance,n=t.reference,i=t.mini,o=t.maxi,a=t.mark,u=t.tickUnit,D=t.legend,s=t.colorPositive,f=t.colorNegative,H=t.vertical,j=.5,E=.25,R=5,M=mt,h=pt,x=13*r.zoomFactor,r=ct(e);if(!(ft(r)||(f=nt(f)?X:f,s=nt(s)?Y:s,u=nt(u)?0:u,o=nt(o)?1:o,i=nt(i)?-1:i,(e=!nt(n))||(n=0),m=H?(N=F+w-5,c=w-10,y=_-20,-1):(N=g+5,c=_-10,y=w-20,1),D&&(t=ct(t.variance),ft(t)||(d=(d=t.toString()).substr(d.indexOf(".")+1).length,k=2<=d?(100*t).toFixed(d-2)+"%":(100*t).toFixed(0)+"%")),o<r&&(r=o,S=!0),r<i&&(r=i,S=!0),n=Qt(n,o,i),S&&($=Qt(y,60,15)),t=c/(d=ut(o-i)),P=N+m*ut(i-n)*t,(C=ut(r-n)*t)>ut(d)*t&&(C=ut(d+i)*t),y=N+m*c,H&&P<y)||!H&&y<P)){if(vt(b,g,F,_,w),n<r?A(s,0,5-c,c-5,0,1,F-P,Q,Z,P-g-_,I,B,-1,ut(o-r)*t):(C>ut(d)*t&&(C=ut(d+i)*t,P=N),A(f,1,-5,5,2,3,P-F-w,Z,Q,g-P,B,I,1,ut(i-r)*t)),e&&(y=N+m*(Math.abs(i-n)*t),T(g,y,g+_,y,y,F,y,F+w)),0<u)for(b.beginPath(),l=d/u,v=0;v<=l;v++)T(g,p=N+c/l*v*m,g+.1*_,p,p,F+.9*w,p,F+w,h,h);!nt(a)&&i<=a&&a<=o&&(b.beginPath(),s=N-(H?1:-1)*ut(i-a)*t,T(g,s,g+.33*_,s,s,F+.66*w,s,F+w,M,M),b.fill()),b.restore()}function A(t,r,e,n,i,o,a,u,s,f,c,y,m,M){var h,d,l,v,p,r;H?lt(b,h=g+.25*_,d=0===r?P-C:P,l=.5*_,v=C,t):lt(b,h=0===r?P:P-C,d=F+.25*w,l=C,v=.5*w,t),S&&(vt(b,h,d,l,v),H?Fr(b,g+_/2,N+e,$,i):Fr(b,N+n,F+w/2,$,o),b.restore()),D&&(p=void 0,r=0,S&&(r=.4*$*z(3)/2+5+2),b.save(),b.beginPath(),b.font=x+gt,b.fillStyle=V,H?(b.textAlign=G,O(p=x+C+a,M,t,u,s,h,d,l,v,H),b.fillText(k,g+_/2,P+m*(C-r))):(b.textBaseline=tt,O(p=b.measureText(k).width+C+f,M,t,c,y,h,d,l,v,H),b.fillText(k,P+m*(r-C),F+w/2)),b.restore())}function O(t,r,e,n,i,o,a,u,s,f){f?b.textBaseline=n:b.textAlign=n,0<t&&r<C&&(b.rect(o,a,u,s),b.clip(),f?b.textBaseline=i:b.textAlign=i,b.fillStyle=qt(e))}function T(t,r,e,n,i,o,a,u,s,f){H?gr(b,t,r,e,n,s):gr(b,i,o,a,u,f)}}function Nr(t,r,e,n,i,o,j){var a,u,s,f,c,y,m,M,E,h,d,l,r,v,p,b,g,R,F,I,b,p,_,w,B,G,L,D,z,H,K,N,k,J,w,$,S,k,N,x,P,C,A,O,T,a=r.plannedValue,u=r.actualValue,s=r.index,f=r.absolute,c=r.reference,y=r.mini,m=r.maxi,M=r.tickUnit,E=r.legend,h=r.colorPositive,d=r.colorNegative,l=r.lollipopHeaderColor,r=r.vertical,I=[],w="",B=.9,G=10,L=13*j.zoomFactor,D=Mt,z=!1;if(!(0===a.length||0===u.length||s<0||s>=a.length||s>=u.length||m<=y||ft(u[s])||ft(a[s]))){if(d=nt(d)?X:d,h=nt(h)?Y:h,M=nt(M)?0:M,f=!nt(f)&&f,R=!nt(c),l=nt(l)?V:l,f){for(H=0;H<a.length&&H<u.length;H++)I.push(u[H]-a[H]);m=Bt(I,!1),y=Bt(I,!0),0<m&&0<y?y=0:m<0&&y<0&&(m=0),F=I[s],R=!(c=0)}else m=nt(m)?1:m,y=nt(y)?-1:y,F=(u[s]-a[s])/Math.abs(a[s]),((c=Qt(c,m,y))===m&&c<F||c===y&&F<c)&&(z=!0),nt(a[s])&&(z=!0);if(R||(c=0),b=r?(v=n+o-10,p=o-20,-1):(v=e+10,p=i-20,1),!f&&E?(0<(N=ct((K=F-c).toString()))&&(w="+"),!ft(N)&&isFinite(N)?g=w+(g=2<=(J=(k=N.toString()).substr(k.indexOf(".")+1).length)?(100*N).toFixed(2)+"%":100*N+"%"):isFinite(N)||(g=w+N)):g=(w=0<F?"+":w)+(g=2<=(J=(k=(N=ct(F)).toString()).substr(k.indexOf(".")+1).length)?N.toFixed(2):N),f?_=!1:(m<F&&(F=m,_=!0),F<y&&(F=y,_=!0)),$=p/(w=ut(m-y)),S=v+b*ut(y-c)*$,(k=ut(F-c)*$*.9)>ut(w)*$&&(k=ut(w+y)*$),N=v+b*p,!(r&&S<N||!r&&N<S))if(f||0!==a[s]&&!z){if(vt(t,e,n,i,o),x=ut(Math.ceil((m-c)/M)),P=ut(Math.floor((c-y)/M)),f){if(5/$<M)if(r){for(A=1;A<=x;A++)W(t,e,O=S+M*$*A*-1*.9,e+i,O,D,1);for(A=1;A<=P;A++)W(t,e,O=S+M*$*A*1*.9,e+i,O,D,1)}else{for(A=1;A<=x;A++)W(t,T=S+M*$*A*1*.9,n,T,n+o,D,1);for(A=1;A<=P;A++)W(t,T=S+M*$*A*-1*.9,n,T,n+o,D,1)}}else if(0<M&&M<=m&&5/$<M)if(t.beginPath(),r){for(C=10<.1*i?10:.1*i,A=1;A<=x;A++)W(t,e,O=S+M*$*A*-1*.9,e+C,O,D,1);for(A=1;A<=P;A++)W(t,e,O=S+M*$*A*1*.9,e+C,O,D,1)}else{for(C=10<.1*o?10:.1*o,A=1;A<=x;A++)W(t,T=S+M*$*A*1*.9,n+o-C,T,n+o,D,1);for(A=1;A<=P;A++)W(t,T=S+M*$*A*-1*.9,n+o-C,T,n+o,D,1)}b=Math.floor(12*j.zoomFactor),(p=Math.floor(4*j.zoomFactor))%2!=0&&(p+=1),b%2!=0&&(b+=1),c<F?Vt(t,e,n,i,o,h,l,!0,r,S,k,p,_,b,f):(k>ut(w)*$&&(k=ut(w+y)*$,S=v),Vt(t,e,n,i,o,d,l,!1,r,S,k,p,_,b,f)),E&&(c<F?Ut(t,e,n,i,o,n-S,S-e-i,g,L,r,!0,S,k,b):Ut(t,e,n,i,o,S-n-o,e-S,g,L,r,!1,S,k,b)),R&&(r?W(t,e,S,e+i,S,V,2):W(t,S,n,S,n+o,V,2)),t.restore()}else r?W(t,e,S,e+i,S,V,2):W(t,S,n,S,n+o,V,2)}}function kr(f,t,j,E,R,r){var e,n,I,i,o,a,u,s,c,y,B,m,M,h,d,i,o,a,u,l,v,p,b,g,G,j,E,R,r,L,F,_,w,z,K,J,V,D,H,N,k,$,S,x,W,U,P,C,P,C,P,q,i,o,u,Y,X,Z,A,i,o,O,T,Q,u,t,t,tt,e=t.points,n=t.boxPlotClass,I=t.showAverage,i=t.scaleStart,o=t.scaleEnd,a=t.acceptableStart,u=t.acceptableEnd,s=t.style,c=t.colorScheme,y=t.vertical,B=5,m=Bt(e,!1),M=Bt(e,!0);if(!(nt(e)||(e=Zt(e)).length<=0)){for((n=n===it||typeof n!==st?At:n.toLocaleLowerCase())!==At&&n!==Ct&&n!==Ot&&n!==Tt&&n!==jt&&(n=At),h=ct(i),h=ft(h)?M:h,d=ct(o),d=ft(d)?m:d,i=ct(a),o=ct(u),c!==it&&typeof c===st||(c="#D2D2D2"),(s===it||0!==s&&1!==s)&&(s=0),a=mt,M<h&&(c=a,h=M),d<m&&(c=a,d=m),vt(f,j,E,R,r),f.lineWidth=2,l=(u=dt(j,E,R,r,5,r-10,y)).left,v=u.width,p=u.top,b=u.height,g=y?-1:1,G=t.perc02,j=t.perc09,E=t.perc10,R=t.perc90,r=t.perc91,L=t.perc98,F=t.q1,z=M,K=m,V=J=1.5*(w=(_=t.q3)-F),D=t.stDev,H=Yt(e)/at(1,e.length),k=N=0,$=p+.1*b,S=.7*b,x=ut(d-h),W=0,U=e.length;W<U;W++)(P=e[W])<F&&F-1.5*w<=P&&P-(F-1.5*w)<J&&(J=P-(F-1.5*w),z=P),_<P&&P<=_+1.5*w&&_+1.5*w-P<V&&(V=_+1.5*w-P,K=P),C=!1,N=l+v*((P-h)/x)*g,n===Ot&&(P<=F-1.5*w||_+1.5*w<=P)&&(C=!0,k=P<=F-3*w||_+3*w<=P?0:1),n===Ct&&(P<=G||L<=P)&&(C=!0,k=1),n===jt&&(P<=H-2*D||H+2*D<=P)&&(C=!0,k=P<=H-3*D||H+3*D<=P?0:1),P=pt,C&&(1===s?1===k?et(.2,.8,N,P):et(.3,.7,N,P):((C=.1*b)<2&&(C=2),f.beginPath(),f.strokeStyle=P,P=p+.45*b,q=N,f.arc(y?P:q,y?q:P,C/2,0,2*Math.PI),f.stroke()));switch((i<h||d<o)&&(c="#C0FF00"),i=at(h,i),(o=ot(d,o))<i?c=a:i<o&&ht(f,y,u=p+.9*b,i=l+v*((i-h)/x)*g,u,o=l+v*((o-h)/x)*g,i,u,o,u,bt),X=ut(l+v*((_-h)/x)*g-(Y=l+v*((F-h)/x)*g)),A=l+v*(((Z=t.median)-h)/x)*g,n){case Ct:O=G,T=L;break;case Ot:O=z,T=K;break;case jt:X=ut(l+v*((H+D-h)/x)*g-(Y=l+v*((H-D-h)/x)*g)),A=l+v*((H-h)/x)*g,O=h<(Q=H-2*D)?Q:M,T=(Q=H+2*D)<d?Q:m,I=!1;break;default:O=M,T=m}i=l+v*((O-h)/x)*g,o=l+v*((T-h)/x)*g,u=pt,1===s?rt("#F2F2F2",$,o,S,i-o,i,$,o-i,S):ht(f,y,t=p+.45*b,i,t,o,i,t,o,t,u),rt(c,$,Y-X,S,X,Y,$,X,S),ht(f,y,$,A,$+S,A,A,$,A,$+S,u),0===s&&(ht(f,y,$+.3*S,o,$+.7*S,o,o,$+.3*S,o,$+.7*S,u),ht(f,y,$+.3*S,i,$+.7*S,i,i,$+.3*S,i,$+.7*S,u)),n!==Ct&&n!==Tt||(tt=t=void 0,T=n===Ct?(O=j,r):(O=E,R),t=l+v*((O-h)/x)*g,et(.3,.7,tt=l+v*((T-h)/x)*g,u),et(.3,.7,t,u)),I&&et(.2,.8,N=l+v*((H-h)/x)*g,a),f.restore()}function rt(t,r,e,n,i,o,a,u,s){y?lt(f,r,e,n,i,t):lt(f,o,a,u,s,t)}function et(t,r,e,n){ht(f,y,$+S*t,e,$+S*r,e,e,$+S*t,e,$+S*r,n)}}function $r(t,r,e,n,i){r=et(r),e=et(e),r===(n=et(n))&&(r=n-=.5),e===(i=et(i))&&(e=i-=.5),t.moveTo(r,e),t.lineTo(n,i)}function U(t,r,e,n,i,o,a,u,s,f,c){t.beginPath(),t.strokeStyle=e,r?$r(t,n,i,o,a):$r(t,u,s,f,c),t.stroke()}function Sr(t,r,e,n,i){t.rect(r,e,n,i),t.clip()}function xr(t,r,e,n,i,o){var a,u,s,f,c,y,m,M,h,d,l,v,p,o,a=o.labelText,u=o.fontSize,s=o.startBox,f=o.endBox,c=o.boxColor,y=o.isInRightOrTopOfBox,m=o.fillStyle;t.save(),t.beginPath(),t.font=u+gt,l=1,m=nt(m)?V:m,o.vertical?(v=G,y?0<(M=u+f-(s-e))&&s-f-e<f?(p=Z,m=qt(c),d=s-f+1,Sr(t,r,s-f,n,f)):(p=Q,d=s-f-1):d=0<(M=u-(e+i-s))&&e+i-s<f?(Sr(t,r,s-f,n,f),p=Q,m=qt(c),s-1):(p=Z,s+1),t.textAlign=v,t.textBaseline=p,t.fillStyle=m,t.fillText(a,r+n/2,d)):(p=tt,o=t.measureText(a),y?h=0<(M=o.width+f-(r+n-s))&&r+n-(s+f)<f?(Sr(t,s,e,f,i),v=B,m=qt(c),s+f-1):(v=I,s+f+1):0<(M=o.width-(s-r))&&s-r<f?(Sr(t,s,e,f,i),h=s+1,v=I,m=qt(c)):(v=B,h=s-1),t.textAlign=v,t.textBaseline=p,t.fillStyle=m,t.fillText(a,h,e+i/2)),t.restore()}function Pr(t,r,e,n,i,o,j){var a,u,E,s,f,c,y,m,R,r,I,j,M,h,E,c,y,B,d,l,v,p,b,g,F,_,w,D,G,H,L,N,k,z,$,K,S,x,s,f,f,s,P,C,f,A,J,P,x,S,O,A,x,$,T,O,T,r,O,a=r.points,u=r.labels,E=r.pointIndex,s=r.minimum,f=r.maximum,c=r.colorPositive,y=r.colorNegative,m=r.vertical,R=r.itemTypeRange,r=r.colorTotal,I=5,j=13*j.zoomFactor;if(!nt(a)&&!((M=a.length)<=0||(h=parseInt(E,10),ft(h))||h<=0||M<h)){for(u=nt(u)?[]:u,y!==it&&typeof y===st||(y="#D6604D"),typeof r!==st&&(r=it),c=q(E=c=c!==it&&typeof c===st?c:"#8CBF64",1.3),B=q(y=y,1.3),d=1,g=[],D=_=F=b=p=v=l=0,G=M;D<G;D++)_=a[D],w=R[D],H=!1,L=1===d,(N=!nt(w))&&(w===_t?_=ut(_):w===Ft?_=-ut(_):w===wt?(H=!0,L?l=_:_=l):N=!1),g[d]=[],k=g[d],ft(_)?(k[0]=0,k[1]=l,k[2]=0):(k[0]=ut(_),l=H?l:_+l,k[1]=0<_?v:l,k[2]=_),k[3]=d,p=ot(v,p),b=at(v,b),((z=d===M)&&!N||H)&&(F=p<0?-p:0,k[1]=0<_?0:_),N&&H&&!L||(v=_+v,z&&N&&(p=ot(v,p),b=at(v,b))),d++;$=!1,nt(w)||($=-1===(K=[Ft,_t,wt]).indexOf(w)),(nt(w)||$)&&(l-=_),s=ct(s),ft(s)||0<s||p<s?s=S=p:F=-(S=s),f=ct(f),ft(f)||f<0||f<b?x=b:(x=f,F=-s),s=(f=dt(e,n,i,o,5,o-10,m)).left,P=f.width,C=f.top,f=f.height,A=m?-1:1,P=P/(J=x-S),vt(t,e,n,i,o),t.beginPath(),t.lineWidth=1,S=(x=g[h])[2],O=R[h-1],A=s+A*(x[1]+F)*P,x=x[0]*P,T=O===wt,O=(nt(O)||$)&&h===M||T,$=r&&O?r:1===h||O?0<=S?E:y:0<=S?c:B,m?lt(t,C,A-x,f,x,$):lt(t,A,C,x,f,$),m?(1!==h&&(h!==M?U(t,0<S,Mt,e,A,C+f,A,e,A-x,C+f,A-x):U(t,!0,Mt,e,T=s-(l+F)*P,C+f,T)),h!==M&&U(t,0<S,Mt,C,A-x,e+i,A-x,C,A,e+i,A)):(1!==h&&(h!==M?U(t,0<S,Mt,A,n,A,C+f,A+x,n,A+x,C+f):U(t,!0,Mt,r=s+(l+F)*P,n,r,C+f)),h!==M&&U(t,0<S,Mt,A+x,C,A+x,n+o,A,C,A,n+o)),O=u[h-1],0<u.length&&!nt(O)&&""!==O&&xr(t,e,n,i,o,{labelText:O,vertical:m,isInRightOrTopOfBox:0<S,fontSize:j,startBox:A,endBox:x,boxColor:$}),U(t,m,V,e,s-F*P,e+i,s-F*P,s+F*P,n,s+F*P,n+o),t.restore()}}function Cr(e,t,n,i,o,a,r){var u,s,f,c,y,m,M,h,r,d,l,v,t,p,b,s,g,F,_,w,D,H,N,p,j,M,k,$,t,p,S,M,x,P,C,A,m,O,f,T,u=t.points,s=t.pointIndex,f=t.colorRange,c=t.target,y=t.target2,m=t.highlightPosition,M=t.label,h=t.vertical,r=13*r.zoomFactor,d=t.targetColor,l=t.target2Color,v=t.labelColor,t=t.barSize;if(!nt(u)&&(nt(t)||!(ft(t)||t<=0))&&(1<t&&(t=1),!((p=u.length)<=0||(b=parseInt(s,10),ft(b))||b<=0||p<b))){for(f=nt(f)?[]:f,s=parseInt(M,10),s=ft(s)?0:s,g=1,_=[],w=F=0,D=u.length;w<D;w++)H=u[w],_[g]=[],N=_[g],H<0||ft(H)||nt(H)?(N[0]=1===g?0:F,N[1]=0):(F+=H,N[0]=1===g?0:F-H,N[1]=H),g++;j=5,p=nt(t)?5:h?o*(1-t)/2:a*(1-t)/2,M=dt(n,i,o,a,p,a-10,h,5),k=M.left,$=M.width,t=M.top,p=M.height,S=h?-1:1,M=$/F,vt(e,n,i,o,a),e.beginPath(),e.lineWidth=1,P=(x=_[b])[1],C=k+S*x[0]*M,A=x[1]*M,m=b===m?mt:0===f.length||typeof f[b-1]!==st?pt:f[b-1],h?lt(e,t,C-A,p,A,m):lt(e,C,t,A,p,m),1===s?O=(x[0]+P)/F*1e3:2===s&&(O=P/F*1e3),f=et(O)/10+"%",1!==s&&2!==s||!f||xr(e,n,i,o,a,{labelText:f,vertical:h,isInRightOrTopOfBox:(x[0]+x[1])*M<$/2,fontSize:r,startBox:C,endBox:A,boxColor:m,fillStyle:v}),T=[nt(d)?"#8CBF64":d,nt(l)?"#EE5D5D":l],[c,y].forEach(function(t,r){var t,t,t=E(t),t=K(k+S*$*t);U(e,h,T[r],n,t,n+o,t,t,i,t,i+a)}),e.restore()}function E(t){var t=ct(t),t;return t=1<(t=(t=ft(t)?0:t)<0?0:t)?1:t}}function Ar(t,r){switch(r){case 2:var e;return t%4==0&&t%100!=0||t%400==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function Or(t,r,e){var r,e,n,i,o,r;return 1<(t=t<0?0:t)&&(t=1),r=h(r),e=h(e),n=r.a*(1-t)+e.a*t,i=r.r*(1-t)+e.r*t+"",o=r.g*(1-t)+e.g*t+"",r=r.b*(1-t)+e.b*t+"","rgba("+parseInt(i,10)+","+parseInt(o,10)+","+parseInt(r,10)+","+ct(n/255+"")+")"}function Tr(t,r,e){return t===r&&t===e?1:t<=r?0:e<=t?1:(t-r)/(e-r)}function jr(t,r,e,n,i,o){var a=(o+i)/2;return i<=n&&n<=a?Or(Tr(n,i,a),t,r):Or(Tr(n,a,o),r,e)}function Er(t){var r=yt,e=-yt;return t.forEach(function(t){t!==it&&t!==R&&(t<r&&(r=t),e<t)&&(e=t)}),{min:r,max:e}}function Rr(t,e,n,i,o,a,u){var r,s,f;i?t.forEach(function(t,r){0!==t&&t!==it&&t!==R&&(e[n+r]=i[r]||e[n+r])}):(r=Er(t),s=r.min,f=r.max,t.forEach(function(t,r){0!==t&&t!==it&&t!==R&&(e[n+r]=jr(o,a,u,t,s,f))}))}function Ir(t,r,e,n,i,o){for(var a,u,s,f,c,y,m,M,h,d,l,v,p,b,g,F,_,w,D,a=r.year,u=r.month,s=r.values,f=r.emptyColor||"lightgray",c=r.startColor,y=r.middleColor,m=r.endColor,M="white",h=6,d=7,l=2,v=(i-14)/6,p=(o-16)/7,b=[],g=new Date(a,u-1,1).getDay(),F=0;F<42;F++)!(F<g)&&F<g+Ar(a,u)?b[F]=f:b[F]=M;for(Rr(s,b,g,r.colors,c,y,m),t.save(),t.rect(e,n,i,o),t.clip(),t.beginPath(),w=_=0;w<6;w++)for(D=0;D<7;D++)t.fillStyle=b[_],_++,t.fillRect(e+w*v+2*(w+1),n+D*p+2*(D+1),v,p);t.restore()}function Br(t){for(var r,e,n,i,r=t.getFullYear(),e=t.getMonth(),n=t.getDate(),i=1;i<e+1;i++)n+=Ar(r,i);return n}function Gr(t,r,e,n,i,o,a){for(var u,s,f,c,y,m,M,j,h,d,l,v,p,s,r,b,g,c,y,E,F,_,w,D,H,N,k,$,S,x,P,C,A,A,O,T,u=r.year,s=r.values,f=r.emptyColor||"lightgray",c=r.startColor,y=r.middleColor,m=r.endColor,M="white",j=7,h=parseInt(366/7+"",10)+2,d=[],l=new Date(u,0,1).getDay(),v=Br(new Date(u,11,31)),p=0;p<7*h;p++)d[p]=!(p<l)&&p<l+v?f:M;for(Rr(s,d,l,r.colors,c,y,m),t.save(),t.rect(e,n,i,o),t.clip(),b=e+(r=15*(s=a.zoomFactor)),g=n,c=i-r,y=o,t.save(),t.translate(e+r/2,g+y),t.rotate(-Math.PI/2),t.font=13*s+gt,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(u+"",y/2,0),t.restore(),F=(c-(E=2)*(h+1))/h,_=(y-16)/7,k=[],H=w=0;H<h;H++)for(D=0;D<7;D++)k[w]=N={x:b+H*F+2*(H+1),y:g+D*_+2*(D+1),w:F,h:_},t.fillStyle=d[w],w++,t.fillRect(N.x,N.y,N.w,N.h);for($=[],S={},x=0;x<12;x++)S[x]=Br(new Date(u,x,1))-1+l;for(P=S[11]+Ar(u,12)-1,H=w=0;H<h;H++)for(D=0;D<7;D++)l<=w&&w<l+v&&(A=(C=new Date(u,0,w-l+1)).getMonth(),N=k[w],(A=S[A])<=w&&w<7+A&&$.push({x1:N.x,y1:N.y-1,x2:N.x,y2:N.y+N.h+1}),w!==A&&0!==C.getDay()||$.push({x1:N.x-1,y1:N.y,x2:N.x+N.w+1+(w===A?2:0),y2:N.y}),P-7<w&&w<=P&&$.push({x1:N.x+N.w,y1:N.y-1,x2:N.x+N.w,y2:N.y+N.h+1}),w!==P&&6!==C.getDay()||$.push({x1:N.x-1-(w===P?2:0),y1:N.y+N.h,x2:N.x+N.w+1,y2:N.y+N.h})),w++;for(t.strokeStyle="black",t.lineWidth=2,O=0;O<$.length;O++)T=$[O],t.beginPath(),t.moveTo(T.x1,T.y1),t.lineTo(T.x2,T.y2),t.stroke();t.restore()}function Lr(t){var r,e,n,i,o,a,u,s,f,c,r=Xt(t.minAngle-90),e=Xt(t.maxAngle-90),n=t.minValueOption.value,i=t.maxValueOption.value,o=t.ranges,a=l,u=(e-r)/(i-n),s=[];return 0<o.length&&o.forEach(function(t){f=t.start,c=t.end,s.push({start:u*(f-n)+r,end:u*(c-n)+r,color:t.color})}),s.unshift({start:r,end:e,color:a}),{paintRanges:s,fillColor:a,targetValueRadian:u*(t.targetValueOption.value-n)+r,currentValueRadian:u*(t.currentValueOption.value-n)+r,minValueRadian:r,maxValueRadian:e}}function zr(t,r,e,n,i,o,a){var o,u,s,f,c,y,o,m,c,M,h,d,l,v,y,p,a,o=o.zoomFactor,u=t.currentValueOption.normalFontHeight*o,s=t.minValueOption.normalFontHeight*o,f=t.maxValueOption.normalFontHeight*o,c=t.minAngle,y=t.maxAngle,o=t.currentValueOption.normalFontWidth*o,m=90<ut(c)||90<ut(y),c=120<ut(c)||120<ut(y),y=F*ot(n,i);return a?(M=O(n/2*g),h=O(i*g),a=.03*(l=ot(M,d=m?h/2:h)),v={x:r+n/2,y:e+i/2+(m?0:l/2),outerRadius:l,innerRadius:l*t.radiusRatio,currentValuePoint:R,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:s<(p=(i-(m?2*l:l))/2),enoughShowMaxLabel:f<p,moreThanSemiCircle:m},m?c?2*u/3<p-a-at(f,s)&&o<n-2*y&&(v.currentValuePoint={x:v.x,y:v.y+l+a+u/2+at(f,s)},v.enoughShowCurrentLabel=!0):2*u/3<i/2-a&&o<n-2*y&&(v.currentValuePoint={x:v.x,y:v.y+2*a+u},v.enoughShowCurrentLabel=!0):u<p-a&&o<n-2*y&&(v.currentValuePoint={x:v.x,y:v.y+u},v.enoughShowCurrentLabel=!0)):(M=O(n/2*b),h=O(i*b),l=ot(M,d=m?h/2:h),v={x:r+n/2,y:e+i/2+(m?0:l/2),outerRadius:l,innerRadius:l*t.radiusRatio}),v}function Kr(t,r,e,n){return{x:t+N(e)*n,y:r+x(e)*n}}function Jr(t,r){return ut(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:G}:r.x>t.x?{x:r.x+a,y:r.y,textAlign:I}:r.x<t.x?{x:r.x-a,y:r.y,textAlign:B}:{x:r.x,y:r.y,textAlign:I}}function Vr(r,t,e,n,i,o,a){var u,s,e,n,f,c,a,y,m,M,h,d,h,l,h,h,s,v,p,b,g,F,_,w,D,H,a,_,F,b,a,v,_,g,F,p,w,b,u=a.zoomFactor,s=!!nt(t.showLabel)||t.showLabel,e=zr(t,e,n,i,o,a,s);if(!(e.outerRadius<=0))return n={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=e.innerRadius,c=e.outerRadius,a=e.currentValuePoint,y=e.moreThanSemiCircle,m={x:e.x,y:e.y},h=(M=Lr(t)).paintRanges,d=M.fillColor,r.save(),h.forEach(function(t){r.beginPath(),r.strokeStyle=k,r.moveTo(m.x,m.y),r.fillStyle=t.color||d,r.arc(m.x,m.y,c,t.start,t.end,!1),r.lineTo(m.x,m.y),r.closePath(),r.fill(),r.stroke(),r.beginPath(),r.fillStyle=k,r.strokeStyle=k,r.moveTo(m.x,m.y),r.arc(m.x,m.y,f,t.start-St,t.end+St,!1),r.lineTo(m.x,m.y),r.closePath(),r.fill(),r.stroke()}),r.beginPath(),r.moveTo(m.x,m.y),r.fillStyle=V,r.arc(m.x,m.y,c*A,0,2*rt,!1),r.fill(),h=Kr(m.x,m.y,M.targetValueRadian,f),l=Kr(m.x,m.y,M.targetValueRadian,c*E),Lt(r,h.x,h.y,l.x,l.y,Ht,Nt,$),h=Kr(m.x,m.y,M.currentValueRadian,c*E),L(r,m.x,m.y,h.x,h.y,V,T*c),s&&(r.save(),r.beginPath(),r.textAlign=C,r.fillStyle=$,h=t.minValueOption.normalFontHeight*u,s=t.maxValueOption.normalFontHeight*u,v=t.minValueOption.normalFontWidth*u,p=t.maxValueOption.normalFontWidth*u,b=M.minValueRadian,g=M.maxValueRadian,F=t.currentValueOption.normalFontHeight*u,_=t.currentValueOption.normalFontWidth*u,H=D=w=void 0,e.enoughShowCurrentLabel&&(S(r,a.x,a.y,t.currentValueOption.label,t.currentValueOption.fontAfterZoom,G),n.showCurrentLabel=!0,w={x:a.x-_/2,y:a.y-F,width:_,height:F}),e.enoughShowMinLabel&&ut(N(b)*c)+v<i/2-$t&&(a=Kr(m.x,m.y,M.minValueRadian,c),tr(D={x:(_=Jr(m,a)).x-v,y:_.y,width:v,height:h},w)||(S(r,_.x,_.y+O(h),t.minValueOption.label,t.minValueOption.fontAfterZoom,B),n.showMinLabel=!0)),e.enoughShowMaxLabel&&ut(N(g)*c)+p<i/2-$t&&(F=Kr(m.x,m.y,M.maxValueRadian,c),tr(H={x:(b=Jr(m,F)).x,y:b.y,width:p,height:s},w)||(S(r,b.x,b.y+O(s),t.maxValueOption.label,t.maxValueOption.fontAfterZoom,I),n.showMaxLabel=!0)),e.enoughShowTargetLabel&&(a=t.targetValueOption.normalFontWidth*u,v=t.targetValueOption.normalFontHeight*u,_=t.targetValueOption.label,l=Kr(m.x,m.y,M.targetValueRadian,g=c+3*v/2),F=Jr(m,l),p=M.targetValueRadian,w=y?(o-2*g)/2+g:o-(o-c)/2,ut(N(p)*g)+a<i/2-$t)&&ut(x(p)*g)+v/2+$t/2<w&&(b=at(h,s)/2,S(r,F.x,F.y-(rt<p?b:-b),_,t.targetValueOption.fontAfterZoom,F.textAlign),n.showTargetLabel=!0),r.restore()),r.restore(),n}function Wr(t,r,e,n,i,o){var o,a,u,s,f,c,y,m,M,t,h,d,o,r,o=o.zoomFactor,a=t.showLabel,u=t.minValueOption.normalFontHeight*o,s=t.maxValueOption.normalFontHeight*o,f=t.targetValueOption.normalFontHeight*o,c=t.currentValueOption.normalFontHeight*o,y=t.minValueOption.normalFontWidth*o,m=t.maxValueOption.normalFontWidth*o,M=t.targetValueOption.normalFontWidth*o,t=t.currentValueOption.normalFontWidth*o,o=.05*n,h=O(i*v),d=O(n*p),r={x:r+n*(1-p)/2,y:e+i*(v+(1-v)/2),graphWidth:d,graphHeight:h,targetValuePoint:R,currentValuePoint:R,minValuePoint:R,maxValuePoint:R};return a&&(u<(i-h)/2&&y<(n-d)/2-o&&(r.minValuePoint={x:r.x-y,y:r.y+u/3},r.enoughShowMinLabel=!0),s<(i-h)/2&&m<(n-d)/2-o&&(r.maxValuePoint={x:r.x-m,y:r.y-h+s/3},r.enoughShowMaxLabel=!0),(f<(i-h)/2||f/2<h)&&M<(n-d)/2-o-at(y,m)&&(r.targetValuePoint={x:r.x-M-at(y,m),y:R},r.enoughShowTargetLabel=!0),c<(i-h)/2||c/2<h)&&t<(n-d)/2-o&&(r.currentValuePoint={x:r.x+d+o,y:R},r.enoughShowCurrentLabel=!0),r}function Ur(t,r){var e,n,i,o,a,u,s,f,e=t.minValueOption.value,n=t.maxValueOption.value,i=t.ranges,o=l,a=r.graphHeight/(n-e),u=[];return 0<i.length&&i.forEach(function(t){s=t.start,f=t.end,u.push({start:r.y-a*(s-e),height:a*(f-s),color:t.color})}),u.unshift({start:r.y,height:r.graphHeight,color:o}),{paintRanges:u,fillColor:o,targetValueY:r.y-a*(t.targetValueOption.value-e),currentValueY:r.y-a*(t.currentValueOption.value-e)}}function qr(r,t,e,n,i,o,a){var u,s,f,c,y,m,e,M,i,a,h,d,l,v,p,t,b,g,F,_,w,u=a.zoomFactor,s=t.showLabel,f=t.minValueOption,c=t.maxValueOption,y=t.currentValueOption,m=t.targetValueOption,e=Wr(t,e,n,i,o,a),M=e.graphWidth,i=e.graphHeight;if(!(M<=0||i<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=e.currentValuePoint,d=e.targetValuePoint,l=e.minValuePoint,v=e.maxValuePoint,p={x:e.x,y:e.y},b=(t=Ur(t,e)).paintRanges,g=y.normalFontHeight*u,F=m.normalFontHeight*u,_=t.targetValueY,w=t.currentValueY,r.save(),b.forEach(function(t){lt(r,p.x,t.start,M,-t.height,t.color)}),Lt(r,p.x-(E-1)*M,_,p.x+M,_,Ht,Nt,$),L(r,p.x,w,p.x+M*E,w,V,Dt*i),s&&(r.save(),r.beginPath(),e.enoughShowMinLabel&&(S(r,l.x,l.y,f.label,f.fontAfterZoom,I,$),a.showMinLabel=!0),e.enoughShowMaxLabel&&(S(r,v.x,v.y,c.label,c.fontAfterZoom,I,$),a.showMaxLabel=!0),e.enoughShowTargetLabel&&!(o<_-n+F/2||_-n-kt<0)&&(S(r,d.x,t.targetValueY+m.normalFontHeight*u/3,m.label,m.fontAfterZoom,I,$),a.showTargetLabel=!0),e.enoughShowCurrentLabel&&!(o<w-n+g/2||w-n-kt<0)&&(S(r,h.x,t.currentValueY+y.normalFontHeight*u/3,y.label,y.fontAfterZoom,I,$),a.showCurrentLabel=!0),r.restore()),r.restore(),a}function Yr(t,r,e,n,i,o){var o,a,u,s,f,c,y,m,M,t,h,d,o,r,o=o.zoomFactor,a=t.showLabel,u=t.minValueOption.normalFontHeight*o,s=t.maxValueOption.normalFontHeight*o,f=t.targetValueOption.normalFontHeight*o,c=t.currentValueOption.normalFontHeight*o,y=t.minValueOption.normalFontWidth*o,m=t.maxValueOption.normalFontWidth*o,M=t.currentValueOption.normalFontWidth*o,t=t.targetValueOption.normalFontWidth*o,o=.1*ot(n,i),h=O(i*p),d=O(n*v),r={x:r+n*(1-v)/2,y:e+i*(1-p)/2,graphWidth:d,graphHeight:h,targetValuePoint:R,currentValuePoint:R,minValuePoint:R,maxValuePoint:R};return a&&((M<3*(n-d)/4||M<d)&&c<(i-h)/2-$t&&(r.currentValuePoint={x:R,y:r.y-c/2},r.enoughShowCurrentLabel=!0),(t<3*(n-d)/4||t<d)&&f<(i-h)/2-at(u,s)&&(r.targetValuePoint={x:R,y:r.y+h+at(u,s)+f/4*3},r.enoughShowTargetLabel=!0),y<3*(n-d)/4&&u<(i-h)/2-o&&(r.minValuePoint={x:r.x-y/2,y:r.y+h+u},r.enoughShowMinLabel=!0),m<3*(n-d)/4)&&s<(i-h)/2-o&&(r.maxValuePoint={x:r.x+d-m/2,y:r.y+h+s},r.enoughShowMaxLabel=!0),r}function Xr(t,r){var e,n,i,o,a,u,s,f,e=t.minValueOption.value,n=t.maxValueOption.value,i=t.ranges,o=l,a=r.graphWidth/(n-e),u=[];return 0<i.length&&i.forEach(function(t){s=t.start,f=t.end,u.push({start:r.x+a*(s-e),width:a*(f-s),color:t.color||o})}),u.unshift({start:r.x,width:r.graphWidth,color:o}),{paintRanges:u,fillColor:o,targetValueX:r.x+a*(t.targetValueOption.value-e),currentValueX:r.x+a*(t.currentValueOption.value-e)}}function Zr(r,t,e,n,i,o,a){var u,s,f,c,y,m,n,o,M,a,h,d,l,v,p,t,b,g,F,_,t,u=a.zoomFactor,s=t.showLabel,f=t.minValueOption,c=t.maxValueOption,y=t.currentValueOption,m=t.targetValueOption,n=Yr(t,e,n,i,o,a),o=n.graphWidth,M=n.graphHeight;if(!(o<=0||M<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=n.currentValuePoint,d=n.targetValuePoint,l=n.minValuePoint,v=n.maxValuePoint,p={x:n.x,y:n.y},b=(t=Xr(t,n)).paintRanges,g=y.normalFontWidth*u,F=m.normalFontWidth*u,_=t.targetValueX,t=t.currentValueX,r.save(),b.forEach(function(t){lt(r,t.start,p.y,t.width,M,t.color)}),Lt(r,_,p.y,_,p.y+M*E,Ht,Nt,$),Gt(r,t,p.y+M-1,t,p.y-M*(E-1)-1,V,o*Dt),s&&(r.save(),n.enoughShowMinLabel&&(S(r,l.x,l.y,f.label,f.fontAfterZoom,I,$),a.showMinLabel=!0),n.enoughShowMaxLabel&&(S(r,v.x,v.y,c.label,c.fontAfterZoom,I,$),a.showMaxLabel=!0),n.enoughShowTargetLabel&&!(i<_-e+F/2+w||_-e-F/2-w<0)&&(S(r,_-m.normalFontWidth*u/2,d.y,m.label,m.fontAfterZoom,I,$),a.showTargetLabel=!0),n.enoughShowCurrentLabel&&!(i<t-e+g/2+w||t-e-g/2-w<0)&&(S(r,t-y.normalFontWidth*u/2,h.y,y.label,y.fontAfterZoom,I,$),a.showCurrentLabel=!0),r.restore()),r.restore(),a}function Qr(t,r,e,n,i,o,a){t.save(),t.rect(e,n,i,o),t.clip(),0===r.gaugeType?Vr(t,r,e,n,i,o,a):1===r.gaugeType?qr(t,r,e,n,i,o,a):2===r.gaugeType&&Zr(t,r,e,n,i,o,a),t.restore()}function te(t,r,e,n,i,o,a,u){var s,f,c,a,y,m,M,h,d,l,s=[],f=t.length,c=0,a=a.fontPixelSize;if(o&&(c=a+3),0!==f){for(y=n/f,m=t[0].value,M=1;M<f;M++)m=Math.max(m,t[M].value);for(h=0;h<f;h++)l=t[h].value/m*(i-c),s.push({x:r+h*y+y*(1-u)/2,textX:r+h*y,y:(d=e+i-c)-(l=l<0?0:l),width:y*u,textWidth:y,height:l,axis:t[h].axis})}return s}function re(t,r,e,n){t.save(),t.fillStyle=e;for(var i=0;i<r.length;i++)t.fillRect(r[i].x,r[i].y,r[i].width,r[i].height);t.restore()}function ee(t,r,e,n){var i,o,a,u,s;for(t.save(),i=e.fontPixelSize,o=ae(e),t.textAlign="center",t.fillStyle=n,a=0;a<r.length;a++)s=u=void 0,u=r[a].x+r[a].width/2,s=r[a].y+r[a].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(r[a].textX,r[a].y+r[a].height+1,r[a].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(r[a].axis,u,s),t.restore();t.restore()}function ne(t,r,e,n){var i,o,a,u,s,o;if("none"!==n){for(t.save(),t.lineWidth=1,t.strokeStyle=n,t.beginPath(),i=0;i<r.length;i++)a=(o=r[i]).x,u=o.y,s=o.width,0===(o=o.height)||0===s||(L(t,a,u,a+s,u),L(t,a,u+o,a+s,u+o),r[i-1]&&r[i-1].height>=o&&1===e||L(t,a,u,a,u+o),r[i+1]&&r[i+1].height>o&&1===e)||L(t,a+s,u,a+s,u+o);t.stroke(),t.closePath(),t.restore()}}function ie(t,r,e,n,i){var o,a,u,s,f,c,o=!1;for(t.save(),t.font=i,u=(e-6)/(a=r.length),s=0,f=r;s<f.length;s++)if(c=f[s],t.measureText(c.axis).width>u){o=!0;break}return t.restore(),o}function oe(t,r,e,n,i,o,a){var u,s,f,c,y,m,M,r,h,e,n,u=r.barColor,s=r.values,f=r.paintLabel,c=r.barWidth,y=r.labelFontStyle,m=r.afterZoomFontStyle,M=r.edgeColor,r=r.labelColor;nt(y)||(o<3*(h=m.fontPixelSize)||ie(t,s,i,o,ae(m)))&&(f=!1),re(t,n=te(s,e+3,n+3,i-6,o-6,f=f&&nt(y)&&(e=Math.floor(12<=o/3?12:Math.floor(o/3)),m.fontPixelSize=e,m.fontSize=e+"px",ie(t,s,i,o,ae(m)))?!1:f,m,c),u,M),ne(t,n,c,M),f&&ee(t,n,m,r)}function ae(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function ue(t,r,e,n,i,o,a){var e,n,i,o,u,s,f,c,r;t.save(),t.rect(e,n,i,o),t.clip(),e=r.clipX,n=r.clipY,i=r.clipWidth,o=r.clipHeight,u=r.paintX,s=r.paintY,f=r.paintWidth,c=r.paintHeight,r=r.img,0<i&&0<o&&0<f&&0<c&&t.drawImage(r,e,n,i,o,u,s,f,c),t.restore()}function se(t,r,e,n){this.X=t,this.Y=r,this.Width=e,this.Height=n,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}function t(){this.Bzt=2,this.Lzt=o,this.Fzt=o,this.Pzt=yt,this.Gzt=-yt}n=this&&this.__extends||(s=function(t,r){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,r){t.__proto__=r}:function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}))(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}s(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),Object.defineProperty(y,"__esModule",{value:!0}),y.SparklineExRenders=y.SparklineRender=y.Uzt=y.Hzt=y.zzt=y.oCt=void 0,i=e("./src/common/util/types.ts"),m=e("./src/common/util/colorhelper.ts"),M=e("./src/common/util/arrayhelper.ts"),nt=i.lt.ht,q=m.ft.YGt,h=m.ft._,d=M.Uf.hD,y.oCt={},it=null,R=void 0,O=Math.floor,rt=Math.PI,x=Math.sin,N=Math.cos,ot=Math.min,at=Math.max,et=Math.round,P=Math.pow,z=Math.sqrt,ut=Math.abs,K=Math.ceil,j="undefined",st="string",ft=isNaN,ct=parseFloat,yt=Number.MAX_VALUE,o=new Date(""),pt="#969696",mt="#CB0000",bt="#646464",Mt="#DCDCDC",k="white",V="black",J="blue",Y="green",$="grey",X="red",l="lightgrey",I="left",B="right",G="center",Z="top",Q="bottom",tt="middle",C="start",gt="px Arial",Ft="-",_t="+",wt="=",A=.05,T=.03,E=1.06,Dt=.02,Ht=4,a=Nt=5,w=3,kt=10,$t=8,v=.8,p=.25,b=.9,g=.7,F=.1,St=1/45*rt,xt=Rt,n(nr,f=D=Et),Pt=nr,Ct="7ns",At="5ns",Ot="tukey",Tt="bowley",jt="sigma3",y.zzt=Vr,y.Hzt=qr,y.Uzt=Zr,_=se,t.prototype.paint=function(t,r,e,n,i,o){var a,u,s,f,a=this;a.options=r,a.setting=r.settings,u=r.values,s=r.dateValues,f=r.zoomFactor,t.save(),t.rect(e,n,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&a.c6(t,e,n,i,o,u,s,f),a.Vzt(t,e,n,i,o,u,s,f),a.Yzt(t,e,n,i,o,u,s,f),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,r){var e,n,i,o,a,a,u,s,f,c,e=this.Kzt;if(!e)if(e=this.Kzt=[],n=t.length,this.options.displayDateAxis){for(a=r.length,u=[],(u=0<(a=ot(n,a))?r.slice(0,a):u).sort(function(t,r){return t===r?0:(t=t===y.oCt?0:t)-(r=r===y.oCt?0:r)}),s=u.length,c=f=void 0,i=0;i<s;i++)if(typeof(f=u[i])!==j&&f!==it){for(c=d(r,f);M.Uf.OS(e,c);)c=d(r,f,c+1);isNaN(f)||(o=t[c])!==R&&o!==it&&isNaN(o)&&o!==y.oCt||e.push(c)}}else for(i=0;i<n;i++)typeof(o=t[i])!==j&&o!==it&&isNaN(o)&&o!==y.oCt||e.push(i);return e},t.prototype.Sl=function(t,r){var r=r[t];return typeof r===j||r===it?1===this.setting.options.displayEmptyCellsAs&&(r=0):r===y.oCt&&(r=0),r},t.prototype.c6=function(t,r,e,n,i,o,a,u){var s,f,c,y,m,M,h,d,l,v,p,l,b,g,F,_,w,D,s=this,f=s.Qzt(o,a),M=f.length-1;for(M<0&&(M=0),h=s.setting.options,d=s.linePos=[],g=h.displayEmptyCellsAs,c=0;c<M;c++)if(typeof(l=s.Sl(f[c],o))!==j&&l!==it){if(typeof(v=s.Sl(f[p=c+1],o))===j||v===it)if(1===g)v=0;else if(2===g)for(p=c+2;p<=M;p++)if(typeof(F=o[f[p]])!==j&&F!==it){v=F;break}typeof v!==j&&v!==it?(l=s.Jzt(f[c],{Width:n,Height:i},o,a,u),b=s.Jzt(f[p],{Width:n,Height:i},o,a,u),_=l.Width/2,y={X:l.X+_,Y:l.Y+_},m={X:b.X+_,Y:b.Y+_},d[c]={P1:y,P2:m}):c++}if(0<(w=d.length))for(t.strokeStyle=s.options.getColor(h.seriesColor),t.lineCap="round",t.lineWidth=s.Wzt(u),c=0;c<w;c++)(D=d[c])&&(t.beginPath(),y=D.P1,m=D.P2,t.moveTo(r+y.X,e+y.Y),t.lineTo(r+m.X,e+m.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,e){var n,i,o,a,u,e,s,f,c,y,r,n=this,i=n.options,o=n.setting.options,a=it,u=n.Sl(t,r),e=n.Qzt(r,e),s=e.length,f=i.getColor.bind(n);return typeof u!==j&&u!==it&&(n.Pzt!==yt&&n.Gzt!==-yt||n.qzt(r),u===n.Pzt&&o.showLow&&(a=f(o.lowMarkerColor)),typeof(a=u!==n.Gzt||!o.showHigh||typeof a!==j&&a!==it?a:f(o.highMarkerColor))!==j&&a!==it||(i.displayDateAxis?0===(c=d(e,t))&&o.showFirst&&(a=f(o.firstMarkerColor)):0===t&&o.showFirst&&(a=f(o.firstMarkerColor))),typeof a!==j&&a!==it||(i.displayDateAxis?(y=d(e,t))===s-1&&o.showLast&&(a=f(o.lastMarkerColor)):t===s-1&&o.showLast&&(a=f(o.lastMarkerColor))),typeof(a=u<0&&o.showNegative&&(typeof a===j||a===it)?f(o.negativeColor):a)!==j&&a!==it||(0===(r=i.sparklineType)?o.showMarkers&&(a=f(o.markersColor)):1!==r&&2!==r||(a=f(o.seriesColor)))),a===R||a===it?"Transparent":a},t.prototype.Vzt=function(t,r,e,n,i,o,a,u){for(var s,f,c,y,m,M,h,M,h,d,h,d,l,M,v,s=this,f={Width:n,Height:i},c=s.Qzt(o,a),y=c.length,m=s.options.sparklineType,v=0;v<y;v++)M=c[v],h=s.Xzt(M,o,a),M=s.Jzt(M,f,o,a,u),t.fillStyle!==h&&(t.fillStyle=h),0===m?(t.save(),h=r+M.X+M.Width/2,d=e+M.Y+M.Height/2,t.translate(h,d),t.rotate(45*rt/180),t.fillRect(0-M.Width/2,0-M.Height/2,M.Width,M.Height),t.restore()):(h=r+M.X+M.Width/4,h=O(h),d=e+M.Y,l=M.Width/2,M=M.Height,t.fillRect(h,d,l,M))},t.prototype.Yzt=function(t,r,e,n,i,o,a,u){var s,f,a,n,i,a,o,s,f,s=this,f=s.setting&&s.setting.options;f&&f.displayXAxis&&s.$zt(o,a)&&(a={Width:n,Height:i},n=s.Zzt(u),i=a.Width-s.Zzt(u),o=a=O(s.tVt(a,o,u))+.5,s=s.options.getColor(f.axisColor),(f=u)<1&&(f=1),t.strokeStyle!==s&&(t.strokeStyle=s),t.lineWidth!==f&&(t.lineWidth=f),t.beginPath(),t.moveTo(r+n,e+a),t.lineTo(r+i,e+o),t.stroke())},t.prototype.nVt=function(t){var r,t,r=this.eVt(t);return r===-yt||(t=this.iVt(t))===yt||r===t||r*t<=0},t.prototype.$zt=function(t,r){var e,n,i,o,a,u,e=this.nVt(t);if(2===this.options.sparklineType&&(i=(n=this.Qzt(t,r)).length,!e)&&0<i)for(u=0;u<i;u++)if(typeof(a=t[o=n[u]])!==j&&a!==it)return!0;return e},t.prototype.rVt=function(t,r){var e=this.Lzt;return isNaN(e&&e.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var e=this.Fzt;return isNaN(e&&e.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){for(var e,n,i,o,a,u,s,u,f,e=this,n=new Date(0,0,0),i=yt,o=e.Qzt(t,r),a=o.length,f=0;f<a;f++)s=r[u=o[f]],isNaN(s)||(u=e.Sl(u,t))!==it&&typeof u===j||isNaN(u)||typeof s!==j&&s!==it&&(n<s&&(n=s),s<i)&&(i=s);e.Fzt=n,e.Lzt=i},t.prototype.uVt=function(t,r,e,n){for(var i,o,a,u,s,f,c,y,m,M,h,d,l,r,i=this,o=i.rVt(r,e),a=i.aVt(r,e),u=[],y=i.Qzt(r,e),m=y.length,s=0;s<m;s++)(f=e[c=y[s]])&&!isNaN(f)&&u.push(f);if(u.sort(function(t,r){return t-r}),1<(M=u.length)&&o!==a){for(h=yt,l=void(d=0),s=1;s<M;s++)(f=(l=u[s])-u[s-1])<h&&0<f&&(h=f),d+=f;return r=(r=(t.Width-i.Zzt(n)-i.Zzt(n))*h/d/2)<2?2:r}return(t.Width-i.Zzt(n)-i.Zzt(n))/2},t.prototype.sVt=function(t,r,e,n){var i,r,i=this;return i.options.displayDateAxis?i.uVt(t,r,e,n):(r=i.Qzt(r,e).length,(t.Width-i.Zzt(n)-i.Zzt(n))/r)},t.prototype.cVt=function(t,r,e,n,i){var o,a,u,s,f,c,y,s,c,m,o=this,u=o.Zzt(i);return o.options.displayDateAxis?(a=o.sVt(t,e,n,i),(s=o.aVt(e,n))===(f=o.rVt(e,n))?u+a/2:(c=n[r])?(y=t.Width-u-o.Zzt(i),y-=a,s=s.valueOf()-f.valueOf(),u+O((c.valueOf()-f.valueOf())/s*y)):0):(a=o.sVt(t,e,n,i),c=d(o.Qzt(e,n),r),O(m=u+a*c))},t.prototype.fVt=function(t,r){var e,n,t,e=this,n=t.Width-e.Zzt(r)-e.Zzt(r);return n=at(n,0),t=t.Height-e.Zzt(r)-e.Zzt(r),{Width:n,Height:t=at(t,0)}},t.prototype.qzt=function(t){for(var r,e,n,i,r=this,e=t.length,i=0;i<e;i++)typeof(n=t[i])!==j&&n!==it&&((n="number"!=typeof n?0:n)<r.Pzt&&(r.Pzt=n),n>r.Gzt)&&(r.Gzt=n)},t.prototype.eVt=function(t){var r,t,e,r=this;return r.Gzt!==-yt&&r.Gzt||r.qzt(t),0===(e=(t=r.setting.options).maxAxisType)?r.Gzt:1===e?t.groupMaxValue:2===e?t.manualMax:r.Gzt},t.prototype.iVt=function(t){var r,t,e,r=this;return r.Pzt!==yt&&r.Pzt||r.qzt(t),0===(e=(t=r.setting.options).minAxisType)?r.Pzt:1===e?t.groupMinValue:2===e?t.manualMin:void 0},t.prototype.lVt=function(t,r,e,n){var t=this.fVt(t,n),n=this.eVt(e),i=this.iVt(e),o=n-i,a,u;if(n===i){if(0===n)return 0;o=ut(n)}return(a=(a=e[r])||0)*(u=t.Height/o)},t.prototype.hVt=function(t,r,e,n){var i,o,a,o,o,i=this,o=i.options.sparklineType;if(0===o)return i.lVt(t,r,e,n);if(1!==o)return 2===o?typeof(a=e[r])===j||a===it||0===a||isNaN(a)?0:(o=i.fVt(t,n),0<=a?o.Height/2:-o.Height/2):void 0;if(a=e[r],1===i.setting.options.displayEmptyCellsAs&&(typeof a===j||a===it))return 0;if((o=i.lVt(t,r,e,n))>-i.Bzt&&o<i.Bzt){if(0<a)return o+i.Bzt;if(a<0)return o-i.Bzt}return o},t.prototype.dVt=function(t,r,e){var n,i,o,r,a,r,n=this,i=n.fVt(t,e),o=n.eVt(r),r=n.iVt(r);if(o===-yt||r===yt)return t.Height/2;if(a=o-r,o===r){if(0===o)return t.Height/2;(a=o)<0&&(o=0)}return r=i.Height/a,n.Zzt(e)+o*r},t.prototype.tVt=function(t,r,e){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,e)},t.prototype.vVt=function(t,r,e,n){var i,t,n,o,a,t,a,u,i=this,t=i.fVt(t,n),n=i.eVt(e),o=i.iVt(e),a=n-o;if(n===o){if(0===n)return 0;a=n}return t=t.Height/a,typeof(a=i.Sl(r,e))!==j&&a!==it||(a=0),n!==o&&0<n*o?(u=0)<=a?(a-o)*t:(a-n)*t:a*t},t.prototype.mVt=function(t,r,e,n){var i,o,a,u,s,i=this,o=i.options.sparklineType;return 0===o?i.vVt(t,r,e,n):1===o?(a=i.vVt(t,r,e,n),-(u=i.Bzt)<a&&a<u&&0!==(s=typeof(s=i.Sl(r,e))!==j&&s!==it?s:0)?0<s?a+u:a-u:a):2===o?i.hVt(t,r,e,n):void 0},t.prototype.gVt=function(t,r,e,n,i){var o,a,n,u,s,f,c,f,c,s,t,e,o=this,a=o.sVt(r,e,n,i),n=o.cVt(r,t,e,n,i);return(a=O(a=a<0?0:a))%2==1&&(a+=1),u=o.hVt(r,t,e,i),s=o.tVt(r,e,i),f=o.eVt(e),c=o.iVt(e),f=f<(f=0)&&c<0?at(o.Zzt(i),s):0<=u?s-u:s,c=o.mVt(r,t,e,i),s=new _(n,f,a,ut(c)),0!==u&&(t=o.Zzt(i),s.Y<t&&s.Bottom<t+1?s.Height=O(s.Height+1):(e=r.Height-o.Zzt(i),s.Bottom>e&&s.Y>e-1&&(s.Y=e-c,s.Height=c))),s},t.prototype.Wzt=function(t){var t=this.setting.options.lineWeight*t;return t=t<1?1:t},t.prototype.Jzt=function(t,r,e,n,i){var o,a,n,i,t,u,e,o=this,a=o.Wzt(i);return++a<2&&(a=2),n=o.gVt(t,r,e,n,i),0===o.options.sparklineType&&(n.X=n.X+(n.Width-a)/2,typeof(i=o.Sl(t,e))!==j&&i!==it?(0<=i?n.Y-=a/2:n.Y=n.Bottom-a/2,n.Width=a,n.Height=a):(n.Width=0,n.Height=0)),o.setting.options.rightToLeft&&(t=n.X,e=(u=r.Width-t)-n.Width,n=new _(e,n.Y,n.Width,n.Height)),n},y.SparklineRender=t,y.SparklineExRenders={PIESPARKLINE:rr,AREASPARKLINE:ar,SCATTERSPARKLINE:sr,BULLETSPARKLINE:Mr,SPREADSPARKLINE:hr,STACKEDSPARKLINE:pr,HBARSPARKLINE:wr,VBARSPARKLINE:Dr,VARISPARKLINE:Hr,LOLLIPOPVARISPARKLINE:Nr,BOXPLOTSPARKLINE:kr,CASCADESPARKLINE:Pr,PARETOSPARKLINE:Cr,MONTHSPARKLINE:Ir,YEARSPARKLINE:Gr,GAUGEKPISPARKLINE:Qr,HISTOGRAMSPARKLINE:oe,IMAGESPARKLINE:ue}},canvas:function(t){t.exports=canvas}},n={},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r=t={},Object.defineProperty(r,"__esModule",{value:!0}),r.Slicers=r.Sparklines=r.Formatter=r.Commands=r.Common=void 0,i=o("./src/common/common.entry.ts"),r.Common=i,i=o("./src/plugins/commands/commands.entry.ts"),r.Commands=i,i=o("./src/plugins/formatter/formatter.entry.ts"),r.Formatter=i,i=o("./src/plugins/sparkline/sparkline.entry.ts"),r.Sparklines=i,i=o("./src/plugins/slicer/slicer.entry.ts"),r.Slicers=i,(a={}).Spread=t}(),t.exports=a.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,r,e)=>{t.exports=e("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={},t=i("./node_modules_local/@spreadjs/js-sheets-common/index.js"),(GC=void 0===GC?{}:GC).Spread=t})(),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd?define("@grapecity-software/spread-common",[],function(){return t}):"object"==typeof exports&&(exports.Spread=t.Spread)}(GC||{});
12
+ var GC;(()=>{var t,r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var r;!function(){"use strict";var t,n={"./src/common/common.entry.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),h=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||M(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,e=n("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return e.ft}}),i=n("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return i.lt}}),o=n("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return o.Uf}}),u=n("./src/common/util/datetimehelper.ts"),Object.defineProperty(r,"ct",{enumerable:!0,get:function(){return u.ct}}),Object.defineProperty(r,"B3",{enumerable:!0,get:function(){return u.getSR}}),a=n("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return a.st}}),s=n("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return s.$T}}),f=n("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return f.zf}}),c=n("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return c.rbush}}),y=n("./src/common/util/common.ts"),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),h(n("./src/common/util/common.ts"),r),m=n("./src/common/culture/cultureInfo.ts"),Object.defineProperty(r,"CultureInfo",{enumerable:!0,get:function(){return m.CultureInfo}}),Object.defineProperty(r,"CultureManager",{enumerable:!0,get:function(){return m.CultureManager}}),h(n("./src/common/util/functionhelper.ts"),r)},"./src/common/culture/cultureInfo.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x=this&&this.qKr||(P=function(t,r){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},P(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}P(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),P;function C(t){return t.split("\xa0").join(" ").toUpperCase()}function A(t){var r,n,e=[];for(r=0,n=t.length;r<n;r++)e[r]=C(t[r]);return e}function T(t,r,n){var e=C(t),i=r.indexOf(e);return-1===i&&(i=n.indexOf(e)),i}function O(t){if(t){var r=t.charCodeAt(0);if(r>=11904&&r<12032||r>=8208&&r<8252||r>=12288&&r<40960||r>=43360&&r<43392||r>=44032&&r<55215||r>=63744&&r<64256||r>=65280&&r<65535)return!0}return!1}function j(t,r,n){if(" "===t||n&&"\u3000"===t)return 0;var e=n&&n(t);return r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!n||e?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!n||e?5:4:e?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1}function E(t,r,n){var e,i,o,u,a,f;if(!t)return[];for(e=[t[0]],i=0,o=j(t[0],r,n),u=1;u<t.length;u++)a=j(t[u],r,n),g[f=o+""+a]&&e[++i]===s&&(e[i]=""),e[i]+=t[u],o=a;return e}function R(t,r,n){var e,i,o,u=this;for(i=0,o=r.length;i<o;i++)e=r[i],u[t][e]=n[i]}function I(t,r){var n;"object"==typeof document&&("function"!=typeof CustomEvent?(n=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):n=new CustomEvent("cultureChanged",{}),n.cultureInfo=t,a.gcCultureInfo=t,a.gcCultureObj=r,document.dispatchEvent(n))}Object.defineProperty(r,"__esModule",{value:!0}),r.CultureManager=r.XPt=r.CultureInfo=r.TimelineDateOrder=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/util/regexhelper.ts"),a="undefined"!=typeof window?window:n.g,s=void 0,f=null,c=e.lt.y0,y=e.lt.Dh,m=(new Date).getFullYear(),d=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],l=(M=["MM/dd/yyyy","MM/d/yyyy","M/dd/yyyy","M/d/yyyy","yy/MM/dd","yy/MM/d","yy/M/dd","yy/M/d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d"]).concat(h=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"]),c(M,(function(t,r){c(h,(function(t,n){t<h.length-4&&l.push(r+" "+n)}))})),l=l.concat(d),c(d,(function(t,r){c(h,(function(t,n){t<h.length-4&&l.push(r+" "+n)}))})),function(t){t[t.year=1]="year",t[t.quarterOrMonth=2]="quarterOrMonth",t[t.date=3]="date"}(v=r.TimelineDateOrder||(r.TimelineDateOrder={})),g={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1},p=function(){function t(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\xa4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"\u2030",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=s,this.predefinedFormats={},this.TimelineDateOrder=[v.quarterOrMonth,v.date,v.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=s}return t.prototype.mTe=function(){return[" "]},t.prototype.FAe=function(t){var r=this,n=r.mTe(),e={lineBreakingChar:n};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,e):E(t,e)},t.prototype.hse=function(t){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var r={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(t,r)}return E(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},t.prototype.qPt=function(){var t,r,n,e;return this.$Pt||(n=(n=[r=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),r+" h:mm",r+" h:mm:ss",r+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(l),1041===this.id&&(e=t.eraFormatter,n=(n=n.concat(this.QPt)).concat(e)),n=n.concat(t.preselectedFormatters),this.$Pt=n),this.$Pt},t.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=A(r.DateTimeFormat.monthNames),r.eGt=A(r.DateTimeFormat.monthGenitiveNames)),T(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=A(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=A(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),T(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=A(r.DateTimeFormat.dayNames)),r.uGt.indexOf(C(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=A(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(C(t))},t}(),r.CultureInfo=p,b=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,n=p.eras;if(n!==s){for(t=[],r=0;r<n.length;r++)t[r]=new Date(n[r].startDate.replace(/-/g,"/"));return t}return this.vGt},t.mGt=function(r){var n,e,i,o,u;switch(r){case"g":n="symbol",e=t.gGt;break;case"gg":n="abbreviation",e=t.pGt;break;case"ggg":n="name",e=t.DEt;break;default:return[]}if(o=[],(i=p.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][n];return o}return e},t.hGt=function(){var t,r=p.eras;return r!==s&&r.length>0?((t=new Date(r[r.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},t.lGt=function(){var t=p.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=p.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,n,e,i=p.eras;if(i!==s){for(t=[],r=1;r<i.length;r++)n=new Date(i[r-1].startDate.replace(/-/g,"/")),e=new Date(i[r].startDate.replace(/-/g,"/")),t[r-1]=e.getFullYear()-n.getFullYear()+1;return t[r-1]=99,t}return this.SGt},t.TGt=function(r){var n,e,i={AGt:-1,IGt:-1};if(!t.fGt(r)){if(!(r>t.hGt()))return i;r=t.hGt()}for(n=0;n<t.wGt();n++)if(r<(e=n+1!==t.wGt()?t.dGt()[n+1]:t.xGt(t.hGt(),1))){i.AGt=n,i.IGt=r.getFullYear()-t.dGt()[n].getFullYear()+1;break}return i},t.xGt=function(t,r){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return n.setMilliseconds(n.getMilliseconds()+r),new Date(n.valueOf())},t.NGt=function(r,n){var e;return t.dGt()[r].getFullYear()+n-1},t.kGt=function(r,n){var e,i;for(n=n.toUpperCase(),e=t.mGt(r),i=0;i<e.length;i++)if(e[i]===n)return i;return-1},t.DGt=function(r,n,e){var i,o,u,a=t,s=a.TGt(n),f=s.AGt;if(f>=0&&(i=a.mGt(r)).length>0)return i[f];if((o=s.IGt)>=0){if("1"===(u=o.toString())&&e)return u="\u5143";if("ee"===r)return 1===u.length&&(u="0"+u),u;if("e"===r)return u}return""},t.vGt=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],t.MGt=5,t.SGt=[45,15,64,31,99],t.bGt=new Date(2117,11,31,23,59,59),t.yGt=new Date(1868,8,8),t._Gt=["1,m","2,t","3,s","4,h","5,r"],t.EGt=[0,1,2,3,0,1,2,3],t.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],t.gGt=["M","T","S","H","R"],t.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],t.jGt=99,t.eraExcelFormatter="[$-ja-JP-x-gannen]",t.eraInternalFormatter="[$-411]",t}(),r.XPt=b,F=function(t){function r(){var r,n=t.call(this)||this;return R.call(n,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],R.call(n,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,r]),n.DateTimeFormat.defaultDatePattern=n.DateTimeFormat.shortDatePattern+" H:mm:ss",n.name=function(){return"en-US"},n.displayName="English (United States)",n.id=1033,n.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},n}return x(r,t),r}(p),_=function(t){function r(){var r,n,e,i=t.call(this)||this,o={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\u62fe","\u5104","\u9621","\u767e","\u62fe","\u842c","\u9621","\u767e","\u62fe",""],numbers:["\u3007","\u58f1","\u5f10","\u53c2","\u56db","\u4f0d","\u516d","\u4e03","\u516b","\u4e5d"]},3:{letters:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},u={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"};return R.call(i,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",o,u]),r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],e=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],R.call(i,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],r,r,"\u5348\u524d",!1,["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",n,n,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd",["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",e,"ggge/mmmm/d\u65e5"]),i.DateTimeFormat.eras=!0,i.DateTimeFormat.defaultDatePattern=i.DateTimeFormat.shortDatePattern+" "+i.DateTimeFormat.longTimePattern,i.QPt=['gggee"\u5e74"MM"\u6708"dd"\u65e5','gggee"\u5e74"M"\u6708"d"\u65e5','ge"\u5e74"M"\u6708"d"\u65e5','ggge"\u5e74"M"\u6708"d"\u65e5','ggee"\u5e74"M"\u6708"d"\u65e5','gge"\u5e74"M"\u6708"d"\u65e5'],i.name=function(){return"ja-JP"},i.id=1041,i.displayName="Japanese (Japan)",i.isJCKCulture=!0,i.predefinedFormats={Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\xa5-411]#,##0_);[Red]([$\xa5-411]#,##0)","[$\xa5-411]#,##0_);([$\xa5-411]#,##0)","[$\xa5-411]#,##0;[Red][$\xa5-411]#,##0","[$\xa5-411]#,##0;-[$\xa5-411]#,##0","[$\xa5-411]#,##0;[Red]-[$\xa5-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"\u6642"mm"\u5206";@','h"\u6642"mm"\u5206"ss"\u79d2";@'],Special:{"\u90f5\u4fbf\u756a\u53f7":"[<=999]000;[<=9999]000-00;000-0000","\u96fb\u8a71\u756a\u53f7\uff08\u6771\u4eac)":"[<=99999999]####-####;(00) ####-####","\u6b63\u8ca0\u8a18\u53f7 \uff08+ = \u25b3; - = \u25b2)":'"\u25b3" #,##0;"\u25b2" #,##0',"\u6f22\u6570\u5b57\uff08\u5341\u4e8c\u4e07\u4e09\u5343\u56db\u767e\uff09":"[DBNum1][$-411]General","\u5927\u5b57 (\u58f1\u62fe\u5f10\u842c\u53c2\u9621\u56db\u767e)":"[DBNum2][$-411]General","\u5168\u89d2 (\uff11\uff12\uff13\uff14\uff15)":"[DBNum3][$-411]0","\u5168\u89d2 \u6841\u533a\u5207\u308a\uff08\uff11\uff12,\uff13\uff14\uff15\uff09":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$\xa5-411]#,##0.00",Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},i.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],i.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},i.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d","\u300d","\u3002","\u3001","\u30fc"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b","\u300c","$","\uff04","\\","\uffe5"],lineBreakingStrategy:function(t,r){return E(t,r,O)}},i.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],i}return x(r,t),r}(p),w=function(t){function r(){var r,n,e,i=t.call(this)||this,o={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u25cb","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u4edf","\u4f70","\u62fe","\u4ebf","\u4edf","\u4f70","\u62fe","\u4e07","\u4edf","\u4f70","\u62fe",""],numbers:["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"]},3:{letters:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},a={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"};return R.call(i,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"\xa5",!1,"\u975e\u6570\u5b57","\u8d1f\u65e0\u7a77\u5927",1,1,"\u6b63\u65e0\u7a77\u5927",o,a]),r=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],n=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708",""],e=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],R.call(i,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],r,r,"\u4e0a\u5348",!1,["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",n,n,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d",["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",e]),i.DateTimeFormat.defaultDatePattern=i.DateTimeFormat.shortDatePattern+" "+i.DateTimeFormat.longTimePattern,i.name=function(){return"zh-cn"},i.id=2052,i.displayName="Chinese (China)",i.isJCKCulture=!0,i.localeCompare=function(t,r){var n=t.localeCompare(r,"zh");return n<0&&t>="\u4e00"&&r<"\u4e00"||n>0&&r>="\u4e00"&&t<"\u4e00"?-n:n},i.predefinedFormats={Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$\xa5-804]#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]#,##0","[$\xa5-804]#,##0;[$\xa5-804]-#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"\u5e74"m"\u6708"d"\u65e5";@','[DBNum1][$-804]yyyy"\u5e74"m"\u6708";@','[DBNum1][$-804]m"\u6708"d"\u65e5";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"\u65f6"mm"\u5206";@','h"\u65f6"mm"\u5206"ss"\u79d2";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2";@','[DBNum1][$-804]h"\u65f6"mm"\u5206";@','[DBNum1][$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@'],Special:{"\u90ae\u653f\u7f16\u7801":"000000","\u4e2d\u6587\u5c0f\u5199\u5b57\u6bcd":"[DBNum1][$-804]General","\u4e2d\u6587\u5927\u5199\u5b57\u6bcd":"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$\xa5-804]#,##0.00",Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},i.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],i.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},i.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return E(t,r,O)}},i.normalizeDateTimeString=function(t){var r,n;return u.$T.qT("^([0-9]{1,2}|[0-9]{4})\u5e74[0-9]{1,2}\u6708$").test(t)?(r=t.split("\u5e74"))[1].replace("\u6708","")+"/1/"+r[0]:u.$T.qT("^[0-9]{1,2}\u6708[0-9]{1,2}\u65e5$").test(t)?(r=t.split("\u6708"))[0]+"/"+r[1].replace("\u65e5","")+"/"+m:u.$T.qT("^(\u4e0a\u5348|\u4e0b\u5348)?[0-9]{1,2}\u65f6[0-9]{1,2}\u5206([0-9]{1,2}\u79d2)?$").test(t)?((n=(n=t.replace("\u65f6",":").replace("\u5206",":").replace("\u79d2","")).endsWith(":")?n+"00":n).startsWith("\u4e0a\u5348")&&(n=n.replace("\u4e0a\u5348","")+" AM"),n.startsWith("\u4e0b\u5348")&&(n=n.replace("\u4e0b\u5348","")+" PM"),n):t.includes("\u4e0a\u5348")||t.includes("\u4e0b\u5348")?t.replace("\u4e0a\u5348","am").replace("\u4e0b\u5348","pm"):f},i}return x(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(p),D=function(t){function r(){var r,n,e=t.call(this)||this,i={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\uf9d1","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\uf973","\u5104","\u9621","\u767e","\uf973","\u842c","\u9621","\u767e","\uf973",""],numbers:["\uf9b2","\u58f9","\u8cb3","\uf96b","\u56db","\u4f0d","\uf9d1","\u4e03","\u516b","\u4e5d"]},3:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]},4:{letters:["\uc870","\ucc9c","\ubc31","\uc2ed","\uc5b5","\ucc9c","\ubc31","\uc2ed","\ub9cc","\ucc9c","\ubc31","\uc2ed",""],numbers:["\u25cb","\uc77c","\uc774","\uc0bc","\uc0ac","\uc624","\uc721","\uce60","\ud314","\uad6c"]}},o={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"};return R.call(e,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,i,o]),r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""],R.call(e,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],r,r,"\uc624\uc804",!1,["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],1,"yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd h:mm:ss","yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd","h:mm:ss","M'\uc6d4' d'\uc77c'",n,n,"\uc11c\uae30","\uc624\ud6c4","yyyy-MM-dd",["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],"tt h:mm","yyyy'\ub144' M'\uc6d4'","yyyy\ub144/mmmm/d\uc77c"]),e.DateTimeFormat.defaultDatePattern=e.DateTimeFormat.shortDatePattern+" "+e.DateTimeFormat.longTimePattern,e.name=function(){return"ko-kr"},e.id=1042,e.displayName="Korean (Korea)",e.isJCKCulture=!0,e.predefinedFormats={Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red][$\u20a9-412]#,##0","[$\u20a9-412]#,##0;-[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red]-[$\u20a9-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',"yyyy-mm-dd;@",'yyyy"\ub144" m"\uc6d4" d"\uc77c";@','yy"\u5e74" m"\u6708" d"\u65e5";@','yyyy"\ub144" m"\uc6d4";@','m"\uc6d4" d"\uc77c";@',"yy-m-d;@","yy-m-d h:mm;@",'m"\u6708"d"\u65e5";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"\uc2dc" mm"\ubd84";@','h"\uc2dc" mm"\ubd84" ss"\ucd08";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84" ss"\ucd08";@'],Special:{"\uc6b0\ud3b8 \ubc88\ud638":"000-000","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 4\uc790\ub9ac)":"[<=999999]####-####;(0##) ####-####","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 3\uc790\ub9ac)":"[<=9999999]###-####;(0##) ###-####","\uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638":"000000-0000000","\uc22b\uc790(\ud55c\uc790)":"[DBNum1][$-412]General","\uc22b\uc790(\ud55c\uc790-\uac16\uc740\uc790)":"[DBNum2][$-412]General","\uc22b\uc790(\ud55c\uae00)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$\u20a9-412]#,##0.00",Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},e.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],e.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},e}return x(r,t),r}(p),H={invariant:new p,"en-us":new F,"ja-jp":new _,"zh-cn":new w,"ko-kr":new D},N={},$=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],k=["wmk1","wmk2"],S=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r){if(0===arguments.length)return t.RGt;r&&t.RGt!==r&&(t.RGt=r.toLowerCase(),this.KPt++,I(t.RGt,t.OGt.getCultureInfo()))},t.prototype.addCultureInfo=function(t,r,n){var e,o,u,a,s;if(r&&r instanceof p){if(e=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,o=r.NumberFormat.arrayListSeparator,u=r.NumberFormat.arrayGroupSeparator,e===r.NumberFormat.listSeparator||u===o)throw(a=new i.ResourceManager(i.SR)).getResource().Exp_Separator;H[t.toLowerCase()]=r}n&&"object"==typeof n&&(s=t.toLowerCase(),N[s]=y(!0,{},n),this.KPt++)},t.prototype.getCultureInfoDict=function(){return H},t.prototype.getCultureInfo=function(r){var n,e,i;if(0===arguments.length)return H[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),e=f,n=H)if(i===r||n[i].id!==s&&n[i].id===r){e=n[i];break}return e},t.prototype.getLanguage=function(t){if("string"==typeof t){var r=t.toLowerCase();return N[r]}return f},t.prototype.getResources=function(t){var r,n=this.culture().toLowerCase();return t!==f&&t!==s||(t=n),"string"==typeof t&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):f},t.prototype.BGt=function(t){var r,n="PivotTables",e="ReportSheet",i="GanttSheet",o="DataChart",u="Sheets",a="CalcEngine",s="Functions",f="TableFunctions",c=y(!0,{},t);return c[n]&&this.LGt(c[n],k),c[e]&&this.LGt(c[e],k),c[i]&&this.LGt(c[i],k),c[o]&&this.LGt(c[o],k),c[u]&&this.LGt(c[u],$),(r=c[a])&&(c[s]=r.wmt,c[f]=r.d2t,delete r.wmt,delete r.d2t),c},t.prototype.LGt=function(t,r){var n,e,i;for(n=0,e=r;n<e.length;n++)delete t[i=e[n]]},t.prototype.FGt=function(t,r,n){var e,i,u=N[t.toLowerCase()];for(e in r)o.Uf.OS($,e)||null!==(i=this.PGt(u,e,n))&&"string"==typeof i&&"string"==typeof r[e]&&(r[e]=i);r.wmt&&u.Functions&&this.GGt(u.Functions,r.wmt),r.d2t&&u.TableFunctions&&y(!0,r.d2t,u.TableFunctions)},t.prototype.PGt=function(t,r,n){var e,i;if(t.hasOwnProperty(r))return t[r];if(n&&(e=t[n])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];for(i in t)if((e=t[i])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];return null},t.prototype.GGt=function(t,r){var n,e,i,o,u,a,s,f={};for(n in r)if(t.hasOwnProperty(n))for(a in e=r[n],i=t[n],o=e.parameters,u=i.parameters,e.description=i.description,o)u.hasOwnProperty(a)&&"string"==typeof(s=u[a])&&(o[a].name=s);return f},t.prototype.Fe=function(r){var n=this.getCultureInfo(r);return n||(n=H[t.RGt])||(n=new p),n},t.prototype.xat=function(t,r){var n=this.getCultureInfo(t)||this.getCultureInfo("en-US"),e=n.DateTimeFormat,i=e.filterDialogDateFormatter;return(r.indexOf("g")>=0||r.indexOf("e")>=0)&&(i=e.EraFilterDialogDateFormatter||i),i},t.RGt="en-us",t}(),r.CultureManager=S.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var n,e,i;function o(t,r){var e,i;for(e in r)r.hasOwnProperty(e)&&(i=r[e],Array.isArray(i)?(t[e]=[],o(t[e],r[e])):i!==n&&"object"==typeof i?(t[e]={},o(t[e],r[e])):t[e]=r[e])}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,n=null,e=void 0,i=function(){function t(){}return t.Eit=function(t,r,n){t.splice(r,0,n)},t.ZP=function(t,r){t.push(r)},t.OS=function(t,r){return t.indexOf(r)>-1},t.VP=function(t,r){var n=t.indexOf(r);n>-1&&t.splice(n,1)},t.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},t.hD=function(t,r,n){return t.indexOf(r,n)},t.d5=function(t,r,e){if(!(r<0))for(var i=0;i<e&&r+i<t.length;i++)t[r+i]=n},t.N2t=function(t,r){var i,o;for(r<0&&(r=-1),o=i=r+1;o<t.length;o++)if(t[o]!==e&&t[o]!==n)return o;return-1},t.tR=function(t){return t&&t.length},t.Gf=function(t){var r=[];return o(r,t),r},t}(),r.Uf=i},"./src/common/util/colorhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m;function M(t,r,n){return n<0&&(n+=240),n>240&&(n-=240),n<40?t+((r-t)*n+20)/40:n<120?r:n<160?t+((r-t)*(160-n)+20)/40:t}function h(t,r,n){var e,i,o,u,a;return 0===n?e=i=o=s(255*r/240+"",10):(u=void 0,a=void 0,e=d(u=2*r-(a=r<=120?s((r*(240+n)+120)/240+""):r+n-s((r*n+120)/240+"")),a,t+80),i=d(u,a,t),o=d(u,a,t-80)),{a:255,r:e,g:i,b:o}}function d(t,r,n){return o(s((255*M(t,r,n)+120)/240+""),255)}function l(t){var r,n,e,i,o,u,a,s,c,m;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),e="",i="",6===(n=r.length)||8===n?(e=r.substr(0,6),8===n&&(i=r.substr(6,2))):3!==n&&4!==n||(e=(o=r.split(3===n?/(.)/:/(..)/)).filter(Boolean).map((function(t){return parseInt(3===n?t+t:t,16)})).map((function(t){return t.toString(16).padStart(2,"0")})).join(""),4===n&&(i=o[3]+o[3])),[u=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),c=i?parseInt(i,16):255]):t.toLowerCase()in f?f[t.toLowerCase()]:null!==(m=y.exec(t))?(c=void 0===m[4]?255:255*+m[4],[m[1],m[2],m[3],c]):null}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,e=n("./src/common/util/numberhelper.ts"),i=e.st.VGt,o=Math.min,u=Math.max,a=Math.abs,s=parseInt,f={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},c=function(){function t(t){var r,n,e,i,a=this,f=t.r,c=t.g,y=t.b,m=u(u(f,c),y),M=o(o(f,c),y),h=m+M;a.HGt=s((240*h+255)/510+"",10),0===(r=m-M)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+h/2)/h+"",10):a.zGt=s((240*r+(510-h)/2)/(510-h)+"",10),n=(40*(m-f)+r/2)/r,e=(40*(m-c)+r/2)/r,i=(40*(m-y)+r/2)/r,a.wv=s(f===m?i-e+"":c===m?80+n-i+"":160+e-n+"",10),a.wv<0&&(a.wv+=240),a.wv>240&&(a.wv-=240))}return t.prototype.YGt=function(t){var r=this,n=r.HGt,e=r.ZGt(r.HGt,500,!0);return h(r.wv,n+(e-n)*t,r.zGt)},t.prototype.ZGt=function(t,r,n){return 0===r?t:n?r>0?(t*(1e3-r)+241*r)/1e3:t*(r+1e3)/1e3:((t+=240*r/1e3)<0&&(t=0),t>240&&(t=240),t)},t}(),y=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,m=function(){function t(){}return t.j=function(t){var r=t.a,n=t.r,e=t.g,o=t.b;return 3===arguments.length&&(r=255,n=arguments[0],e=arguments[1],o=arguments[2]),4===arguments.length&&(r=arguments[0],n=arguments[1],e=arguments[2],o=arguments[3]),255===r?"#"+i(n,!0,2)+i(e,!0,2)+i(o,!0,2):"rgba("+n+","+e+","+o+","+r+")"},t.Tv=function(t,r){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(r):t.a===r.a&&t.r===r.r&&t.g===r.g&&t.b===r.b},t.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},t.Km=function(t,r){var n,e=255-a(t.r-r.r),i=255-a(t.g-r.g),o=255-a(t.b-r.b),u=a(t.a-r.a);return!!((n=((e/=255)+(i/=255)+(o/=255))/3)>=.9&&u<=.05)},t.Uv=function(r){var n=255^r.r,e=255^r.g,i=255^r.b;return t.j(r.a,n,e,i)},t.WGt=function(r){var e,i,o,u;return"object"!=typeof document?l(r):((e=t.xf)||(i=document.createElement("canvas"))&&i.getContext&&(e=t.xf=i.getContext("2d",{willReadFrequently:!0})),e||((o=n("canvas"))&&o.createCanvas&&(i=o.createCanvas(2,2),e=t.xf=i.getContext("2d")),e)?(e.clearRect(1,1,1,1),e.fillStyle=r,e.fillRect(1,1,1,1),(u=e.getImageData(1,1,1,1))?u.data:null):l(r))},t._=function(r){var n,e,i,o,u;return r instanceof t||null!==r&&"object"==typeof r?r:(n=0,e=0,i=0,o=0,r&&(u=t.WGt(r))&&(e=u[0],i=u[1],o=u[2],n=u[3]),{a:n,r:e,g:i,b:o})},t.Cv=function(r,n){var e,i;return 0===n?r:(e=new c(r),i=s((n>0?(240-e.HGt)*n:e.HGt*n)+"",10),t.QGt(e.wv,e.HGt+i,e.zGt))},t.YGt=function(r,n){var e=t._(r),i=new c(e),o=i.YGt(n);return t.j(o)},t.Dz=M,t.QGt=h,t}(),r.ft=m},"./src/common/util/common.ts":function(t,r,n){var e,i,o,u,a;function s(t,r,n,e){var i,o,u,a,s;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=void 0,u=n;u<r;u++)void 0!==t[u]&&i.push(u);for(o=i.length,u=0;u<o;u++)s=t[a=i[o-u-1]],t[a]=null,t[Math.floor(a)+e]=s}}function f(t,r,n,e){var i,o,u,a,s,f;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=n+e,a=void 0,a=n;a<r;a++)void 0!==t[a]&&(n<=a&&a<u?t[a]=null:a>=u&&i.push(a));for(o=i.length,a=0;a<o;a++)f=t[s=i[a]],t[s]=null,t[Math.floor(s)-e]=f}}function c(t,r){return t.hasOwnProperty(r)}function y(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.X8=r.J8=r.ResourceManager=r.SR=void 0,e=n("./src/common/culture/cultureInfo.ts"),i=n("./src/common/util/util.res.en.ts"),o=n("./src/common/util/types.ts"),r.SR={en:i},u=o.lt.Dh,a=function(){function t(t,r){this.res=t,this.KGt=r,this.JPt=e.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,r),this.KPt=0}return t.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},t.prototype.XGt=function(t,r){var n,i;r&&(i=(n=e.CultureManager.culture()).toLowerCase(),this.JPt[i]=this.JPt[i]||{},this.JPt[i][r]=t,e.CultureManager.JPt=this.JPt)},t.prototype.JGt=function(t,r){var n,i,o,a=e.CultureManager.culture();if(t&&a){if(n=e.CultureManager.KPt,this.KPt===n&&!r)return;return this.KPt=n,e.CultureManager.getLanguage(a)?(i=u(!0,{},t.en),e.CultureManager.FGt(a,i,this.KGt),i):(o=a.substr(0,2).toLowerCase(),t.hasOwnProperty(o)?t[o]:t.en)}return{}},t}(),r.ResourceManager=a,r.J8=s,r.X8=f,r.kh=c,r.ut=y},"./src/common/util/datetimehelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g;function p(t,r){if(e.HandleExcelSpecialDate)return e.HandleExcelSpecialDate.apply(null,[t,r]);switch(r){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();default:return}}function b(t,n,e,i){var o,a,s,c,y,m,l,v,g,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E=e.DateTimeFormat,R=E.Calendar.convert;if(!n||!n.length)return e&&e.name.length?R?b(t,E.fullDateTimePattern,e):t.toLocaleString():t.toString();function I(){return y||m||(y=l.test(n),m=M),y}function B(t,r){return _?_[r]:p(t,r)}for(o=E.eras,s="",l=/([^d]|^)(d|dd)([^d]|$)/g,v=0,g=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g,!(a="s"===n)&&R&&(_=R.fromGregorian(t)),w=-2,D=-2,H={y4:""},N=0;$=g.lastIndex,k=g.exec(n),S=n.slice($,k?k.index:n.length),H.y4="",v+=F(S,H),s+=H.y4,k;N++)if(v%2!=1)switch(x=B(t,0),P=t.getDay(),C=t.getHours(),A=t.getMinutes(),T=t.getSeconds(),O=t.getMilliseconds(),j=t.getTimezoneOffset(),k[0]){case"dddd":s+=E.dayNames[P];break;case"ddd":s+=E.abbreviatedDayNames[P];break;case"dd":y=M,s+=f(B(t,2),2);break;case"d":y=M,s+=B(t,2);break;case"MMMM":s+=E.monthGenitiveNames&&I()?E.monthGenitiveNames[B(t,1)]:E.monthNames[B(t,1)];break;case"MMM":s+=E.abbreviatedMonthGenitiveNames&&I()?E.abbreviatedMonthGenitiveNames[B(t,1)]:E.abbreviatedMonthNames[B(t,1)];break;case"MM":s+=f(B(t,1)+1,2);break;case"M":s+=B(t,1)+1;break;case"yyyy":case"yyy":s+=w>=0?u.XPt.DGt("ee",t,i):f(_?_[0]:x,4);break;case"yy":s+=w>=0?u.XPt.DGt("ee",t,i):f((_?_[0]:x)%100,2);break;case"y":s+=w>=0?u.XPt.DGt("e",t,i):((_?_[0]:x)%100).toString();break;case"hh":0===(c=C%12)&&(c=12),s+=f(c,2);break;case"h":0===(c=C%12)&&(c=12),s+=c;break;case"HH":s+=f(C,2);break;case"H":s+=C.toString();break;case"mm":s+=f(A,2);break;case"m":s+=A.toString();break;case"ss":s+=f(T,2);break;case"s":s+=T.toString();break;case"tt":s+=C<12?E.amDesignator:E.pmDesignator;break;case"t":s+=(C<12?E.amDesignator:E.pmDesignator).charAt(0);break;case"f":case"0":s+=f(O,3).charAt(0);break;case"ff":case"00":s+=f(O,3).substr(0,2);break;case"fff":case"000":s+=f(O,3);break;case"z":s+=((c=j/60)<=0?"+":"-")+h(d(c));break;case"zz":s+=((c=j/60)<=0?"+":"-")+f(h(d(c)),2);break;case"zzz":s+=((c=j/60)<=0?"+":"-")+f(h(d(c)),2)+":"+f(d(j%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(w===N-1){w=N;break}s+=u.XPt.DGt(k[0],t,i),w=N;break;case"e":case"ee":if(!o){s+=f(_?_[0]:x,4);break}if(D===N-1){D=N;break}s+=u.XPt.DGt(k[0],t,i),D=N;break;case"/":s+=E.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(k[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=k[0]}else s+=k[0];return s.toString()}function F(t,r){var n,e,i,o=0,u=m;for(n=0,e=t.length;n<e;n++)switch(i=t.charAt(n)){case'"':u?r.y4+="'":o++,u=m;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=m}return o}function _(t,r){var n,e=new Date,i=t.DateTimeFormat.eras;return i&&r<100&&(r+=(n=u.XPt.TGt(e).IGt)-n%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function w(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g}function D(t,n,e){var i,u,a,s,f,y,m,M,h,d,l;if(t.qGt){if(t.qGt[n])return t.qGt[n]}else t.qGt={};for(i=(i=(i=n).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),u="^",a={y4:""},s=[],f=0,y=0,m=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;(M=m.exec(i))!==c;)if(a.y4="",h=i.slice(f,M.index),f=m.lastIndex,y+=F(h,a),u+=a.y4,y%2!=1){switch(M[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":u+="(\\D+)";break;case"tt":case"t":u+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":u+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":u+=e?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":u+="(\\d{2}|\\d{4})";break;case"fff":case"000":u+="(\\d{3})";break;case"ff":case"00":u+="(\\d{2})";break;case"f":case"0":u+="(\\d)";break;case"zzz":u+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":u+="([+-]?\\d\\d?)";break;case"/":u+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,r.getSR)().Exp_InvalidDateFormat)}o.Uf.ZP(s,M[0])}else u+=M[0];return a.y4="",F(i.slice(f),a),u+=a.y4,l={$Gt:d=(u+="$").toString().replace(/\s+/g,"\\s+"),QMt:s,tUt:new RegExp(d)},t.qGt[n]=l,l}function H(t){var r=t.getTimezoneOffset();return-485===r&&(r=-485-43/60),-321===r&&(r=-321-10/60),-507===r&&(r=-507-52/60),-402===r&&(r=-402-4/60),r}Object.defineProperty(r,"__esModule",{value:!0}),r.ct=r.getSR=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/stringhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/culture/cultureInfo.ts"),a=n("./src/common/util/types.ts"),s=a.lt.ht,f=i.zf.B9t,c=null,y=parseInt,m=!1,M=!0,h=Math.floor,d=Math.abs,l=new e.ResourceManager(e.SR,"Common"),r.getSR=l.getResource.bind(l),v={},g=function(){function t(){}return t.L9t=function(t,r,n,e){return n||(n=u.CultureManager.Fe()),b(t,r,n,e)},t.Pe=function(t,r,n){return b(t,r,n||u.CultureManager.Fe())},t.Mjt=function(r,n,e){var i,o,u,a,s,f=m;for((s=e).slice(1).forEach((function(t){t&&(f=!0)})),f||(s=s.concat(n.qPt())),o=s.length,i=1;i<o;i++)if((a=s[i])&&(f=M,u=t.nUt(r,a,n)))return u;return c},t.yU=function(r,n,e){var i,o;return n||e||void 0===(o=v[r])?(i=n?[r,n]:[r],o=t.Mjt(r,e||u.CultureManager.Fe(),i),n||e||(v[r]=o),o?new Date(o):o):o?new Date(o):o},t.Z6t=function(r,n){return t.Mjt(r,u.CultureManager.Fe("invariant"),[r,n])},t.nUt=function(t,r,n){var e,o,a,s,f,M,h,d,l,v,g,p,b,F,w,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I;if(t=t.trim(),(s=(a=D(e=n.DateTimeFormat,r,o=1041===n.id)).tUt.exec(t))===c)return c;for(f=a.QMt,M=c,h=c,d=c,l=c,v=c,g=0,b=0,F=0,w=0,H=c,N=m,$=m,k=0,S=f.length;k<S;k++)if(x=s[k+1])switch(f[k]){case"dd":case"d":if((l=y(x,10))<1||l>31)return c;break;case"MMMM":if((d=n.tGt(x))<0||d>11)return c;break;case"MMM":if((d=n.iGt(x))<0||d>11)return c;break;case"M":case"MM":case"%M":if((d=y(x,10)-1)<0||d>11)return c;break;case"e":case"ee":if((h=o&&"\u5143"===x?1:_(n,y(x,10)))<0||h>9999)return c;break;case"y":case"yy":case"yyy":case"yyyy":if((h=y(x,10))<0||h>9999)return c;break;case"h":case"hh":case"H":case"HH":if((g=y(x,10))<0)return c;break;case"m":case"mm":if((b=y(x,10))<0||b>59)return c;break;case"s":case"ss":if((F=y(x,10))<0||F>59)return c;break;case"tt":case"t":if(N=(P=x.toUpperCase())===e.pmDesignator.toUpperCase(),$=P===e.amDesignator.toUpperCase(),!N&&!$)return c;break;case"f":case"0":if((w=100*y(x,10))<0||w>999)return c;break;case"ff":case"00":if((w=10*y(x,10))<0||w>999)return c;break;case"fff":case"000":if((w=y(x,10))<0||w>999)return c;break;case"dddd":if((v=n.aGt(x))<0||v>6)return c;break;case"ddd":if((v=n.sGt(x))<0||v>6)return c;break;case"zzz":if(2!==(C=x.split(/:/)).length)return c;if((p=y(C[0],10))<-12||p>13)return c;if((A=y(C[1],10))<0||A>59)return c;H=60*p+(i.zf.fJ(x,"-")?-A:A);break;case"z":case"zz":if((p=y(x,10))<-12||p>13)return c;H=60*p;break;case"g":case"gg":case"ggg":if(!(T=x)||!e.eras)return c;if((M=u.XPt.kGt(f[k],T))<0)return c}if(j=(O=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=e.Calendar.convert)&&(E=R.fromGregorian(j)),R||(E=[j.getFullYear(),j.getMonth(),j.getDate()]),h===c?h=E[0]:h<100&&(e.eras&&M!==c?h=u.XPt.NGt(M||0,h):h+=h>=30?1900:2e3),d===c&&(d=E[1]),l===c&&(l=O?E[2]:1),R){if((j=R.toGregorian(h,d,l))===c)return c}else{if(j.setFullYear(h,d,l),j.getDate()!==l)return c;if(v!==c&&j.getDay()!==v)return c}return N&&g<12?g+=12:$&&12===g&&(g=0),j.setHours(g,b,F,w),H!==c&&(I=j.getMinutes()-(H+j.getTimezoneOffset()),j.setHours(j.getHours()+I/60,I%60)),j},t.Y0=function(t){var r=t-25569,n=new Date(864e5*r),e=H(n),i=Math.round(864e5*(t-25569+e/1440)),o=new Date(i),u=e>=0?1:-1,a=new Date(i+36e5*u),s=H(a);return d(e-s)>=60?new Date(i+60*(s-e)*1e3):o},t.dJ=function(r){if("/OADate("===r.substr(0,8)){var n=parseFloat(r.substr(8,r.length-10));return t.Y0(n)}},t.Q0=function(r){return"/OADate("+t.o0(r)+")/"},t.o0=function(t){if(s(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=H(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t._DT=function(n){var e,i,o,u=c,a=M;if(s(n)?u=t.Y0(0):n instanceof Date?u=new Date(n.valueOf()):"string"==typeof n?((e=t.yU(n))||(isNaN(n)?t.u6t(n)?a=m:(e=new Date(n),isNaN(e.valueOf())&&(a=m),(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(n.replace(/ |\n/g,"").trim()))&&4===o.length&&(-1!==o.indexOf(e.getFullYear().toString())&&-1!==o.indexOf((e.getMonth()+1).toString())&&-1!==o.indexOf(e.getDate().toString())||(a=m))):(e=t.Y0(parseFloat(n)))||(a=m)),u=e):"number"==typeof n?u=t.Y0(n):a=m,a)return u;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){var n=u.CultureManager.Fe().DateTimeFormat,e=t.eUt,i=function(t,r){var n=0;return r.forEach((function(r){r&&t.indexOf(r)>-1&&n++})),n>1},o=function(t,r){if(t&&t.indexOf(" ")>-1){var n=t.split(" "),e=n.length;return e>=2&&r.indexOf(n[e-2])<=-1&&!isNaN(n[e-1])}return!1},a=function(t){var r=!1;return e.forEach((function(n){t.indexOf(n)>-1&&(r=!0)})),r};return i(r,n.monthNames)||i(r,n.abbreviatedMonthNames)||i(r,n.dayNames)||i(r,n.abbreviatedDayNames)||o(r,n.monthNames.concat(n.abbreviatedMonthNames))||a(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t.eUt=["@","#","!","`","^","$","*","(",")","&"],t}(),r.ct=g},"./src/common/util/functionhelper.ts":function(t,r,n){var e,i,o,u;function a(t){return t}function s(t,r,n,a,s,f,c,y,m,M,h){var d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I=n[o],B=n[u],L=r[o],G=r[u],z=a[o],K=a[u],J=1===B,V=1===G;if(L===I&&G===B){for(P=0,C=0,A=0,T=0,F=I*B,d=0;d<I;d++)for(l=0;l<B;l++){if(g=f(n[d][l]),p=f(r[d][l]),t&&(i(g)||i(p)))return m;P+=g,C+=g*g,A+=p=M(p),T+=g*p}for(O=F*T-P*A,_=s?(A*C-P*T)/(F*C-P*P):0,((j=(b=s?O/(F*C-P*P):T/C).toString()).indexOf("000000000000")>1||j.indexOf("999999999999")>1)&&(b=e.st.E8(b,12),_=e.st.E8(_,12)),w=[],d=0;d<z;d++)for(w[d]=[],l=0;l<K;l++){if(g=f(a[d][l]),t&&i(g))return m;w[d][l]=0===O?r[0][0]:h(e.st.Jme(b*g,_))}return c?new c(w):w}if(V&&L===I||1===L&&G===B){for(g=[],p=[],S=B+1,x=B+2,d=0;d<I;d++){if(_=f(H=V?r[d][0]:r[0][d]),t&&i(_))return m;p[d]=J?M(_):_}for(d=0;d<I;d++)for(g[d]=[],l=0;l<B;l++){if(_=f(n[d][l]),t&&i(_))return m;g[d][l]=_}for(E=[],b=0;b<S;b++)for(E[b]=[],F=0;F<x;F++)E[b][F]=0;for(v=0;v<I;v++)for(E[0][S]+=p[v],d=0;d<B;d++)for(H=d+1,E[0][H]+=g[v][d],E[H][0]=E[0][H],E[H][S]+=g[v][d]*p[v],l=d;l<B;l++)E[$=l+1][H]+=g[v][d]*g[v][l],E[H][$]=E[$][H];for(E[0][0]=I,D=R=s?0:1;D<S;D++){if(t){if(0===E[D][D]){for(k=!1,l=D+1;!k&&l<S;l++)if(0!==E[l][D]){for(v=0;v<x;v++)$=E[D][v],E[D][v]=E[l][v],E[l][v]=$;k=!0}if(!k)return y}}else{for(d=D;d<S&&0===E[d][D];)d++;if(d>=S)return y;for(N=R;N<x;N++)H=E[D][N],E[D][N]=E[d][N],E[d][N]=H}for(H=1/E[D][D],N=R;N<x;N++)E[D][N]*=H;for(d=R;d<S;d++)if(d!==D)for(H=-E[d][D],N=0;N<x;N++)E[d][N]+=H*E[D][N];s||(E[0][S]=0)}for(w=[],V||(w[0]=[]),d=0;d<z;d++){for(V&&(w[d]=[]),H=E[0][S],l=0;l<B;l++){if(_=f(V?a[d][l]:a[l][d]),t&&i(_))return m;H+=E[l+1][S]*_}V?w[d][0]=h(H):w[0][d]=h(H)}return c?new c(w):w}return y}function f(t,r,n,e,i,o,u,f){return s(!0,t,r,n,e,i,o,f,u,a,a)}function c(t,r,n,e,i,f,c){var y,m;for(y=0;y<t[o];y++)for(m=0;m<t[u];m++)if(t[y][m]<=0)return f;return s(!1,t,r,n,e,a,i,c,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,e=n("./src/common/util/numberhelper.ts"),i=isNaN,o="rowCount",u="colCount",r.eit=f,r.iit=c},"./src/common/util/numberhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T;function O(t,r,n,e){return r&&0!==r.length&&"i"!==r?j(t,r,n.NumberFormat,e):n&&n.name.length>0?t.toLocaleString():t.toString()}function j(t,r,n,e){var i;return Y(t,I(r),n,e)}function E(t,r){for(var n,e,i,o,u,a,s,f,c=v(g(t)),y={iUt:1,rUt:0};c>=10&&Number.isFinite(c);)c/=10,y.iUt++;return e=(n=t.toString()).search(/e/gi),i=n.indexOf(r),-1!==e?(u=D(n,0,e),a=D(n,e+1),s=0,-1!==i&&(s=D(u,i+1).length),(o=s-(f=h(a)))<0&&(o=0),y.rUt=o):(o=0,-1!==i&&(o=D(n,i+1).length),y.rUt=o),y}function R(t){var r,n={oUt:t.charAt(0),aUt:0,tUt:0},e="";for(r=1;r<t.length;r++)if("+"===(e=t.charAt(r)))n.aUt=1;else{if("-"!==e){if("0"===e){n.tUt=t.length-r;break}throw new Error($().Exp_InvalidExponentFormat)}n.aUt=-1}return n}function I(t){var r,n,e,i,o,u,a={uUt:y,sUt:y,rCt:d,fxt:0,d0:0,cUt:0,fUt:y},s="",f=d,c=d,m=d,M=d,h=d,v=d,g=y,p=[];for(n=0;n<t.length;n++){if(r=t.charAt(n),f)s+=r,'"'===r&&(p.push(s),s="",f=d);else if(c){if("E"===g||"e"===g){if(!(["+","-","0"].indexOf(r)>=0)){c=d,n--;continue}s+=r}else if("+"===g||"-"===g){if("0"!==r){c=d,n--;continue}s+=r}else if("0"===g){if("0"!==r){c=d,h||(h=l,a.fUt=R(s)),n--;continue}s+=r}}else if("*"!==g&&"_"!==g&&"\\"!==g||""===s)if("*"===r||"_"===r||"\\"===r)v=d,""!==s&&(p.push(s),s=""),s+=r;else if("'"===r)v=d,""!==s&&(p.push(s),s=""),p.push(r);else if('"'===r)v=d,f=l,""!==s&&(p.push(s),s=""),s+=r;else if(C.indexOf(r)>=0)v=l,C.indexOf(g)<0&&""!==s&&(p.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=d,a.d0++,""!==s&&(p.push(s),s=""),p.push(r);else if("\u2030"===r)v=d,a.cUt++,""!==s&&(p.push(s),s=""),p.push(r);else if(","===r)if(v){for(e=void 0,""!==s&&(p.push(s),s=""),i=l,o="",u=n+1;u<t.length;u++)if(e=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(C.indexOf(e)>=0){i=d;break}if("."===e||";"===e)break;o=e}else o="";else'"'===e&&(o="");i?a.fxt++:m||(e=t.charAt(n+1))&&C.indexOf(e)>=0&&(M=l)}else s+=r;else"E"===r||"e"===r?(v=d,c=l,""!==s&&(p.push(s),s=""),s+=r):(v=d,C.indexOf(g)>=0&&""!==s&&(p.push(s),s=""),s+=r);else""!==s&&(p.push(s),s=""),a.uUt=p,p=[],m=l,v=d;else s+=r,p.push(s),s="";g=r}return""!==s&&(c&&!h&&(a.fUt=R(s)),p.push(s)),M&&(a.rCt=l),m?a.sUt=p:a.uUt=p,a}function B(t,r,n,e){var i,o,u,a,s,f=r[0],c=1,y=0,m=d,M=t.length;for(i=0;i<M;i++)if("number"===(o=t[i].type)){for(u="",s=(a=t[i].value).length-1;s>=0;){if(!(1<=f&&f<=9||0===f&&c===r.length))throw new Error($().Exp_InvalidNumberGroupSize);/\d/gi.test(a[s])?(m&&(u&&t.push({type:"number",value:u}),t.push({type:"groupSeparator",value:n}),u="",m=d),y++):y=0,u=a[s]+u,y===f&&f>0&&(m=l,y=0,c<r.length&&(f=r[c],c++)),s--}u&&t.push({type:o,value:u})}else"fillingChar"===o&&(e.infillIndex=t.length-M),t.push({type:o,value:t[i].value});return t.splice(0,M)}function L(t,r,n,e,i,o){var u,a,s,y,m=tt(t,-r);return isFinite(m)||(m=t),y=(u=(t=m).toString()).split(/e/i),u=y[0],s=y.length>1?M(y[1],10):0,y=u.split("."),u=y[0],a=y.length>1?y[1]:"",s>0?(u+=(a=c(a,s)).slice(0,s),a=D(a,s)):s<0&&(s=-s,a=(u=t<0?o+f(u.replace(o,""),s+1):f(u,s+1)).slice(-s,u.length)+a,u=u.slice(0,-s)),u+(a=r>0?i+(a=a.length>r?a.slice(0,r):c(a,r)):"")}function G(t,r,n,e){var i=t;return r>0&&(i=et(i*p(100,r),15)),n>0&&(i=et(i*p(1e3,n),15)),e>0&&(i=et(i/p(1e3,e),15)),i}function z(t){var r,n,e=y;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function K(t,r){return t===r||0!==t&&0!==r&&(g(t-r)<g(t)/T||(t=et(t,15),r=et(r,15),g(t-r)<g(t)/T))}function J(t,r){return K(t,-r)?0:t+r}function V(t,r,n){var e,i,o={value:t,exponentValue:0},u=E(t,"."),a=u.iUt,s=g(t),f=n?n.length:1;if(s>=1)a>f?(a-=f,o.value=t/p(10,a),o.exponentValue=a):o.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(s<1&&s>0){for(r.aUt=-1,e=p(10,f);10*s<e&&!K(10*s,e);)s*=10,o.exponentValue++;i=p(10,o.exponentValue),o.value*=i>F?0:i}return o}function W(t,r,n,e,i,o,u,a){var s,c,y,m,M,h,d,v,g,p,b,F,_=a.numberGroupSizes,w=a.numberGroupSeparator,H=a.negativeSign,N=a.percentSymbol,$=a.perMilleSymbol,k=e.fUt,S=D(r,0,1);for(S===H&&(r=D(r,1)),r=0===(s=1===r.length&&"0"===r?0:r.length)?"":r,c=0,y="",m=t.length-1;m>=0;m--)if(M="",h=t[m],/^(0|#|\?)+/g.test(h)){if(y!==n){for(d=h.length,v=s-c-1;v>=0&&d>0;v--)M=(g=r.charAt(v))+M,d--,c++;for(p=d-1;p>=0;p--)c++,"0"===(b=h[p])?M=b+M:"?"===b&&(""!==M&&(o.push({type:"number",value:M}),M=""),o.push({type:"numberPlaceholder",value:b}));(y=h+y)===n&&c<s&&(M=r.substr(0,s-c)+M),""!==M&&o.push({type:"number",value:M})}}else e.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(h)?(u.replaceExponent=l,F="",F+=k.oUt,F+=x[k.aUt],F+=f(i.toString(),k.tUt),o.push({type:"exponent",value:F})):"_"===h[0]?o.push({type:"placeholder",value:h[1]}):"*"===h[0]?u.hasInfilling||(o.push({type:"fillingChar",value:h[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===h[0]?2===h.length&&o.push({type:"text",value:h[1]}):'"'===h[0]&&'"'===h[h.length-1]?h.length>2&&o.push({type:"text",value:h.substr(1,h.length-2)}):h===N?o.push({type:"percent",value:h}):h===$?o.push({type:"permille",value:h}):A[h]?o.push({type:"currency",value:h}):o.push({type:"text",value:h});S===H&&n&&o.push({type:"text",value:S}),e.rCt===l&&B(o,_,w,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function U(t,r,n,e,i,o,u,a,s){var c,y,m,M,h,d,v,g,p,b,F,_,w=s.numberDecimalSeparator,D=s.percentSymbol,H=s.perMilleSymbol,N=r.indexOf(w),$=i.fUt;for((N>0||e!==k||n!==S)&&u.push({type:"decimalSeparator",value:w}),c=-1!==N?r.substring(N+1):"",y=0,m="",M=0;M<t.length;M++)if(h=t[M],/^(0|#|\?)+/g.test(h)){if(d="",m!==n){for(v=h.length,g=0,p=y;v>0&&c.length-y>0;)d+=c.charAt(p),v--,y++,g++,p++;for(b=g;v>0;)F=h[b],b++,y++,v--,"0"===F?d+=F:"?"===F&&(""!==d&&(u.push({type:"number",value:d}),d=""),u.push({type:"numberPlaceholder",value:F}));""!==d&&u.push({type:"number",value:d}),m+=h}}else $&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(h)?(a.replaceExponent=l,_="",_+=$.oUt,_+=x[$.aUt],_+=f(o.toString(),$.tUt),u.push({type:"exponent",value:_})):"_"===h[0]?u.push({type:"placeholder",value:h[1]}):"*"===h[0]?(u.push({type:"fillingChar",value:h[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===h[0]?2===h.length&&u.push({type:"text",value:h[1]}):'"'===h[0]&&'"'===h[h.length-1]?h.length>2&&u.push({type:"text",value:h.substr(1,h.length-2)}):h===D?u.push({type:"percent",value:h}):h===H?u.push({type:"permille",value:h}):A[h]?u.push({type:"currency",value:h}):u.push({type:"text",value:h})}function q(t,r){var n=t,e=t.indexOf(r);return-1!==e&&(n=t.replace(/0+$/,"")),n}function Y(t,r,n,e){var i,o,u,a,s,f,c,y,m,M,h,l,v,p,F,_,w=[];return t=G(t,r.d0,r.cUt,r.fxt),i=r.uUt,o=r.sUt,i||o?(u=z(i),(a=z(o))||(a=""),r.fUt&&(t=(f=V(t,r.fUt,u)).value,s=f.exponentValue),c=E(t,"."),g(t)>1&&c.iUt+c.rUt>15&&(t=et(t,15)),y=n.numberGroupSizes,m=n.numberGroupSeparator,M=n.numberDecimalSeparator,h=n.negativeSign,v=L(t,l=b(c.rUt,a.length),y,m,M,h),e||(v=q(v,M)),""===v?(w.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),w):(p={hasInfilling:d,infillIndex:-1,replaceExponent:d},"10"!==(F=v.split(M)[0])||isNaN(s)||(F="1",s+=(_=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),i&&W(i,F,u,r,s,w,p,n),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&w.push({type:"number",value:F}),o&&U(o,v,a,u,r,s,w,p,n)),w)):w}function X(t,r){var n,e,i,o,a,f,c,m,d,l,v,g,p,b,F,_,w;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?h(t):t.match(/^0x[a-f0-9]+$/i)?M(t,10):(o=(i=Z(t,n=r.NumberFormat,e=n.numberNegativePattern))[0],a=i[1],""===o&&1!==e&&(o=(i=Z(t,n,1))[0],a=i[1]),""===o&&(o="+"),a[0]===n.currencySymbol&&(a=D(a,1)),(m=a.indexOf("e"))<0&&(m=a.indexOf("E")),m<0?(c=a,f=y):(c=D(a,0,m),f=D(a,m+1)),(v=c.indexOf("."))<0?(d=c,l=y):(d=D(c,0,v),l=D(c,v+1)),d=d.split(",").join(""),","!==(g=",".replace(/\u00A0/g," "))&&(d=d.split(g).join("")),p=o+d,l!==y&&(p+="."+l),(b=p[p.length-1])===n.percentSymbol&&(p=D(p,0,p.length-1),-1===(F=(p=u.zf.s6t(p,"")).indexOf("."))&&(F=p.length),_="",_+=D(p,0,F-2),_+=".",_+=D(p,F-2,2),p=_+=D(p,F+1)),f!==y&&(""===(w=Z(f,n,1))[0]&&(w[0]="+"),p+="e"+w[0]+w[1]),p.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?h(p):NaN)}function Z(t,r,n){var e=r.negativeSign,i=r.positiveSign;if(4!==n&&2!==n||(e=" "+e,i=" "+i),4===n||3===n){if(u.zf.dT(t,e))return["-",D(t,0,t.length-e.length)];if(u.zf.dT(t,i))return["+",D(t,0,t.length-i.length)]}else if(2===n||1===n){if(u.zf.fJ(t,e))return["-",D(t,e.length)];if(u.zf.fJ(t,i))return["+",D(t,i.length)]}else{if(0!==n)throw new Error("");if(u.zf.fJ(t,"(")&&u.zf.dT(t,")"))return["-",D(t,1,t.length-2)]}return["",t]}function Q(t,r,n){if(0!==g(v(t)-t))throw new Error($().Exp_BadFormatSpecifier);var e=t>=0?t.toString(16):(P+t+1).toString(16);return e=r?e.toLowerCase():e.toUpperCase(),!s(n)&&e.length<n?f(e,n):e}function tt(t,r){var n,e;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(n=t<0)?-t:t,typeof r===m||0===r?(t=Math.round(t),n?-t:t):(e=t.toString().split("e"),t=Math.round(+(e[0]+"e"+(e[1]?+e[1]-r:-r))),+((e=(t=n?-t:t).toString().split("e"))[0]+"e"+(e[1]?+e[1]+r:r))))}function rt(t){var r=a.CultureManager.Fe().NumberFormat;return"string"==typeof t&&(r=a.CultureManager.Fe(t).NumberFormat),r}function nt(t){var r,n,e,i="";if(Array.isArray(t)&&t.length>0)for(r=0;r<t.length;r++)if(n=t[r].type,e=t[r].value,"placeholder"===n)i+=" ";else{if("fillingChar"===n)continue;i+="numberPlaceholder"===n?" ":e}return i}function et(t,r){return"number"==typeof t&&t.toString().length>=r&&(t=+t.toPrecision(r)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.st=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/types.ts"),o=n("./src/common/util/regexhelper.ts"),u=n("./src/common/util/stringhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=i.lt.ht,f=u.zf.B9t,c=u.zf.lUt,y=null,m=void 0,M=parseInt,h=parseFloat,d=!1,l=!0,v=Math.floor,g=Math.abs,p=Math.pow,b=Math.min,F=Number.MAX_VALUE,_="#dot#",w="#group#",D=function(t,r,n){return t.substr(r,n)},H=function(t){return o.$T.qT(t)},N=new e.ResourceManager(e.SR),$=N.getResource.bind(N),k="##################0",S="################",x={1:"+",0:"","-1":"-"},P=4294967295,C=["0","#","?"],A={"\xa4":"\xa4",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH\u20b5":"GH\u20b5","\u1265\u122d":"\u1265\u122d","\u0631.\u0633.\u200f":"\u0631.\u0633.\u200f",XDR:"XDR","\u062f.\u0625.\u200f":"\u062f.\u0625.\u200f","\u062f.\u0628.\u200f":"\u062f.\u0628.\u200f","\u062f.\u062c.\u200f":"\u062f.\u062c.\u200f","\u062c.\u0645.\u200f":"\u062c.\u0645.\u200f","\u20aa":"\u20aa","\u062f.\u0639.\u200f":"\u062f.\u0639.\u200f","\u062f.\u0627.\u200f":"\u062f.\u0627.\u200f","\u0641.\u062c.\u0642.\u200f":"\u0641.\u062c.\u0642.\u200f","\u062f.\u0643.\u200f":"\u062f.\u0643.\u200f","\u0644.\u0644.\u200f":"\u0644.\u0644.\u200f","\u062f.\u0644.\u200f":"\u062f.\u0644.\u200f","\u062f.\u0645.\u200f":"\u062f.\u0645.\u200f","\u0623.\u0645.\u200f":"\u0623.\u0645.\u200f","\u0631.\u0639.\u200f":"\u0631.\u0639.\u200f","\u0631.\u0642.\u200f":"\u0631.\u0642.\u200f","\u062c.\u0633.":"\u062c.\u0633.",S:"S","\xa3":"\xa3","\u0644.\u0633.\u200f":"\u0644.\u0633.\u200f","\u062f.\u062a.\u200f":"\u062f.\u062a.\u200f","\u0631.\u064a.\u200f":"\u0631.\u064a.\u200f","\u20b9":"\u20b9",TSh:"TSh","\u20ac":"\u20ac","\u20bc":"\u20bc","\u20bd":"\u20bd",K:"K","\u043b\u0432.":"\u043b\u0432.","\u20a6":"\u20a6",CFA:"CFA","\u09f3":"\u09f3","\xa5":"\xa5",KM:"KM","\u041a\u041c":"\u041a\u041c",USh:"USh","K\u010d":"K\u010d","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","\u0783.":"\u0783.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","\u20b1":"\u20b1",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","\u20a1":"\u20a1",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","\u20b2":"\u20b2","Bs.":"Bs.","\u0631\u064a\u0627\u0644":"\u0631\u064a\u0627\u0644",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","\u058f":"\u058f",ISK:"ISK","\u20be":"\u20be","\u200b":"\u200b","\u20b8":"\u20b8","\u17db":"\u17db","\u20a9":"\u20a9","\u0441\u043e\u043c":"\u0441\u043e\u043c",Kz:"Kz","\u20ad":"\u20ad",MTn:"MTn","\u0434\u0435\u043d":"\u0434\u0435\u043d","\u20ae":"\u20ae","\u0930\u0941":"\u0930\u0941","Afl.":"Afl.","\u07d6\u07d5.":"\u07d6\u07d5.","\u0440\u0443\u0431.":"\u0440\u0443\u0431.","z\u0142":"z\u0142","\u060b":"\u060b",R$:"R$",Db:"Db",RON:"RON","\u20b4":"\u20b4",MAD:"MAD","\u0dbb\u0dd4.":"\u0dbb\u0dd4.","Lek\xeb":"Lek\xeb",den:"den",RSD:"RSD","\u0434\u0438\u043d.":"\u0434\u0438\u043d.","\u0720.\u0723.\u200f":"\u0720.\u0723.\u200f","Rs.":"Rs.","\u0441\u043c\u043d":"\u0441\u043c\u043d","\u0e3f":"\u0e3f","m.":"m.","\u20ba":"\u20ba","\u2d37\u2d54":"\u2d37\u2d54","so\u02bbm":"so\u02bbm","\u0441\u045e\u043c":"\u0441\u045e\u043c","\u20ab":"\u20ab",HK$:"HK$",MOP:"MOP",NT$:"NT$"},T=Math.pow(2,48),r.st={yU:function(t){return X(t,a.CultureManager.Fe())},Z6t:function(t){return X(t,a.CultureManager.Fe("invariant"))},L9t:function(t,r,n,e){return n||(n=a.CultureManager.Fe()),O(t,r,n,e)},Ge:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("[.]"),_)),","!==i&&(t=t.replace(H("[,]"),w)),"."!==e&&(t=t.replace(H(_),e)),","!==i&&(t=t.replace(H(w),i))),t},Jf:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("["+e+"]"),_)),","!==i&&(t=t.replace(H("["+i+"]"),w)),"."!==e&&(t=t.replace(H(_),".")),","!==i&&(t=t.replace(H(w),","))),t},hUt:function(t,r){var n,e,i;return!("string"==typeof t&&(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&"."!==i&&t.indexOf(".")>=0||","!==e&&","!==i&&t.indexOf(",")>=0))},dUt:function(t,r){return h(this.Jf(t,r))},VGt:Q,v0:I,vUt:Y,ukt:K,Jme:J,mUt:nt,gUt:k,pUt:S,E8:et}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var n=Math.max,e=Math.min,i=Number.POSITIVE_INFINITY;function o(t,r){this.bUt=n(4,t||9),this.yUt=n(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function u(t,r,n){if(!n)return r.indexOf(t);for(var e=0;e<r.length;e++)if(n(t,r[e]))return e;return-1}function a(t,r){s(t,0,t.children.length,r,t)}function s(t,r,n,e,o){o||(o=g(null)),o.minX=i,o.minY=i,o.maxX=-i,o.maxY=-i;for(var u=r,a=void 0;u<n;u++)a=t.children[u],f(o,t.leaf?e(a):a);return o}function f(t,r){return t.minX=e(t.minX,r.minX),t.minY=e(t.minY,r.minY),t.maxX=n(t.maxX,r.maxX),t.maxY=n(t.maxY,r.maxY),t}function c(t,r){return t.minX-r.minX}function y(t,r){return t.minY-r.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function M(t){return t.maxX-t.minX+(t.maxY-t.minY)}function h(t,r){return(n(r.maxX,t.maxX)-e(r.minX,t.minX))*(n(r.maxY,t.maxY)-e(r.minY,t.minY))}function d(t,r){var i=n(t.minX,r.minX),o=n(t.minY,r.minY),u=e(t.maxX,r.maxX),a=e(t.maxY,r.maxY);return n(0,u-i)*n(0,a-o)}function l(t,r){return t.minX<=r.minX&&t.minY<=r.minY&&(r.maxX>=0&&r.maxX<=t.maxX||t.minX<0)&&(r.maxY>=0&&r.maxY<=t.maxY||t.minY<0)}function v(t,r){return(-1===t.minY||-1===r.minY||t.minY<=r.maxY&&r.minY<=t.maxY)&&(-1===t.minX||-1===r.minX||t.minX<=r.maxX&&r.minX<=t.maxX)}function g(t){return{children:t,height:1,leaf:!0,minX:i,minY:i,maxX:-i,maxY:-i}}r.rbush=o,o.prototype={all:function(){return this.QP(this.data,[])},search:function(t){var r,n,e,i,o,u=this.data,a=[],s=this.toBBox;if(!v(t,u))return a;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)i=u.children[n],v(t,o=u.leaf?s(i):i)&&(u.leaf?a.push(i):l(t,o)?this.QP(i,a):r.push(i));u=r.pop()}return a},collides:function(t){var r,n,e,i,o,u=this.data,a=this.toBBox;if(!v(t,u))return!1;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)if(i=u.children[n],v(t,o=u.leaf?a(i):i)){if(u.leaf||l(t,o))return!0;r.push(i)}u=r.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,r){if(!t)return this;for(var n=this.data,e=this.toBBox(t),i=[],o=[],a,s,f,c;n||i.length;){if(n||(n=i.pop(),s=i[i.length-1],a=o.pop(),c=!0),n.leaf&&-1!==(f=u(t,n.children,r)))return n.children.splice(f,1),i.push(n),this.MUt(i),this;c||n.leaf||!l(n,e)?s?(a++,n=s.children[a],c=!1):n=null:(i.push(n),o.push(a),a=0,s=n,n=n.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var n=[];t;)t.leaf?r.push.apply(r,t.children):n.push.apply(n,t.children),t=n.pop();return r},CUt:function(t,r,n,e){for(var o,u,a,s,f,c,y,M;e.push(r),!r.leaf&&e.length-1!==n;){for(y=M=i,o=0,u=r.children.length;o<u;o++)f=m(a=r.children[o]),(c=h(t,a)-f)<M?(M=c,y=f<y?f:y,s=a):c===M&&f<y&&(y=f,s=a);r=s||r.children[0]}return r},Eit:function(t,r,n){var e=this.toBBox,i=n?t:e(t),o=[],u=this.CUt(i,this.data,r,o);for(u.children.push(t),f(u,i);r>=0&&o[r].children.length>this.bUt;)this.SUt(o,r),r--;this.TUt(i,o,r)},SUt:function(t,r){var n,e,i=t[r],o=i.children.length,u=this.yUt;this.AUt(i,u,o),n=this.IUt(i,u,o),(e=g(i.children.splice(n,i.children.length-n))).height=i.height,e.leaf=i.leaf,a(i,this.toBBox),a(e,this.toBBox),r?t[r-1].children.push(e):this.xUt(i,e)},xUt:function(t,r){this.data=g([t,r]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},IUt:function(t,r,n){var e,o,u,a,f,c,y,M;for(c=y=i,e=r;e<=n-r;e++)a=d(o=s(t,0,e,this.toBBox),u=s(t,e,n,this.toBBox)),f=m(o)+m(u),a<c?(c=a,M=e,y=f<y?f:y):a===c&&f<y&&(y=f,M=e);return M},AUt:function(t,r,n){var e=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:y,o,u;this.NUt(t,r,n,e)<this.NUt(t,r,n,i)&&t.children.sort(e)},NUt:function(t,r,n,e){t.children.sort(e);var i=this.toBBox,o=s(t,0,r,i),u=s(t,n-r,n,i),a=M(o)+M(u),c,y;for(c=r;c<n-r;c++)y=t.children[c],f(o,t.leaf?i(y):y),a+=M(o);for(c=n-r-1;c>=r;c--)y=t.children[c],f(u,t.leaf?i(y):y),a+=M(u);return a},TUt:function(t,r,n){for(var e=n;e>=0;e--)f(r[e],t)},MUt:function(t){for(var r=t.length-1,n=void 0;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children).splice(n.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},wUt:function(t){var r=["return a"," - b",";"];this.compareMinX=new Function("a","b",r.join(t[0])),this.compareMinY=new Function("a","b",r.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"./src/common/util/regexhelper.ts":function(t,r,n){var e,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,e=n("./src/common/util/stringhelper.ts"),i=!0,o="empty",u=function(){function t(){}return t.bue=function(r,n){var e;if(n&&t.yue[n]&&t.yue[n][r])e=t.yue[n][r];else try{null==n?(e=new RegExp(r),n=o):e=new RegExp(r,n),t.yue[n]||(t.yue[n]={}),t.yue[n][r]=e}catch(t){return null}return e.lastIndex=0,e},t.qT=function(r){var n=t.kUt[r];return n||(n=t.kUt[r]=new RegExp(r,"g")),n.lastIndex=0,n},t.OJ=function(r){var n=t.DUt[r];return n||(n=t.DUt[r]=new RegExp(r,"gi")),n.lastIndex=0,n},t.jJ=function(r,n,e){var o,u,a,s,f,c;if(t._Ut[r])return t.EUt[r];if(o=n?"[?*]+":"[~?*]+",t.qT(o).test(r)){for(u=[],a=r.split(""),s=void 0,f={".":i,"+":i,$:i,"^":i,"[":i,"]":i,"(":i,")":i,"{":i,"}":i,"|":i,"/":i,"\\":i},c=0;c<a.length;c++)if("~"===(s=a[c])){if(!(c<a.length-1))break;"*"!==(s=a[++c])&&"?"!==s||u.push("\\"),u.push(s)}else"?"===s?u.push("."):"*"===s?(u.push("[\\s\\S]"),e?u.push("+"):u.push("*")):f[s]?(u.push("\\"),u.push(s)):u.push(s);return u.join("")}return null},t.tbt=function(r,n,e){var i=t.jJ(r,n,e);return i&&(i="^"+i+"$"),i},t.jUt=function(t,r){for(var n="#"+t+"0#",i=1;r.indexOf(n)>0;)n=e.zf.qS(n,"#"+t+(i-1)+"#","#"+t+i+"#"),i++;return n},t.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},t.kUt={},t.DUt={},t.yue={},t._Ut={},t.EUt={},t}(),r.$T=u},"./src/common/util/stringhelper.ts":function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.zf=void 0;var e=n("./src/common/util/regexhelper.ts");function i(t,r,n){return t.substr(r,n)}function o(t){return null==t}function u(t,r,n,e){var i,u;if(o(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,u=r,n&&(i=i.toLowerCase(),u=u.toLowerCase()),e(i,u))}r.zf={OS:function(t,r,n){return n&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||t.indexOf(r)>=0},hD:function(t,r,n){var e,i;return n?(e=t.toLowerCase(),i=r.toLowerCase(),e.indexOf(i)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var n=t;i(n,0,r.length)===r;)n=i(n,r.length);return n},s6t:function(t,r){if(!r)return t;for(var n=t;i(n,n.length-r.length,r.length)===r;)n=i(n,0,n.length-r.length);return n},Eit:function(t,r,n){var e,u;if(r<0||r>t.length||o(n))throw new Error;return(e=i(t,0,r))+n+(u=i(t,r,t.length-r))},VP:function(t,r,n){var e,u;if(o(n)&&(n=t.length-r),r<0||n<0||r+n>t.length)throw new Error;return(e=i(t,0,r))+(u=i(t,r+n,t.length-r-n))},fJ:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(0,r.length)===r}))},dT:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(-r.length)===r}))},Vi:function(t,r,n,e){if(!r)throw new Error;return n=(""+n).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(e?"i":"")),n)},OUt:function(t,n,i,o){return n=e.$T.D9t(n),r.zf.Vi(t,n,i,o)},gmt:function(t,r){var n=t.indexOf(r);return n<0||n>=t.length?t:i(t,0,n)},DU:function(t,r){for(var n=0,e=t.indexOf(r);e>=0;)n+=1,e=t.indexOf(r,e+1);return n},qS:function(t,r,n){return t.split(r).join(n)},I5:function(t,r){var n,e,i=t;for(n=0;n<r.length;n++)e=new RegExp("\\{"+n+"\\}","g"),i=i.replace(e,r[n]);return i},RUt:function(t,r,n){var e,i=t.toString();for(e=i.length;e<r;e++)i=n?"0"+i:i+"0";return i},B9t:function(t,n){return r.zf.RUt(t,n,!0)},lUt:function(t,n){return r.zf.RUt(t,n,!1)},Dbt:function(t,r){return t===r||!t&&!r||t&&r&&t.toLowerCase()===r.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},n=e.$T.qT("(?:&|<|>|\"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},dI:function(t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},n=e.$T.qT("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},TY:function(t){for(var r=t,n=/javascript:/gi;r.match(n);)r=r.replace(n,"");return r}}},"./src/common/util/types.ts":function(t,r){var n,e;Object.defineProperty(r,"__esModule",{value:!0}),r.lt=void 0,n="undefined"!=typeof window?window.File:null,e="undefined"!=typeof window?window.Blob:null,r.lt={BUt:null,y0:function(t,n){var e,i,o,u;if(r.lt.Gh(t))for(i=0,o=t.length;i<o&&!1!==(e=n.call(t[i],i,t[i]));i++);else for(u in t)if(t.hasOwnProperty(u)&&!1===(e=n.call(t[u],u,t[u])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===r.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===r.lt.Oh(t)},jh:function(t){return r.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var n,e,i,o,u,a;if(null===t)return"null";if(!(n=r.lt.BUt))for(n=r.lt.BUt={},i=0,o=(e=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;i<o;i++)n["[object "+e[i]+"]"]=e[i].toLowerCase();return u=n.toString,"object"===(a=typeof t)||"function"===a?n[u.call(t)]||"object":a},Rh:function(t,n,e){var i,o;if(n){if(o=[].indexOf)return o.call(n,t,e);for(i=n.length,r.lt.ht(e)&&(e=0),e=e<0?Math.max(0,i+e):e;e<i;e++)if(e in n&&n[e]===t)return e}return-1},Bh:function(t,r){var n=r.length,e=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[e]=r[i],e++;else for(;void 0!==r[i];)t[e]=r[i],e++,i++;return t.length=e,t},Lh:function(t,n,e){var i,o,u,a,s=[];if(r.lt.Gh(t))for(o=0,u=t.length;o<u;o++)null!==(i=n(t[o],o,e))&&(s[s.length]=i);else for(a in a=void 0,t)t.hasOwnProperty(a)&&null!==(i=n(t[a],a,e))&&(s[s.length]=i);return s.concat([])},Dh:function(){var t,n,e,i,o,u,a,s,f,c,y,m=[];for(t=0;t<arguments.length;t++)m[t]=arguments[t];for(s=m[0]||{},f=1,c=m.length,y=!1,"boolean"==typeof s&&(y=s,s=m[1]||{},f=2),"object"==typeof s||r.lt.Eh(s)||(s={}),c===f&&(s=this,--f);f<c;f++)if(u=m[f],!r.lt.ht(u))for(o in u)n=s[o],s!==(i=u[o])&&(e=r.lt.Nh(i),y&&i&&(r.lt.Ph(i)||e)?(a=e?n&&r.lt.Nh(n)?n:[]:n&&r.lt.Ph(n)?n:{},s[o]=r.lt.Dh(y,a,i)):void 0!==i&&(s[o]=i));return s},Fh:function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var n,e;if(!t||"object"!==r.lt.Oh(t)||t.nodeType||r.lt.Uh(t))return!1;n={}.hasOwnProperty;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)},Gh:function(t){if(r.lt.ht(t))return!1;var n=t.length,e=r.lt.Oh(t);return!r.lt.Uh(t)&&(!(1!==t.nodeType||!n)||("array"===e||"function"!==e&&(0===n||"number"==typeof n&&n>0&&n-1 in t)))},Hh:function(t,n){var e=n||[];return null!==t&&(r.lt.Gh(Object(t))?r.lt.Bh(e,"string"==typeof t?[t]:t):[].push.call(e,t)),e},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t,i){if(void 0===i&&(i=!0),!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||r.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var o,u,a;if(n&&t instanceof n)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(e&&t instanceof e)return new e([t],{type:t.type});for(u in o=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(u)&&(a=t[u],t.hasOwnProperty(u)&&o[u]!==a&&(o[u]="object"==typeof a?r.lt.tv(a):a));return i&&(o.toString=t.toString,o.valueOf=t.valueOf),o}}},"./src/common/util/util.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_Separator=r.Exp_InvalidCast=r.Exp_InvalidNumberFormat=r.Exp_BadFormatSpecifier=r.Exp_InvalidNumberGroupSize=r.Exp_InvalidSemicolons=r.Exp_InvalidExponentFormat=r.Exp_InvalidDateFormat=void 0,r.Exp_InvalidDateFormat="Invalid date format pattern",r.Exp_InvalidExponentFormat="invalid exponent format",r.Exp_InvalidSemicolons="invalid format : too many semicolons",r.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",r.Exp_BadFormatSpecifier="Bad Format Specifier",r.Exp_InvalidNumberFormat="Invalid number format pattern",r.Exp_InvalidCast="InvalidCastException",r.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},"./src/plugins/commands/commands.entry.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,e=n("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return e.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return e.CommandManager}}),i=n("./src/plugins/commands/undomanager.ts"),Object.defineProperty(r,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,r){var n,e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.CommandManager=r.Key=void 0,function(t){t[t.left=37]="left",t[t.right=39]="right",t[t.up=38]="up",t[t.down=40]="down",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.space=32]="space",t[t.altkey=18]="altkey",t[t.home=36]="home",t[t.end=35]="end",t[t.pup=33]="pup",t[t.pdn=34]="pdn",t[t.backspace=8]="backspace",t[t.del=46]="del",t[t.esc=27]="esc",t[t.a=65]="a",t[t.c=67]="c",t[t.v=86]="v",t[t.x=88]="x",t[t.z=90]="z",t[t.y=89]="y"}(n=r.Key||(r.Key={})),e=function(){function t(t,r,n){var e,i;this.jS=t,this.LUt=r,this.Zc=n,e=this,Object.defineProperty(e,"shortcutKey",{get:function(){return e.FUt},set:function(t){var r,n,o=e.FUt;o!==t&&((r=(i=e.jS.PUt)[o])&&(n=r.indexOf(e))>=0&&r.splice(n,1),e.FUt=t,t&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,e)))}})}return t.prototype.canUndo=function(){var t;return this.LUt.canUndo},t.prototype.execute=function(t,r,n){var e,i,o,u,a,s=this,f=!0,c=!0;if(s.LUt&&r&&(o={command:r,result:i,vM:n,actionType:n,metaData:null===(e=s.LUt)||void 0===e?void 0:e.metaData,r:null,isBefore:!0},s.jS.MGr(o),o.r&&(c=!1,i=!1)),c){try{f=!1!==(i=(u=s.LUt.execute||s.LUt)(t,r,1===n))}catch(t){f=!1}r&&f&&s.jS.HUt({command:s.Zro(r),result:i,vM:n,actionType:n})}return s.jS&&r&&(a={command:r,result:i,vM:n,actionType:n,isBefore:!1},s.jS.MGr(a)),i},t.prototype.Zro=function(t){return t&&!t.cmd&&(t.cmd=this.Zc),t},t}(),i=function(){function t(t){this.DJ=t,this.aT={},this.GUt={},this.yGr={},this.PUt={}}return t.prototype.register=function(t,r,n,i,o,u,a){var s=this,f=new e(s,r,t);s[t]=f,n&&(f.shortcutKey=s.getShortcutKey(n,i,o,u,a))},t.prototype.getCommand=function(t){return this[t]},t.prototype.execute=function(t){var r=this[t.cmd];if(r)return r.execute(this.DJ,t,0)},t.prototype.setShortcutKey=function(t,r,n,e,i,o){var u,a,s,f,c=this;if(t)(u=c[t])&&(u.shortcutKey=c.getShortcutKey(r,n,e,i,o));else if(a=c.getShortcutKey(r,n,e,i,o),s=c.getCommands(a))for(f=s.length-1;f>=0;f--)s[f].shortcutKey=void 0},t.prototype.getShortcutKey=function(t,r,e,i,o){if(t){var u="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):n[t];return u||(u=t),u+(r?"+ctrl":"")+(e?"+shift":"")+(i?"+alt":"")+(o?"+window":"")}},t.prototype.getCommands=function(t){return this.PUt[t]},t.prototype.addListener=function(t,r){this.aT[t]=r},t.prototype.removeListener=function(t){delete this.aT[t]},t.prototype.HUt=function(t){var r,n=this.aT;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.cM=function(t,r){this.GUt[t]=r},t.prototype.zUt=function(t){delete this.GUt[t]},t.prototype.MGr=function(t){var r,n=this.GUt;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.L0=function(){this.DJ=null},t}(),r.CommandManager=i},"./src/plugins/commands/undomanager.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=void 0;var n=function(){function t(t,r,n){var e=this;e.DJ=t,r<0&&(r=2147483647),e.VUt=r,e.Hw=n,e.Nmt=[],e.kmt=[],e.YUt=!1}return t.prototype.dM=function(t,r){var n,e,i,o=this;if(t){if(1===r)o.kmt.push(t);else{if(n=o.VUt,e=o.Nmt.length,n>0&&e>=n)for(i=0;i<e-n+1;i++)o.Nmt.shift();o.Nmt.push(t),0===r&&(o.kmt=[])}o.YUt=!0}},t.prototype.canUndo=function(){return this.Nmt.length>0},t.prototype.undo=function(){var t,r,n=this,e=n.Nmt,i=!0;if(n.Hw&&n.canUndo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,1))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.kmt.push(t))}return i},t.prototype.canRedo=function(){return this.kmt.length>0},t.prototype.redo=function(){var t,r,n=this,e=n.kmt,i=!0;if(n.Hw&&n.canRedo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,2))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.Nmt.push(t))}return i},t.prototype.getRedoStack=function(){return this.kmt.slice()},t.prototype.getUndoStack=function(){return this.Nmt.slice()},t.prototype.maxSize=function(t){var r=this;return arguments.length<1?r.VUt:(t>=0&&(r.VUt=t),r)},t.prototype.clear=function(){this.Nmt=[],this.kmt=[]},t.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},t.prototype.L0=function(){this.DJ=null},t.prototype.setNewChangeStatus=function(t){this.YUt=t},t.prototype.getNewChangeStatus=function(){return this.YUt},t}();r.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/formatter/formatter.ts"),r)},"./src/plugins/formatter/formatter.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_InvalidCast=r.Exp_ValueIllegal=r.Exp_TokenIllegal=r.Exp_DuplicatedDescriptor=r.Exp_ValueIsNull=r.Exp_FormatIllegal=r.Exp_InvalidBackslash=r.Exp_TokenIsNull=void 0,r.Exp_TokenIsNull="token is null",r.Exp_InvalidBackslash="the '\\' cannot be evaluated",r.Exp_FormatIllegal="format is illegal.",r.Exp_ValueIsNull="value is null",r.Exp_DuplicatedDescriptor="The type of descriptor was added.",r.Exp_TokenIllegal="token is illegal.",r.Exp_ValueIllegal="value is illegal.",r.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut=this&&this.qKr||(at=function(t,r){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},at(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}at(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),at;function st(t,r,n){return t.substr(r,n)}function ft(t){return o.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function ct(t,r){if("\\"===t[r])throw new Error(M().Exp_InvalidBackslash);if(r-1>0&&r-1<t.length&&"\\"===t[r-1]){if(r-2<0)return!0;if(r-2>0&&r-2<t.length)return"\\"!==t[r-2]}return!1}function yt(t){if(!t)throw new Error(M().Exp_TokenIsNull);return"["+t+"]"}function mt(t){var r,n,e,i,o;if(t===l||t===d||""===t)return t;for(r="",n=0,e=!1,i=0;i<t.length;i++)'"'===(o=t[i])?(e=!e,r+=o):e?r+=o:"["===o?n++:"]"===o?--n<0&&(n=0):0===n&&(r+=o);return r.toString()}function Mt(t){return t=ht(t,"[",""),ht(t,"]","")}function ht(t,r,n){return!t||t===K.oHt||lt(r,n,!0)?t:(r=r.replace(D,"\\$1"),t.replace(new RegExp(r,"g"),n))}function dt(t){var r,n,e=t.length,i=!1,o="";for(r=0;r<e;r++)"\\"===(n=t.charAt(r))?(i=!i)&&"@"!==t.charAt(r+1)||(o+=n):(i=!1,o+=n);return o}function lt(t,r,n){return n?B(t)===B(r):t===r}function vt(t,r){var n,e,i,o;for(1===arguments.length&&(r=!0),n=!1,e="",i=0;i<t.length;i++){if('"'===(o=t[i]))n=!n;else if(!n&&!r&&"/"===o&&!ct(t,i))continue;e+=o}return e}function gt(t){var r,n,e,i="",o=!1;for(r=0,n=t.length;r<n;r++)'"'===(e=t[r])&&(o=!o),"E"===e||o||(i+=B(e));return i}function pt(t,r){var n,e,i,o;if(!t||t===K.oHt)return!1;for(e=gt(n=vt(t)),i=0;i<r.length;i++)if(0===(o=e.indexOf(r[i]))||o>0&&"_"!==e[o-1]&&"*"!==e[o-1])return!0;return!1}function bt(t,r,n,e){this.j9t=t,this.aHt=r,this.cultureName=n,this.O9t=e}function Ft(t){this.Nat=t}function _t(t){var r,n,i=Mt(t);return i&&i!==K.oHt?(n=i[0],["<",">","="].indexOf(n)>-1?(r=q).Name="ConditionalFormatPart":e.zf.fJ(i,"DBNum",!0)?(r=Y).Name="DBNumberFormatPart":lt(i[0],h,!1)&&i.indexOf("-")>-1?(r=W).Name="LocaleIDFormatPart":Dt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(h)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function wt(t,r){var n,e=!1;return pt(t=t?t.toString():K.oHt,["general"])?n=rt:X.a0(t)?n=X:pt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(e=!0,n=tt):(e=!0,n=nt),{uHt:e,_type:n}}function Dt(t){var r,n=B(t),e=n[0];if("h"!==e&&"m"!==e&&"s"!==e)return!1;for(r=1;r<n.length;r++)if(e!==n[r])return!1;return!0}function Ht(t,r,n){var e,i;return e=t?t.cultureInfo():E(n),(r<4||4===r&&("ko-kr"===n||"ko-kr"===e.name()))&&(i=e.NumberFormat.dbNumber)?i[r]:d}function Nt(t,r,n,e,o){var u,a=t;if(!O(e)&&r instanceof Date){if(!(u=Ht(n,e.type,o)))return t;a=e.sHt(a,u,!0),1===e.type&&(a=a.replace(new RegExp(b,"g"),F)),a=(a=a.replace("@"+g.cHt,i.ct.Pe(r,g.cHt))).replace("@"+g.fHt,i.ct.Pe(r,g.fHt)),a=e.sHt(a,u,!1)}return a}function $t(t,r,n,e,i){var o,u,a,s,f,c,y;if(!O(e)&&(o=Ht(n,e.type,i),!O(o))){for(u=!1,a=void 0,s=E(i),f=void 0,c=0,y=t.length;c<y;c++)"decimalSeparator"===t[c].type&&(u=!0,t[c].value=e.sHt(t[c].value,o,r),a=t[c].value),"number"===t[c].type&&(t[c].value=u?e.sHt(a+t[c].value,o,r).slice(1):e.sHt(t[c].value,o,r),"ja-JP"===s.name()&&t[c].value.length>1&&("\u4e00\u5343"!==(f=t[c].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[c].value=t[c].value.substr(1))));return t}return t}function kt(t){var r,n=[],e=0,i=0,o=t.length;for(r=0;r<o;r++)"_"===t[r]?e++:(";"!==t[r]||0!==e&&e%2!=0||(n.push(t.substring(i,r)),i=r+1),e=0);return i<=o&&n.push(t.substring(i,o)),n}function St(t){var r,n,e=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!O(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},f=function(r,n){if(s(r)){for(var i=r,o=t[n+1];s(o)&&o.toLowerCase()===r.toLowerCase()&&(i+=o,n<t.length-1);)n++,o=t[n+1];e.push(a("symbolic",i))}else"a"===r&&"aaa"===t.slice(n,n+3).toLowerCase()?(e.push(a("symbolic",t.slice(n,n+3))),n+=2):e.push(a("text",r));return n};for(r=0;r<t.length;r++)if(n=t[r],i)e.push(a("text","\\"+n)),i=!1;else if(o&&'"'!==n)u+=n;else switch(n){case"\\":i=!0;break;case'"':o&&(e.push(a("text",'"'+u+'"')),u=""),o=!o;break;default:r=f(n,r)}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralFormatter=r.Hf=r.FormatterBase=void 0,e=n("./src/common/util/stringhelper.ts"),i=n("./src/common/util/datetimehelper.ts"),o=n("./src/common/util/types.ts"),u=n("./src/common/util/numberhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=n("./src/common/util/common.ts"),f=n("./src/plugins/formatter/formatter.res.en.ts"),c=n("./src/plugins/formatter/formatterGrammar/lexer.ts"),y=n("./src/plugins/formatter/formatterGrammar/parser.ts"),o.lt.Dh(s.SR.en,f),m=new s.ResourceManager(s.SR),M=m.getResource.bind(m),h="$",o.lt.dt=function(t,r){if(o.lt.ht(t))return"null"===r;if(!r)return!1;if(r instanceof Function&&t instanceof r)return!0;if(typeof t===r)return!0;if("function"===r&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===r.toLowerCase())return!0;if("DateTime"===r)return t instanceof Date;if("TimeSpan"===r){if(t instanceof Date){var n=i.ct.o0(t);return n>=0&&n<1}return!1}return"string"==typeof r&&"undefined number boolean string".indexOf(r),!1},o.lt.q8=function(t,r){return!!u.st.hUt(t,r)&&(("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=u.st.Jf(t,r),o.lt.dt(t,"number")||o.lt.dt(t,"DateTime")||o.lt.dt(t,"TimeSpan")||t&&!o.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(t.length>=2&&"0"===t[0]&&"x"===t[1])))},o.lt.uJ=function(t){return o.lt.ht(t)||""===t?0:o.lt.dt(t,"number")?t:o.lt.dt(t,"string")&&!isNaN(t)?u.st.yU(t):o.lt.dt(t,"boolean")?t?1:0:o.lt.dt(t,"DateTime")?i.ct.o0(t):o.lt.dt(t,"TimeSpan")?Math.floor(i.ct.o0(t)):parseFloat(t)},d=null,l=void 0,v=Math.abs,g={fHt:"yy",hHt:"y",cHt:"yyyy",dHt:"m",vHt:"mm",mHt:"mmm",gHt:"mmmm",pHt:"mmmmm",bHt:"d",yHt:"dd",wHt:"aaa",MHt:"aaaa",CHt:"h",SHt:"hh",THt:"m",AHt:"mm",IHt:"s",xHt:"ss",IGt:"e",NHt:"AM/PM",kHt:"A/P",DHt:"@mmmmm",_Ht:new Date(1899,11,30,0,0,0,0)},p=[g.hHt,g.fHt,g.cHt,g.dHt,g.vHt,g.mHt,g.gHt,g.pHt,g.bHt,g.yHt,g.wHt,g.MHt,g.CHt,g.SHt,g.THt,g.AHt,g.IHt,g.xHt,"ggg","gg","g","ee","e"],b="\u4e00\u5341",F="\u5341",_={EHt:0,jHt:1,OHt:2,_text:3},w=[{EHt:0,jHt:0,OHt:0,_text:0},{EHt:0,jHt:1,OHt:0,_text:0},{EHt:0,jHt:1,OHt:2,_text:0},{EHt:0,jHt:1,OHt:2,_text:3}],D=new RegExp("([.+?*$^\\[\\](){}|/])","g"),H=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],N=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333"],$=new RegExp("color\\s*(\\d+)","i"),k=o.lt.dt,S=o.lt.Nh,x=u.st,P=x.gUt+"."+x.pUt,C=x.mUt,A=x.L9t,T=x.E8,O=o.lt.ht,j=isNaN,E=function(t){return a.CultureManager.Fe(t)},R=function(t){return E(t).DateTimeFormat},I=function(t){return E(t).NumberFormat},B=function(t){return t&&t.toLowerCase()},L=function(t){return t&&t.toUpperCase()},G=function(){throw new Error(M().Exp_FormatIllegal)},z=function(){return a.CultureManager.booleanMapping},K={oHt:"",I5:function(){var t,r,n,e,i,o,u=[];for(t=0;t<arguments.length;t++)u[t]=arguments[t];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return d;for(e=r[0],i=1;i<arguments.length;i++)o=new RegExp("\\{"+(i-1)+"\\}","gm"),e=e.replace(o,arguments[i]);return e},Ji:function(t){return!t||t===K.oHt}},J=function(t){var r=t.charCodeAt(0);return r>=48&&r<=57},V=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},W=function(){function t(t,r){var n,i,o,u;if(Ft.call(this,r),(n=this).Jq=t,o=lt((i=n.Jq)[0],h,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(M().Exp_TokenIllegal);n.ZUt=st(i,1,u-1),(i=e.zf.VP(i,0,u+1)).length>0&&(n.Iat=parseInt(i,16))}return t.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=E(t.Iat)),t.RHt},t.prototype.currencySymbol=function(){return this.ZUt?e.zf.Vi(this.ZUt,"\\.",'"."'):K.oHt},t.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},t.prototype.toString=function(){return this.Jq?yt(this.Jq):K.oHt},t.Name="LocaleIDFormatPart",t}(),U=function(){function t(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}return t.prototype.format=function(t,r){return d},t.prototype.parse=function(t){return d},t.prototype.formatString=function(t){return this.formatCached},t.prototype.toJSON=function(){var t,r={};for(t in this)this.hasOwnProperty(t)&&(r[t]=this[t]);return r},t.prototype.fromJSON=function(t){if(t)for(var r in t)t[r]!==l&&(this[r]=t[r])},t}(),r.FormatterBase=U,q=function(){function t(t,r){var n,i,o,u,a,s,f,c;for(Ft.call(this,r),n=this,s=0,f=(a=["<=","<>",">=",">","<","="]).length;s<f;s++)if(i=a[s],e.zf.fJ(t,i,!0)){o=e.zf.VP(t,0,i.length),c=parseFloat(o),j(c)||(u=c);break}if(u===d&&u===l)throw new Error(M().Exp_TokenIllegal);n.value=u,n.WUt=i,n.isMeetCondition=function(t){var r=n.WUt,e=n.value;switch(r){case"<=":return t<=e;case"<>":return t!==e;case">=":return t>=e;case">":return t>e;case"<":return t<e;case"=":return t===e}}}return t.prototype.toString=function(){return yt(this.WUt+this.value.toString())},t}(),Y=function(){function t(t,r){Ft.call(this,r);var n=this;if(n.token=t,n.type=parseInt(e.zf.VP(t,0,5),10),n.type<0||n.type>4)throw new Error(M().Exp_TokenIllegal)}return t.prototype.sHt=function(r,n,i){var o,u,a,s,f,c,y,m,M,h;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,f=!1,M=r.length-1;M>=0;M--)h=u[M],!j(h)&&!lt(h," ",!1)||lt(h,".",!1)&&!f?(lt(h,".",!1)&&(f=!0),-1===a&&(a=M),s=M):s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m)),a=-1,s=-1,f=!1);return s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m))),o},t.prototype.toString=function(){if(this.type>-1)return yt("DBNum"+this.type);throw new Error},t.numberString=function(r,n,e){var i,o,u=t.formatNumberString,a=r.split(".");if(a){if(1===a.length)return u(a[0],n.numbers,e?n.letters:d);if(2===a.length)return(i=u(a[0],n.numbers,e?n.letters:d))+"."+(o=u(a[1],n.numbers))}throw new Error(M().Exp_ValueIllegal)},t.formatNumberString=function(r,n,e){var i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p=r,b=0,F=0;if(2===arguments.length){for(o="";b<p.length;b++)i=st(p,b,1),o+=n[F=parseInt(i,10)];return o}if(3===arguments.length){if(!e)return t.formatNumberString(r,n);for(u=0,a="",s=p.length,f=!1,c=[];b<s;b++)(y=e.length-1-b)>-1?c.push(e[y].toString()):c.push(K.oHt);for(m=[],M=c.length-1;M>=0;M--)m[c.length-M-1]=c[M];for(c=m,h=!1,M=0;M<s;M++)i=st(p,M,1),F=parseInt(i,10),d=void 0,l=K.oHt,s-M-16>0?(d=n[F],l="",h=!0):M!==s-1&&M!==s-5&&M!==s-9&&M!==s-13?"0"===i?(d="",l="",u+=1):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[M],u=0):(d=n[F],l=c[M],u=0):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[M],u=0):"0"!==i&&0===u||h?(d=n[F],l=c[M],u=0,h=!1):"0"===i&&u>=3?(d="",l="",u+=1):s>=11?(d="",u+=1):(d="",l=c[M],u+=1),(v=d+l===K.oHt)||(f=!1),M!==s-13||f||(l=c[M],f=!0),M!==s-9||f||(l=c[M],f=!0),M===s-1&&(l=c[M],f=!0),a=a+d+l;return 0===(g=parseInt(r,10))?n[0]:a}},t}(),X=function(){function t(t,r,n,e,i,o){bt.call(this,r,n,e,o);var u=this;u.pU=u.QUt(vt(t)),u.KUt=i,u.JUt=2,u.Hc()}return t.prototype.Hc=function(){var r,n,e,i,o=this,u={y4:o.pU},a=t;if(a.a0(u.y4)){if(r=o.BHt(u),n=R(this.cultureName).amDesignator&&R(this.cultureName).pmDesignator,o.hasJD=o.Vi(u.y4,g.pHt,'"'+g.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,g.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,g.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,g.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,g.MHt,"dddd",!0,!0,u,!0),r&&n||(o.Vi(u.y4,g.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,g.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||E(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,g.cHt,'"@'+g.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,g.fHt,'"@'+g.fHt+'"',!0,!1,u,!0)),o.KUt)for(e=0;e<o.KUt.length;e++)i=o.KUt[e],o.Vi(u.y4,i.Nat,"@"+i.Nat,!0,!0,u,!0);o.PHt=u.y4}else G()},t.prototype.formatString=function(){return this.pU},t.prototype.format=function(t){var r,n,o,u,a,s,f,c,y=this,m=K.oHt,M=d;try{if((M=i.ct._DT(t))&&j(M.valueOf())&&(M=d),M?t=M:m=t.toString(),M&&(m=i.ct.L9t(M,y.PHt,y.j9t&&y.j9t.cultureInfo()||E(y.cultureName),y.O9t),y.hasJD&&(r=E(y.cultureName).DateTimeFormat.monthNames[M.getMonth()],m=e.zf.Vi(m,g.DHt,st(r,0,1))),y.KUt))for(n=24*(i.ct.o0(M)-i.ct.o0(g._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(n),O(a)||(s=u.Nat.replace("[","\\[").replace("]","\\]"),f=u.Nat.replace("[","").replace("]",""),c=e.zf.B9t(a+"",f.length),m=e.zf.Vi(m,"@"+s,c))}catch(r){m=ft(t)}return Nt(m,t,y.j9t,y.aHt,y.cultureName)},t.prototype.parse=function(t){var r,n,e,o,u;if(!t||t===K.oHt)return d;if(r=this,"true"===(e=B(n=t)))return!0;if("false"===e)return!1;if(r.PHt&&(o=i.ct.nUt(n,r.PHt,E(r.cultureName))))return o;try{return(u=i.ct._DT(n))&&!j(u)?u:(u=new Date(n),j(u.valueOf())?n:u)}catch(t){return n}},t.prototype.QUt=function(t){var r,n,e,i=t,o="",u=!1;for(r=0;r<i.length;r++)'"'===(n=i[r])?u=!u:u||("Y"===n||"D"===n||"S"===n||"E"===n||"G"===n?n=B(n):"M"===n&&(lt("A",e=i[r-1],!0)||lt("P",e,!0)||(n=B(n)))),o+=n;return o},t.prototype.BHt=function(t){var r,n,i,o=R(this.cultureName).amDesignator,u=R(this.cultureName).pmDesignator,a=[g.NHt];for(o&&u?a.push(o+"/"+u):a.push(g.NHt),a.push(g.kHt),r=["tt","tt","t"],n=t.y4,i=0;i<3;i++){if(e.zf.OS(n,r[i]))return!0;if(e.zf.OS(n,a[i],!0))return t.y4=e.zf.Vi(n,a[i],r[i],!0),!0}return!1},t.prototype.LHt=function(t,r){var n,e,i=St(t),o=-1,u=-1;for(n=0;n<i.length;n++)"symbolic"===(e=i[n]).type?"m"===e.content[0].toLowerCase()?o>=0?(e.content=e.content.toLowerCase(),o=-1):(e.content=e.content.toUpperCase(),u=n):"s"===e.content[0].toLowerCase()?u>=0&&(i[u].content=i[u].content.toLowerCase(),u=-1):"h"===e.content[0].toLowerCase()?(o=n,u=-1):u=-1:u>=0&&n>0&&"0"===e.content&&"."===i[n-1].content&&n===u+2&&(i[u].content=i[u].content.toLowerCase());r.y4=i.map((function(t){return t.content})).join("")},t.prototype.Vi=function(r,n,i,o,u,a,s){var f,c,y,m,M,h,d,l,v,g,p;if(o||u){for(f=[],c=!0,!t.hasDate(r)&&t.hasTime(r)&&(c=!1),y=!1,m=0;m<r.length;m++){if(M=r[m],t.hasTime(M)&&!y?c=!1:t.hasDate(M)&&!y&&(c=!0),o&&lt(M,n[0],s)&&c||u&&lt(M,n[0],s)&&!c){for(h=!0,d=0;d<n.length;d++)if(d+m>=r.length||!lt(n[d],r[d+m],s)){h=!1;break}if(l=m+n.length-1,h&&l+1<r.length){for(v=r[l],g=-1,g=l+1;g<r.length&&lt(v,r[g],s);g++);g>l+1&&(m=g,h=!1)}h&&!y&&f.splice(0,0,m)}'"'===M&&(y=!y)}if(a.y4=r,f.length>0){for(m=0;m<f.length;m++)p=f[m],a.y4=e.zf.VP(a.y4,p,n.length),a.y4=e.zf.Eit(a.y4,p,i);return!0}return!1}return!1},t.hasTime=function(t){return e.zf.hD(t,g.CHt[0],!0)>-1||e.zf.hD(t,g.IHt[0],!0)>-1},t.hasDate=function(t){return e.zf.hD(t,g.fHt[0],!0)>-1||e.zf.hD(t,g.bHt[0],!0)>-1},t.a0=function(t,r){return pt(t,r||p)},t}(),r.Hf=X,Z=function(){function t(t,r){var n,e,i;if(Ft.call(this,r),n=this,"h"===(e=B(t)[0]))i=3600;else if("m"===e)i=60;else{if("s"!==e)throw new Error(M().Exp_TokenIllegal);i=1}n.XUt=function(t){var r=t/1e3/i;return Math.abs(r-Math.round(r))<1e-6?Math.round(r):Math.floor(r)}}return t.Name="ABSTimeFormatPart",t}(),Q=function(){function t(t,r){var n,e;Ft.call(this,r),null!==(n=$.exec(t))&&(e=Number(n[1]),(e-=1)>=0&&e<N.length&&(t=N[e])),this.foreColor=t}return t.prototype.toString=function(){return yt(this.foreColor)},t.Name="ColorFormatPart",t}(),tt=function(){function t(t,r,n,e){var i,o,u,a,s,f;function c(t,r){var n,e,i,o,u,a=[],s='"';if(t===d||""===t)return a;for(n=!1,e=[],i=!1,o=0;o<t.length;o++)(u=t[o])!==s||n||(i=!i),n||i||u!==r?e.push(u):(a.push(e.join("")),e=[]),n="\\"===u&&!n;return a.push(e.join("")),a}bt.call(this,r,n,e),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=ht(o,i.j9t.Nat,i.j9t.currencySymbol())),(u=(o=mt(o)).indexOf("/"))>-1&&(a=c(o,"/"))&&2===a.length&&(i.tHt=a[1],(s=a[0])&&((f=s.lastIndexOf(" "))>-1?(i.nHt=st(s,0,f),i.eHt=st(s,f+1,s.length-f-1)):i.eHt=s)),i.iHt=o}return t.prototype.formatString=function(){return this.$Ut},t.prototype.format=function(r){var n,e,i,u,a,s,f,c,y,m,M,h,l,v,g,p,b,F,_,w,D,H;return k(r,"boolean")?r.toString().toUpperCase():(n=this,e=o.lt.uJ(r),j(e)||!isFinite(e)||j(r)?"string"==typeof r?r:d:(i=E(n.cultureName),n.eHt&&n.tHt?(m={value:0},M={value:0},h={value:0},l=n.GHt(),t.getFraction(e,l,m,M,h)?((v=t.getGCD(M.value,h.value))>1&&(M.value/=v,h.value/=v),n.nHt?(y="",1===h.value&&(m.value+=M.value,M.value=0,h.value=0),(g=C(A(m.value,n.nHt,i)))&&"0"!==g&&(y+=g,y+=" "),0===m.value&&e<0&&(y+=i.NumberFormat.negativeSign),0===e&&(y+="0"),a=n.tHt,s=parseFloat(a),!j(s)&&s>0&&(0!==M.value&&0!==h.value&&(M.value*=s/h.value),h.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),c=(f=Math.ceil(M.value))-M.value,M.value=c<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString())),p=n.eHt,b=parseFloat(p),j(b)||0!==b||((F=p.length)>(w=(_=M.value.toString()).length)?p=p.substr(0,F-(F-w)):F<w&&(_=_.substr(0,w-(w-F)),M.value=parseInt(_,10))),D=n.UHt(M.value,h.value,p,a,i),0===M.value&&(D=D.replace(/./g," "),""===g)?"0 "+D:""===(y+=D)?"0":y):(y="",H=m.value*h.value+M.value,a=n.tHt,(s=parseFloat(a))>0?(H*=s/h.value,h.value=s,y+=(H=(c=(f=Math.ceil(H))-H)<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString()))+"/"+h.value):y+=n.UHt(H,h.value,n.eHt,n.tHt,i),0===H?"0":y)):e.toString()):u=$t(u=A(e,n.iHt,i),n.qUt,n.j9t,n.aHt,n.cultureName)))},t.prototype.parse=function(t){var r,n,i,o,u,a,s,f,c,y,m,M,h,l,g,p=this;if(!t||t===K.oHt)return d;if("TRUE"===(r=L(t))||r===z()&&z().boolean_true)return!0;if("FALSE"===r||r===z()&&z().boolean_false)return!1;if((n="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),i=p.eHt&&p.tHt,o=p.zHt(p.iHt).HHt,(i||o)&&(u=0,i&&p.nHt&&0<(a=(t=t.trim()).lastIndexOf(" "))&&a<t.length-1&&(u=parseInt(t.substr(0,a),10),t=t.substr(a+1)),0<(s=t.indexOf("/"))&&s<t.length-1&&(f=t.substr(0,s),c=t.substr(s+1),!(j(f)||j(c)||(y=parseInt(f,10),m=parseInt(c,10),j(y)||j(m)||0===m)))))return u+y/m;if(t=p.VHt(t),t=p.YHt(t),h=(M=p.zHt(t)).HHt,l=M.$6t,p.ZHt(l)&&(l=e.zf.OUt(l,I(p.cultureName).numberGroupSeparator,"",!1),g=x.dUt(l,p.cultureName),!j(g)&&isFinite(g))){if(h&&(g=T(g/100,15)),n){if("-"===l.charAt(0)||"+"===l.charAt(0))return d;g=-1*v(g)}return g}return d},t.prototype.GHt=function(){var t,r,n=this,e=n.tHt,i=0;if(e)for(t=e.length,r=0;r<t&&e[r].match(/[#?\d]/);r++)i++;return i},t.prototype.ZHt=function(t){var r,n="",e=0,i=0,o=0,u=d,a=I(this.cultureName);for(r=t.length-1;r>-1;r--){if(t[r]===a.numberDecimalSeparator)e++,o>0&&(u=!1),n="";else if("e"===B(t[r])){if(i++,n="",r===t.length-1)return!1}else if(t[r]===a.numberGroupSeparator)u=3===n.length,o++,n="";else if("-"===t[r]||"+"===t[r]){if(r>0&&"e"!==B(t[r-1]))return!1}else{if(!J(t[r]))return!1;if(n+=t[r],0===r&&0===parseInt(n,10)&&u)return!1}if(e>1||i>1||!1===u)return!1}return!0},t.prototype.VHt=function(t){var r,n,i,o,u,a,s,f=t,c=[];for(r=0;r<f.length;r++)J(f[r])&&c.push(r);for(i=[(n=I(this.cultureName)).currencyDecimalSeparator,n.currencyGroupSeparator,n.currencySymbol,h,n.nanSymbol,n.negativeInfinitySymbol,n.negativeSign,n.numberDecimalSeparator,n.numberGroupSeparator,n.percentDecimalSeparator,n.percentGroupSeparator,n.percentSymbol,n.perMilleSymbol,n.positiveInfinitySymbol,n.positiveSign],o=f.length-1;o>-1;o--)if(u=f[o],V(u)&&i.indexOf(u.toString())<=-1)(o<c[0]||c[c.length-1]<o)&&(f=e.zf.VP(f,o,1));else if(("-"===u||"+"===u)&&(a=o>0?f[o-1].toString():d,(s=["e","E","(",I(this.cultureName).currencySymbol,h]).indexOf(a)<0))break;return f},t.prototype.YHt=function(t){var r,n;if(e.zf.fJ(t,h)){if((r=e.zf.VP(t,0,1)).indexOf(h)<0)return r}else if(n=I(this.cultureName).currencySymbol,h!==n&&e.zf.fJ(t,n)&&(r=e.zf.VP(t,0,n.length)).indexOf(n)<0)return r;return t},t.prototype.zHt=function(t){var r=I(this.cultureName).percentSymbol,n=!0,i=t;return e.zf.fJ(t,r)?i=e.zf.VP(t,0,r.length):e.zf.dT(t,r)?i=e.zf.VP(t,t.length-r.length,r.length):n=!1,e.zf.OS(i,r)&&(n=!1),{$6t:i,HHt:n}},t.prototype.UHt=function(t,r,n,e,i){var o=C(A(t,n,i)),u="0."+r,a="#."+e,s=C(A(u,a,i,!0)),f=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",c=o+"/"+s.substr(s.indexOf(f)+1);return""===n&&(c=t+c),""===e&&(c+=r),c},t.getGCD=function(t,r){var n,e,i;if(0===t)return v(r);if(0===r)return v(t);for(i=(n=Math.max(t,r))%(e=Math.min(t,r));0!==i;)i=(n=e)%(e=i);return v(e)},t.getFraction=function(t,r,n,e,i){var o,u,a,s,f,c,y,m,M,h=0,d=0,l=0,g=0,p=Math.ceil;for(t>0?1===(g=t-p(t)+1)?(g=0,h=t):h=p(t)-1:t<0&&(h=p(t),g=p(t)-t),(o=Math.pow(10,r-1))<2&&(o=2),(u=Math.pow(10,r)-1)<2&&(u=2),a=!1,s=0,f=o;f<=u&&(c=f*g,y=Math.round(c),M=v((m=y/f)-g),!((!a||M<v(s-g))&&(a=!0,s=m,d=y,l=f,M<1e-6)));f++);return n.value=h,e.value=d,i.value=l,a},t.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},t}(),rt=function(){function t(r,n,e,i){bt.call(this,n,e,i),arguments.length>0?(t.rHt(r)||G(),this.$Ut=r):this.$Ut="General",this.JUt=0}return t.rHt=function(t){var r,n,e="",i=!1,o=-1,u=t.length;for(r=0;r<u;r++)'"'===(n=t[r])?o=(i=!i)?r:-1:i||(e+=n);return o>0&&(e+=t.substring(o,u)),!(e.indexOf("0")>=0||e.indexOf("#")>=0||e.indexOf(".")>=0||e.indexOf("@")>=0)},t.prototype.WHt=function(){var t,r=this;return r.QHt||(t=ht(t=r.$Ut,"General",P),r.QHt=new tt(t,r.j9t,r.aHt,r.cultureName),r.QHt.qUt=!0),r.QHt},t.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new tt("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},t.prototype.formatString=function(){return e.zf.Vi(this.$Ut,"@NumberFormat","General")},t.prototype.format=function(t){var r,n,i,u=this;if(o.lt.q8(t,u.cultureName)){if(r=!u.j9t||u.j9t.allowScience(),(n=o.lt.uJ(t))!==l&&n!==d)return v(n)>99999999999&&r||v(n)<1e-11&&0!==n?u.KHt().format(t):u.WHt().format(t)}else{if(k(t,"string"))return i=dt(i=e.zf.Vi(u.formatString(),'"',"")),t;if(k(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,n,o,u,s,f,c,y,m,M,h,g,p,b,F;if(K.Ji(t))return d;if("number"==typeof t)return t;if(r=!1,n=t.trim(),(o=e.zf.hD(n,"-",!1))>0&&!lt(n.charAt(o-1),"E",!0)&&(r=!0),f=(s=(u=E(this.cultureName)).DateTimeFormat).dateSeparator,c=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,M=function(t,r){var n,i,o;if(!r||0===r.length)return!1;for(n=!1,i=0,o=r.length;i<o;i++)if(e.zf.OS(t,r[i],!0)){n=!0;break}return n},(r||e.zf.OS(n,f,!1)||e.zf.OS(n,c,!1)||e.zf.OS(n,"/",!1)||e.zf.OS(n,":",!1)||e.zf.OS(n,"-",!1)||e.zf.OS(n,"\u5e74",!1)||e.zf.OS(n,"\u6708",!1)||e.zf.OS(n,"\u65e5",!1)||M(n,y)||M(n,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(n[0].toUpperCase())>=0&&e.zf.OS(n,".",!1))&&(h=i.ct.yU(n)))return h;if((p="-"===n.charAt(0))||"+"===n.charAt(0)){if("("===(n=e.zf.VP(n,0,1)).charAt(0)&&")"===n.charAt(n.length-1))return t}else if("("===n.charAt(0)&&")"===n.charAt(n.length-1)&&(b=!0,"-"===(n=(n=n.substring(1,n.length-1)).trim()).charAt(0)||"+"===n.charAt(0)))return t;return(g=this.WHt().parse(n))!==d&&g!==l?(F=b&&k(g,"boolean"))?t:(b||p)&&k(g,"number")?-1*v(g):g:t},t}(),nt=function(){function t(t,r,n,e){var i,o=this;bt.call(o,r,n,e),i=vt(t,!1),r&&(i=ht(i,o.j9t.Nat,o.j9t.currencySymbol())),i=dt(i=mt(i)),o.pU=i,o.JUt=3}return t.prototype.format=function(t,r){var n,e,o,u=this;try{return n=void 0,e=void 0,e=t instanceof Date?i.ct.o0(t).toString():ft(t),o=u.XHt(u.pU),n=u.qHt(e,o.formatTokens,t,o.hasAtPart,r)}catch(t){return""}},t.prototype.parse=function(t){return t||""},t.prototype.formatString=function(){return this.pU},t.prototype.XHt=function(t){var r,n,e=[],i=!1,o="",u=!1,a=d;for(n=0;n<t.length;n++)r=t.charAt(n),u?('"'!==r?o+=r:(o+=r,e.push(o),o="",u=!1),a=r):"*"!==a&&"_"!==a&&"\\"!==a||""===o?"*"!==r&&"_"!==r&&"\\"!==r?"@"!==r?'"'!==r?(o+=r,a=r):(a=r,""!==o&&e.push(o),o=r,u=!0):(a=r,""!==o&&(e.push(o),o=""),e.push(r),i=!0):(a=r,""!==o&&(e.push(o),o=""),o+=r):(o+=r,e.push(o),o="");return""!==o&&e.push(o),{formatTokens:e,hasAtPart:i}},t.prototype.qHt=function(t,r,n,e,i){var o,u,a=[],s=!1;if("string"!=typeof n||e||i)for(o=r.length-1;o>=0;o--)"*"===(u=r[o])[0]?s||(s=!0,a.push({type:"fillingChar",value:u[1]})):"_"===u[0]?a.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&a.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?a.push({type:"text",value:"@"}):"@"===u[0]?a.push({type:"text",value:t}):a.push({type:"text",value:u});else a.push({type:"text",value:n});return a.reverse()},t}(),et=function(){return{pattern:H,formatter:["d-mmm","mmm-yy",R().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",R().shortDatePattern+" h:mm",R().shortDatePattern+" h:mm:ss",R().shortDatePattern+" h:mm:ss.0"]}},it=function(){function t(t,r){var n=this;0===arguments.length?(n.formatCached="General",n.E9t=new rt):n.Hc(t,r)}return t.prototype.Hc=function(r,n){var e,i,o,u,s,f,c,y,m,M,h,v,g,p,b,F,_;for(r!==d&&r!==l||G(),e=r,(i=this).formatCached=r,o="",u="",s=!1,f=!1,c=!1,y=[],m=0;m<r.length;m++)'"'===(M=r[m])?(f=!f,u+=M):f?u+=M:"["===M?(s&&G(),u&&(o||(o=""),o+=u),u=M.toString(),s=!0):"]"===M?(s||G(),u?(h=(u+=M).toString(),(v=_t(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(h),h)),o+=u):h===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),c=!0):i.addPart(v,h):(o+=g=t.partToNormalStr(h),e=ht(r,h,g)),u=""):G(),s=!1):u+=M;u?s?G():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(n=i.localeIDFormatPart.cultureInfo().name()),F=(b=wt(o,p=i.conditionalFormatPart))._type,_=b.uHt?e:o,F?i.E9t=new F(_,i.localeIDFormatPart,i.dbNumberFormatPart,n,y.length>0?y:d,c):G()},t.prototype.$Ht=function(){var r,n=this,e="";return n.dbNumberFormatPart&&((r=t.proNames.some((function(t){return"dbNumberFormatPart"!==t&&n[t]})))||(e="General")),e},t.prototype.formatString=function(){var r,n,e,i=this,o="";for(r=0,n=t.proNames.length;r<n;r++)i[e=t.proNames[r]]&&(o+=i[e].toString());return o+=i.E9t.formatString()},t.prototype.addPart=function(r,n){var e,i,o,u=this,a=t.proNames,s=t.preProcessPart(n);for(e=0,i=a.length;e<i;e++)if(lt(o=a[e],r.Name,!0)){if(u[o])throw new Error(M().Exp_DuplicatedDescriptor);u[o]=new r(s,n)}},t.prototype.format=function(t,r){return this.E9t.format(t,r)},t.prototype.parse=function(t){return this.E9t.parse(t)},t.checkFormatter=function(t){if(!t||t===K.oHt)throw new Error(M().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var n=Mt(r);return t.checkFormatter(n),n},t.partToNormalStr=function(r){var n=t.preProcessPart(r);return n[0]===h&&(n=n.slice(1)),'"'+n+'"'},t.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],t}(),ot=function(t){function r(r,n){var e=t.call(this,r,n)||this,i=e;return i.lHt=!0,i.PropertyChanged=[],K.Ji(r)&&(r="General"),i.formatCached=r,i.cultureName=n,i.init(),e}return ut(r,t),r.prototype.toJSON=function(){var t=this,r={formatCached:t.formatCached};return t.cultureName&&(r.customerCultureName=t.cultureName),"general"===B(t.formatCached)&&delete r.formatCached,r},r.prototype.hasFormattedColor=function(){var t,r,n=this;for(t in _)if(_.hasOwnProperty(t)&&(r=n.getFormatter(_[t]))&&r.colorFormatPart)return!0;return!1},r.prototype.formatString=function(t){var r,n,e,i,o=this;if(0===arguments.length){for(r=K.oHt,n=0,e=o.formatters.length;n<e;n++)r+=(i=o.formatters[n]).formatString(),n!==e-1&&(r+=";");return r}if(!t)throw new Error(M().Exp_ValueIsNull);return o.formatters=d,o.formatCached=t,o.init(),o.tzt("formatString"),o},r.prototype.getFormatter=function(t){var r=this;return r.formatters&&r.formatters[t]},r.prototype.getPreferredEditingFormatter=function(t){var n,e,i,u=R(this.cultureName),a=I(this.cultureName),s=r.defFormatter;return k(t,"TimeSpan")?s(u.longTimePattern):k(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",s(u.shortDatePattern+e)):o.lt.q8(t,this.cultureName)?s((i=o.lt.uJ(t))>=1e21||i<=1e-17&&i>0||i<=-1e21||i<0&&i>=-1e-17?null!==(n=a.scientificNotation)&&void 0!==n?n:"0.##############E+00":P):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,n){var u,a,s,f,c,y,m,M,h,l,v,g,p,b,F,_,w,D,H,N,$,S,x,P,C,A=this,T=r.defFormatter;if(n||(n={value:d}),n.value=d,K.Ji(t))return new r;if(u=t,a=n.value=A.parse(u),k(a,"DateTime")||k(a,"TimeSpan")){for(f=(s=et()).pattern,c=s.formatter,(M=(m=(y=E(A.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(f=f.concat([M]),c=c.concat([M[0]])),"ja-JP"===y.name()&&(f=f.concat([m.eraFormatter]),c=c.concat(["ge.M.d"]),h=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),f=f.concat([h]),c=c.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),l=y.QPt.filter((function(t){return"gge"===t.substr(0,3)})),f=f.concat([l]),c=c.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),v=y.QPt.filter((function(t){return"ge"===t.substr(0,2)})),f=f.concat([v]),c=c.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),g=0;g<f.length;g++)for(p=f[g],b=0;b<p.length;b++)if(F=p[b],(_=i.ct.yU(t,F))&&_-a===0)return new r(c[g])}else if(o.lt.q8(a,A.cultureName)){if(D=(w=I(A.cultureName)).currencySymbol,H=w.numberDecimalSeparator,N=w.percentSymbol,$=w.numberGroupSeparator,S="E",C=(P=(x=e.zf.OS)(u,H))?".00":"",u[0]===D)return T(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",D,C));if(x(u,S,!0))return T("0.00E+00");if(u[0].toString()===N||u[u.length-1].toString()===N)return T(K.I5("0{0}%",C));if(x(u,$))return T(K.I5("#,##0{0}",C))}return T("General")},r.prototype.format=function(t,r){var n,e,i,u,a,s,f;if(k(t,"boolean"))return z()&&(t=t?z().boolean_true:z().boolean_false),t.toString().toUpperCase();if(i=0,u=(n=this).vn(t)){a=u.colorFormatPart,r&&a&&(r.conditionalForeColor=r.value=a.foreColor),(e=o.lt.q8(t,n.cultureName))&&(i=o.lt.uJ(t)),s=K.oHt;try{e&&u===n.getFormatter(_.jHt)&&0!==this.expressionNumber?(s=u.format(u.considerNegSymbol?i:v(i)))===d&&k(t,"string")&&(s=t):(s=u.value)===l&&(f=!n.lHt&&u===n.getFormatter(_._text),s=u.format(t,e||f)),r&&(r.content=S(s)?s:[{type:"text",value:s}]),S(s)&&(s=x.mUt(s))}catch(r){k(t,"string")&&(s=t.toString())}return s}return e&&i<0?"-".toString():k(t,"string")?t.toString():t===l||t===d?K.oHt:t.toString()},r.prototype.parse=function(t){var r=this;return r.formatters&&r.formatters.length>0?r.formatters[0].parse(t):d},r.prototype.init=function(){var t,r,n,e=this,i=e.formatCached;for(K.Ji(i)&&G(),e.formatters=[],t=kt(i),e.lHt=1===t.length,(!t||t.length<1||t.length>4)&&G(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?G():this.hasAt=!0),n=new it(t[r],e.cultureName),e.formatters.push(n);e.getFormatter(_.EHt)||G(),this.nzt()},r.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;_=o.lt.Dh({},w[t]),this.hasAt&&0!==this.expressionNumber&&(_._text=this.formatters.length-1)},r.prototype.vn=function(t){var r,n,e,i,u,a,s,f,c,y,m,M=this;if(M.nzt(),n=(r=M.getFormatter(_.EHt))&&r.conditionalFormatPart,e=M.getFormatter(_._text),n&&(_.OHt=2,this.hasAt||(_._text=3)),"string"==typeof t&&j(t))return e||(n?t:r);if(o.lt.q8(t,M.cultureName)||k(t,"boolean")){if(i=M.getFormatter(_.jHt),u=M.getFormatter(_.OHt),a=o.lt.uJ(t),s=n&&r.conditionalFormatPart.isMeetCondition(a),c=(f=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(a),y=void 0,M.lHt||(n?s:a>0||0===a&&!u))y=r;else if(f?c:a<0)y=i;else if(u)y=u;else if(i){if(n&&f)return{value:m=a+""};y=i}return y&&(!n||f||y!==i||u||(y.considerNegSymbol=!0),n&&f&&y===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(y.considerNegSymbol=!0),this.expressionNumber<=1&&(y.considerNegSymbol=!0)),y}return d},r.prototype.tzt=function(t){var r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},r.defFormatter=function(t){var n=r[t];return n||(n=new r(t),r[t]=n),n},r.test=function(t){var r,n,e=!0;try{r=new c.Lexer(t),(n=new y.Parser(r)).parse()}catch(t){e=!1}return e},r}(U),r.GeneralFormatter=ot},"./src/plugins/formatter/formatterGrammar/interface.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=r.BACKSLASH=r.UNDERLINE=r.ASTERISK=r.DOUBLE_QUOTE=r.SEMICOLON=void 0,r.SEMICOLON=";",r.DOUBLE_QUOTE='"',r.ASTERISK="*",r.UNDERLINE="_",r.BACKSLASH="\\";var n=function(){throw new Error("Invalid Number Format")};r.throwError=n},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,n){var e,i,o,u,a;Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(t){var r;return!!["0","#","?",".","%",",","/",e.BACKSLASH,e.ASTERISK,e.UNDERLINE,"@"].find((function(r){return r===t}))},o=function(t){var r;return[e.BACKSLASH,e.ASTERISK,e.UNDERLINE].find((function(r){return r===t}))},u=function(t,r){return{type:t,value:r}},a=function(){function t(t){this.Fmt=[],this.DZe=t,this.vHr()}return t.prototype.vHr=function(){for(var t,r,n=0,a=this.DZe;n<a.length;n++)if(t=a[n],i(t)){if(o(t)){this.Fmt.push(u("symbol",t)),n<a.length-1&&(this.Fmt.push(u("char",a[n+1])),n++);continue}this.Fmt.push(u("symbol",t))}else if(t!==e.SEMICOLON){if(t===e.DOUBLE_QUOTE){if(-1!==(r=a.slice(n+1).search(e.DOUBLE_QUOTE))){r=r+n+1,this.Fmt.push(u("text",a.slice(n+1,r))),n=r;continue}(0,e.throwError)()}this.Fmt.push(u("char",t))}else this.Fmt.push(u("semicolon",t));this.Fmt.push(u("EOF",""))},t.prototype.jbi=function(){return this.Fmt.shift()},t}(),r.Lexer=a},"./src/plugins/formatter/formatterGrammar/parser.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(){function t(t){this.gHr=t,this.mHr=t.jbi()}return t.prototype.pHr=function(t){this.mHr.type===t?this.mHr=this.gHr.jbi():(0,e.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.mHr.type;)t.push(this.bHr()),t.length>4&&(0,e.throwError)();return{type:"numberFormat",body:t}},t.prototype.bHr=function(){for(var t,r=[];"semicolon"!==this.mHr.type&&"EOF"!==this.mHr.type;)"symbol"===(t=this.mHr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.mHr.type&&this.pHr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.mHr.value;return r===e.ASTERISK?(this.pHr("symbol"),t={type:"asterisk",body:this.mHr.value},this.pHr("char")):r===e.BACKSLASH?(this.pHr("symbol"),t={type:"char",body:this.mHr.value},this.pHr("char")):r===e.UNDERLINE?(this.pHr("symbol"),t={type:"underline",body:this.mHr.value},this.pHr("char")):(t={type:"symbol",body:this.mHr.value},this.pHr("symbol")),t},t.prototype.yHr=function(){var t,r=this.mHr.type;return"char"===r?(t={type:"char",body:this.mHr.value},this.pHr("char")):"text"===r&&(t={type:"text",body:this.mHr.value},this.pHr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M;function h(t){return"object"==typeof t&&t!==o&&t.text!==i}function d(t,r){var n,e,f;if(t===o||t===i)return!1;if(k(t)===u)r.value=t;else if(k(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if(k(t)!==a)return!1;if(0===S(t=t.trim()))return!1;if(n=!1,"%"===t.charAt(S(t)-1)&&(n=!0,t=t.substr(0,S(t)-1)),S(t)>=2&&"0"===t[0]&&"x"===t[1])return!1;if(e=Number(t).valueOf(),isNaN(e)||!isFinite(e)){if(f=new Date(t),isNaN(f))return!1;e=m.o0(f)}n&&(e/=100),r.value=e}return!0}function l(t){var r,n,e,i,o,u,a,s,f,c,y,m,M,h,d,l=t.ezt;for(l||(t.izt=[],t.rzt=[]),r=l?t.ozt:t.izt,n=t.azt,e=t.uzt,i=l?t.szt:t.rzt,o=t.Mct,u=t.czt,a=t.fzt,s=t.SIr(),c={},y=0;y<s;y++){for(m=!1,M=void 0,h=0;h<S(o)&&(M=o[h],l&&M===t.lzt||(e[M]?($(c[d=t.columnNames[M]])&&(c[d]=t.getColumnIndex(d)),f=t.fue(c[d],y),m=!e[M][f]):n[M]&&(m=!n[M][y]),!m));h++);!m&&l&&(u?($(c[d=t.columnNames[M]])&&(c[d]=t.getColumnIndex(d)),m=!u[f=t.fue(c[d],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(h=0;h<S(r);h++)r[h]&&i.push(h)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function g(t){var r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<S(r);n++)e[(r[n]+"").toUpperCase()]=n}function p(t,r){var n,e,i,o,u,a,s,f=t.vzt,c=t.pzt,y=t.mzt,m=t.gzt,M=m[r]=[];for(t.bzt=[],t.xIr(r,[]),f[r]=[],c[r]={},y[r]=[],n={},e=0;e<t.SIr();e++)o=h(i=t.JNr(e,r))?i.text.trim():i,t.TIr(r,o),(u=n[v(o)])?(u.list.push(e),M[e]=u.index):(a=[e],f[r].push(o),y[r].push(a),s=S(y[r])-1,c[r][o]=s,M[e]=s,n[v(o)]={list:a,index:s})}function b(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,d,l=t.yzt,v=t.getColumnIndex(r),g=[];if(!v)return g;if(e=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!e)return g;for(l[v]||t.Czt(v),o=[],u=l[v],a=0;a<S(u);a++)f=h(s=t.JNr(a,v))?s.value:s,o[u[a]]=f;for(c=t.Szt[v],a=0;a<S(e);a++){for(y=e[a],m=!1,d=(M=t.Tzt(o,y)).start;d<=M.end;d++)if(i[c[d]]){m=!0;break}m!==n&&g.push(y)}return g}function F(t,r){var n,e,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(n=S(t.getData(r)),e=t.ezt?t.ozt:t.izt,i=0;i<n;i++)e[i]||(o=t.fue(a,i),-1===u.indexOf(o)&&u.push(o));return u}}function _(t,r){var n,e,i,o,u,a,s,f=[],c={},y=t.getColumnIndex(r);if(y>=0)for(n=t.czt||t.fzt,e=t.uzt[y]||t.azt[y],i=t.ezt&&y===t.lzt?n:e,u=S((o=!!t.azt[y])?t.getData(r):t.getExclusiveData(r)),a=0;a<u;a++)i&&!i[a]&&(c[s=o?t.fue(y,a):a]||(c[s]=!0,f.push(s)));return f}function w(t,r){var n,e,i,o,u,a,s,f,c,y={},m=t.columnNames,M=S(m);for(n=0;n<M;n++)if(m[n]!==r)for(e=_(t,m[n]),i=0;i<S(e);i++)for(o=t.getRowIndexes(m[n],e[i]),u=0;u<S(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},M=t.SIr(),n=0;n<M;n++)s=t.getExclusiveRowIndex(r,n),y[n]||(a[s]=!0);for(f=S(t.getExclusiveData(r)),c=[],n=0;n<f;n++)a[n]||c.push(n);return c}function D(t,r,n,e){var i,o,u,a,s,f,c,y,m=t.getColumnIndex(r),M=t.yzt;for(M[m]||t.Czt(m),i=[],o=M[m],u=0;u<S(o);u++)s=h(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(f=[],u=0;u<S(n);u++)for(c=t.Tzt(i,n[u]),y=0;y<S(o);y++)o[y]>=c.start&&o[y]<=c.end&&(f[y]=!0);e?(t.fzt=f,t.wzt=n):(t.Mzt[m]=n,t.azt[m]=f,delete t.uzt[m],delete t.Azt[m]),l(t)}function H(t,r,n,e){var i,o=t.getColumnIndex(r),u=[];for(i=0;i<S(n);i++)u[n[i]]=!0;e?t.czt=u:(t.uzt[o]=u,t.Azt[o]=n,delete t.Mzt[o],delete t.azt[o]),l(t)}function N(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function $(t){return t===i||t===o}function k(t){return typeof t}function S(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,e=n("./src/common/util/datetimehelper.ts"),i=void 0,o=null,u="number",a="string",s="boolean",f=e.ct.o0,function(t){t[t.all=0]="all",t[t.byCurrentColumn=1]="byCurrentColumn",t[t.byOtherColumns=2]="byOtherColumns"}(c=r.FilteredOutDataType||(r.FilteredOutDataType={})),function(t){t[t.average=1]="average",t[t.count=2]="count",t[t.counta=3]="counta",t[t.max=4]="max",t[t.min=5]="min",t[t.product=6]="product",t[t.stdev=7]="stdev",t[t.stdevp=8]="stdevp",t[t.sum=9]="sum",t[t.vars=10]="vars",t[t.varp=11]="varp"}(y=r.SlicerAggregateType||(r.SlicerAggregateType={})),m=function(){function t(){}return t.o0=function(t){return f(t)},t.quickSort=function(r){var n,e=S(r),i=[];for(n=0;n<e;n++)i[n]={index:n,value:r[n]};return t.quickSortImp(i)},t.quickSortImp=function(r){var n,e,i,o,u,a,s,f,c=r.length;if(c<=1)return r;for(n=t,i=r[e=Math.floor(c*Math.random())],o=[],u=[],a=[],s=0;s<c;s++)e!==s?(f=n.sortCompare(r[s].value,i.value))<0?o.push(r[s]):f>0?u.push(r[s]):a.push(r[s]):a.push(r[s]);return n.quickSortImp(o).concat(a,n.quickSortImp(u))},t.isEquals=function(t,r){return!(!$(t)&&""!==t||!$(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():k(t)===a&&k(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,n){var e=k(r),i=k(n);return e===s?r=r?1:0:r instanceof Date&&(r=t.o0(r)),i===s?n=n?1:0:n instanceof Date&&(n=t.o0(n)),e===i||e!==u&&i!==u?e===a&&i===a?r.toLowerCase()>n.toLowerCase():r>n:i===u},t.sortCompare=function(r,n){var e=t,i=-1,o=$(r)||""===r||k(r)===u&&isNaN(r),a=$(n)||""===n||k(n)===u&&isNaN(n);return o&&a?i=0:o?i=1:a?i=-1:e.isEquals(r,n)?i=0:e.isGreaterThan(r,n)&&(i=1),i},t}(),r.xzt=m,M=function(){function t(t,r){var n=this;n.hzt={},n.dzt=[],n.vzt=[],n.pzt=[],n.mzt=[],n.gzt=[],n.uzt=[],n.Azt=[],n.azt=[],n.Mzt=[],n.izt=[],n.rzt=[],n.Mct=[],n.szt=[],n.ozt=[],n.ezt=!1,n.aT=[],n.Upt=0,n.bzt=[],n.Szt=[],n.yzt=[],n.lue=0,Object.defineProperty(n,"data",{get:function(){return this.VEt()},set:function(t){n.HY(t)}}),n.Izt(t,r),n.AIr()}return t.prototype.AIr=function(){var t,r=this;for(t=0;t<r.SIr();t++)r.izt[t]=!0,r.rzt.push(t)},t.prototype.VEt=function(){return this._data},t.prototype.HY=function(t){this._data=t},t.prototype.SIr=function(){return S(this._data)},t.prototype.JNr=function(t,r){return this._data[t][r]},t.prototype.IIr=function(t,r,n){this._data[t][r]=n},t.prototype.kIr=function(t,r){var n,e=this,i=this._data,o=S(e.columnNames);for(n=0;n<r;n++)i.splice(t,0,new Array(o))},t.prototype.tX=function(t,r){this._data.splice(t,r)},t.prototype.NIr=function(t,r){var n,e=this._data;for(n=0;n<S(e);n++)e[n].splice(t,r)},t.prototype.jIr=function(t,r,n){this.dzt[t][r]=n},t.prototype.DIr=function(t){return!!this.dzt[t]},t.prototype.jEe=function(t){return this.dzt[t]},t.prototype.xIr=function(t,r){this.dzt[t]=r},t.prototype.TIr=function(t,r){this.dzt[t].push(r)},t.prototype._Ir=function(t,r,n){this.dzt[t].splice(r,0,null!=n?n:i)},t.prototype.OIr=function(t,r,n){this.dzt[t].splice(r,n)},t.prototype.EIr=function(t,r){this.dzt.splice(t,r)},t.prototype.inPreview=function(){return this.ezt},t.prototype.Izt=function(t,r){var n=this;n._data=t,n.columnNames=r,g(n)},t.prototype.vue=function(t){var r=this;r.mue&&0===r.lue&&(r.Nzt("onDataChanged",t),r.mue=!1)},t.prototype.gue=function(){this.lue++},t.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},t.prototype.onDataChanged=function(t){var r,n,e,i,o,u,a,s,f,c,y,m=this,M=new Array(S(m.columnNames)),d=m.Azt,v=m.vzt,g=m.uzt,b={};for(r=0;r<S(t);r++)e=(n=t[r]).data,i=n.columnName,o=n.row,$(b[i])&&(b[i]=m.getColumnIndex(i)),u=b[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,e),a=h(e)?e.text:e,m.DIr(u)&&m.jIr(u,o,a),M[u]=!0;for(s=0;s<S(M);s++)if(M[s]){for(f=d[s],d[s]=f?[]:void 0,g[s]=f?[]:void 0,c=[],r=0;f&&r<S(f);r++)c.push(v[s][f[r]]);for(p(m,s),r=0;r<S(c);r++)y=m.pzt[s][c[r]],d[s].push(y),g[s][y]=!0}l(m),m.mue=!0,m.vue(t)},t.prototype.Nzt=function(t){var r,n,e,i,o=[];for(r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(n=this.aT||[],e=0;e<S(n);e++)(i=n[e])[t]&&i[t].apply(i,o)},t.prototype.onColumnNameChanged=function(t,r){var n=this,e=n.hzt,i=n.getColumnIndex(t);i<0||(n.columnNames[i]=r,delete e[t.toUpperCase()],e[r.toUpperCase()]=i,n.Nzt("onColumnNameChanged",t,r))},t.prototype.onRowsAdded=function(t,r,n){var e,i,u,a,s,f,c,y,M,h,d,l,v,g=this,p=S(g.columnNames),b=g.vzt,F=g.mzt,_=g.gzt,w=g.uzt,D=g.Azt,H=g.izt,N=g.rzt,$=g.Mct;for(g.bzt=[],g.kIr(t,r),i=0;i<p;i++){for(e=0;e<r;e++)g.DIr(i)&&g._Ir(i,t);if(s=void 0,a=b[i]){for(f=o,c=0;c<S(a);c++){for(y=F[i][c],M=0;M<S(y);M++)y[M]>=t&&(y[M]+=r);m.isEquals(a[c],o)&&(f=y,s=c)}for(f||(f=[],a.push(o),s=S(a)-1,g.pzt[i][o]=s,F[i].push(f),w[i]&&-1===$.indexOf(i)&&(w[i][s]=!0,D[i].push(s))),h=t;h<t+r;h++)f.push(h);for(u=t;u<t+r;u++)_[i].splice(u,0,s)}}for(d=!0,e=0;e<S($);e++)l=_[i=$[e]][t],!0!==w[i][l]&&(d=!1);for(e=0;e<S(N);e++)N[e]>=t&&(N[e]+=r);for(u=g.SIr()-1;u>=t+r;u--)H[u]=H[u-r];for(v=S($)>0,u=t;u<t+r;u++)d&&N.push(u),H[u]=!v;n||g.Nzt("onRowsChanged",t,r,!0)},t.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},t.prototype.kzt=function(t,r,n){var e,i,o,u,a,s,f,c,y=this,m=y.Azt,M=y.vzt,h=y.uzt,d=S(y.columnNames);for(y.tX(t,r),i=0;i<d;i++){if(y.DIr(i)&&y.OIr(i,t,r),u=[],(o=m[i])&&n){for(e=0;e<S(o);e++){for(a=y.getRowIndexes(y.columnNames[i],o[e]),s=!0,f=0;f<S(a);f++)if(a[f]<t||a[f]>=t+r){s=!1;break}s||u.push(M[i][o[e]])}m[i]=[],h[i]=[]}if(p(y,i),o&&n)for(e=0;e<S(u);e++)c=y.pzt[i][u[e]],m[i].push(c),h[i][c]=!0}n&&l(y),y.Nzt("onRowsChanged",t,r,!1)},t.prototype.onColumnsRemoved=function(t,r){var n,e,i,o,u,a,s,f,c=this,y=[],m=c.Mct,M=t+r;for(n=t;n<M;n++)(e=c.columnNames[n])&&(i=n,y.push(e),-1!==m.indexOf(i)&&c.doUnfilter(e));for(s in o=c.uzt||c.azt,u=c.Azt||c.Mzt,a=c.hzt,c.NIr(t,r),c.bzt=[],c.columnNames.splice(t,r),c.EIr(t,r),c.vzt.splice(t,r),c.pzt.splice(t,r),c.mzt.splice(t,r),c.gzt.splice(t,r),o.splice(t,r),u.splice(t,r),a)a[s]>=t+r&&(a[s]-=r);for(n=0;n<S(y);n++)delete a[(e=y[n]).toUpperCase()],t=c.getColumnIndex(e),-1!==(f=m.indexOf(t))&&m.splice(f,1),c.Nzt("onColumnRemoved",y[n])},t.prototype.Dzt=function(){return this.bzt},t.prototype._zt=function(){return this.Szt},t.prototype.Czt=function(t){var r,n,e,i,o,u,a,s,f,c,y,M=this;for(M.DIr(t)||p(M,t),r=M.SIr(),n=[],e=0;e<r;e++)o=h(i=M.JNr(e,t))?i.value:i,n.push(o);for(u=m.quickSort(n),a=M.bzt[t]=[],s=M.Szt[t]=[],f=M.yzt[t]=[],c=0;c<S(u);c++)y=u[c],a.push(y.value),s.push(y.index),f[y.index]=c},t.prototype.getColumnIndex=function(t){var r=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===r?-1:r},t.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},t.prototype.getFilteredOutRowIndexes=function(){var t,r=this,n=r.SIr(),e=r.ezt?r.ozt:r.izt,i=[];for(t=0;t<n;t++)e[t]||i.push(t);return i},t.prototype.getData=function(t,r){var n,e,i,o,u,a,s,f=this,c=f.getColumnIndex(t);if(c>=0){if(r){for(f.bzt[c]||f.Czt(c),n=f.jEe(c),e=f.bzt[c],o=(i=f.Tzt(e,r)).start,u=i.end,a=[],s=o;s<=u;s++)a.push(n[f.Szt[c][s]]);return a}return f.DIr(c)||p(f,c),f.jEe(c)}return[]},t.prototype.aggregateData=function(t,r,n){var e,o,u,a,s,f,c,y,m,M=this,h=M.getColumnIndex(t);return h<0?i:(M.bzt[h]||M.Czt(h),a=S(u=M.bzt[h]),e=(s=M.Tzt(u,n)).start,o=s.end,5===r?e>=a?i:u[e]:4===r?o<0?i:u[o]:3===r?o<e?0:o-e+1:(c=(f=M.Ezt(u,r,e,o)).data1,y=f.data2,m=f.data3,1===r?c/=y:7===r||10===r?(c=(m*y-c*c)/(m*(m-1)),c=7===r?Math.sqrt(c):c):8!==r&&11!==r||(c=(m*y-c*c)/(m*m),c=8===r?Math.sqrt(c):c),c))},t.prototype.Ezt=function(t,r,n,e){var u,a,s,f=6===r?1:0,c=0,y=0;for(u=n;u<=e;u++)(a=t[u])===o&&a===i||d(a,s={value:o})&&(a=s.value,1===r?(f+=a,c++):2===r?f++:9===r?f+=a:6===r?f*=a:7!==r&&8!==r&&10!==r&&11!==r||(f+=a,c+=a*a,y++));return{data1:f,data2:c,data3:y}},t.prototype.Tzt=function(t,r){var n=S(t),e,o,u,a;if(r){if(r.min===-1/0)e=0;else for(u=0;u<n;u++)if(a=t[u],m.isEquals(r.min,a)||m.isGreaterThan(a,r.min)){e=u;break}if(e===i&&(e=n),o===1/0)o=n-1;else{for(u=n-1;u>=0;u--)if(a=t[u],m.isEquals(a,r.max)||m.isGreaterThan(r.max,a)){o=u;break}o===i&&(o=-1)}}else e=0,o=n-1;return{start:e,end:o}},t.prototype.getExclusiveData=function(t){var r=this,n=r.vzt,e=r.getColumnIndex(t);return e>=0?(n[e]||p(r,e),n[e]):[]},t.prototype.getRowIndexes=function(t,r){var n=this,e=n.getColumnIndex(t);return e>=0?(n.gzt[e]||p(n,e),n.mzt[e][r]):[]},t.prototype.getExclusiveRowIndex=function(t,r){var n=this,e=n.getColumnIndex(t);return n.fue(e,r)},t.prototype.fue=function(t,r){var n=this,e=n.gzt;return t>=0?(e[t]||p(n,t),e[t][r]):-1},t.prototype.getFilteredIndexes=function(t){var r=[],n={};return this.jzt(t,r,n),r},t.prototype.jzt=function(t,r,n){var e,i,o,u=this,a=u.ezt?u.szt:u.rzt,s=u.getColumnIndex(t);for(e=0;e<S(a);e++)i=a[e],$(o=u.fue(s,i))||(n[o]?n[o]++:(n[o]=1,r.push(o)))},t.prototype.getFilteredRanges=function(t){return b(this,t,!1)},t.prototype.getFilteredOutRanges=function(t){return b(this,t,!0)},t.prototype.getFilteredOutIndexes=function(t,r){var n=this;return 0===r?F(n,t):1===r?_(n,t):w(n,t)},t.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},t.prototype.detachListener=function(t){var r,n=this.aT||[];for(r=0;r<S(n);r++)if(n[r]===t){n.splice(r,1);break}},t.prototype.suspendFilteredEvents=function(){this.Upt++},t.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},t.prototype.doFilter=function(t,r,n){this.Ozt(t,r,n),this.onFiltered()},t.prototype.Ozt=function(t,r,n){var e=this,i=e.Mct,o=e.getColumnIndex(t);o<0||(n?(e.ezt=!0,e.lzt=o):e.ezt&&N(e,!1),i.indexOf(o)<0&&i.push(o),r.ranges?D(e,t,r.ranges,n):H(e,t,r.exclusiveRowIndexes,n))},t.prototype.clearPreview=function(){N(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,n,e=this;e.ezt&&N(e,!1),(r=e.getColumnIndex(t))<0||(delete e.Mzt[r],delete e.azt[r],delete e.uzt[r],delete e.Azt[r],l(e),(n=e.Mct.indexOf(r))>=0&&e.Mct.splice(n,1))},t.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},t.prototype.getListener=function(){return this.aT},t}(),r.GeneralSlicerData=M},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht,dt,lt,vt,gt,pt,bt,Ft,_t,wt=this&&this.qKr||(Dt=function(t,r){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Dt(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Dt(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),Dt;function Ht(t,r){return{x:t,y:r}}function Nt(t,r,n,e){return{x:t,y:r,width:n,height:e}}function $t(t,r){var n,e,i,o=t[0],u=o&&o.value?o.value:o;for(e=1,i=t.length;e<i;e++)n=(o=t[e])&&o.value?o.value:o,(r&&u>n||!r&&u<n)&&(u=n);return u}function kt(t,r,n,e,i,o,u){o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.stroke()}function St(t,r,n,e,i,o,u){t.save(),o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.closePath(),t.stroke(),t.restore()}function xt(t,r,n,e,i,o,u,a){var s,f,c,y,m,M,h;if(t.save(),s=[o,u],t.setLineDash)t.beginPath(),t.strokeStyle=a,t.setLineDash(s),t.stroke(),t.moveTo(r,n),t.lineTo(e,i),t.stroke();else{for(t.beginPath(),t.lineWidth=1,t.strokeStyle=a,c={x:(e-r)/(f=b(p(e-r,2)+p(i-n,2))),y:(i-n)/f},y=0,m=0;y<f;)y+=M=l(s[m%2],f-y),(h=++m%2)&&t.moveTo(r,n),r+=M*c.x,n+=M*c.y,h&&t.lineTo(r,n);t.stroke()}t.restore()}function Pt(t,r,n,e,i,o,u,a,s,f,c,y){r?kt(t,n,e,i,o,c,y):kt(t,u,a,s,f,c,y)}function Ct(t,r,n,e,i,o,u,a){t.save(),u&&(t.fillStyle=u),t.textBaseline=a||K,t.beginPath(),t.font=i,t.textAlign=o,e="string"==typeof e?e:e+"",t.fillText(e,r,n),t.restore()}function At(t,r,n,e,i,o,u){r=Math.floor(r),n=Math.floor(n),e=Math.floor(e),i=Math.floor(i),u%2!=0&&(r===e?(r+=.5,e+=.5):n===i&&(n+=.5,i+=.5)),kt(t,r,n,e,i,o,u)}function Tt(t,r,n,e,i,o,u,a,s,f){var c,y,m,h;switch(o=Math.round(o),u=Math.round(u),s){case 0:u=Math.round(n+a),h=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u-Math.sin(M/3)*a);break;case 1:o=Math.round(r+e-a),m=Math.round(o),h=Math.round(u+a),c=Math.round(o+Math.sin(M/3)*a),y=Math.round((u+h)/2);break;case 2:u=Math.round(n+i-a),h=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u+Math.sin(M/3)*a);break;case 3:o=r+a,m=Math.round(o),h=Math.round(u+a),c=Math.round(o-Math.sin(M/3)*a),y=Math.round((u+h)/2)}t.beginPath(),t.moveTo(o,u),t.lineTo(c,y),t.lineTo(m,h),t.closePath(),t.fillStyle=f,t.fill()}function Ot(t,r,n,e,i){t.beginPath(),t.fillStyle=i,t.arc(r,n,e,0,2*Math.PI),t.fill()}function jt(t,r,n,e,i,o){if(r){var u=i/2;Ot(t,n+u,e+u,u,o)}else Jt(t,n,e,i,i,o)}function Et(t,r,n,e,i,o,u,a,s,f,c,y,m,M,h){var d,l,v,g,p,b;s?(d=Math.floor(r+.5*e),l=Math.floor(a?f-c:f),v=Math.floor(y),g=Math.floor(c),p=Math.floor(d-M/2),b=Math.floor(a?l-M/2:l+g+M/2),At(t,d,l,d,l+g,o,v)):(d=Math.floor(a?f:f-c),l=Math.floor(n+.5*i),v=Math.floor(c),g=Math.floor(y),p=Math.floor(a?d+v+M/2:d-M/2),b=Math.floor(l-M/2),At(t,d,l,d+v,l,o,g)),m?Rt(t,r,n,e,i,p,b,M,s,a,o):s?jt(t,h,p,a?b:b-=M,M,u):jt(t,h,a?p-=M:p,b,M,u)}function Rt(t,r,n,e,i,o,u,a,s,f,c){t.save(),Tt(t,r,n,e,i,o,u,a,s?f?0:2:f?1:3,c),t.restore()}function It(t,r,n,e,i,o,u,a,s,f,c,y,m,M){var h,d,l,v=4,g=void 0;t.save(),t.beginPath(),t.rect(r,n,e,i),t.clip(),t.font=s+W,t.fillStyle=T,t.fillStyle="black",f?(t.textBaseline=z,(g=s+(h=m<M?M:m)+o+v+M/2)>0?(t.textAlign=B,c?t.fillText(a,r+e/2+M/2,y-h/2):t.fillText(a,r+e/2+M/2,y+h/2)):(t.textAlign=G,c?t.fillText(a,r+e/2,y-h-M/2-s):t.fillText(a,r+e/2,y+h+M/2+v))):(t.textBaseline=J,(g=(d=t.measureText(a).width)+m+u+v+M/2)>0?d>m+M/2?c?(t.textAlign=L,t.fillText(a,y-v,n+i/2)):(t.textAlign=B,t.fillText(a,y+M/2,n+i/2)):(t.textAlign=G,c?t.fillText(a,y+m/2,n+i/2+s):t.fillText(a,y-m/2,n+i/2+s)):c?(t.textAlign=B,l=y+m+M/2+v,t.fillText(a,l,n+i/2)):(t.textAlign=L,l=y-m-M/2-v,t.fillText(a,l,n+i/2))),t.restore()}function Bt(t){return i.ft.rp(s(t))<127.5?A:T}function Lt(t,r,n,e,i,o,a,s){var f,c,y,m,M=s;return u(s)&&(M=i),a?(f=r+M+o,y=e-2*M,c=t+i,m=n-2*i):(f=t+M,y=n-2*M,c=r+i,m=e-2*i),{left:f,top:c,width:y,height:m}}function Gt(t,r){var n,e,i=0;for(n=0,e=t.length;n<e;n++)i+=r&&!r(t[n])?0:t[n];return i}function zt(t){return t*M/180}function Kt(t,r,n,e){var i,o,u,a,s=[];for(o=0,u=0,a=t.length;o<a;o++)r?(r(t[o])?s[u]=n?n(t[o]):t[o]:s[u]=0,u++):(i=N(t[o]),!H(i)&&isFinite(i)&&(s[u]=i,u++));return e&&e(s),s}function Jt(t,r,n,e,i,o){var u=g(r+e),a=g(n+i);r=g(r),n=g(n),e=g(u-r),i=g(a-n),t.beginPath(),t.fillStyle=o,t.fillRect(r,n,e,i),t.fill()}function Vt(t,r,n){return t=l(t,r),t=v(t,n)}function Wt(t,r,n,e,i){t.save(),t.rect(r,n,e,i),t.clip()}function Ut(t,r){var n,e,i,o;return!(!t||!r)&&(n=v(t.x+t.width,r.x+r.width),e=v(t.y+t.height,r.y+r.height),i=l(t.x,r.x),o=l(t.y,r.y),n-i<=t.width+r.width&&e-o<=t.height+r.height)}function qt(t,r,n,e,i,o){var a,s,f,c,y,m,v=n+i/2,g=e+o/2,p=5,b=l(i,o)/2-p,_=-.5*M,w=v+b*d(_),D=g+b*h(_),N=[],$=[];if(!(b<=0)){for(c=Yt(f=(s=Kt(r.values,(function(t){return!u(t)&&!H(t)&&isFinite(t)}),(function(t){return F(t)}),(function(t){1===t.length&&(t[1]=1-t[0])}))).length,r.colors),y=Gt(s),t.save(),m=0;m<f;m++)a=_+s[m]/y*2*M,t.beginPath(),t.moveTo(v,g),t.lineTo(w,D),t.arc(v,g,b,_,a,!1),t.lineTo(v,g),t.fillStyle=c[m],t.fill(),N.push(w),$.push(D),w=v+b*d(_=a),D=g+b*h(_);for(m=0;m<f;m++)kt(t,v,g,N[m],$[m],A);t.restore()}}function Yt(t,r){var n,e,o,u,a,f,c=[],y=r.length;if(t<=y)c=r.slice(0,t);else{for(0===y?(c.push("darkgray"),y=1):c=r.slice(0),n=[],e=void 0,o=t-y+1,u=void 0,u=0;u<y;u++)n[u]=s(c[u]);for(u=y;u<t;u++){for(a in e=n[u%y])e.hasOwnProperty(a)&&(f=e[a],e[a]=m(f-f/o*(u/y)));e.a=255,c[u]=i.ft.j(e)}}return c}function Xt(t,r,n){return{x:t,y:r,value:n}}function Zt(t){return isNaN(t)||t===1/0?0:t}function Qt(t,r,n,e,i,o){var a,s,f,y,m,M,h,d,p,b,F,_,D,N,$,k,S,P,C,A,T,j,E,R,I,B,L,G,z,K,J,V;if(t.save(),a=r.points,s=r.mini,f=r.maxi,y=r.line1,m=r.line2,M=r.colorPositive,h=r.colorNegative,d=5,a=Kt(a,(function(t){return!u(t)&&!H(t)&&isFinite(t)})),M=u(M)?"#787878":M,h=u(h)?x:h,C=$t(a,!1),f=u(f)?C:f,b=v(f,C),A=$t(a,!0),s=u(s)?A:s,p=l(s,A),F=(F=(F=0)>(b=b<0?0:b)?b:F)<(p=p>0?0:p)?p-1:F,_=a.length,T=Lt(n,e,i,o,d),D=T.left,N=T.top,$=T.width,k=T.height,S=Zt($/(_-1)),j=[],P=Zt((b-p)/k))for(I=void 0,B=void 0,L=N+Zt((b-F)/P),G=void 0,z=void 0,K=0;K<_;K++)I=a[K],G=D+S*K,z=N+Zt((b-I)/P),0===K&&j.push(new dt(Xt(G,L,F))),K>0&&I*a[K-1]<0&&(R=j[j.length-1])&&(B=tr(R.x,R.y,G,z,L),j.push(new dt(Xt(B,L,F)))),j.push(new dt(Xt(G,z,I))),K===_-1&&j.push(new dt(Xt(G,L,F)));for(t.beginPath(),J=0,V=j.length;J<V;J++)(E=j[J])&&(0===J?t.moveTo(E.x,E.y):t.lineTo(E.x,E.y),R=j[J-1],E.value===F&&R&&(t.fillStyle=R.value>F?M:h,t.fill(),J!==V-1&&(t.beginPath(),t.moveTo(E.x,E.y))));function W(r){var n,e,i;r===c&&typeof r!==w||(n=Vt(r,b,p),i=g(N+(e=0!==P?(b-n)/P:k/2))-.5,kt(t,D,i,D+$,i,O))}W(y),W(m),t.restore()}function tr(t,r,n,e,i){return((r-i)*n+(i-e)*t)/(r-e)}function rr(t,r,n,e,i,o){var a,s,f,c,y,m,h,d,p,b,F,_,w,D,H,N,k,P,A,T,O,j,E,R,I,B,L=r.points1,G=r.points2,z=r.minX,K=r.maxX,J=r.minY,V=r.maxY,W=r.hLine,U=r.vLine,q=r.xMinZone,Y=r.xMaxZone,X=r.yMinZone,Z=r.yMaxZone,Q=r.tags,tt=r.drawSymbol,rt=r.drawLines,nt=r.color1,et=r.color2,it=r.dash,ot=4,ut=Lt(n,e,i,o,5),at=ut.left,st=ut.top,ft=ut.width,ct=ut.height;if(L&&!(L.length<=0)&&!((a=or(L)).length<=0||G&&G.length>0&&(s=or(G)).length<=0)){for(Wt(t,n,e,i,o),t.beginPath(),tt=!!u(tt)||tt,nt=u(nt)?S:nt,et=u(et)?x:et,mt(a,J,V,z,K),!u(q)&&!u(Y)&&!u(X)&&!u(Z)&&y<=q&&q<=m&&y<=Y&&Y<=m&&f<=X&&X<=c&&f<=Z&&Z<=c&&((E=v(y,q))>=(R=l(m,Y))&&(R=E+1),(I=v(f,X))>=(B=l(c,Z))&&(B=I+1),Jt(t,at+(E-y)*ft/(m-y),st+(c-B)*ct/(c-f),(R-E)*ft/(m-y),(B-I)*ct/(c-f),C)),P=-$,A=-$,T=$,O=$,p=a.length,h=0;h<p-1;h++)yt(a,h,nt,ht),Q&&(0===h&&(H>A&&(P=D,A=H),H<O&&(T=D,O=H)),k>A&&(P=N,A=k),k<O&&(T=N,O=k));if(s&&s.length>0)for(mt(s,f,c,y,m),p=s.length,h=0;h<p-1;h++)yt(s,h,et,dt);Q&&(Mt(P,A,x),Mt(T,O,"#0000FF")),!u(W)&&f<=W&&W<=c&&(j=g(st+(c-W)*ct/(c-f))-.5,ir(t,at,j,at+ft,j,x)),!u(U)&&y<=U&&U<=m&&(j=g(at+(U-y)*ft/(m-y))-.5,ir(t,j,st,j,st+ct,x)),t.restore()}function yt(r,n,e,i){d=r[n],b=d.x,F=d.y,d=r[n+1],_=d.x,w=d.y,D=at+(b-y)*ft/(m-y),N=at+(_-y)*ft/(m-y),H=st+(c-F)*ct/(c-f),k=st+(c-w)*ct/(c-f),rt&&ir(t,D,H,N,k,e,it),tt&&(0===n&&i(D,H),i(N,k))}function mt(t,r,n,e,i){var o=nr(t,!0),a=nr(t,!1);f=u(J)?o.y:r,c=u(V)?a.y:n,y=u(z)?o.x:e,m=u(K)?a.x:i,m=y>=m?y+1:m,c=f>=c?f+1:c}function Mt(r,n,e){t.beginPath(),t.arc(r-ot/2,n-ot/2,ot/2,0,2*M,!1),t.fillStyle=e,t.fill()}function ht(r,n){t.beginPath(),t.strokeStyle=nt,t.arc(r-ot/2,n-ot/2,ot/2,0,2*M,!1),t.stroke()}function dt(r,n){t.beginPath(),t.strokeStyle=et,t.strokeRect(r-ot/2,n-ot/2,ot,ot)}}function nr(t,r){var n,e,i=r?1:-1,o=r?l:v,u=new Mt(Ht(i*$,i*$)),a=t.length;for(e=0;e<a;e++)n=t[e],u.x=o(u.x,n.x),u.y=o(u.y,n.y);return u}function er(t,r,n,e){return n/e*(r-t)+t}function ir(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,F,_,w,D,H;if(u){for(a=b(p(e-r,2)+p(i-n,2)),s=0,f=6,c=2,y=4,M=void 0,h=void 0,d=void 0,l=void 0,r<=e?(M=r,h=e,d=r,l=n):(M=e,h=r,d=e,l=i),g=n-(v=(i-n)/(e-r))*r,(m=[]).push(new Mt(Ht(d,l))),F=[f,y,c,y];s<a;)for(_=0,w=F.length;_<w;_++)(s+=F[_])<=a&&(l=v*(d=er(M,h,s,a))+g,m.push(new Mt(Ht(d,l))));for(D=0,H=m.length;D<H-1;D+=2)kt(t,m[D].x,m[D].y,m[D+1].x,m[D+1].y,o)}else kt(t,r,n,e,i,o)}function or(t){var r,n,e,i=[],o=t.length;if(o>0)if(o<(r=t[0].length)){if(o>=2)for(n=0;n<r;n++)i.push(new Mt(Ht(t[0][n],t[1][n])))}else if(r>=2)for(e=0;e<o;e++)i.push(new Mt(Ht(t[e][0],t[e][1])));return i}function ur(t,r,n,e,i,o){var s,f,c,y,M,h,d,l,p,b,F,_,w,D,N,$,k,S=r.measure,C=r.target,A=r.maxi,T=r.good,O=r.bad,j=r.forecast,E=r.tickUnit,R=r.colorScheme,I=r.vertical,B=5,L=r.measureColor,G=r.targetColor,z=r.maxiColor,K=r.goodColor,J=r.badColor,V=r.forecastColor,W=r.allowMeasureOverMaxi,U=r.barSize;if(!(u(A)||A<0)&&(u(U)||!(H(U)||U<=0))){if(U>1&&(U=1),S=u(S)||S<0?0:S,T=u(T)||T<0?0:T,O=u(O)||O<0?0:O,C=u(C)?0:C,j=u(j)?0:j,E=u(E)?0:E,R=u(R)?"#A0A0A0":R,s=u(L)?"#252525":L,S>A&&!W&&(S=A,s=x),T>A&&(T=A,s=x),O>A&&(O=A,s=x),C>A&&(C=0,s=x),j>A&&(j=A,s=x),f=Lt(n,e,i,o,B,o-2*B,I),c=f.left,y=f.width,t.save(),M=u(U)?.2:(1-U)/2,h=u(U)?.6:U,d=W?v(A,S):A,q(u(z)?a(R,1.66):z,A,d,M,h),q(u(K)?a(R,1.33):K,T,d,M,h),q(u(J)?R:J,O,d,M,h),l=.25*U/.6,q(s,S,d,p=u(U)?.375:(1-l)/2,b=u(U)?.25:l),j>0&&(F=c,(_=y*(j/d))>y&&(_=y),w=u(U)?3:3*U/.6,Pt(t,I,n+.5*i,F,n+.5*i,F-_,F,e+.5*o,F+_,e+.5*o,u(V)?"#3690BF":V,w)),C>0&&(D=g(c-(I?1:-1)*y*(C/d))-.5,Pt(t,I,n+i*M,D,n+i*(1-M),D,D,e+o*M,D,e+o*(1-M),u(G)?x:G,1)),E>0)for(N=m(d/E),$=void 0,k=0;k<=N;k++)$=g(c-y/d*E*(I?1:-1)*k)-.5,Pt(t,I,n,$,n+.05*i,$,$,e+o,$,e+.95*o,P,1);t.restore()}function q(r,u,a,s,f){var m,M,h;t.fillStyle=r,m=c,(M=y*(u/a))>y&&!W&&(M=y),h=new ht(I?Nt(n+i*s,m-M,i*f,M):Nt(m,e+o*s,M,o*f)),t.fillRect(h.x,h.y,h.width,h.height)}}function ar(t,r,n,e,i,o){var a,s,f,c,y,m,M,h,d,p,b,F,_,w,D,H,N,$,k,S,C,A,T=r.spreadData,O=r.showAverage,j=r.scaleStart,E=r.scaleEnd,R=r.style,I=r.colorScheme,B=r.vertical,L=5,G=T.length;if(!(G<=0)){for(a=T[0].key,s=T[G-1].key,j=u(j)?a:j,E=u(E)?s:E,R=u(R)?4:R,I=u(I)?P:I,c=(f=Lt(n,e,i,o,L,o-2*L,B)).left,y=f.width,m=f.top,M=f.height,Wt(t,n,e,i,o),t.beginPath(),t.strokeStyle=I,t.fillStyle=I,t.lineWidth=2,p=$t(T,!1),F=0,_=T.length;F<_;F++)if(D=(w=T[F]).key,H=w.value,h=c+(B?-1:1)*y*(D-j)/(E-j),B?(h=l(h,c),h=v(h,c-y)):(h=v(h,c),h=l(h,c+y)),h=g(h),1===R)Pt(t,B,N=m+M/2-(b=(b=H/2*M/p)<.5?.5:b),h,$=m+M/2+b,h,h,N,h,$);else if(4===R)Pt(t,B,m,h,m+(b=(b=H*M/p)<1?1:b),h,h,m+M,h,m+M-b);else if(6===R)Pt(t,B,m,h,m+M,h,h,m,h,m+M);else for(k=2,S=1;S<=H;S++){switch(R){case 2:d=m+M/2-L-(H/2-S)*M/p;break;case 3:d=m+M-L-(C=sr(H,M,k+1,w.randomNumbers))[S-1];break;default:d=m+M-S*M/p}d=g(d),t.beginPath(),t.fillRect(B?d:h,B?h:d,k,k)}O&&Pt(t,B,m-L,h=c-(B?1:-1)*y*((A=fr(T))-j)/(E-j),m+M+L,h,h,m-L,h,m+M+L,x),t.restore()}}function sr(t,r,n,e){for(var i,o=[],u=v(100,10*t),a=0,s=[],f=0;o.length<t;)i=m(e[f]*r),f++,(a>u||cr(i,s))&&(o.push(i),s.push([i-n,i+n])),a++;return o}function fr(t){var r,n,e,i=0,o=0;for(r=0,n=t.length;r<n;r++)o+=(e=t[r]).value,i+=e.key*e.value;return 0===o?0:i/o}function cr(t,r){var n,e,i;for(n=0,e=r.length;n<e;n++)if((i=r[n])[0]<=t&&t<=i[1])return!1;return!0}function yr(t,r,n,e,i,o,s){var f,m,M,h,d,l,v,p,b,F,_,w,D,N,$,k,S,C,A=r.points,T=A&&A.length,E=r.colorRange,I=r.labelRange,B=r.maximum,L=r.targetRed,z=r.targetGreen,K=r.targetBlue,V=r.targetYellow,U=r.color,q=r.highlightPosition,Y=r.vertical,X=r.textOrientation,Z=r.textSize,Q=5;if(!(u(A)||T<=0)){if(U=u(U)?P:U,u(E)||E.length!==T||mr(E))for(E=[],f=0;f<T;f++)E.push(a(U,1+f/T));for(m=Gt(A,(function(t){return t>0})),B=u(B)||B<m?m:B,X=u(X)?0:X,Z=u(Z)||Z<=0?10:Z,Z=H(Z)?Z:Z*s.zoomFactor,M=Lt(n,e,i,o,Q,o-2*Q,Y),h=M.left,d=M.width,l=M.top,v=M.height,t.save(),p=h,$=0,k=T;$<k;$++)(N=A[$])<=0||(b=N/B*d,Y?(F=n+.15*i,w=.7*i,_=p-b,D=b):(F=p,w=b,_=e+.15*o,D=.7*o),S=$+1===q?x:E[$],t.save(),t.fillStyle=S,t.fillRect(F,_,w,D),(C=I&&I[$])&&(t.save(),t.fillStyle=Bt(S),t.textBaseline=J,t.textAlign=G,t.font=Z+W,t.rect(F,_,w,D),t.clip(),1===X?(t.translate(F+w/2,_),t.rotate(Math.PI/2),t.fillText(C,D/2,0)):t.fillText(C,F+w/2,_+D/2),t.restore()),p+=(Y?-1:1)*b,t.restore());tt(R,L,(function(t){return t>0})),tt(j,z),tt(O,K),tt("yellow",V),t.restore()}function tt(r,n,e){var i,o;n!==c&&n!==y&&(n=n>B?B:n,e&&!e(n)||(o=(n=n<0?0:n)/B*d,Y?(i=g(h-o)-.5,kt(t,l,i,l+v,i,r)):(i=g(h+o)-.5,kt(t,i,l,i,l+v,r))))}}function mr(t){for(var r=0,n=t.length;r<n;r++)if(u(t[r]))return!0;return!1}function Mr(t,r,n,e,i,o){kt(t,lr(r),lr(n),lr(e),lr(i),u(o)?T:o,1)}function hr(t,r,n,e,i){var o,u,a,s,f,c=.4*e;switch(r=lr(r),n=lr(n),t.beginPath(),t.moveTo(r,n),o=c/2,u=b(3)*c/2,a=c/b(3),i){case 0:s=[-o,0,o],f=[u,a,u];break;case 2:s=[-o,0,o],f=[-u,-a,-u];break;case 3:s=[u,a,u],f=[-o,0,o];break;case 1:s=[-u,-a,-u],f=[-o,0,o];break;default:s=[],f=[]}s.forEach((function(e,i){t.lineTo(lr(r+e),lr(n+f[i]))})),t.lineTo(r,n),t.closePath(),t.fillStyle=A,t.fill()}function dr(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,b,_,w=n.value,D=n.colorScheme,$=n.axisVisible,k=n.barHeight,S=n.barWidth,x=5,P=5,C=!1,A=N(w);if(!H(A)){if(u(h=0===t?k:S))d=.7;else{if(H(h)||h<=0)return;d=Math.min(1,h)}A>1?(A=1,C=!0):A<-1&&(A=-1,C=!0),D=u(D)?"grey":D,$=!!u($)||$,r.save(),0===t?(l=o-2*x,v=a*d,A>=0?(C&&(s=new Mt(Ht(e+x+l-P,i+a/2))),f=new ht(Nt(e+x,i+a*(1-d)/2,l*A,v)),c=new Mt(Ht(e+x,i+1)),y=new Mt(Ht(e+x,i+a)),m=1):(g=F(l*A),C&&(s=new Mt(Ht(e+x+P,i+a/2))),f=new ht(Nt(e+o-x-g,i+a*(1-d)/2,g,v)),c=new Mt(Ht(e+o-x,i+1)),y=new Mt(Ht(e+o-x,i+a)),m=3),M=u(h)?a:a*d):1===t&&(p=a-2*x,b=o*d,A>=0?(f=new ht(Nt(e+(1-d)/2*o,i+a-x-(_=p*A),b,_)),C&&(s=new Mt(Ht(e+o/2,i+a-x-_+P)),m=0),c=new Mt(Ht(e+1,i+a-x)),y=new Mt(Ht(e+o,i+a-x))):(A=F(A),f=new ht(Nt(e+(1-d)/2*o,i+x,b,p*A)),C&&(s=new Mt(Ht(e+o/2,i+x+p-P)),m=2),c=new Mt(Ht(e+1,i+x)),y=new Mt(Ht(e+o,i+x))),M=u(h)?o:o*d),r.beginPath(),f&&(Jt(r,f.x,f.y,f.width,f.height,D),Wt(r,f.x,f.y,f.width,f.height)),s&&hr(r,s.x,s.y,M,m),r.restore(),$&&c&&Mr(r,c.x,c.y,y.x,y.y),r.restore()}}function lr(t){return g(t)-.5}function vr(t,r,n,e,i,o){dr(0,t,r,n,e,i,o)}function gr(t,r,n,e,i,o){dr(1,t,r,n,e,i,o)}function pr(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,_,w,D,$,k,P,C,A,O,E=r.variance,I=r.reference,V=r.mini,U=r.maxi,q=r.mark,Y=r.tickUnit,X=r.legend,Z=r.colorPositive,Q=r.colorNegative,tt=r.vertical,rt=.5,nt=.5-rt/2,et=5,it=x,ot=S,ut=13*a.zoomFactor,at=N(E);if(!(H(at)||(Q=u(Q)?R:Q,Z=u(Z)?j:Z,Y=u(Y)?0:Y,U=u(U)?1:U,V=u(V)?-1:V,(h=!u(I))||(I=0),tt?(s=e+o-et,f=o-2*et,c=i-4*et,y=-1):(s=n+et,f=i-2*et,c=o-4*et,y=1),X&&(l=N(r.variance),H(l)||(g=(v=l.toString()).substr(v.indexOf(".")+1).length,m=g>=2?(100*l).toFixed(g-2)+"%":(100*l).toFixed(0)+"%")),at>U&&(at=U,d=!0),at<V&&(at=V,d=!0),I=Vt(I,U,V),d&&(M=Vt(c,60,15)),_=f/(p=F(U-V)),w=s+y*F(V-I)*_,(D=F(at-I)*_)>F(p)*_&&(D=F(p+V)*_),$=s+y*f,tt&&w<$||!tt&&w>$))){if(Wt(t,n,e,i,o),at>I?st(Z,0,et-f,f-et,0,1,e-w,K,z,w-n-i,B,L,-1,F(U-at)*_):(D>F(p)*_&&(D=F(p+V)*_,w=s),st(Q,1,-et,et,2,3,w-e-o,z,K,n-w,L,B,1,F(V-at)*_)),h&&(k=s+y*(Math.abs(V-I)*_),ct(n,k,n+i,k,k,e,k,e+o)),Y>0)for(t.beginPath(),P=p/Y,C=0;C<=P;C++)ct(n,A=s+f/P*C*y,n+.1*i,A,A,e+.9*o,A,e+o,ot,ot);!u(q)&&V<=q&&q<=U&&(t.beginPath(),O=s-(tt?1:-1)*F(V-q)*_,ct(n,O,n+.33*i,O,O,e+.66*o,O,e+o,it,it),t.fill()),t.restore()}function st(r,u,a,f,c,y,h,l,v,g,p,F,_,H){var N,$,k,S,x,P;tt?Jt(t,N=n+nt*i,$=0===u?w-D:w,k=i*rt,S=D,r):Jt(t,N=0===u?w:w-D,$=e+nt*o,k=D,S=o*rt,r),d&&(Wt(t,N,$,k,S),tt?hr(t,n+i/2,s+a,M,c):hr(t,s+f,e+o/2,M,y),t.restore()),X&&(x=void 0,P=0,d&&(P=.4*M*b(3)/2+et+2),t.save(),t.beginPath(),t.font=ut+W,t.fillStyle=T,tt?(t.textAlign=G,ft(x=ut+D+h,H,r,l,v,N,$,k,S,tt),t.fillText(m,n+i/2,w+_*(D-P))):(t.textBaseline=J,ft(x=t.measureText(m).width+D+g,H,r,p,F,N,$,k,S,tt),t.fillText(m,w+_*(P-D),e+o/2)),t.restore())}function ft(r,n,e,i,o,u,a,s,f,c){c?t.textBaseline=i:t.textAlign=i,r>0&&n<D&&(t.rect(u,a,s,f),t.clip(),c?t.textBaseline=o:t.textAlign=o,t.fillStyle=Bt(e))}function ct(r,n,e,i,o,u,a,s,f,c){tt?Mr(t,r,n,e,i,f):Mr(t,o,u,a,s,c)}}function br(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,b,_,w,D,$,k,S,x,P,A,O,E,I,B=r.plannedValue,L=r.actualValue,G=r.index,z=r.absolute,K=r.reference,J=r.mini,V=r.maxi,W=r.tickUnit,U=r.legend,q=r.colorPositive,Y=r.colorNegative,X=r.lollipopHeaderColor,Z=r.vertical,Q=[],tt="",rt=.9,nt=10,et=13*a.zoomFactor,it=C,ot=!1;if(!(0===B.length||0===L.length||G<0||G>=B.length||G>=L.length||J>=V||H(L[G])||H(B[G]))){if(Y=u(Y)?R:Y,q=u(q)?j:q,W=u(W)?0:W,z=!u(z)&&z,m=!u(K),X=u(X)?T:X,z){for(v=0;v<B.length&&v<L.length;v++)Q.push(L[v]-B[v]);V=$t(Q,!1),J=$t(Q,!0),V>0&&J>0?J=0:V<0&&J<0&&(V=0),M=Q[G],K=0,m=!0}else V=u(V)?1:V,J=u(J)?-1:J,M=(L[G]-B[G])/Math.abs(B[G]),((K=Vt(K,V,J))===V&&M>K||K===J&&M<K)&&(ot=!0),u(B[G])&&(ot=!0);if(m||(K=0),Z?(s=e+o-nt,f=o-2*nt,c=-1):(s=n+nt,f=i-2*nt,c=1),!z&&U?((p=N((g=M-K).toString()))>0&&(tt="+"),!H(p)&&isFinite(p)?y=tt+(y=(_=(b=p.toString()).substr(b.indexOf(".")+1).length)>=2?(100*p).toFixed(2)+"%":100*p+"%"):isFinite(p)||(y=tt+p)):(M>0&&(tt="+"),y=tt+(y=(_=(b=(p=N(M)).toString()).substr(b.indexOf(".")+1).length)>=2?p.toFixed(2):p)),z?l=!1:(M>V&&(M=V,l=!0),M<J&&(M=J,l=!0)),D=f/(w=F(V-J)),$=s+c*F(J-K)*D,(k=F(M-K)*D*rt)>F(w)*D&&(k=F(w+J)*D),S=s+c*f,!(Z&&$<S||!Z&&$>S))if(z||0!==B[G]&&!ot){if(Wt(t,n,e,i,o),x=F(Math.ceil((V-K)/W)),P=F(Math.floor((K-J)/W)),z){if(W>5/D)if(Z){for(O=1;O<=x;O++)At(t,n,E=$+W*D*O*-1*rt,n+i,E,it,1);for(O=1;O<=P;O++)At(t,n,E=$+W*D*O*1*rt,n+i,E,it,1)}else{for(O=1;O<=x;O++)At(t,I=$+W*D*O*1*rt,e,I,e+o,it,1);for(O=1;O<=P;O++)At(t,I=$+W*D*O*-1*rt,e,I,e+o,it,1)}}else if(W>0&&W<=V&&W>5/D)if(t.beginPath(),Z){for(A=.1*i>10?10:.1*i,O=1;O<=x;O++)At(t,n,E=$+W*D*O*-1*rt,n+A,E,it,1);for(O=1;O<=P;O++)At(t,n,E=$+W*D*O*1*rt,n+A,E,it,1)}else{for(A=.1*o>10?10:.1*o,O=1;O<=x;O++)At(t,I=$+W*D*O*1*rt,e+o-A,I,e+o,it,1);for(O=1;O<=P;O++)At(t,I=$+W*D*O*-1*rt,e+o-A,I,e+o,it,1)}h=Math.floor(12*a.zoomFactor),(d=Math.floor(4*a.zoomFactor))%2!=0&&(d+=1),h%2!=0&&(h+=1),M>K?Et(t,n,e,i,o,q,X,!0,Z,$,k,d,l,h,z):(k>F(w)*D&&(k=F(w+J)*D,$=s),Et(t,n,e,i,o,Y,X,!1,Z,$,k,d,l,h,z)),U&&(M>K?It(t,n,e,i,o,e-$,$-n-i,y,et,Z,!0,$,k,h):It(t,n,e,i,o,$-e-o,n-$,y,et,Z,!1,$,k,h)),m&&(Z?At(t,n,$,n+i,$,T,2):At(t,$,e,$,e+o,T,2)),t.restore()}else Z?At(t,n,$,n+i,$,T,2):At(t,$,e,$,e+o,T,2)}}function Fr(t,r,n,e,i,o){var a,s,f,y,m,M,h,d,g,p,b,_,w,$,k,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht,dt,Ft,_t,wt=r.points,Dt=r.boxPlotClass,Ht=r.showAverage,Nt=r.scaleStart,kt=r.scaleEnd,St=r.acceptableStart,xt=r.acceptableEnd,Ct=r.style,At=r.colorScheme,Tt=r.vertical,Ot=5,jt=$t(wt,!1),Et=$t(wt,!0);if(!(u(wt)||(wt=Kt(wt)).length<=0)){for((Dt=Dt===c||typeof Dt!==D?vt:Dt.toLocaleLowerCase())!==vt&&Dt!==lt&&Dt!==gt&&Dt!==pt&&Dt!==bt&&(Dt=vt),a=N(Nt),a=H(a)?Et:a,s=N(kt),s=H(s)?jt:s,f=N(St),y=N(xt),At!==c&&typeof At===D||(At="#D2D2D2"),(Ct===c||0!==Ct&&1!==Ct)&&(Ct=0),m=x,a>Et&&(At=m,a=Et),s<jt&&(At=m,s=jt),Wt(t,n,e,i,o),t.lineWidth=2,h=(M=Lt(n,e,i,o,Ot,o-2*Ot,Tt)).left,d=M.width,g=M.top,p=M.height,b=Tt?-1:1,_=r.perc02,w=r.perc09,$=r.perc10,k=r.perc90,C=r.perc91,A=r.perc98,T=r.q1,E=Et,R=jt,I=1.5*(j=(O=r.q3)-T),B=1.5*j,L=r.stDev,G=Gt(wt)/v(1,wt.length),z=0,K=0,J=g+.1*p,V=.7*p,W=F(s-a),U=0,q=wt.length;U<q;U++)(Y=wt[U])<T&&Y>=T-1.5*j&&Y-(T-1.5*j)<I&&(I=Y-(T-1.5*j),E=Y),Y>O&&Y<=O+1.5*j&&O+1.5*j-Y<B&&(B=O+1.5*j-Y,R=Y),X=!1,z=h+b*(d*((Y-a)/W)),Dt===gt&&(Y<=T-1.5*j||Y>=O+1.5*j)&&(X=!0,K=Y<=T-3*j||Y>=O+3*j?0:1),Dt===lt&&(Y<=_||Y>=A)&&(X=!0,K=1),Dt===bt&&(Y<=G-2*L||Y>=G+2*L)&&(X=!0,K=Y<=G-3*L||Y>=G+3*L?0:1),Z=S,X&&(1===Ct?1===K?It(.2,.8,z,Z):It(.3,.7,z,Z):((Q=.1*p)<2&&(Q=2),t.beginPath(),t.strokeStyle=Z,tt=g+.45*p,rt=z,t.arc(Tt?tt:rt,Tt?rt:tt,Q/2,0,2*Math.PI),t.stroke()));switch((a>f||s<y)&&(At="#C0FF00"),(f=v(a,f))>(y=l(s,y))?At=m:f<y&&Pt(t,Tt,it=g+.9*p,nt=h+b*(d*((f-a)/W)),it,et=h+b*(d*((y-a)/W)),nt,it,et,it,P),ut=F(h+b*(d*((O-a)/W))-(ot=h+b*(d*((T-a)/W)))),st=h+b*(d*(((at=r.median)-a)/W)),Dt){case lt:yt=_,mt=A;break;case gt:yt=E,mt=R;break;case bt:ut=F(h+b*(d*((G+L-a)/W))-(ot=h+b*(d*((G-L-a)/W)))),st=h+b*(d*((G-a)/W)),yt=(Mt=G-2*L)>a?Mt:Et,mt=(Mt=G+2*L)<s?Mt:jt,Ht=!1;break;default:yt=Et,mt=jt}ft=h+b*(d*((yt-a)/W)),ct=h+b*(d*((mt-a)/W)),ht=S,1===Ct?Rt("#F2F2F2",J,ct,V,ft-ct,ft,J,ct-ft,V):Pt(t,Tt,dt=g+.45*p,ft,dt,ct,ft,dt,ct,dt,ht),Rt(At,J,ot-ut,V,ut,ot,J,ut,V),Pt(t,Tt,J,st,J+V,st,st,J,st,J+V,ht),0===Ct&&(Pt(t,Tt,J+.3*V,ct,J+.7*V,ct,ct,J+.3*V,ct,J+.7*V,ht),Pt(t,Tt,J+.3*V,ft,J+.7*V,ft,ft,J+.3*V,ft,J+.7*V,ht)),Dt!==lt&&Dt!==pt||(Ft=void 0,_t=void 0,Dt===lt?(yt=w,mt=C):(yt=$,mt=k),Ft=h+b*(d*((yt-a)/W)),It(.3,.7,_t=h+b*(d*((mt-a)/W)),ht),It(.3,.7,Ft,ht)),Ht&&It(.2,.8,z=h+b*(d*((G-a)/W)),m),t.restore()}function Rt(r,n,e,i,o,u,a,s,f){Tt?Jt(t,n,e,i,o,r):Jt(t,u,a,s,f,r)}function It(r,n,e,i){Pt(t,Tt,J+V*r,e,J+V*n,e,e,J+V*r,e,J+V*n,i)}}function _r(t,r,n,e,i){r=g(r),n=g(n),r===(e=g(e))&&(r=e-=.5),n===(i=g(i))&&(n=i-=.5),t.moveTo(r,n),t.lineTo(e,i)}function wr(t,r,n,e,i,o,u,a,s,f,c){t.beginPath(),t.strokeStyle=n,r?_r(t,e,i,o,u):_r(t,a,s,f,c),t.stroke()}function Dr(t,r,n,e,i){t.rect(r,n,e,i),t.clip()}function Hr(t,r,n,e,i,o){var a,s,f,c,y,m,M,h=o.labelText,d=o.fontSize,l=o.startBox,v=o.endBox,g=o.boxColor,p=o.isInRightOrTopOfBox,b=o.fillStyle;t.save(),t.beginPath(),t.font=d+W,c=1,b=u(b)?T:b,o.vertical?(y=G,p?(a=d+v-(l-n))>0&&l-v-n<v?(m=z,b=Bt(g),f=l-v+c,Dr(t,r,l-v,e,v)):(m=K,f=l-v-c):(a=d-(n+i-l))>0&&n+i-l<v?(Dr(t,r,l-v,e,v),m=K,b=Bt(g),f=l-c):(m=z,f=l+c),t.textAlign=y,t.textBaseline=m,t.fillStyle=b,t.fillText(h,r+e/2,f)):(m=J,M=t.measureText(h),p?(a=M.width+v-(r+e-l))>0&&r+e-(l+v)<v?(Dr(t,l,n,v,i),y=L,b=Bt(g),s=l+v-c):(y=B,s=l+v+c):(a=M.width-(l-r))>0&&l-r<v?(Dr(t,l,n,v,i),s=l+c,y=B,b=Bt(g)):(y=L,s=l-c),t.textAlign=y,t.textBaseline=m,t.fillStyle=b,t.fillText(h,s,n+i/2)),t.restore()}function Nr(t,r,n,e,i,o,s){var f,y,m,M,h,d,g,p,b,_,w,$,k,S,x,P,A,O,j,E,R,I,B,L,G,z,K,J,V,W,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht=r.points,dt=r.labels,lt=r.pointIndex,vt=r.minimum,gt=r.maximum,pt=r.colorPositive,bt=r.colorNegative,Ft=r.vertical,_t=r.itemTypeRange,wt=r.colorTotal,Dt=5,Ht=13*s.zoomFactor;if(!u(ht)&&!((f=ht.length)<=0||(y=parseInt(lt,10),H(y)||y<=0||y>f))){for(dt=u(dt)?[]:dt,pt!==c&&typeof pt===D||(pt="#8CBF64"),bt!==c&&typeof bt===D||(bt="#D6604D"),typeof wt!==D&&(wt=c),m=pt,M=a(pt,1.3),h=bt,d=a(bt,1.3),g=1,p=0,b=0,_=0,w=0,$=[],k=0,S=0,P=0,A=f;P<A;P++)S=ht[P],x=_t[P],O=!1,j=1===g,(E=!u(x))&&(x===q?S=F(S):x===U?S=-F(S):x===Y?(O=!0,j?p=S:S=p):E=!1),$[g]=[],R=$[g],H(S)?(R[0]=0,R[1]=p,R[2]=0):(R[0]=F(S),p=O?p:S+p,R[1]=S>0?b:p,R[2]=S),R[3]=g,_=l(b,_),w=v(b,w),((I=g===f)&&!E||O)&&(k=_<0?-_:0,R[1]=S>0?0:S),E&&O&&!j||(b=S+b,I&&E&&(_=l(b,_),w=v(b,w))),g++;B=!1,u(x)||(B=-1===(L=[U,q,Y]).indexOf(x)),(u(x)||B)&&(p-=S),K=N(vt),H(K)||K>0||K>_?(G=_,K=_):(G=K,k=-K),J=N(gt),H(J)||J<0||J<w?z=w:(z=J,k=-K),W=(V=Lt(n,e,i,o,Dt,o-2*Dt,Ft)).left,X=V.width,Z=V.top,Q=V.height,tt=Ft?-1:1,nt=X/(rt=z-G),Wt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,it=(et=$[y])[2],ot=_t[y-1],ut=W+tt*(et[1]+k)*nt,at=et[0]*nt,ft=ot===Y,ct=(u(ot)||B)&&y===f||ft,st=wt&&ct?wt:1===y||ct?it>=0?m:h:it>=0?M:d,Ft?Jt(t,Z,ut-at,Q,at,st):Jt(t,ut,Z,at,Q,st),Ft?(1!==y&&(y!==f?wr(t,it>0,C,n,ut,Z+Q,ut,n,ut-at,Z+Q,ut-at):wr(t,!0,C,n,yt=W-(p+k)*nt,Z+Q,yt)),y!==f&&wr(t,it>0,C,Z,ut-at,n+i,ut-at,Z,ut,n+i,ut)):(1!==y&&(y!==f?wr(t,it>0,C,ut,e,ut,Z+Q,ut+at,e,ut+at,Z+Q):wr(t,!0,C,mt=W+(p+k)*nt,e,mt,Z+Q)),y!==f&&wr(t,it>0,C,ut+at,Z,ut+at,e+o,ut,Z,ut,e+o)),Mt=dt[y-1],dt.length>0&&!u(Mt)&&""!==Mt&&Hr(t,n,e,i,o,{labelText:Mt,vertical:Ft,isInRightOrTopOfBox:it>0,fontSize:Ht,startBox:ut,endBox:at,boxColor:st}),wr(t,Ft,T,n,W-k*nt,n+i,W-k*nt,W+k*nt,e,W+k*nt,e+o),t.restore()}}function $r(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,p,b,F,w,$,k,P,C,A,T,O,j,E,R,I,B,L,G=r.points,z=r.pointIndex,K=r.colorRange,J=r.target,V=r.target2,W=r.highlightPosition,U=r.label,q=r.vertical,Y=13*a.zoomFactor,X=r.targetColor,Z=r.target2Color,Q=r.labelColor,tt=r.barSize;if(!u(G)&&(u(tt)||!(H(tt)||tt<=0))&&(tt>1&&(tt=1),!((s=G.length)<=0||(f=parseInt(z,10),H(f)||f<=0||f>s)))){for(K=u(K)?[]:K,c=parseInt(U,10),c=H(c)?0:c,y=1,m=0,M=[],h=0,d=G.length;h<d;h++)l=G[h],M[y]=[],v=M[y],l<0||H(l)||u(l)?(v[0]=1===y?0:m,v[1]=0):(m+=l,v[0]=1===y?0:m-l,v[1]=l),y++;b=5,p=u(tt)?b:q?i*(1-tt)/2:o*(1-tt)/2,F=Lt(n,e,i,o,p,o-2*b,q,b),w=F.left,$=F.width,k=F.top,P=F.height,C=q?-1:1,A=$/m,Wt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,O=(T=M[f])[1],j=w+C*T[0]*A,E=T[1]*A,R=f===W?x:0===K.length||typeof K[f-1]!==D?S:K[f-1],q?Jt(t,k,j-E,P,E,R):Jt(t,j,k,E,P,R),1===c?I=(T[0]+O)/m*1e3:2===c&&(I=O/m*1e3),B=g(I)/10+"%",1!==c&&2!==c||""===B||Hr(t,n,e,i,o,{labelText:B,vertical:q,isInRightOrTopOfBox:(T[0]+T[1])*A<$/2,fontSize:Y,startBox:j,endBox:E,boxColor:R,fillStyle:Q}),L=[u(X)?"#8CBF64":X,u(Z)?"#EE5D5D":Z],[J,V].forEach((function(r,u){var a=rt(r),s=_(w+C*$*a);wr(t,q,L[u],n,s,n+i,s,s,e,s,e+o)})),t.restore()}function rt(t){var r=N(t);return r=(r=(r=H(r)?0:r)<0?0:r)>1?1:r}}function kr(t,r){switch(r){case 2:var n;return t%4==0&&t%100!=0||t%400==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function Sr(t,r,n){var e,i,o,u,a,f;return t<0&&(t=0),t>1&&(t=1),e=s(r),i=s(n),o=e.a*(1-t)+i.a*t,u=e.r*(1-t)+i.r*t+"",a=e.g*(1-t)+i.g*t+"",f=e.b*(1-t)+i.b*t+"","rgba("+parseInt(u,10)+","+parseInt(a,10)+","+parseInt(f,10)+","+N(o/255+"")+")"}function xr(t,r,n){return t===r&&t===n?1:t<=r?0:t>=n?1:(t-r)/(n-r)}function Pr(t,r,n,e,i,o){var u=(o+i)/2;return i<=e&&e<=u?Sr(xr(e,i,u),t,r):Sr(xr(e,u,o),r,n)}function Cr(t){var r=$,n=-$;return t.forEach((function(t){t!==c&&t!==y&&(r>t&&(r=t),n<t&&(n=t))})),{min:r,max:n}}function Ar(t,r,n,e,i,o,u){var a,s,f;e?t.forEach((function(t,i){0!==t&&t!==c&&t!==y&&(r[n+i]=e[i]||r[n+i])})):(a=Cr(t),s=a.min,f=a.max,t.forEach((function(t,e){0!==t&&t!==c&&t!==y&&(r[n+e]=Pr(i,o,u,t,s,f))})))}function Tr(t,r,n,e,i,o){var u,a,s,f,c=r.year,y=r.month,m=r.values,M=r.emptyColor||"lightgray",h=r.startColor,d=r.middleColor,l=r.endColor,v="white",g=6,p=7,b=2,F=(i-(g+1)*b)/g,_=(o-(p+1)*b)/p,w=[],D=new Date(c,y-1,1).getDay();for(u=0;u<g*p;u++)u<D?w[u]=v:u<D+kr(c,y)?w[u]=M:w[u]=v;for(Ar(m,w,D,r.colors,h,d,l),t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),a=0,s=0;s<g;s++)for(f=0;f<p;f++)t.fillStyle=w[a],a++,t.fillRect(n+s*F+(s+1)*b,e+f*_+(f+1)*b,F,_);t.restore()}function Or(t){var r,n=t.getFullYear(),e=t.getMonth(),i=t.getDate();for(r=1;r<e+1;r++)i+=kr(n,r);return i}function jr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P=r.year,C=r.values,A=r.emptyColor||"lightgray",T=r.startColor,O=r.middleColor,j=r.endColor,E="white",R=7,I=parseInt(366/R+"",10)+2,B=[],L=new Date(P,0,1).getDay(),G=Or(new Date(P,11,31));for(a=0;a<I*R;a++)B[a]=a<L?E:a<L+G?A:E;for(Ar(C,B,L,r.colors,T,O,j),t.save(),t.rect(n,e,i,o),t.clip(),c=n+(f=15*(s=u.zoomFactor)),y=e,m=i-f,M=o,t.save(),t.translate(n+f/2,y+M),t.rotate(-Math.PI/2),t.font=13*s+W,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(P+"",M/2,0),t.restore(),d=(m-(I+1)*(h=2))/I,l=(M-(R+1)*h)/R,v=0,F=[],p=0;p<I;p++)for(g=0;g<R;g++)b={x:c+p*d+(p+1)*h,y:y+g*l+(g+1)*h,w:d,h:l},F[v]=b,t.fillStyle=B[v],v++,t.fillRect(b.x,b.y,b.w,b.h);for(_=[],w={},D=0;D<12;D++)w[D]=Or(new Date(P,D,1))-1+L;for(H=w[11]+kr(P,12)-1,v=0,p=0;p<I;p++)for(g=0;g<R;g++)L<=v&&v<L+G&&(k=w[$=(N=new Date(P,0,v-L+1)).getMonth()],b=F[v],k<=v&&v<7+k&&_.push({x1:b.x,y1:b.y-h/2,x2:b.x,y2:b.y+b.h+h/2}),v!==k&&0!==N.getDay()||_.push({x1:b.x-h/2,y1:b.y,x2:b.x+b.w+h/2+(v===k?h:0),y2:b.y}),H-7<v&&v<=H&&_.push({x1:b.x+b.w,y1:b.y-h/2,x2:b.x+b.w,y2:b.y+b.h+h/2}),v!==H&&6!==N.getDay()||_.push({x1:b.x-h/2-(v===H?h:0),y1:b.y+b.h,x2:b.x+b.w+h/2,y2:b.y+b.h})),v++;for(t.strokeStyle="black",t.lineWidth=2,S=0;S<_.length;S++)x=_[S],t.beginPath(),t.moveTo(x.x1,x.y1),t.lineTo(x.x2,x.y2),t.stroke();t.restore()}function Er(t){var r,n,e=zt(t.minAngle-90),i=zt(t.maxAngle-90),o=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=I,f=(i-e)/(u-o),c=[];return a.length>0&&a.forEach((function(t){r=t.start,n=t.end,c.push({start:f*(r-o)+e,end:f*(n-o)+e,color:t.color})})),c.unshift({start:e,end:i,color:s}),{paintRanges:c,fillColor:s,targetValueRadian:f*(t.targetValueOption.value-o)+e,currentValueRadian:f*(t.currentValueOption.value-o)+e,minValueRadian:e,maxValueRadian:i}}function Rr(t,r,n,e,i,o,u){var a,s,f,c,M,h,d,g=o.zoomFactor,p=t.currentValueOption.normalFontHeight*g,b=t.minValueOption.normalFontHeight*g,_=t.maxValueOption.normalFontHeight*g,w=t.minAngle,D=t.maxAngle,H=t.currentValueOption.normalFontWidth*g,N=F(w)>90||F(D)>90,$=F(w)>120||F(D)>120,k=yt*l(e,i);return u?(a=m(e/2*ct),s=m(i*ct),c=l(a,f=N?s/2:s),h=(i-(N?2*c:c))/2,d=.03*c,M={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio,currentValuePoint:y,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:b<h,enoughShowMaxLabel:_<h,moreThanSemiCircle:N},N?$?2*p/3<h-d-v(_,b)&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+c+d+p/2+v(_,b)},M.enoughShowCurrentLabel=!0):2*p/3<i/2-d&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+2*d+p},M.enoughShowCurrentLabel=!0):p<h-d&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+p},M.enoughShowCurrentLabel=!0)):(a=m(e/2*ft),s=m(i*ft),c=l(a,f=N?s/2:s),M={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio}),M}function Ir(t,r,n,e){return{x:t+d(n)*e,y:r+h(n)*e}}function Br(t,r){return F(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:G}:r.x>t.x?{x:r.x+et,y:r.y,textAlign:B}:r.x<t.x?{x:r.x-et,y:r.y,textAlign:L}:{x:r.x,y:r.y,textAlign:B}}function Lr(t,r,n,e,i,o,a){var s,f,c,y,l,g,p,b,_,w,D,H,N,$,k,S,x,P,C,O,j,R,I,z,K,J,W,U,q,Y,tt,et,it,ot,at,st=a.zoomFactor,ft=!!u(r.showLabel)||r.showLabel,ct=Rr(r,n,e,i,o,a,ft);if(!(ct.outerRadius<=0))return s={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=ct.innerRadius,c=ct.outerRadius,y=ct.currentValuePoint,l=ct.moreThanSemiCircle,g={x:ct.x,y:ct.y},b=(p=Er(r)).paintRanges,_=p.fillColor,t.save(),b.forEach((function(r){t.beginPath(),t.strokeStyle=A,t.moveTo(g.x,g.y),t.fillStyle=r.color||_,t.arc(g.x,g.y,c,r.start,r.end,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=A,t.strokeStyle=A,t.moveTo(g.x,g.y),t.arc(g.x,g.y,f,r.start-mt,r.end+mt,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(g.x,g.y),t.fillStyle=T,t.arc(g.x,g.y,c*X,0,2*M,!1),t.fill(),w=Ir(g.x,g.y,p.targetValueRadian,f),D=Ir(g.x,g.y,p.targetValueRadian,c*Q),xt(t,w.x,w.y,D.x,D.y,rt,nt,E),H=Ir(g.x,g.y,p.currentValueRadian,c*Q),kt(t,g.x,g.y,H.x,H.y,T,Z*c),ft&&(t.save(),t.beginPath(),t.textAlign=V,t.fillStyle=E,N=r.minValueOption.normalFontHeight*st,$=r.maxValueOption.normalFontHeight*st,k=r.minValueOption.normalFontWidth*st,S=r.maxValueOption.normalFontWidth*st,x=p.minValueRadian,P=p.maxValueRadian,C=r.currentValueOption.normalFontHeight*st,O=r.currentValueOption.normalFontWidth*st,j=void 0,R=void 0,I=void 0,ct.enoughShowCurrentLabel&&(Ct(t,y.x,y.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,G),s.showCurrentLabel=!0,j={x:y.x-O/2,y:y.y-C,width:O,height:C}),ct.enoughShowMinLabel&&F(d(x)*c)+k<i/2-ut&&(z=Ir(g.x,g.y,p.minValueRadian,c),Ut(R={x:(K=Br(g,z)).x-k,y:K.y,width:k,height:N},j)||(Ct(t,K.x,K.y+m(N),r.minValueOption.label,r.minValueOption.fontAfterZoom,L),s.showMinLabel=!0)),ct.enoughShowMaxLabel&&F(d(P)*c)+S<i/2-ut&&(J=Ir(g.x,g.y,p.maxValueRadian,c),Ut(I={x:(W=Br(g,J)).x,y:W.y,width:S,height:$},j)||(Ct(t,W.x,W.y+m($),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,B),s.showMaxLabel=!0)),ct.enoughShowTargetLabel&&(U=r.targetValueOption.normalFontWidth*st,q=r.targetValueOption.normalFontHeight*st,Y=r.targetValueOption.label,tt=c+3*q/2,D=Ir(g.x,g.y,p.targetValueRadian,tt),et=Br(g,D),it=p.targetValueRadian,ot=l?(o-2*tt)/2+tt:o-(o-c)/2,F(d(it)*tt)+U<i/2-ut&&F(h(it)*tt)+q/2+ut/2<ot&&(at=v(N,$)/2,Ct(t,et.x,et.y-(it>M?at:-at),Y,r.targetValueOption.fontAfterZoom,et.textAlign),s.showTargetLabel=!0)),t.restore()),t.restore(),s}function Gr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,M=t.currentValueOption.normalFontHeight*u,h=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,l=t.targetValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,p=.05*e,b=m(i*at),F=m(e*st),_={x:r+e*(1-st)/2,y:n+i*(at+(1-at)/2),graphWidth:F,graphHeight:b,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&(s<(i-b)/2&&h<(e-F)/2-p&&(_.minValuePoint={x:_.x-h,y:_.y+s/3},_.enoughShowMinLabel=!0),f<(i-b)/2&&d<(e-F)/2-p&&(_.maxValuePoint={x:_.x-d,y:_.y-b+f/3},_.enoughShowMaxLabel=!0),(c<(i-b)/2||c/2<b)&&l<(e-F)/2-p-v(h,d)&&(_.targetValuePoint={x:_.x-l-v(h,d),y:y},_.enoughShowTargetLabel=!0),(M<(i-b)/2||M/2<b)&&g<(e-F)/2-p&&(_.currentValuePoint={x:_.x+F+p,y:y},_.enoughShowCurrentLabel=!0)),_}function zr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphHeight/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.y-s*(n-i),height:s*(e-n),color:t.color})})),f.unshift({start:r.y,height:r.graphHeight,color:a}),{paintRanges:f,fillColor:a,targetValueY:r.y-s*(t.targetValueOption.value-i),currentValueY:r.y-s*(t.currentValueOption.value-i)}}function Kr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p=u.zoomFactor,b=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Gr(r,n,e,i,o,u),N=H.graphWidth,$=H.graphHeight;if(!(N<=0||$<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},h=(M=zr(r,H)).paintRanges,d=w.normalFontHeight*p,l=D.normalFontHeight*p,v=M.targetValueY,g=M.currentValueY,t.save(),h.forEach((function(r){Jt(t,m.x,r.start,N,-r.height,r.color)})),xt(t,m.x-(Q-1)*N,v,m.x+N,v,rt,nt,E),kt(t,m.x,g,m.x+N*Q,g,T,tt*$),b&&(t.save(),t.beginPath(),H.enoughShowMinLabel&&(Ct(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Ct(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-e+l/2>o||v-e-ot<0)&&(Ct(t,f.x,M.targetValueY+D.normalFontHeight*p/3,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-e+d/2>o||g-e-ot<0)&&(Ct(t,s.x,M.currentValueY+w.normalFontHeight*p/3,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Jr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,M=t.currentValueOption.normalFontHeight*u,h=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,p=t.targetValueOption.normalFontWidth*u,b=.1*l(e,i),F=m(i*st),_=m(e*at),w={x:r+e*(1-at)/2,y:n+i*(1-st)/2,graphWidth:_,graphHeight:F,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&((g<3*(e-_)/4||g<_)&&M<(i-F)/2-ut&&(w.currentValuePoint={x:y,y:w.y-M/2},w.enoughShowCurrentLabel=!0),(p<3*(e-_)/4||p<_)&&c<(i-F)/2-v(s,f)&&(w.targetValuePoint={x:y,y:w.y+F+v(s,f)+c/4*3},w.enoughShowTargetLabel=!0),h<3*(e-_)/4&&s<(i-F)/2-b&&(w.minValuePoint={x:w.x-h/2,y:w.y+F+s},w.enoughShowMinLabel=!0),d<3*(e-_)/4&&f<(i-F)/2-b&&(w.maxValuePoint={x:w.x+_-d/2,y:w.y+F+f},w.enoughShowMaxLabel=!0)),w}function Vr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphWidth/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.x+s*(n-i),width:s*(e-n),color:t.color||a})})),f.unshift({start:r.x,width:r.graphWidth,color:a}),{paintRanges:f,fillColor:a,targetValueX:r.x+s*(t.targetValueOption.value-i),currentValueX:r.x+s*(t.currentValueOption.value-i)}}function Wr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p=u.zoomFactor,b=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Jr(r,n,e,i,o,u),N=H.graphWidth,$=H.graphHeight;if(!(N<=0||$<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},h=(M=Vr(r,H)).paintRanges,d=w.normalFontWidth*p,l=D.normalFontWidth*p,v=M.targetValueX,g=M.currentValueX,t.save(),h.forEach((function(r){Jt(t,r.start,m.y,r.width,$,r.color)})),xt(t,v,m.y,v,m.y+$*Q,rt,nt,E),St(t,g,m.y+$-1,g,m.y-$*(Q-1)-1,T,N*tt),b&&(t.save(),H.enoughShowMinLabel&&(Ct(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Ct(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-n+l/2+it>i||v-n-l/2-it<0)&&(Ct(t,v-D.normalFontWidth*p/2,f.y,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-n+d/2+it>i||g-n-d/2-it<0)&&(Ct(t,g-w.normalFontWidth*p/2,s.y,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Ur(t,r,n,e,i,o,u){t.save(),t.rect(n,e,i,o),t.clip(),0===r.gaugeType?Lr(t,r,n,e,i,o,u):1===r.gaugeType?Kr(t,r,n,e,i,o,u):2===r.gaugeType&&Wr(t,r,n,e,i,o,u),t.restore()}function qr(t,r,n,e,i,o,u,a){var s,f,c,y,m,M,h=[],d=t.length,l=0,v=u.fontPixelSize;if(o&&(l=v+3),0===d)return h;for(s=e/d,f=t[0].value,c=1;c<d;c++)f=Math.max(f,t[c].value);for(y=0;y<d;y++)m=n+i-l,(M=t[y].value/f*(i-l))<0&&(M=0),h.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-M,width:s*a,textWidth:s,height:M,axis:t[y].axis});return h}function Yr(t,r,n,e){t.save(),t.fillStyle=n;for(var i=0;i<r.length;i++)t.fillRect(r[i].x,r[i].y,r[i].width,r[i].height);t.restore()}function Xr(t,r,n,e){var i,o,u,a,s;for(t.save(),i=n.fontPixelSize,o=rn(n),t.textAlign="center",t.fillStyle=e,u=0;u<r.length;u++)a=void 0,s=void 0,a=r[u].x+r[u].width/2,s=r[u].y+r[u].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(r[u].textX,r[u].y+r[u].height+1,r[u].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(r[u].axis,a,s),t.restore();t.restore()}function Zr(t,r,n,e){var i,o,u,a,s,f;if("none"!==e){for(t.save(),t.lineWidth=1,t.strokeStyle=e,t.beginPath(),i=0;i<r.length;i++)u=(o=r[i]).x,a=o.y,s=o.width,0!==(f=o.height)&&0!==s&&(kt(t,u,a,u+s,a),kt(t,u,a+f,u+s,a+f),r[i-1]&&r[i-1].height>=f&&1===n||kt(t,u,a,u,a+f),r[i+1]&&r[i+1].height>f&&1===n||kt(t,u+s,a,u+s,a+f));t.stroke(),t.closePath(),t.restore()}}function Qr(t,r,n,e,i){var o,u,a,s,f,c=!1;for(t.save(),t.font=i,u=(n-6)/(o=r.length),a=0,s=r;a<s.length;a++)if(f=s[a],t.measureText(f.axis).width>u){c=!0;break}return t.restore(),c}function tn(t,r,n,e,i,o,a){var s,f,c,y=r.barColor,m=r.values,M=r.paintLabel,h=r.barWidth,d=r.labelFontStyle,l=r.afterZoomFontStyle,v=r.edgeColor,g=r.labelColor;u(d)||(o<3*(s=l.fontPixelSize)||Qr(t,m,i,o,rn(l)))&&(M=!1),M&&u(d)&&(f=Math.floor(o/3>=12?12:Math.floor(o/3)),l.fontPixelSize=f,l.fontSize=f+"px",Qr(t,m,i,o,rn(l))&&(M=!1)),Yr(t,c=qr(m,n+3,e+3,i-6,o-6,M,l,h),y,v),Zr(t,c,h,v),M&&Xr(t,c,l,g)}function rn(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function nn(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d;t.save(),t.rect(n,e,i,o),t.clip(),a=r.clipX,s=r.clipY,f=r.clipWidth,c=r.clipHeight,y=r.paintX,m=r.paintY,M=r.paintWidth,h=r.paintHeight,d=r.img,f>0&&c>0&&M>0&&h>0&&t.drawImage(d,a,s,f,c,y,m,M,h),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=r.SparklineRender=r.Uzt=r.Hzt=r.zzt=r.oCt=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/colorhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=e.lt.ht,a=i.ft.YGt,s=i.ft._,f=o.Uf.hD,r.oCt={},c=null,y=void 0,m=Math.floor,M=Math.PI,h=Math.sin,d=Math.cos,l=Math.min,v=Math.max,g=Math.round,p=Math.pow,b=Math.sqrt,F=Math.abs,_=Math.ceil,w="undefined",D="string",H=isNaN,N=parseFloat,$=Number.MAX_VALUE,k=new Date(""),S="#969696",x="#CB0000",P="#646464",C="#DCDCDC",A="white",T="black",O="blue",j="green",E="grey",R="red",I="lightgrey",B="left",L="right",G="center",z="top",K="bottom",J="middle",V="start",W="px Arial",U="-",q="+",Y="=",X=.05,Z=.03,Q=1.06,tt=.02,rt=4,nt=5,et=5,it=3,ot=10,ut=8,at=.8,st=.25,ft=.9,ct=.7,yt=.1,mt=1/45*M,Mt=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),ht=function(){function t(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}return t}(),dt=function(t){function r(r){var n=t.call(this,Ht(r.x,r.y))||this;return n.value=r.value,n}return wt(r,t),r}(Mt),lt="7ns",vt="5ns",gt="tukey",pt="bowley",bt="sigma3",r.zzt=Lr,r.Hzt=Kr,r.Uzt=Wr,Ft=function(){function t(t,r,n,e){this.X=t,this.Y=r,this.Width=n,this.Height=e,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}return t}(),_t=function(){function t(){this.Bzt=2,this.Lzt=k,this.Fzt=k,this.Pzt=$,this.Gzt=-$}return t.prototype.paint=function(t,r,n,e,i,o){var u,a,s,f=this;f.options=r,f.setting=r.settings,u=r.values,a=r.dateValues,s=r.zoomFactor,t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&f.c6(t,n,e,i,o,u,a,s),f.Vzt(t,n,e,i,o,u,a,s),f.Yzt(t,n,e,i,o,u,a,s),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,n){var e,i,u,a,s,m,M,h,d,v=this.Kzt;if(v)return v;if(v=this.Kzt=[],e=t.length,this.options.displayDateAxis){for(a=n.length,m=[],(s=l(e,a))>0&&(m=n.slice(0,s)),m.sort((function(t,n){return t===n?0:(t===r.oCt&&(t=0),n===r.oCt&&(n=0),t-n)})),M=m.length,h=void 0,d=void 0,i=0;i<M;i++)if(typeof(h=m[i])!==w&&h!==c){for(d=f(n,h);o.Uf.OS(v,d);)d=f(n,h,d+1);isNaN(h)||(u=t[d])!==y&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(d)}}else for(i=0;i<e;i++)typeof(u=t[i])!==w&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(i);return v},t.prototype.Sl=function(t,n){var e=n[t];return typeof e===w||e===c?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===r.oCt&&(e=0),e},t.prototype.c6=function(t,r,n,e,i,o,u,a){var s,f,y,m,M,h,d,l,v,g,p,b,F,_,D,H=this,N=H.Qzt(o,u),$=N.length-1;for($<0&&($=0),m=H.setting.options,M=H.linePos=[],p=m.displayEmptyCellsAs,s=0;s<$;s++)if(typeof(h=H.Sl(N[s],o))!==w&&h!==c){if(l=s+1,typeof(d=H.Sl(N[l],o))===w||d===c)if(1===p)d=0;else if(2===p)for(l=s+2;l<=$;l++)if(typeof(b=o[N[l]])!==w&&b!==c){d=b;break}typeof d!==w&&d!==c?(v=H.Jzt(N[s],{Width:e,Height:i},o,u,a),g=H.Jzt(N[l],{Width:e,Height:i},o,u,a),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:g.X+F,Y:g.Y+F},M[s]={P1:f,P2:y}):s++}if((_=M.length)>0)for(t.strokeStyle=H.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=H.Wzt(a),s=0;s<_;s++)(D=M[s])&&(t.beginPath(),f=D.P1,y=D.P2,t.moveTo(r+f.X,n+f.Y),t.lineTo(r+y.X,n+y.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,n){var e,i,o,u=this,a=u.options,s=u.setting.options,m=c,M=u.Sl(t,r),h=u.Qzt(r,n),d=h.length,l=a.getColor.bind(u);return typeof M!==w&&M!==c&&(u.Pzt!==$&&u.Gzt!==-$||u.qzt(r),M===u.Pzt&&s.showLow&&(m=l(s.lowMarkerColor)),M!==u.Gzt||!s.showHigh||typeof m!==w&&m!==c||(m=l(s.highMarkerColor)),typeof m!==w&&m!==c||(a.displayDateAxis?0===(e=f(h,t))&&s.showFirst&&(m=l(s.firstMarkerColor)):0===t&&s.showFirst&&(m=l(s.firstMarkerColor))),typeof m!==w&&m!==c||(a.displayDateAxis?(i=f(h,t))===d-1&&s.showLast&&(m=l(s.lastMarkerColor)):t===d-1&&s.showLast&&(m=l(s.lastMarkerColor))),M<0&&s.showNegative&&(typeof m===w||m===c)&&(m=l(s.negativeColor)),typeof m!==w&&m!==c||(0===(o=a.sparklineType)?s.showMarkers&&(m=l(s.markersColor)):(1===o||2===o)&&(m=l(s.seriesColor)))),m===y||m===c?"Transparent":m},t.prototype.Vzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,h,d,l,v,g,p,b=this,F={Width:e,Height:i},_=b.Qzt(o,u),w=_.length,D=b.options.sparklineType;for(p=0;p<w;p++)s=_[p],f=b.Xzt(s,o,u),c=b.Jzt(s,F,o,u,a),t.fillStyle!==f&&(t.fillStyle=f),0===D?(t.save(),y=r+c.X+c.Width/2,h=n+c.Y+c.Height/2,t.translate(y,h),t.rotate(45*M/180),t.fillRect(0-c.Width/2,0-c.Height/2,c.Width,c.Height),t.restore()):(d=r+c.X+c.Width/4,d=m(d),l=n+c.Y,v=c.Width/2,g=c.Height,t.fillRect(d,l,v,g))},t.prototype.Yzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,M,h,d,l=this,v=l.setting&&l.setting.options;v&&v.displayXAxis&&l.$zt(o,u)&&(s={Width:e,Height:i},f=l.Zzt(a),c=s.Width-l.Zzt(a),M=y=m(l.tVt(s,o,a))+.5,h=l.options.getColor(v.axisColor),(d=a)<1&&(d=1),t.strokeStyle!==h&&(t.strokeStyle=h),t.lineWidth!==d&&(t.lineWidth=d),t.beginPath(),t.moveTo(r+f,n+y),t.lineTo(r+c,n+M),t.stroke())},t.prototype.nVt=function(t){var r,n=this.eVt(t);return n===-$||(r=this.iVt(t))===$||(n===r||n*r<=0)},t.prototype.$zt=function(t,r){var n,e,i,o,u,a=this.nVt(t);if(2!==this.options.sparklineType)return a;if(e=(n=this.Qzt(t,r)).length,!a&&e>0)for(u=0;u<e;u++)if(typeof(o=t[i=n[u]])!==w&&o!==c)return!0;return a},t.prototype.rVt=function(t,r){var n=this.Lzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var n=this.Fzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){var n,e,i,o,u=this,a=new Date(0,0,0),s=$,f=u.Qzt(t,r),y=f.length;for(o=0;o<y;o++)e=r[n=f[o]],isNaN(e)||(i=u.Sl(n,t))!==c&&typeof i===w||isNaN(i)||typeof e!==w&&e!==c&&(e>a&&(a=e),e<s&&(s=e));u.Fzt=a,u.Lzt=s},t.prototype.uVt=function(t,r,n,e){var i,o,u,a,s,f,c,y,m=this,M=m.rVt(r,n),h=m.aVt(r,n),d=[],l=m.Qzt(r,n),v=l.length;for(i=0;i<v;i++)(o=n[u=l[i]])&&!isNaN(o)&&d.push(o);if(d.sort((function(t,r){return t-r})),(a=d.length)>1&&M!==h){for(s=$,f=0,c=void 0,i=1;i<a;i++)(o=(c=d[i])-d[i-1])<s&&o>0&&(s=o),f+=o;return(y=(t.Width-m.Zzt(e)-m.Zzt(e))*s/f/2)<2&&(y=2),y}return(t.Width-m.Zzt(e)-m.Zzt(e))/2},t.prototype.sVt=function(t,r,n,e){var i,o=this;return o.options.displayDateAxis?o.uVt(t,r,n,e):(i=o.Qzt(r,n).length,(t.Width-o.Zzt(e)-o.Zzt(e))/i)},t.prototype.cVt=function(t,r,n,e,i){var o,u,a,s,c,y,M,h,d=this,l=d.Zzt(i);return d.options.displayDateAxis?(o=d.sVt(t,n,e,i),(u=d.aVt(n,e))===(a=d.rVt(n,e))?l+o/2:(s=e[r])?(c=t.Width-l-d.Zzt(i),c-=o,y=u.valueOf()-a.valueOf(),l+m((s.valueOf()-a.valueOf())/y*c)):0):(o=d.sVt(t,n,e,i),M=f(d.Qzt(n,e),r),m(h=l+o*M))},t.prototype.fVt=function(t,r){var n,e=this,i=t.Width-e.Zzt(r)-e.Zzt(r);return i=v(i,0),n=t.Height-e.Zzt(r)-e.Zzt(r),{Width:i,Height:n=v(n,0)}},t.prototype.qzt=function(t){var r,n,e=this,i=t.length;for(n=0;n<i;n++)typeof(r=t[n])!==w&&r!==c&&("number"!=typeof r&&(r=0),r<e.Pzt&&(e.Pzt=r),r>e.Gzt&&(e.Gzt=r))},t.prototype.eVt=function(t){var r,n,e=this;return e.Gzt!==-$&&e.Gzt||e.qzt(t),0===(n=(r=e.setting.options).maxAxisType)?e.Gzt:1===n?r.groupMaxValue:2===n?r.manualMax:e.Gzt},t.prototype.iVt=function(t){var r,n,e=this;return e.Pzt!==$&&e.Pzt||e.qzt(t),0===(n=(r=e.setting.options).minAxisType)?e.Pzt:1===n?r.groupMinValue:2===n?r.manualMin:void 0},t.prototype.lVt=function(t,r,n,e){var i=this.fVt(t,e),o=this.eVt(n),u=this.iVt(n),a=o-u,s,f;if(o===u){if(0===o)return 0;a=F(o)}return(s=n[r])||(s=0),s*(f=i.Height/a)},t.prototype.hVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;if(0===s)return a.lVt(t,r,n,e);if(1===s){if(i=n[r],1===a.setting.options.displayEmptyCellsAs&&(typeof i===w||i===c))return 0;if((o=a.lVt(t,r,n,e))>-a.Bzt&&o<a.Bzt){if(i>0)return o+a.Bzt;if(i<0)return o-a.Bzt}return o}return 2===s?typeof(i=n[r])===w||i===c||0===i||isNaN(i)?0:(u=a.fVt(t,e),i>=0?u.Height/2:-u.Height/2):void 0},t.prototype.dVt=function(t,r,n){var e,i,o=this,u=o.fVt(t,n),a=o.eVt(r),s=o.iVt(r);if(a===-$||s===$)return t.Height/2;if(e=a-s,a===s){if(0===a)return t.Height/2;e=a,a<0&&(a=0)}return i=u.Height/e,o.Zzt(n)+a*i},t.prototype.tVt=function(t,r,n){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,n)},t.prototype.vVt=function(t,r,n,e){var i,o,u,a=this,s=a.fVt(t,e),f=a.eVt(n),y=a.iVt(n),m=f-y;if(f===y){if(0===f)return 0;m=f}return i=s.Height/m,typeof(o=a.Sl(r,n))!==w&&o!==c||(o=0),f!==y&&f*y>0?(u=0,u=o>=0?(o-y)*i:(o-f)*i):o*i},t.prototype.mVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;return 0===s?a.vVt(t,r,n,e):1===s?(i=a.vVt(t,r,n,e))>-(o=a.Bzt)&&i<o&&(typeof(u=a.Sl(r,n))!==w&&u!==c||(u=0),0!==u)?u>0?i+o:i-o:i:2===s?a.hVt(t,r,n,e):void 0},t.prototype.gVt=function(t,r,n,e,i){var o,u,a,s,f,c,y,M,h,d=this,l=d.sVt(r,n,e,i),g=d.cVt(r,t,n,e,i);return l<0&&(l=0),(l=m(l))%2==1&&(l+=1),o=d.hVt(r,t,n,i),u=d.tVt(r,n,i),a=d.eVt(n),s=d.iVt(n),f=0,a<0&&s<0?f=v(d.Zzt(i),u):(f=u,o>=0&&(f=u-o)),c=d.mVt(r,t,n,i),y=new Ft(g,f,l,F(c)),0!==o&&(M=d.Zzt(i),y.Y<M&&y.Bottom<M+1?y.Height=m(y.Height+1):(h=r.Height-d.Zzt(i),y.Bottom>h&&y.Y>h-1&&(y.Y=h-c,y.Height=c))),y},t.prototype.Wzt=function(t){var r=this.setting.options.lineWeight*t;return r<1&&(r=1),r},t.prototype.Jzt=function(t,r,n,e,i){var o,u,a,s,f,y=this,m=y.Wzt(i);return++m<2&&(m=2),o=y.gVt(t,r,n,e,i),0===y.options.sparklineType&&(o.X=o.X+(o.Width-m)/2,typeof(u=y.Sl(t,n))!==w&&u!==c?(u>=0?o.Y-=m/2:o.Y=o.Bottom-m/2,o.Width=m,o.Height=m):(o.Width=0,o.Height=0)),y.setting.options.rightToLeft&&(a=o.X,f=(s=r.Width-a)-o.Width,o=new Ft(f,o.Y,o.Width,o.Height)),o},t}(),r.SparklineRender=_t,r.SparklineExRenders={PIESPARKLINE:qt,AREASPARKLINE:Qt,SCATTERSPARKLINE:rr,BULLETSPARKLINE:ur,SPREADSPARKLINE:ar,STACKEDSPARKLINE:yr,HBARSPARKLINE:vr,VBARSPARKLINE:gr,VARISPARKLINE:pr,LOLLIPOPVARISPARKLINE:br,BOXPLOTSPARKLINE:Fr,CASCADESPARKLINE:Nr,PARETOSPARKLINE:$r,MONTHSPARKLINE:Tr,YEARSPARKLINE:jr,GAUGEKPISPARKLINE:Ur,HISTOGRAMSPARKLINE:tn,IMAGESPARKLINE:nn}},canvas:function(t){t.exports=canvas}},e={};function i(t){var r,o=e[t];return void 0!==o?o.exports:(r=e[t]={exports:{}},n[t].call(r.exports,r,r.exports,i),r.exports)}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t={},function(){var r,n,e,o,u,a=t;Object.defineProperty(a,"__esModule",{value:!0}),a.Slicers=a.Sparklines=a.Formatter=a.Commands=a.Common=void 0,r=i("./src/common/common.entry.ts"),a.Common=r,n=i("./src/plugins/commands/commands.entry.ts"),a.Commands=n,e=i("./src/plugins/formatter/formatter.entry.ts"),a.Formatter=e,o=i("./src/plugins/sparkline/sparkline.entry.ts"),a.Sparklines=o,u=i("./src/plugins/slicer/slicer.entry.ts"),a.Slicers=u}(),(r=void 0===r?{}:r).Spread=t}(),t.exports=r.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,r,n)=>{t.exports=n("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={};function e(t){var i,o=n[t];return void 0!==o?o.exports:(i=n[t]={exports:{}},r[t](i,i.exports,e),i.exports)}t=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),(GC=void 0===GC?{}:GC).Spread=t})(),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd?define("@grapecity-software/spread-common",[],(function(){return t})):"object"==typeof exports&&(exports.Spread=t.Spread)}(GC||{});