@grapecity-software/spread-common 18.0.7 → 18.1.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.0.7
3
+ * SpreadJS Library 18.1.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 S(t,r,e){var t=N(t),r=r.indexOf(t);return r=-1===r?e.indexOf(t):r}function $(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.predefinedFormats={},this.TimelineDateOrder=[M.quarterOrMonth,M.date,M.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]}}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,$)}},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,$)}},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)),S(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)),S(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,S,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 $(){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(),S=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&&$()?i.monthGenitiveNames:i.monthNames)[x(t,1)];break;case"MMM":s+=(i.abbreviatedMonthGenitiveNames&&$()?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=S/60)<=0?"+":"-")+O(T(f));break;case"zz":s+=((f=S/60)<=0?"+":"-")+A(O(T(f)),2);break;case"zzz":s+=((f=S/60)<=0?"+":"-")+A(O(T(f)),2)+":"+A(T(S%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))!==S;)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,S=null,$=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 S},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))===S)return S;for(a=r.QMt,v=y=c=f=s=u=S,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=$(_,10))<1||31<c)return S;break;case"MMMM":if((f=e.tGt(_))<0||11<f)return S;break;case"MMM":if((f=e.iGt(_))<0||11<f)return S;break;case"M":case"MM":case"%M":if((f=$(_,10)-1)<0||11<f)return S;break;case"e":case"ee":if((s=i&&"\u5143"===_?1:I(e,$(_,10)))<0||9999<s)return S;break;case"y":case"yy":case"yyy":case"yyyy":if((s=$(_,10))<0||9999<s)return S;break;case"h":case"hh":case"H":case"HH":if((m=$(_,10))<0)return S;break;case"m":case"mm":if((h=$(_,10))<0||59<h)return S;break;case"s":case"ss":if((d=$(_,10))<0||59<d)return S;break;case"tt":case"t":if(p=(w=_.toUpperCase())===n.pmDesignator.toUpperCase(),b=w===n.amDesignator.toUpperCase(),p||b)break;return S;case"f":case"0":if((l=100*$(_,10))<0||999<l)return S;break;case"ff":case"00":if((l=10*$(_,10))<0||999<l)return S;break;case"fff":case"000":if((l=$(_,10))<0||999<l)return S;break;case"dddd":if((y=e.aGt(_))<0||6<y)return S;break;case"ddd":if((y=e.sGt(_))<0||6<y)return S;break;case"zzz":if(2!==(w=_.split(/:/)).length)return S;if((M=$(w[0],10))<-12||13<M)return S;if((D=$(w[1],10))<0||59<D)return S;v=60*M+(k.zf.fJ(_,"-")?-D:D);break;case"z":case"zz":if((M=$(_,10))<-12||13<M)return S;v=60*M;break;case"g":case"gg":case"ggg":if(!(D=_)||!n.eras)return S;if((u=C.XPt.kGt(a[g],D))<0)return S}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?s=H[0]:s<100&&(n.eras&&u!==S?s=C.XPt.NGt(u||0,s):s+=30<=s?1900:2e3),f===S&&(f=H[1]),c===S&&(c=r?H[2]:1),N){if((t=N.toGregorian(s,f,c))===S)return S}else{if(t.setFullYear(s,f,c),t.getDate()!==c)return S;if(y!==S&&t.getDay()!==y)return S}return p&&m<12?m+=12:b&&12===m&&(m=0),t.setHours(m,h,d,l),v!==S&&(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=S,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,S,E,R,I,B,$,x,P,C,A,G,L,O,T,N=e[J],k=e[V],S=r[J],E=r[V],R=n[J],I=n[V],B=1===k,$=1===E;if(S===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===S&&E===k){for(M=[],h=[],D=k+1,H=k+2,c=0;c<N;c++){if(v=o(g=$?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=[],$||(p[0]=[]),c=0;c<R;c++){for($&&(p[c]=[]),g=O[0][D],y=0;y<k;y++){if(v=o($?n[c][y]:n[y][c]),t&&K(v))return s;g+=O[y+1][D]*v}$?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,S,F,r,_,H,$,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=S(t,0,i),i=S(t,i+1),o=0,-1!==r&&(o=S(a,r+1).length),a=M(i),n.rUt=o=(o=o-a)<0?0:o):(o=0,-1!==r&&(o=S(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=S(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=S(r,0,1);for(r=0===(h=1===(r=u===c?S(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!==$)&&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?S(o,1):o).indexOf("e"))<0?o.indexOf("E"):e)<0?(a=o,v):(a=S(o,0,e),S(o,e+1)),o=(n=a.indexOf("."))<0?(u=a,v):(u=S(a,0,n),S(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=S(a,0,a.length-1),-1===(n=(a=f.zf.s6t(a,"")).indexOf("."))&&(n=a.length),i="",a=i=(i=(i=i+S(a,0,n-2)+".")+S(a,n-2,2))+S(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["-",S(t,0,t.length-n.length)];if(f.zf.dT(t,r))return["+",S(t,0,t.length-r.length)]}else if(2===e||1===e){if(f.zf.fJ(t,n))return["-",S(t,n.length)];if(f.zf.fJ(t,r))return["+",S(t,r.length)]}else{if(0!==e)throw new Error("");if(f.zf.fJ(t,"(")&&f.zf.dT(t,")"))return["-",S(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#",S=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",$="################",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:$,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,n={command:r,result:o,vM:e,actionType:e,metaData:null==(n=i.LUt)?void 0:n.metaData,r:null,isBefore:!0};if(i.LUt&&r&&(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: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},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,S,d,$,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($t(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=$t(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)||S(),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=$t(t,!1),e=St(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===$.oHt||T(r,e,!0)?t:(r=r.replace(W,"\\$1"),t.replace(new RegExp(r,"g"),e))}function St(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 $t(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!==$.oHt)for(n=xt(e=$t(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!==$.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():$.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=[],$.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()},S=function(){throw new Error(f().Exp_FormatIllegal)},d=function(){return g.CultureManager.booleanMapping},$={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===$.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,"\\.",'"."'):$.oHt},e.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},e.prototype.toString=function(){return this.Jq?Ht(this.Jq):$.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===$.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($.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=$.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===$.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 S()},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=$.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===$.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!==$.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=St(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($.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!==_||S(),(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&&S(),o&&(i=i||"",i+=o),o=y.toString(),a=!0):"]"===y?(a||S(),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=""):S(),a=!1):o+=y;o?a?S():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):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===$.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=$.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,$.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($.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($.I5("0{0}%",f));if(d(r,s))return n($.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=$.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)?$.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($.Ji(r)&&S(),t.formatters=[],e=Bt(r),t.lHt=1===e.length,(!e||e.length<1||4<e.length)&&S(),n=0;n<e.length;n++)-1!==e[n].indexOf("@")&&-1===e[n].indexOf("\\@")&&(n!==e.length-1?S():this.hasAt=!0),i=new lt(e[n],t.cultureName),t.formatters.push(i);t.getFormatter(y.EHt)||S(),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.YUr()}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.YUr=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.ZUr=t,this.WUr=t.jbi()}Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,n=e("./src/plugins/formatter/formatterGrammar/interface.ts"),o.prototype.QUr=function(t){this.WUr.type===t?this.WUr=this.ZUr.jbi():(0,n.throwError)()},o.prototype.parse=function(){for(var t=[];"EOF"!==this.WUr.type;)t.push(this.JUr()),4<t.length&&(0,n.throwError)();return{type:"numberFormat",body:t}},o.prototype.JUr=function(){for(var t,r,t=[];"semicolon"!==this.WUr.type&&"EOF"!==this.WUr.type;)r=this.WUr.type,t.push("symbol"===r?this.KUr():this.XUr());return"semicolon"===this.WUr.type&&this.QUr("semicolon"),{type:"formatPart",body:t}},o.prototype.KUr=function(){var t,r,t=this.WUr.value;return t===n.ASTERISK?(this.QUr("symbol"),r={type:"asterisk",body:this.WUr.value},this.QUr("char")):t===n.BACKSLASH?(this.QUr("symbol"),r={type:"char",body:this.WUr.value},this.QUr("char")):t===n.UNDERLINE?(this.QUr("symbol"),r={type:"underline",body:this.WUr.value},this.QUr("char")):(r={type:"symbol",body:this.WUr.value},this.QUr("symbol")),r},o.prototype.XUr=function(){var t,r,t=this.WUr.type;return"char"===t?(r={type:"char",body:this.WUr.value},this.QUr("char")):"text"===t&&(r={type:"text",body:this.WUr.value},this.QUr("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($(t)===a)r.value=t;else if($(t)===o)r.value=t?1:0;else if(t instanceof Date)r.value=k.o0(t);else{if($(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]?(S(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?(S(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 S(t){return t===c||t===N}function $(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!(!S(t)&&""!==t||!S(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():$(t)===i&&$(r)===i?t.toLowerCase()===r.toLowerCase():t===r)},y.isGreaterThan=function(t,r){var e=$(t),n=$(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=S(t)||""===t||$(t)===a&&isNaN(t),o=S(r)||""===r||$(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,S(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],S(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,S,X,l,I,B,G,Z,Q,tt,C,gt,Ft,_t,wt,A,T,E,Dt,Ht,Nt,a,w,kt,St,v,p,b,g,F,$t,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 $(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(S=k=void 0,$=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,$,l))),0<C&&k*a[C-1]<0&&(N=D[D.length-1])&&(S=ur(N.x,N.y,x,P,$),D.push(new Pt(ir(S,$,l)))),D.push(new Pt(ir(x,P,k))),C===v-1&&D.push(new Pt(ir(x,$,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)),S=k=-yt,x=$=yt,_=h.length,g=0;g<_-1;g++)Y(h,g,m,Q),z&&(0===g&&(S<D&&(k=w,S=D),D<x)&&($=w,x=D),S<N&&(k=H,S=N),N<x)&&($=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,S,mt),Z($,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,S=nt(t)?.375:(1-p)/2,$=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,S=v+p/2+_,b,b,N,b,S);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($=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,$=.7*n,S=H-N,N):(k=H,$=N,S=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+$/2,S),i.rotate(Math.PI/2),i.fillText(O,x/2,0)):i.fillText(O,k+$/2,S+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,S,e,j,E,$,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,$=!0),r<i&&(r=i,$=!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),$&&(vt(b,h,d,l,v),H?Fr(b,g+_/2,N+e,S,i):Fr(b,N+n,F+w/2,S,o),b.restore()),D&&(p=void 0,r=0,$&&(r=.4*S*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)),S=p/(w=ut(m-y)),$=v+b*ut(y-c)*S,(k=ut(F-c)*S*.9)>ut(w)*S&&(k=ut(w+y)*S),N=v+b*p,!(r&&$<N||!r&&N<$))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/S<M)if(r){for(A=1;A<=x;A++)W(t,e,O=$+M*S*A*-1*.9,e+i,O,D,1);for(A=1;A<=P;A++)W(t,e,O=$+M*S*A*1*.9,e+i,O,D,1)}else{for(A=1;A<=x;A++)W(t,T=$+M*S*A*1*.9,n,T,n+o,D,1);for(A=1;A<=P;A++)W(t,T=$+M*S*A*-1*.9,n,T,n+o,D,1)}}else if(0<M&&M<=m&&5/S<M)if(t.beginPath(),r){for(C=10<.1*i?10:.1*i,A=1;A<=x;A++)W(t,e,O=$+M*S*A*-1*.9,e+C,O,D,1);for(A=1;A<=P;A++)W(t,e,O=$+M*S*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=$+M*S*A*1*.9,n+o-C,T,n+o,D,1);for(A=1;A<=P;A++)W(t,T=$+M*S*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,$,k,p,_,b,f):(k>ut(w)*S&&(k=ut(w+y)*S,$=v),Vt(t,e,n,i,o,d,l,!1,r,$,k,p,_,b,f)),E&&(c<F?Ut(t,e,n,i,o,n-$,$-e-i,g,L,r,!0,$,k,b):Ut(t,e,n,i,o,$-n-o,e-$,g,L,r,!1,$,k,b)),R&&(r?W(t,e,$,e+i,$,V,2):W(t,$,n,$,n+o,V,2)),t.restore()}else r?W(t,e,$,e+i,$,V,2):W(t,$,n,$,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,S=p+.1*b,$=.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",S,o,$,i-o,i,S,o-i,$):ht(f,y,t=p+.45*b,i,t,o,i,t,o,t,u),rt(c,S,Y-X,$,X,Y,S,X,$),ht(f,y,S,A,S+$,A,A,S,A,S+$,u),0===s&&(ht(f,y,S+.3*$,o,S+.7*$,o,o,S+.3*$,o,S+.7*$,u),ht(f,y,S+.3*$,i,S+.7*$,i,i,S+.3*$,i,S+.7*$,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 Sr(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?Sr(t,n,i,o,a):Sr(t,u,s,f,c),t.stroke()}function $r(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,$r(t,r,s-f,n,f)):(p=Q,d=s-f-1):d=0<(M=u-(e+i-s))&&e+i-s<f?($r(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?($r(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?($r(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,S,K,$,x,s,f,f,s,P,C,f,A,J,P,x,$,O,A,x,S,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++;S=!1,nt(w)||(S=-1===(K=[Ft,_t,wt]).indexOf(w)),(nt(w)||S)&&(l-=_),s=ct(s),ft(s)||0<s||p<s?s=$=p:F=-($=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-$),vt(t,e,n,i,o),t.beginPath(),t.lineWidth=1,$=(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)||S)&&h===M||T,S=r&&O?r:1===h||O?0<=$?E:y:0<=$?c:B,m?lt(t,C,A-x,f,x,S):lt(t,A,C,x,f,S),m?(1!==h&&(h!==M?U(t,0<$,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<$,Mt,C,A-x,e+i,A-x,C,A,e+i,A)):(1!==h&&(h!==M?U(t,0<$,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<$,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<$,fontSize:j,startBox:A,endBox:x,boxColor:S}),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,S,t,p,$,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,S=M.width,t=M.top,p=M.height,$=h?-1:1,M=S/F,vt(e,n,i,o,a),e.beginPath(),e.lineWidth=1,P=(x=_[b])[1],C=k+$*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<S/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++)$[x]=Br(new Date(u,x,1))-1+l;for(P=$[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=$[A])<=w&&w<7+A&&S.push({x1:N.x,y1:N.y-1,x2:N.x,y2:N.y+N.h+1}),w!==A&&0!==C.getDay()||S.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&&S.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()||S.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<S.length;O++)T=S[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-$t,t.end+$t,!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,S),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=S,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&&($(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-St&&(a=Kr(m.x,m.y,M.minValueRadian,c),tr(D={x:(_=Jr(m,a)).x-v,y:_.y,width:v,height:h},w)||($(r,_.x,_.y+O(h),t.minValueOption.label,t.minValueOption.fontAfterZoom,B),n.showMinLabel=!0)),e.enoughShowMaxLabel&&ut(N(g)*c)+p<i/2-St&&(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)||($(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-St)&&ut(x(p)*g)+v/2+St/2<w&&(b=at(h,s)/2,$(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,S),L(r,p.x,w,p.x+M*E,w,V,Dt*i),s&&(r.save(),r.beginPath(),e.enoughShowMinLabel&&($(r,l.x,l.y,f.label,f.fontAfterZoom,I,S),a.showMinLabel=!0),e.enoughShowMaxLabel&&($(r,v.x,v.y,c.label,c.fontAfterZoom,I,S),a.showMaxLabel=!0),e.enoughShowTargetLabel&&!(o<_-n+F/2||_-n-kt<0)&&($(r,d.x,t.targetValueY+m.normalFontHeight*u/3,m.label,m.fontAfterZoom,I,S),a.showTargetLabel=!0),e.enoughShowCurrentLabel&&!(o<w-n+g/2||w-n-kt<0)&&($(r,h.x,t.currentValueY+y.normalFontHeight*u/3,y.label,y.fontAfterZoom,I,S),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-St&&(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,S),Gt(r,t,p.y+M-1,t,p.y-M*(E-1)-1,V,o*Dt),s&&(r.save(),n.enoughShowMinLabel&&($(r,l.x,l.y,f.label,f.fontAfterZoom,I,S),a.showMinLabel=!0),n.enoughShowMaxLabel&&($(r,v.x,v.y,c.label,c.fontAfterZoom,I,S),a.showMaxLabel=!0),n.enoughShowTargetLabel&&!(i<_-e+F/2+w||_-e-F/2-w<0)&&($(r,_-m.normalFontWidth*u/2,d.y,m.label,m.fontAfterZoom,I,S),a.showTargetLabel=!0),n.enoughShowCurrentLabel&&!(i<t-e+g/2+w||t-e-g/2-w<0)&&($(r,t-y.normalFontWidth*u/2,h.y,y.label,y.fontAfterZoom,I,S),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",S="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,St=8,v=.8,p=.25,b=.9,g=.7,F=.1,$t=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 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 S(t,r,e){var t=N(t),r=r.indexOf(t);return r=-1===r?e.indexOf(t):r}function $(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:[" ","-"]}}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,$)}},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,$)}},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)),S(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)),S(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,S,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 $(){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(),S=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&&$()?i.monthGenitiveNames:i.monthNames)[x(t,1)];break;case"MMM":s+=(i.abbreviatedMonthGenitiveNames&&$()?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=S/60)<=0?"+":"-")+O(T(f));break;case"zz":s+=((f=S/60)<=0?"+":"-")+A(O(T(f)),2);break;case"zzz":s+=((f=S/60)<=0?"+":"-")+A(O(T(f)),2)+":"+A(T(S%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))!==S;)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,S=null,$=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 S},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))===S)return S;for(a=r.QMt,v=y=c=f=s=u=S,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=$(_,10))<1||31<c)return S;break;case"MMMM":if((f=e.tGt(_))<0||11<f)return S;break;case"MMM":if((f=e.iGt(_))<0||11<f)return S;break;case"M":case"MM":case"%M":if((f=$(_,10)-1)<0||11<f)return S;break;case"e":case"ee":if((s=i&&"\u5143"===_?1:I(e,$(_,10)))<0||9999<s)return S;break;case"y":case"yy":case"yyy":case"yyyy":if((s=$(_,10))<0||9999<s)return S;break;case"h":case"hh":case"H":case"HH":if((m=$(_,10))<0)return S;break;case"m":case"mm":if((h=$(_,10))<0||59<h)return S;break;case"s":case"ss":if((d=$(_,10))<0||59<d)return S;break;case"tt":case"t":if(p=(w=_.toUpperCase())===n.pmDesignator.toUpperCase(),b=w===n.amDesignator.toUpperCase(),p||b)break;return S;case"f":case"0":if((l=100*$(_,10))<0||999<l)return S;break;case"ff":case"00":if((l=10*$(_,10))<0||999<l)return S;break;case"fff":case"000":if((l=$(_,10))<0||999<l)return S;break;case"dddd":if((y=e.aGt(_))<0||6<y)return S;break;case"ddd":if((y=e.sGt(_))<0||6<y)return S;break;case"zzz":if(2!==(w=_.split(/:/)).length)return S;if((M=$(w[0],10))<-12||13<M)return S;if((D=$(w[1],10))<0||59<D)return S;v=60*M+(k.zf.fJ(_,"-")?-D:D);break;case"z":case"zz":if((M=$(_,10))<-12||13<M)return S;v=60*M;break;case"g":case"gg":case"ggg":if(!(D=_)||!n.eras)return S;if((u=C.XPt.kGt(a[g],D))<0)return S}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?s=H[0]:s<100&&(n.eras&&u!==S?s=C.XPt.NGt(u||0,s):s+=30<=s?1900:2e3),f===S&&(f=H[1]),c===S&&(c=r?H[2]:1),N){if((t=N.toGregorian(s,f,c))===S)return S}else{if(t.setFullYear(s,f,c),t.getDate()!==c)return S;if(y!==S&&t.getDay()!==y)return S}return p&&m<12?m+=12:b&&12===m&&(m=0),t.setHours(m,h,d,l),v!==S&&(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=S,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,S,E,R,I,B,$,x,P,C,A,G,L,O,T,N=e[J],k=e[V],S=r[J],E=r[V],R=n[J],I=n[V],B=1===k,$=1===E;if(S===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===S&&E===k){for(M=[],h=[],D=k+1,H=k+2,c=0;c<N;c++){if(v=o(g=$?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=[],$||(p[0]=[]),c=0;c<R;c++){for($&&(p[c]=[]),g=O[0][D],y=0;y<k;y++){if(v=o($?n[c][y]:n[y][c]),t&&K(v))return s;g+=O[y+1][D]*v}$?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,S,F,r,_,H,$,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=S(t,0,i),i=S(t,i+1),o=0,-1!==r&&(o=S(a,r+1).length),a=M(i),n.rUt=o=(o=o-a)<0?0:o):(o=0,-1!==r&&(o=S(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=S(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=S(r,0,1);for(r=0===(h=1===(r=u===c?S(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!==$)&&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?S(o,1):o).indexOf("e"))<0?o.indexOf("E"):e)<0?(a=o,v):(a=S(o,0,e),S(o,e+1)),o=(n=a.indexOf("."))<0?(u=a,v):(u=S(a,0,n),S(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=S(a,0,a.length-1),-1===(n=(a=f.zf.s6t(a,"")).indexOf("."))&&(n=a.length),i="",a=i=(i=(i=i+S(a,0,n-2)+".")+S(a,n-2,2))+S(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["-",S(t,0,t.length-n.length)];if(f.zf.dT(t,r))return["+",S(t,0,t.length-r.length)]}else if(2===e||1===e){if(f.zf.fJ(t,n))return["-",S(t,n.length)];if(f.zf.fJ(t,r))return["+",S(t,r.length)]}else{if(0!==e)throw new Error("");if(f.zf.fJ(t,"(")&&f.zf.dT(t,")"))return["-",S(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#",S=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",$="################",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:$,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,n={command:r,result:o,vM:e,actionType:e,metaData:null==(n=i.LUt)?void 0:n.metaData,r:null,isBefore:!0};if(i.LUt&&r&&(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: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},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,S,d,$,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($t(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=$t(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)||S(),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=$t(t,!1),e=St(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===$.oHt||T(r,e,!0)?t:(r=r.replace(W,"\\$1"),t.replace(new RegExp(r,"g"),e))}function St(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 $t(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!==$.oHt)for(n=xt(e=$t(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!==$.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():$.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=[],$.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()},S=function(){throw new Error(f().Exp_FormatIllegal)},d=function(){return g.CultureManager.booleanMapping},$={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===$.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,"\\.",'"."'):$.oHt},e.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},e.prototype.toString=function(){return this.Jq?Ht(this.Jq):$.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===$.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($.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=$.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===$.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 S()},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=$.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===$.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!==$.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=St(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($.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!==_||S(),(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&&S(),o&&(i=i||"",i+=o),o=y.toString(),a=!0):"]"===y?(a||S(),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=""):S(),a=!1):o+=y;o?a?S():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):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===$.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=$.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,$.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($.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($.I5("0{0}%",f));if(d(r,s))return n($.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=$.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)?$.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($.Ji(r)&&S(),t.formatters=[],e=Bt(r),t.lHt=1===e.length,(!e||e.length<1||4<e.length)&&S(),n=0;n<e.length;n++)-1!==e[n].indexOf("@")&&-1===e[n].indexOf("\\@")&&(n!==e.length-1?S():this.hasAt=!0),i=new lt(e[n],t.cultureName),t.formatters.push(i);t.getFormatter(y.EHt)||S(),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($(t)===a)r.value=t;else if($(t)===o)r.value=t?1:0;else if(t instanceof Date)r.value=k.o0(t);else{if($(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]?(S(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?(S(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 S(t){return t===c||t===N}function $(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!(!S(t)&&""!==t||!S(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():$(t)===i&&$(r)===i?t.toLowerCase()===r.toLowerCase():t===r)},y.isGreaterThan=function(t,r){var e=$(t),n=$(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=S(t)||""===t||$(t)===a&&isNaN(t),o=S(r)||""===r||$(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,S(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],S(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,S,X,l,I,B,G,Z,Q,tt,C,gt,Ft,_t,wt,A,T,E,Dt,Ht,Nt,a,w,kt,St,v,p,b,g,F,$t,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 $(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(S=k=void 0,$=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,$,l))),0<C&&k*a[C-1]<0&&(N=D[D.length-1])&&(S=ur(N.x,N.y,x,P,$),D.push(new Pt(ir(S,$,l)))),D.push(new Pt(ir(x,P,k))),C===v-1&&D.push(new Pt(ir(x,$,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)),S=k=-yt,x=$=yt,_=h.length,g=0;g<_-1;g++)Y(h,g,m,Q),z&&(0===g&&(S<D&&(k=w,S=D),D<x)&&($=w,x=D),S<N&&(k=H,S=N),N<x)&&($=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,S,mt),Z($,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,S=nt(t)?.375:(1-p)/2,$=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,S=v+p/2+_,b,b,N,b,S);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($=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,$=.7*n,S=H-N,N):(k=H,$=N,S=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+$/2,S),i.rotate(Math.PI/2),i.fillText(O,x/2,0)):i.fillText(O,k+$/2,S+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,S,e,j,E,$,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,$=!0),r<i&&(r=i,$=!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),$&&(vt(b,h,d,l,v),H?Fr(b,g+_/2,N+e,S,i):Fr(b,N+n,F+w/2,S,o),b.restore()),D&&(p=void 0,r=0,$&&(r=.4*S*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)),S=p/(w=ut(m-y)),$=v+b*ut(y-c)*S,(k=ut(F-c)*S*.9)>ut(w)*S&&(k=ut(w+y)*S),N=v+b*p,!(r&&$<N||!r&&N<$))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/S<M)if(r){for(A=1;A<=x;A++)W(t,e,O=$+M*S*A*-1*.9,e+i,O,D,1);for(A=1;A<=P;A++)W(t,e,O=$+M*S*A*1*.9,e+i,O,D,1)}else{for(A=1;A<=x;A++)W(t,T=$+M*S*A*1*.9,n,T,n+o,D,1);for(A=1;A<=P;A++)W(t,T=$+M*S*A*-1*.9,n,T,n+o,D,1)}}else if(0<M&&M<=m&&5/S<M)if(t.beginPath(),r){for(C=10<.1*i?10:.1*i,A=1;A<=x;A++)W(t,e,O=$+M*S*A*-1*.9,e+C,O,D,1);for(A=1;A<=P;A++)W(t,e,O=$+M*S*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=$+M*S*A*1*.9,n+o-C,T,n+o,D,1);for(A=1;A<=P;A++)W(t,T=$+M*S*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,$,k,p,_,b,f):(k>ut(w)*S&&(k=ut(w+y)*S,$=v),Vt(t,e,n,i,o,d,l,!1,r,$,k,p,_,b,f)),E&&(c<F?Ut(t,e,n,i,o,n-$,$-e-i,g,L,r,!0,$,k,b):Ut(t,e,n,i,o,$-n-o,e-$,g,L,r,!1,$,k,b)),R&&(r?W(t,e,$,e+i,$,V,2):W(t,$,n,$,n+o,V,2)),t.restore()}else r?W(t,e,$,e+i,$,V,2):W(t,$,n,$,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,S=p+.1*b,$=.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",S,o,$,i-o,i,S,o-i,$):ht(f,y,t=p+.45*b,i,t,o,i,t,o,t,u),rt(c,S,Y-X,$,X,Y,S,X,$),ht(f,y,S,A,S+$,A,A,S,A,S+$,u),0===s&&(ht(f,y,S+.3*$,o,S+.7*$,o,o,S+.3*$,o,S+.7*$,u),ht(f,y,S+.3*$,i,S+.7*$,i,i,S+.3*$,i,S+.7*$,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 Sr(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?Sr(t,n,i,o,a):Sr(t,u,s,f,c),t.stroke()}function $r(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,$r(t,r,s-f,n,f)):(p=Q,d=s-f-1):d=0<(M=u-(e+i-s))&&e+i-s<f?($r(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?($r(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?($r(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,S,K,$,x,s,f,f,s,P,C,f,A,J,P,x,$,O,A,x,S,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++;S=!1,nt(w)||(S=-1===(K=[Ft,_t,wt]).indexOf(w)),(nt(w)||S)&&(l-=_),s=ct(s),ft(s)||0<s||p<s?s=$=p:F=-($=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-$),vt(t,e,n,i,o),t.beginPath(),t.lineWidth=1,$=(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)||S)&&h===M||T,S=r&&O?r:1===h||O?0<=$?E:y:0<=$?c:B,m?lt(t,C,A-x,f,x,S):lt(t,A,C,x,f,S),m?(1!==h&&(h!==M?U(t,0<$,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<$,Mt,C,A-x,e+i,A-x,C,A,e+i,A)):(1!==h&&(h!==M?U(t,0<$,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<$,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<$,fontSize:j,startBox:A,endBox:x,boxColor:S}),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,S,t,p,$,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,S=M.width,t=M.top,p=M.height,$=h?-1:1,M=S/F,vt(e,n,i,o,a),e.beginPath(),e.lineWidth=1,P=(x=_[b])[1],C=k+$*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<S/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++)$[x]=Br(new Date(u,x,1))-1+l;for(P=$[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=$[A])<=w&&w<7+A&&S.push({x1:N.x,y1:N.y-1,x2:N.x,y2:N.y+N.h+1}),w!==A&&0!==C.getDay()||S.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&&S.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()||S.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<S.length;O++)T=S[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-$t,t.end+$t,!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,S),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=S,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&&($(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-St&&(a=Kr(m.x,m.y,M.minValueRadian,c),tr(D={x:(_=Jr(m,a)).x-v,y:_.y,width:v,height:h},w)||($(r,_.x,_.y+O(h),t.minValueOption.label,t.minValueOption.fontAfterZoom,B),n.showMinLabel=!0)),e.enoughShowMaxLabel&&ut(N(g)*c)+p<i/2-St&&(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)||($(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-St)&&ut(x(p)*g)+v/2+St/2<w&&(b=at(h,s)/2,$(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,S),L(r,p.x,w,p.x+M*E,w,V,Dt*i),s&&(r.save(),r.beginPath(),e.enoughShowMinLabel&&($(r,l.x,l.y,f.label,f.fontAfterZoom,I,S),a.showMinLabel=!0),e.enoughShowMaxLabel&&($(r,v.x,v.y,c.label,c.fontAfterZoom,I,S),a.showMaxLabel=!0),e.enoughShowTargetLabel&&!(o<_-n+F/2||_-n-kt<0)&&($(r,d.x,t.targetValueY+m.normalFontHeight*u/3,m.label,m.fontAfterZoom,I,S),a.showTargetLabel=!0),e.enoughShowCurrentLabel&&!(o<w-n+g/2||w-n-kt<0)&&($(r,h.x,t.currentValueY+y.normalFontHeight*u/3,y.label,y.fontAfterZoom,I,S),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-St&&(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,S),Gt(r,t,p.y+M-1,t,p.y-M*(E-1)-1,V,o*Dt),s&&(r.save(),n.enoughShowMinLabel&&($(r,l.x,l.y,f.label,f.fontAfterZoom,I,S),a.showMinLabel=!0),n.enoughShowMaxLabel&&($(r,v.x,v.y,c.label,c.fontAfterZoom,I,S),a.showMaxLabel=!0),n.enoughShowTargetLabel&&!(i<_-e+F/2+w||_-e-F/2-w<0)&&($(r,_-m.normalFontWidth*u/2,d.y,m.label,m.fontAfterZoom,I,S),a.showTargetLabel=!0),n.enoughShowCurrentLabel&&!(i<t-e+g/2+w||t-e-g/2-w<0)&&($(r,t-y.normalFontWidth*u/2,h.y,y.label,y.fontAfterZoom,I,S),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",S="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,St=8,v=.8,p=.25,b=.9,g=.7,F=.1,$t=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||{});